/* WPCode: JD eSIM checkout - consolidated CSS v2. */

body.jdesim-checkout-redesign {
  font-size: 16px !important;
}

body.jdesim-checkout-redesign .woocommerce {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #171b2a !important;
}

body.jdesim-checkout-redesign .entry-header,
body.jdesim-checkout-redesign .woocommerce > h1,
body.jdesim-checkout-redesign .woocommerce > .woocommerce-notices-wrapper:empty,
body.jdesim-checkout-redesign .woocommerce-form-coupon-toggle {
  display: none !important;
}

body.jdesim-checkout-redesign form.checkout {
  display: grid !important;
  grid-template-columns: minmax(520px, 720px) minmax(380px, 520px) !important;
  grid-template-rows: auto !important;
  justify-content: center !important;
  align-items: start !important;
  gap: 0 54px !important;
  max-width: 1500px !important;
  min-height: calc(100vh - 170px) !important;
  margin: 0 auto !important;
  padding: 34px 36px 80px !important;
  background: linear-gradient(90deg, #f5f5f5 0, #f5f5f5 calc(50% + 80px), #fff calc(50% + 80px), #fff 100%) !important;
}

body.jdesim-checkout-redesign #customer_details,
body.jdesim-checkout-redesign #payment,
body.jdesim-checkout-redesign .jdesim-coupon-card,
body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table {
  box-shadow: none !important;
}

body.jdesim-checkout-redesign #customer_details {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.jdesim-checkout-redesign #customer_details .col-1,
body.jdesim-checkout-redesign #customer_details .col-2 {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

body.jdesim-checkout-redesign #customer_details .col-2 {
  display: none !important;
}

body.jdesim-checkout-redesign .woocommerce-billing-fields > h3,
body.jdesim-checkout-redesign #order_review_heading {
  margin: 0 0 22px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #171b2a !important;
  font-size: 25px !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
}

body.jdesim-checkout-redesign .jdesim-step-label,
body.jdesim-checkout-redesign .jdesim-compat-copy h3,
body.jdesim-checkout-redesign .jdesim-card-title {
  display: none !important;
}

body.jdesim-checkout-redesign .jdesim-compat-card,
body.jdesim-checkout-redesign .woocommerce-billing-fields__field-wrapper {
  max-width: 760px !important;
}

body.jdesim-checkout-redesign .jdesim-compat-card {
  margin: 0 0 26px !important;
}

body.jdesim-checkout-redesign .jdesim-compat-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  min-height: 54px !important;
  padding: 12px 16px !important;
  border: 1.5px solid #ff3b30 !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.jdesim-checkout-redesign.jdesim-compat-confirmed .jdesim-compat-row {
  border-color: #d8dee8 !important;
}

body.jdesim-checkout-redesign .jdesim-compat-card.jdesim-compat-needs-attention .jdesim-compat-row {
  border-color: #ff3b30 !important;
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.12), 0 10px 28px rgba(255, 59, 48, 0.14) !important;
}

