:root {
  --checkout-gold: #cea860;
  --checkout-ink: #2a2a28;
  --checkout-card-bg: #ffffff;
  --checkout-card-border: var(--color-border);
  --checkout-radius: 20px;
  --checkout-guarantee-bg: #f5f0e6;
  --checkout-hero-bg: #efe7da;
}

.checkout-hero {
  margin-block: 24px;
}

.checkout-hero__box {
  display: grid;
  grid-template-columns: 535px 1fr;
  grid-template-areas:
    "media title"
    "media rest";
  column-gap: 60px;
  align-items: start;
  padding: 24px 36px;
  background: var(--checkout-hero-bg);
  border-radius: 32px;
  color: var(--checkout-ink);
}

.checkout-hero__title {
  grid-area: title;
  align-self: center;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: 0;
  color: inherit;
  margin-top: -10px;
}

.checkout-hero__media {
  grid-area: media;
}

.checkout-hero__image {
  position: relative;
  display: block;
  width: 535px;
  height: 492px;
  border-radius: 34px;
  overflow: hidden;
}

.checkout-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-hero__badge {
  position: absolute;
  top: 20px;
  transform: translateX(-50%);
  z-index: 1;
  padding: 0.35em 0.85em;
  background: var(--checkout-ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}

.checkout-hero__badge--before {
  left: 25%;
}

.checkout-hero__badge--after {
  left: 75%;
  background: var(--checkout-gold);
}

.checkout-hero__caption {
  margin-top: var(--space-xs);
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0;
  color: inherit;
  text-align: center;
}

.checkout-hero__rest {
  grid-area: rest;
}

.checkout-hero__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.8;
  letter-spacing: 0;
  color: inherit;
  margin-bottom: var(--space-md);
}

.checkout-hero__callout {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.8;
  letter-spacing: 0;
  color: inherit;
  margin-bottom: var(--space-md);
}

.checkout-hero__callout strong {
  font-weight: 700;
}

.checkout-hero__guarantee {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: capitalize;
  color: inherit;
}

.checkout-hero__guarantee-icon {
  flex-shrink: 0;
  width: 39px;
  height: 35px;
  object-fit: contain;
}

/* ==========================================================================
   Checkout section: two-column layout
   ========================================================================== */

.checkout-columns {
  display: grid;
  grid-template-columns: 720px 1fr;
  gap: 60px;
  align-items: start;
  padding: 22px 36px;
}

.checkout-step {
  margin-bottom: 20px;
}

/* --- Validation-error notice: relocated into this column by assets/js/checkout.js --- */

.checkout-columns__right .woocommerce-NoticeGroup-checkout {
  margin-bottom: var(--space-md);
}

.checkout-columns__right .woocommerce-error {
  list-style: none;
  margin: 0;
  padding: 20px 24px 20px 60px;
  background: #fdecea;
  border: 1px solid #f1b0a8;
  border-left: 4px solid #c0392b;
  border-radius: 12px;
  font-family: var(--font-body);
}

.checkout-columns__right .woocommerce-error li {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--checkout-ink);
}

.checkout-columns__right .woocommerce-error li:not(:last-child) {
  margin-bottom: var(--space-xs);
}

.checkout-columns__right .woocommerce-error li a {
  color: inherit;
  text-decoration: none;
}

.checkout-columns__right .woocommerce-error li strong {
  color: #c0392b;
  font-weight: 600;
}

.checkout-step__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: capitalize;
  color: var(--checkout-ink);
  margin-bottom: 10px;
}

.checkout-columns__right .checkout-columns__left .checkout-step {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

#order_review.woocommerce-checkout-review-order {
  padding: 22px 24px 30px 24px;
  border: 1.3px dashed #cea860;
  border-radius: 12px;
}

#order_review .shop_table {
  border: none;
  border-radius: 0;
  margin: 0;
}

#order_review .shop_table th,
#order_review .shop_table td {
  padding: 9px 0 10px;
  border: none;
}

#order_review .shop_table tr > *:first-child {
  text-align: left;
}

#order_review .shop_table tr > *:last-child {
  text-align: right;
}

#order_review thead th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--checkout-ink);
}

