/********** The Delivery Gateway styles for page **********/

.deliverygateway-io-buttons {
  display: flex;
  margin-top: 2rem;
  gap: 12px;
}

@media screen and (min-width: 1150px) {
  .deliverygateway-io-button .primary {
    padding: 20px 32px;
  }

  .deliverygateway-io-button .secondary {
    padding: 18px 30px;
  }
}

/********** The Delivery Gateway styles for cart **********/

.deliverygateway-io-methods {
  --radio-group-border: 1px solid #C7CCE2;
  --radio-group-border-radius: 8px;

  --radio-background-color: #FFFFFF;
  --radio-label-color: #575D7B;
  --radio-label-font-size: 14px;
  --radio-label-font-weight: 500;
  --radio-label-line-height: 24px;

  --radio-checkmark-background-color: #FFFFFF;
  --radio-checkmark-border: 1px solid #BFC3D6;

  --radio-checked-background-color: var(--dgw-surface-selected-bg, #eaf8e4);
  --radio-checked-icon-color: var(--dgw-checkbox-checked-color, #356f53);

  --pickup-point-details-color: #575D7B;
  --pickup-point-details-font-size: 13px;
  --pickup-point-details-font-weight: 500;
  --pickup-point-details-line-height: 22px;

  --date-color: var(--dgw-color-secondary-500, #12a0db);
  --date-font-size: 14px;
  --date-font-weight: 500;
  --date-line-height: 17px;

  --checkbox-label-color: #575D7B;
  --checkbox-label-font-size: 15px;
  --checkbox-label-font-weight: 500;
  --checkbox-label-line-height: 26px;
  --checkbox-label-letter-spacing: 0.3px;

  --checkbox-checkmark-background-color: #FFFFFF;
  --checkbox-checkmark-border: 1px solid #BFC3D6;

  --checkmark-checked-icon-color: var(--dgw-checkbox-checked-color, #356f53);
}

.deliverygateway-io-methods dd {
  margin: 0;
}

.deliverygateway-io-methods button {
  border: 0;
  background-color: transparent;
}

.deliverygateway-io-methods {
  display: grid;
  grid-gap: 24px;
  font-optical-sizing: auto;
  font-style: normal;
}

.deliverygateway-io-methods .radio-group {
  display: grid;
  border: var(--radio-group-border);
  border-radius: var(--radio-group-border-radius);
  overflow: hidden;
}

.deliverygateway-io-methods .radio {
  position: relative;
  user-select: none;
}

.deliverygateway-io-methods .radio:not(:nth-of-type(1)) {
  border-top: var(--radio-group-border);
}

.deliverygateway-io-methods .radio__content {
  padding: 8px;
  background-color: var(--radio-background-color);
}

.deliverygateway-io-methods .radio__content .label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--radio-label-color);
  font-size: var(--radio-label-font-size);
  font-weight: var(--radio-label-font-weight);
  line-height: var(--radio-label-line-height);
}

.deliverygateway-io-methods .radio__content .label .icon {
  min-width: 24px;
  color: inherit;
}

.deliverygateway-io-methods .shipping-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 8px;
  width: 100%;
}

.deliverygateway-io-methods .radio__content .pickup-point {
  display: none;
  grid-template-columns: 24px 1fr;
  align-items: start;
  grid-gap: 8px;
  padding: 0 30px 0 32px;
  margin: 8px 0 4px;
}

.deliverygateway-io-methods .radio__content .pickup-point:empty {
  display: none !important;
}

.deliverygateway-io-methods .radio__content .pickup-point__details {
  display: grid;
  color: var(--pickup-point-details-color);
  font-size: var(--pickup-point-details-font-size);
  font-weight: var(--pickup-point-details-font-weight);
  line-height: var(--pickup-point-details-line-height);
}

.deliverygateway-io-methods .radio__content .date {
  padding-left: 64px;
  color: var(--date-color);
  font-size: var(--date-font-size);
  font-weight: var(--date-font-weight);
  line-height: var(--date-line-height);
}

.deliverygateway-io-methods .radio input {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.deliverygateway-io-methods .radio__checkmark {
  display: block;
  position: relative;
  min-width: 24px;
  width: 24px;
  height: 24px;
  background-color: var(--radio-checkmark-background-color);
  border: var(--radio-checkmark-border);
  border-radius: 50%;
  cursor: pointer;
}

.deliverygateway-io-methods .radio__checkmark .icon {
  display: none;
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
}

.deliverygateway-io-methods .radio input:checked ~ .radio__content {
  background: var(--radio-checked-background-color);
}

.deliverygateway-io-methods .radio input:checked ~ .radio__content .radio__checkmark .icon {
  display: block;
  color: var(--radio-checked-icon-color);
}

.deliverygateway-io-methods .radio input:checked ~ .radio__content .pickup-point {
  display: grid;
}

.deliverygateway-io-methods .checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  color: var(--checkbox-label-color);
  font-size: var(--checkbox-label-font-size);
  font-weight: var(--checkbox-label-font-weight);
  line-height: var(--checkbox-label-line-height);
  letter-spacing: var(--checkbox-label-letter-spacing);
  user-select: none;
}

.deliverygateway-io-methods .checkbox input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.deliverygateway-io-methods .checkbox__checkmark {
  display: block;
  position: relative;
  min-width: 24px;
  width: 24px;
  height: 24px;
  background-color: var(--checkbox-checkmark-background-color);
  border: var(--checkbox-checkmark-border);
  border-radius: 50%;
  cursor: pointer;
}

.deliverygateway-io-methods .checkbox__checkmark .icon {
  display: none;
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
}

.deliverygateway-io-methods .checkbox input:checked ~ .checkbox__checkmark .icon {
  display: block;
  color: var(--checkmark-checked-icon-color);
}