body.jdesim-checkout-redesign .jdesim-compat-label {
  display: block !important;
  margin: 0 !important;
  color: #171b2a !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

body.jdesim-checkout-redesign .jdesim-compat-label input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.jdesim-checkout-redesign .jdesim-compat-label a {
  color: #ff3b00 !important;
  font-weight: 900 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

body.jdesim-checkout-redesign .jdesim-compat-switch {
  position: relative !important;
  width: 40px !important;
  height: 24px !important;
  flex: 0 0 40px !important;
  border-radius: 999px !important;
  background: #e5e7eb !important;
  cursor: pointer !important;
}

body.jdesim-checkout-redesign .jdesim-compat-switch::after {
  content: "" !important;
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: transform 0.18s ease !important;
}

body.jdesim-checkout-redesign.jdesim-compat-confirmed .jdesim-compat-switch {
  background: #111827 !important;
}

body.jdesim-checkout-redesign.jdesim-compat-confirmed .jdesim-compat-switch::after {
  transform: translateX(16px) !important;
}

body.jdesim-checkout-redesign .woocommerce-billing-fields__field-wrapper::before {
  content: "\60A8\7684\90AE\7BB1\5730\5740" !important;
  display: block !important;
  margin: 0 0 14px !important;
  color: #171b2a !important;
  font-size: 22px !important;
  line-height: 1.3 !important;
  font-weight: 900 !important;
}

body.jdesim-checkout-redesign .woocommerce-billing-fields__field-wrapper .form-row label {
  display: none !important;
}

body.jdesim-checkout-redesign .form-row input.input-text {
  box-sizing: border-box !important;
  max-width: 760px !important;
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  border: 1px solid #d8dee8 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #171b2a !important;
  padding: 0 16px !important;
  font-size: 16px !important;
  box-shadow: none !important;
  cursor: text !important;
}

body.jdesim-checkout-redesign .form-row input.input-text:focus {
  border-color: #1488f5 !important;
  box-shadow: 0 0 0 3px rgba(20, 136, 245, 0.12) !important;
}

body.jdesim-checkout-redesign .form-row.jdesim-email-needs-attention input.input-text {
  border-color: #ff3b30 !important;
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.12) !important;
}

body.jdesim-checkout-redesign .jdesim-email-message {
  margin-top: 8px !important;
  color: #c2410c !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
}

body.jdesim-checkout-redesign .form-row.jdesim-field-locked input.input-text,
body.jdesim-checkout-redesign #billing_email {
  background: #fff !important;
  color: #171b2a !important;
  cursor: text !important;
}

body.jdesim-checkout-redesign #order_review {
  display: contents !important;
}

body.jdesim-checkout-redesign #order_review_heading {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: start !important;
  margin: 0 !important;
}

body.jdesim-checkout-redesign .jdesim-coupon-card {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: start !important;
  width: 100% !important;
  margin: 64px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  z-index: 2 !important;
}

body.jdesim-checkout-redesign .jdesim-coupon-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 88px !important;
  gap: 10px !important;
  align-items: stretch !important;
}