#order_review tbody th,
#order_review tbody td,
#order_review tfoot th,
#order_review tfoot td {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: 0;
  color: #575757;
}

#order_review .cart-discount th,
#order_review .cart-discount td {
  border-top: 0.5px solid #575757;
  padding-top: 24px;
  color: #29af5c;
}

#order_review .order-total th,
#order_review .order-total td {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.6;
  color: var(--checkout-ink);
}

#order_review .order-total strong {
  font-weight: inherit;
}

/* --- Guarantee box --- */

.checkout-guarantee {
  display: flex;
  gap: 24px;
  padding: 22px;
  background: #cea8604d;
  border-radius: 12px;
}

.checkout-guarantee__icon {
  flex-shrink: 0;
  width: 169px;
  height: 155px;
  object-fit: contain;
}

.checkout-guarantee__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: capitalize;
  color: var(--checkout-ink);
  margin-bottom: var(--space-2xs);
}

.checkout-guarantee__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--checkout-ink);
  margin-bottom: var(--space-xs);
}

.checkout-guarantee__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.checkout-guarantee__check {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
  color: #29af5c;
}

/* --- Billing / shipping / payment fields --- */

.checkout-step--shipping .form-row,
.checkout-step--payment .form-row {
  margin-bottom: var(--space-md);
}
.woocommerce form .form-row {
  padding: 0px !important;
  margin: 0px 0 20px !important;
}

#customer_details .form-row label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0;
  color: #878787;
  line-height: 2;
}

.checkout-step--shipping input.input-text,
.checkout-step--shipping select,
.checkout-step--payment input.input-text,
.checkout-step--payment select {
  width: 100%;
  padding: 22px 8px !important;
  border: 1.3px solid #2a2a283d !important;
  border-radius: 8px !important;
  background: #fff;
  color: #2a2a28 !important;
}
:where(.woocommerce)
  .select2-container
  .select2-selection--single
  .select2-selection__rendered {
  padding: 22px 8px !important;
  color: #878787 !important;
}
:where(.woocommerce) .select2-container .select2-dropdown,
:where(.woocommerce) .select2-container .select2-selection {
  border: 1.3px solid #2a2a283d !important;
}
.woocommerce-checkout #payment div.form-row {
  padding: 0 !important;
}
.checkout-step--payment .place-order {
  margin: 0 !important;
}

.woocommerce-billing-fields > h3 {
  display: none;
}

.wc_payment_method.payment_method_stripe > label {
  display: none;
}
.woocommerce-checkout #payment div.payment_box {
  background-color: #fff !important;
  padding: 0 !important;
  margin: 0 !important;
}
.woocommerce-checkout #payment div.payment_box::before {
  display: none;
}

#payment fieldset {
  padding: 0;
  border: none;
  background: none;
}

.AccordionItem {
  border: none !important;
  padding: 0 !important;
}
.woocommerce-checkout #payment ul.payment_methods {
  padding: 0 !important;
  border-bottom: none !important;
}

.woocommerce-privacy-policy-text {
  display: none;
}
:where(.woocommerce) .select2-container .select2-dropdown,
:where(.woocommerce) .select2-container .select2-selection {
  border-radius: 8px !important;
}

.woocommerce-checkout #payment {
  background: none;
  border-radius: 0;
}

.checkout-card-header {
  margin-bottom: var(--space-sm);
}

.checkout-card-header__title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.checkout-card-header__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.checkout-card-header__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: #2a2a28;
}

.checkout-card-header__icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-card-header__icon {
  height: 40px !important;
  width: auto;
  object-fit: contain;
}

.checkout-step--payment .place-order {
  margin-top: var(--space-md);
}

.checkout-step--payment #place_order {
  width: 100%;
  background: var(--checkout-gold);
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  text-align: center;
  margin-top: 20px;
  border-radius: 16px;
  padding: 24px;
}
.woocommerce ul#shipping_method li label {
  color: #29af5c !important;
}

.checkout-trust {
  margin-top: var(--space-md);
  text-align: center;
}

.checkout-trust__mobile {
  display: none;
}

.checkout-trust__security {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-align: center;
  color: var(--checkout-ink);
}

