/* v924: approved calm checkout choice lists; final order/actions remain untouched. */
#simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment) {
  border-color: var(--sg-border) !important;
  box-shadow: none !important;
}

#simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
  .sg-choice-heading {
  min-height: 44px;
  padding: 0 15px !important;
  border-bottom: 1px solid var(--sg-border) !important;
  background: var(--sg-surface-2) !important;
  box-shadow: none !important;
}

#simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
  .sg-choice-summary {
  display: none !important;
}

#simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
  .sg-choice-chevron {
  margin-left: auto;
  border-width: 2px;
  filter: none !important;
}

#simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
  .simplecheckout-block-content {
  display: block !important;
  padding: 7px 11px !important;
}

#simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
  .sg-method-list {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
  .sg-method-list > .radio {
  display: block !important;
  margin: 0 !important;
}

#simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
  .sg-method-list > .radio ~ .radio {
  border-top: 1px solid var(--sg-border);
}

#simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
  .sg-method-list > .radio label.sg-method-card,
#simplecheckout_form_0 #simplecheckout_shipping
  .sg-method-list > .radio label.sg-method-card:has(> input[value="pickup.pickup"]) {
  position: relative;
  display: flex !important;
  width: 100%;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 9px 11px 9px 17px !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  font-weight: 400 !important;
}

#simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
  .sg-method-list > .radio label.sg-method-card:hover {
  border: 0 !important;
  background: color-mix(in srgb, var(--sg-red) 3%, var(--sg-surface-2)) !important;
  box-shadow: none !important;
  transform: none !important;
}

#simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
  .sg-method-list > .radio label.sg-method-card:has(> input[type="radio"]:checked),
html[data-sg-theme="dark"] #simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
  .sg-method-list > .radio label.sg-method-card:has(> input[type="radio"]:checked) {
  border: 0 !important;
  background: color-mix(in srgb, var(--sg-red) 7%, var(--sg-surface-2)) !important;
  box-shadow: none !important;
  font-weight: 400 !important;
}

#simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
  .sg-method-list > .radio label.sg-method-card:has(> input[type="radio"]:checked)::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--sg-red);
}

#simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
  .sg-method-list > .radio label.sg-method-card > input[type="radio"] {
  top: 0 !important;
  margin: 0 !important;
}

#simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
  .sg-method-copy {
  align-self: center;
  justify-content: center;
  text-align: left;
}

#simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
  .sg-method-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  text-align: left;
}

#simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
  .sg-method-title {
  display: inline;
  color: var(--sg-text) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-align: left;
}

#simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
  .sg-method-note {
  margin-top: 3px;
  color: var(--sg-muted) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  text-align: left;
}

#simplecheckout_form_0 #simplecheckout_shipping .sg-method-price {
  color: var(--sg-red) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

#simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
  .sg-method-icon {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: var(--sg-muted);
  stroke: currentColor;
}

#simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
  .sg-method-card:has(> input[type="radio"]:checked) .sg-method-icon {
  color: var(--sg-red);
}

#simplecheckout_form_0 #simplecheckout_payment .sg-method-main:has(> .sg-method-note) {
  justify-content: flex-start;
  column-gap: 8px;
  row-gap: 2px;
}

#simplecheckout_form_0 #simplecheckout_payment
  .sg-method-main > .sg-method-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 0;
  text-align: left;
}

#simplecheckout_form_0 #simplecheckout_payment .sg-method-colon {
  display: inline-block;
  margin-left: 1px;
  text-shadow: 0.3px 0 currentColor, -0.3px 0 currentColor;
  transform: scaleY(.82);
  transform-origin: center;
}

#simplecheckout_form_0 #simplecheckout_payment .sg-method-inline-description {
  display: block;
  margin-top: 3px;
  color: var(--sg-muted) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  text-align: left;
}

#simplecheckout_form_0 #simplecheckout_payment
  .sg-method-list > .radio:not(:has(input[type="radio"]:checked))
  .sg-method-inline-description {
  display: none !important;
}

#simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
  .sg-method-list > .form-group {
  margin: 0 !important;
  padding: 8px 11px;
  border-top: 1px solid var(--sg-border);
}

@media (max-width: 440px) {
  #simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
    .simplecheckout-block-content {
    padding: 5px 7px !important;
  }
  #simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
    .sg-method-list > .radio label.sg-method-card {
    padding: 9px 7px 9px 13px !important;
    gap: 7px !important;
  }
}


/* v926: keep selected radios aligned with the widened inset of every choice. */
#simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
  .sg-method-list > .radio label.sg-method-card:has(> input[type="radio"]:checked),
html[data-sg-theme="dark"] #simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
  .sg-method-list > .radio label.sg-method-card:has(> input[type="radio"]:checked) {
  padding: 9px 11px 9px 17px !important;
}
@media (max-width: 440px) {
  #simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
    .sg-method-list > .radio label.sg-method-card:has(> input[type="radio"]:checked),
  html[data-sg-theme="dark"] #simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
    .sg-method-list > .radio label.sg-method-card:has(> input[type="radio"]:checked) {
    padding: 9px 7px 9px 13px !important;
  }
}

/* v927: mobile checkout copy wraps without pulling the delivery price upward. */
@media (max-width: 767px) {
  #simplecheckout_form_0 #simplecheckout_shipping
    .sg-method-list > .radio .sg-method-copy:has(.sg-method-price) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas: "title price" "note price";
    column-gap: 12px;
    align-items: center;
    width: 100%;
  }

  #simplecheckout_form_0 #simplecheckout_shipping
    .sg-method-copy:has(.sg-method-price) .sg-method-main {
    display: contents !important;
  }

  #simplecheckout_form_0 #simplecheckout_shipping
    .sg-method-copy:has(.sg-method-price) .sg-method-title {
    grid-area: title;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  #simplecheckout_form_0 #simplecheckout_shipping
    .sg-method-copy:has(.sg-method-price) .sg-method-note {
    grid-area: note;
    min-width: 0;
    margin-top: 3px;
    overflow-wrap: anywhere;
  }

  #simplecheckout_form_0 #simplecheckout_shipping
    .sg-method-copy:has(.sg-method-price) .sg-method-price {
    grid-area: price;
    align-self: center;
    position: static !important;
    margin-left: 0;
    transform: none !important;
    white-space: nowrap;
  }

  #simplecheckout_form_0 #simplecheckout_payment
    .sg-method-list > .radio .sg-method-main:has(> .sg-method-note) {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start;
    column-gap: 0;
    row-gap: 3px;
  }

  #simplecheckout_form_0 #simplecheckout_payment
    .sg-method-list > .radio .sg-method-main > .sg-method-note {
    display: inline-flex;
    flex: 0 0 100%;
    min-width: 0;
    align-items: center;
    gap: 6px;
    margin: 0;
    overflow-wrap: anywhere;
  }
}

/* v936: advisory email-domain validation beside the checkout email field. */
#simplecheckout_form_0 #simplecheckout_customer .sg-email-check {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}
#simplecheckout_form_0 #simplecheckout_customer .sg-email-check[hidden] {
  display: none !important;
}
#simplecheckout_form_0 #simplecheckout_customer .sg-email-check.is-checking,
#simplecheckout_form_0 #simplecheckout_customer .sg-email-check.is-unknown {
  color: var(--sg-muted) !important;
}
#simplecheckout_form_0 #simplecheckout_customer .sg-email-check.is-valid {
  color: #167447 !important;
}
html[data-sg-theme="dark"] #simplecheckout_form_0 #simplecheckout_customer .sg-email-check.is-valid {
  color: #7fd49b !important;
}
#simplecheckout_form_0 #simplecheckout_customer .sg-email-check.is-invalid {
  color: var(--sg-red) !important;
}

/* v928: align pickup and keep short mobile payment labels inline. */
@media (max-width: 440px) {
  #simplecheckout_form_0 #simplecheckout_shipping
    .sg-method-list > .radio label.sg-method-card:has(> input[type="radio"][value="pickup.pickup"]) {
    padding-left: 13px !important;
  }
}