body.jdesim-checkout-redesign .jdesim-coupon-form input,
body.jdesim-checkout-redesign .jdesim-coupon-form button {
  box-sizing: border-box !important;
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  margin: 0 !important;
  border-radius: 7px !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

body.jdesim-checkout-redesign .jdesim-coupon-form input {
  min-width: 0 !important;
  border: 1px solid #e0e4eb !important;
  background: #fff !important;
  padding: 0 16px !important;
}

body.jdesim-checkout-redesign .jdesim-coupon-form button {
  width: 88px !important;
  min-width: 88px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  background: #1488f5 !important;
  color: #fff !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  text-align: center !important;
  letter-spacing: 0 !important;
  transform: none !important;
  box-shadow: none !important;
}

body.jdesim-checkout-redesign .jdesim-coupon-form button:hover {
  background: #0b78df !important;
  transform: none !important;
}

body.jdesim-checkout-redesign .jdesim-coupon-message {
  min-height: 20px !important;
  margin-top: 9px !important;
  color: #617085 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

body.jdesim-checkout-redesign .jdesim-coupon-message.is-success {
  color: #15803d !important;
}

body.jdesim-checkout-redesign .jdesim-coupon-message.is-error {
  color: #c2410c !important;
}

body.jdesim-checkout-redesign .jdesim-coupon-message.is-loading {
  color: #1488f5 !important;
}

body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  margin: 150px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-collapse: collapse !important;
  background: transparent !important;
  z-index: 1 !important;
}

body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table thead {
  display: none !important;
}

body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table th,
body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table td {
  padding: 14px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  color: #171b2a !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}

body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table td:last-child,
body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table th:last-child {
  text-align: right !important;
}

body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table .cart_item td {
  padding-top: 22px !important;
  padding-bottom: 28px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table .cart-subtotal th,
body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table .cart-subtotal td {
  font-weight: 800 !important;
}

body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table .order-total th,
body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table .order-total td {
  padding-top: 28px !important;
  padding-bottom: 28px !important;
  color: #171b2a !important;
  font-weight: 950 !important;
}

body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table .order-total th {
  font-size: 21px !important;
}

body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table .order-total td {
  font-size: 24px !important;
}

body.jdesim-checkout-redesign .jdesim-order-trust-row td {
  padding: 16px 0 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.jdesim-checkout-redesign .jdesim-order-trust {
  display: grid !important;
  gap: 10px !important;
  color: #374151 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

body.jdesim-checkout-redesign .jdesim-order-trust span {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  min-height: 44px !important;
  padding: 10px 14px 10px 42px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  background: #fff !important;
}

body.jdesim-checkout-redesign .jdesim-order-trust span::before {
  content: "" !important;
  position: absolute !important;
  left: 18px !important;
  top: 50% !important;
  width: 9px !important;
  height: 9px !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
  border-radius: 999px !important;
  background: #43a5ff !important;
}

body.jdesim-checkout-redesign #payment {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  margin: 280px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  opacity: 1 !important;
  filter: none !important;
}

body.jdesim-checkout-redesign #payment::before {
  content: "\9009\62E9\4ED8\6B3E\65B9\5F0F" !important;
  display: block !important;
  margin: 0 0 14px !important;
  background: transparent !important;
  color: #171b2a !important;
  font-size: 22px !important;
  line-height: 1.3 !important;
  font-weight: 900 !important;
}

body.jdesim-checkout-redesign #payment ul.payment_methods {
  max-width: 760px !important;
  padding: 0 !important;
  border: 1px solid #e2e6ee !important;
  border-radius: 6px !important;
  background: #fff !important;
  overflow: hidden !important;
}

body.jdesim-checkout-redesign #payment ul.payment_methods li {
  margin: 0 !important;
  padding: 15px 18px !important;
  border-bottom: 1px solid #e7ebf1 !important;
  font-size: 15px !important;
}

body.jdesim-checkout-redesign #payment ul.payment_methods li:last-child {
  border-bottom: 0 !important;
}

body.jdesim-checkout-redesign #payment div.payment_box {
  margin: 16px 0 0 !important;
  padding: 16px !important;
  border-radius: 6px !important;
  background: #fafafa !important;
  color: #4b5563 !important;
  font-size: 14px !important;
}

body.jdesim-checkout-redesign #payment #place_order {
  width: 100% !important;
  max-width: 760px !important;
  min-height: 52px !important;
  margin-top: 24px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #1488f5 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(20, 136, 245, 0.24) !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  cursor: pointer !important;
}

body.jdesim-checkout-redesign #payment #place_order:hover {
  background: #0b78df !important;
}

body.jdesim-checkout-redesign #payment.jdesim-payment-locked,
body.jdesim-checkout-redesign #payment #place_order.jdesim-place-order-disabled,
body.jdesim-checkout-redesign #payment #place_order:disabled {
  opacity: 1 !important;
  filter: none !important;
  background: #1488f5 !important;
  cursor: pointer !important;
}

body.jdesim-checkout-redesign .woocommerce-NoticeGroup {
  grid-column: 1 / -1 !important;
}

body.jdesim-checkout-redesign .woocommerce-error,
body.jdesim-checkout-redesign .woocommerce-info,
body.jdesim-checkout-redesign .woocommerce-message {
  border-radius: 8px !important;
}