.checkout-trust__perk {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-align: center;
  color: #29af5c;
  margin-top: 8px;
}

.checkout-trust__perk:first-of-type {
  margin-top: var(--space-xs);
}

.checkout-trust__mobile-icon {
  width: auto;
  height: 150px !important;
  object-fit: contain;
  margin-inline: auto;
}

.checkout-trust__mobile-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: var(--checkout-ink);
  margin-top: 15px;
  text-transform: uppercase;
}

.checkout-trust__mobile-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-top: 7px;
}

.checkout-trust__safe-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--checkout-ink);
  margin-top: 48px;
}

.checkout-trust__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: 24px;
}

.checkout-trust__logo {
  height: auto;
  width: auto;
  object-fit: contain;
}

.checkout-trust__mobile-image {
  height: 105px;
  width: auto;
  object-fit: contain;
  margin: 16px auto 0;
}

.payment_method_easyauthnet_authorizenet img {
  display: inline-block;
}
#wc-easyauthnet_authorizenet-form {
  max-width: 100%;
}

.woocommerce-checkout
  #payment
  div.payment_box
  input.js-sv-wc-payment-gateway-credit-card-form-input[type="tel"] {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px !important;
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 1300px) {
  .checkout-columns {
    grid-template-columns: 1fr 1fr;
    padding: 0;
  }
}
@media (max-width: 1023px) {
  .checkout-hero__box {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "media"
      "rest";
    row-gap: var(--space-md);
    padding: 50px 15px 44px;
  }

  .checkout-hero__title {
    align-self: auto;
    font-size: 40px;
    text-transform: capitalize;
    text-wrap: initial;
  }

  .checkout-hero__image {
    width: 100%;
    height: 358px;
  }

  .checkout-hero__text,
  .checkout-hero__callout {
    font-size: 16px;
    line-height: 1.6;
  }

  .checkout-hero__guarantee {
    font-size: 14px;
    text-wrap: inherit;
  }

  .checkout-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .checkout-step__title {
    font-size: 20px;
    text-wrap: initial;
  }

  #order_review thead th {
    font-size: 18px;
  }

  #order_review tbody th,
  #order_review tbody td,
  #order_review tfoot th,
  #order_review tfoot td {
    font-size: 16px;
  }

  #order_review .order-total th,
  #order_review .order-total td {
    font-size: 20px;
  }

  .checkout-guarantee {
    display: none;
  }

  .checkout-trust__desktop {
    display: none;
  }

  .checkout-trust__mobile {
    display: block;
  }

  .checkout-trust__logos {
    display: none;
  }
  #order_review.woocommerce-checkout-review-order {
    padding: 6px 15px 9px 15px;
  }
  .checkout-step--shipping input.input-text,
  .checkout-step--shipping select,
  .checkout-step--payment input.input-text,
  .checkout-step--payment select {
    padding: 18px 6px !important;
  }
  .woocommerce form .form-row {
    margin: 0px 0 13px !important;
  }
  :where(.woocommerce)
    .select2-container
    .select2-selection--single
    .select2-selection__rendered {
    padding: 18px 6px !important;
  }
  .checkout-card-header__label {
    display: none;
  }
  .checkout-card-header__row {
    justify-content: center;
  }
  .checkout-step--payment #place_order {
    font-size: 18px;
    padding: 20px;
  }
  .checkout-trust {
    margin-top: 30px;
  }
}
@media (max-width: 480px) {
  .checkout-hero__caption {
    font-size: 10px;
  }
  .checkout-hero__guarantee-icon {
    width: 23px;
    height: 21px !important;
  }
  .checkout-hero__guarantee {
    gap: 10px;
  }
  #order_review .shop_table th,
  #order_review .shop_table td {
    padding: 7px 0 6px;
  }
  .checkout-card-header__title {
    font-size: 16px;
  }
  .checkout-hero {
    margin: 20px 0 6px;
    background: var(--checkout-hero-bg);
  }
  .checkout-columns__right .woocommerce-error {
    padding: 16px 24px 20px 50px;
  }

  .checkout-hero__box {
    padding: 50px 0 44px;
  }
}