@media (max-width: 767px) {
  #simplecheckout_form_0 #simplecheckout_payment
    .sg-method-list > .radio .sg-method-title {
    font-size: 13px !important;
  }

  #simplecheckout_form_0 #simplecheckout_payment
    .sg-method-list > .radio .sg-method-main:has(> .sg-method-note) {
    column-gap: 8px;
    row-gap: 2px;
  }

  #simplecheckout_form_0 #simplecheckout_payment
    .sg-method-list > .radio .sg-method-main > .sg-method-note {
    flex: 0 1 auto !important;
  }
}

/* v929: optically match the red delivery amount to the subtotal amount. */
#simplecheckout_cart #total_shipping .simplecheckout-cart-total-value {
  font-size: 14px !important;
}

/* v931: highlight only the cash-pickup discount. */
#simplecheckout_form_0 #simplecheckout_payment .sg-method-note-text {
  min-width: 0;
}
#simplecheckout_form_0 #simplecheckout_payment .sg-method-discount {
  color: var(--sg-red) !important;
  font-weight: 700;
}
html[data-sg-theme="dark"] #simplecheckout_form_0 #simplecheckout_payment .sg-method-discount {
  color: #ff555a !important;
}

/* v933: flow the long cash-pickup detail after its title on mobile only. */
@media (max-width: 767px) {
#simplecheckout_form_0 #simplecheckout_payment .sg-method-list > .radio
  label.sg-method-card:has(> input[value="artbank_transferclone4"]) .sg-method-main {
  display: block !important;
  text-align: left;
}
#simplecheckout_form_0 #simplecheckout_payment .sg-method-list > .radio
  label.sg-method-card:has(> input[value="artbank_transferclone4"]) .sg-method-main > .sg-method-note {
  display: inline !important;
  margin: 0 0 0 5px !important;
  white-space: normal;
}
#simplecheckout_form_0 #simplecheckout_payment .sg-method-list > .radio
  label.sg-method-card:has(> input[value="artbank_transferclone4"]) .sg-method-note .sg-method-icon {
  display: inline-block !important;
  margin-right: 4px;
  vertical-align: -3px;
}
#simplecheckout_form_0 #simplecheckout_payment .sg-method-list > .radio
  label.sg-method-card:has(> input[value="artbank_transferclone4"]) .sg-method-note-text {
  display: inline;
  white-space: normal;
}
}

/* v934: softly separate method headings from help text on mobile. */
@media (max-width: 767px) {
  #simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
    .sg-method-list > .radio label.sg-method-card {
    align-items: flex-start !important;
  }

  #simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
    .sg-method-list > .radio .sg-method-copy {
    align-self: flex-start !important;
    justify-content: flex-start;
  }

  #simplecheckout_form_0 :is(#simplecheckout_shipping, #simplecheckout_payment)
    .sg-method-list > .radio label.sg-method-card > input[type="radio"] {
    align-self: flex-start;
    margin-top: 2px !important;
  }

  #simplecheckout_form_0 #simplecheckout_shipping
    .sg-method-list > .radio label.sg-method-card > .sg-method-icon {
    align-self: flex-start;
    margin-top: 2px;
  }

  #simplecheckout_form_0 #simplecheckout_shipping
    .sg-method-list > .radio .sg-method-copy > .sg-method-note,
  #simplecheckout_form_0 #simplecheckout_payment
    .sg-method-list > .radio .sg-method-copy > .sg-method-inline-description {
    border-top: 1px solid color-mix(in srgb, var(--sg-border) 55%, transparent);
    padding-top: 5px;
    margin-top: 5px;
  }
}

/* v935: place the mobile delivery amount beside the method name, not beside its hint. */
@media (max-width: 767px) {
  #simplecheckout_form_0 #simplecheckout_shipping
    .sg-method-list > .radio .sg-method-copy:has(.sg-method-price) {
    grid-template-areas: "title price" "note note" !important;
    align-items: start;
  }

  #simplecheckout_form_0 #simplecheckout_shipping
    .sg-method-list > .radio .sg-method-copy:has(.sg-method-price) .sg-method-price {
    align-self: start !important;
  }
}