@media (max-width: 921px) {
  body.jdesim-checkout-redesign {
    font-size: 14px !important;
  }

  body.jdesim-checkout-redesign form.checkout {
    display: block !important;
    min-height: 0 !important;
    padding: 22px 16px 54px !important;
    background: #f5f5f5 !important;
  }

  body.jdesim-checkout-redesign #customer_details,
  body.jdesim-checkout-redesign #payment,
  body.jdesim-checkout-redesign #order_review_heading,
  body.jdesim-checkout-redesign .jdesim-coupon-card,
  body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
  }

  body.jdesim-checkout-redesign .jdesim-coupon-card {
    margin: 0 0 18px !important;
  }

  body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table {
    margin: 0 !important;
  }

  body.jdesim-checkout-redesign .woocommerce-billing-fields > h3,
  body.jdesim-checkout-redesign #order_review_heading {
    font-size: 23px !important;
    margin-bottom: 18px !important;
  }

  body.jdesim-checkout-redesign #payment::before,
  body.jdesim-checkout-redesign .woocommerce-billing-fields__field-wrapper::before {
    font-size: 20px !important;
    margin-bottom: 12px !important;
  }

  body.jdesim-checkout-redesign .jdesim-compat-row {
    min-height: 50px !important;
    padding: 11px 14px !important;
    gap: 12px !important;
  }

  body.jdesim-checkout-redesign .jdesim-compat-label {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  body.jdesim-checkout-redesign .form-row input.input-text,
  body.jdesim-checkout-redesign .jdesim-coupon-form input,
  body.jdesim-checkout-redesign .jdesim-coupon-form button {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    font-size: 15px !important;
  }

  body.jdesim-checkout-redesign .jdesim-coupon-form {
    grid-template-columns: minmax(0, 1fr) 78px !important;
    gap: 8px !important;
  }

  body.jdesim-checkout-redesign .jdesim-coupon-form button {
    width: 78px !important;
    min-width: 78px !important;
  }

  body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table th,
  body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table td {
    font-size: 14px !important;
  }

  body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table .cart-discount td,
  body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table .cart-discount td:last-child {
    min-width: 120px !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
  }

  body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table .cart-discount .woocommerce-remove-coupon {
    display: inline-block !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
  }

  body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table .cart_item td {
    font-size: 15px !important;
  }

  body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table .order-total th {
    font-size: 19px !important;
  }

  body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table .order-total td {
    font-size: 22px !important;
  }

  body.jdesim-checkout-redesign #payment {
    margin-top: 36px !important;
  }

  body.jdesim-checkout-redesign #payment #place_order {
    min-height: 50px !important;
    font-size: 16px !important;
  }
}


/* JD eSIM checkout - reduce large heading sizes */
body.jdesim-checkout-redesign .woocommerce-billing-fields > h3,
body.jdesim-checkout-redesign #order_review_heading {
  font-size: 22px !important;
  line-height: 1.25 !important;
  margin-bottom: 20px !important;
}

body.jdesim-checkout-redesign .woocommerce-billing-fields__field-wrapper::before,
body.jdesim-checkout-redesign #payment::before {
  font-size: 20px !important;
  line-height: 1.3 !important;
  margin-bottom: 14px !important;
}

body.jdesim-checkout-redesign .shop_table .cart_item .product-name,
body.jdesim-checkout-redesign .shop_table th,
body.jdesim-checkout-redesign .shop_table td {
  font-size: 15px !important;
  line-height: 1.45 !important;
}

body.jdesim-checkout-redesign .shop_table .order-total th,
body.jdesim-checkout-redesign .shop_table .order-total td {
  font-size: 21px !important;
  line-height: 1.25 !important;
}

body.jdesim-checkout-redesign .jdesim-compat-label,
body.jdesim-checkout-redesign #payment .payment_methods label {
  font-size: 15px !important;
  line-height: 1.45 !important;
}

/* Mobile */
@media (max-width: 782px) {
  body.jdesim-checkout-redesign .woocommerce-billing-fields > h3,
  body.jdesim-checkout-redesign #order_review_heading {
    font-size: 21px !important;
  }

  body.jdesim-checkout-redesign .woocommerce-billing-fields__field-wrapper::before,
  body.jdesim-checkout-redesign #payment::before {
    font-size: 19px !important;
  }

  body.jdesim-checkout-redesign .shop_table .order-total th,
  body.jdesim-checkout-redesign .shop_table .order-total td {
    font-size: 20px !important;
  }
}

body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table .woocommerce-shipping-totals,
body.jdesim-checkout-redesign .woocommerce-checkout-review-order-table tr.shipping {
  display: none !important;
}