/* =============================================================
   DPL checkout
   Applies to: /checkout (classic shortcode) and the thank-you page,
               on top of component-dpl-account.css.

   Shopify's checkout is hosted by Shopify and was never part of the
   theme, so there is no live layout to reproduce. This is the store's
   own design language — the cart's tokens and spacing — applied to
   WooCommerce's classic checkout markup.
   ============================================================= */

.dpl-checkout {
  max-width: 1280px;
  margin: 0 auto;
}

.dpl-checkout__title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: #0D0D0D;
  letter-spacing: 0;
  margin: 0 0 24px;
}

@media screen and (min-width: 1025px) {
  .dpl-checkout__title {
    font-size: 34px;
  }
}

.dpl-checkout__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media screen and (min-width: 1025px) {
  .dpl-checkout__grid {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 48px;
  }
}

/* ── Details column ───────────────────────────────────────── */

.dpl-checkout__details h3,
.dpl-checkout__summary h2 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #0D0D0D;
  letter-spacing: 0;
  margin: 0 0 16px;
}

.dpl-checkout .col2-set {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.dpl-checkout .form-row {
  display: flex;
  flex-direction: column;
  margin: 0 0 16px;
}

.dpl-checkout label {
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #6B6B6B;
  margin-bottom: 6px;
}

.dpl-checkout .required {
  color: #FF9A01;
  text-decoration: none;
  border: none;
}

.dpl-checkout input[type='text'],
.dpl-checkout input[type='email'],
.dpl-checkout input[type='tel'],
.dpl-checkout input[type='password'],
.dpl-checkout select,
.dpl-checkout textarea,
.dpl-checkout .select2-container .select2-selection--single {
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #E5E5E5;
  border-radius: 20px;
  background: #FFFFFF;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  color: #0D0D0D;
  box-shadow: none;
}

.dpl-checkout textarea {
  min-height: 96px;
  padding-top: 14px;
  resize: vertical;
}

.dpl-checkout input:focus,
.dpl-checkout select:focus,
.dpl-checkout textarea:focus {
  border-color: #FF9A01;
  outline: none;
}

.dpl-checkout .woocommerce-form__label-for-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #0D0D0D;
}

.dpl-checkout input[type='checkbox'] {
  width: auto;
  min-height: 0;
  accent-color: #FF9A01;
}

/* ── Summary column ───────────────────────────────────────── */

.dpl-checkout__summary {
  border: 1px solid #E5E5E5;
  border-radius: 20px;
  background: #F7F7F7;
  padding: 24px;
}

@media screen and (min-width: 1025px) {
  .dpl-checkout__summary {
    position: sticky;
    top: 24px;
  }
}

.dpl-checkout__summary table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  color: #0D0D0D;
}

.dpl-checkout__summary thead th {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B6B6B;
  text-align: left;
  padding-bottom: 10px;
  border-bottom: 1px solid #E5E5E5;
}

.dpl-checkout__summary thead th + th,
.dpl-checkout__summary td + td,
.dpl-checkout__summary tfoot td {
  text-align: right;
}

.dpl-checkout__summary tbody td {
  padding: 12px 0;
  border-bottom: 1px solid #E5E5E5;
  vertical-align: top;
}

.dpl-checkout__summary .product-quantity {
  font-weight: 400;
  color: #6B6B6B;
}

.dpl-checkout__summary tfoot th,
.dpl-checkout__summary tfoot td {
  padding: 10px 0;
  font-weight: 400;
  text-align: right;
}

.dpl-checkout__summary tfoot th {
  text-align: left;
  color: #6B6B6B;
}

.dpl-checkout__summary tfoot .order-total th,
.dpl-checkout__summary tfoot .order-total td {
  border-top: 1px solid #E5E5E5;
  padding-top: 14px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #0D0D0D;
}

.dpl-checkout__preorder {
  display: block;
  font-family: 'Geist', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FF9A01;
  margin-top: 4px;
}

.cart_item--gift .product-name {
  color: #6B6B6B;
}

/* ── Coupon ───────────────────────────────────────────────── */

.dpl-checkout__coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

/*
 * base.css floats the label into the input for `.customer .field`, and only there.
 * The checkout is not a .customer page, so the same treatment is repeated for its one
 * floating-label field — otherwise the label sits beside the input and wraps.
 */
.dpl-checkout__coupon .field {
  flex: 1 1 160px;
  position: relative;
  display: flex;
  min-width: 0;
}

.dpl-checkout__coupon .field label {
  position: absolute;
  top: 12px;
  left: 17px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #6B6B6B;
  pointer-events: none;
  transition: top 0.1s ease, font-size 0.1s ease;
}

.dpl-checkout__coupon .field input:focus ~ label,
.dpl-checkout__coupon .field input:not(:placeholder-shown) ~ label {
  top: 5px;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.dpl-checkout__coupon .field input:focus,
.dpl-checkout__coupon .field input:not(:placeholder-shown) {
  padding: 18px 16px 6px;
}

/* The placeholder only exists to drive :placeholder-shown; the label is the visible text. */
.dpl-checkout__coupon .field input::placeholder {
  color: transparent;
}

.dpl-checkout__coupon input {
  text-transform: uppercase;
}

.dpl-checkout__coupon-apply {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid #E5E5E5;
  border-radius: 20px;
  background: #FFFFFF;
  color: #0D0D0D;
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.dpl-checkout__coupon-apply:hover {
  border-color: #FF9A01;
  color: #FF9A01;
}

/* ── Payment methods ──────────────────────────────────────── */

.dpl-checkout .wc_payment_methods {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.dpl-checkout .wc_payment_methods > li {
  border: 1px solid #E5E5E5;
  border-radius: 20px;
  background: #FFFFFF;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.dpl-checkout .wc_payment_methods label {
  display: inline;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  color: #0D0D0D;
  margin: 0;
  letter-spacing: 0;
  cursor: pointer;
}

.dpl-checkout .wc_payment_methods input[type='radio'] {
  accent-color: #FF9A01;
  margin-right: 8px;
}

.dpl-checkout .payment_box {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 20px;
  background: #F7F7F7;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #6B6B6B;
}

.dpl-checkout .payment_box p:last-child {
  margin-bottom: 0;
}

.dpl-checkout #place_order {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  border: none;
  border-radius: 20px;
  background: #FF9A01;
  color: #FFFFFF;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.dpl-checkout #place_order:hover {
  background: #E88A00;
}

.dpl-checkout .dpl-cart-pay-note {
  margin-top: 16px;
}

.dpl-checkout .dpl-payment-icons {
  margin-top: 16px;
}

/* ── Thank-you page ───────────────────────────────────────── */

.woocommerce-order .woocommerce-order-overview {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media screen and (min-width: 768px) {
  .woocommerce-order .woocommerce-order-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (min-width: 1025px) {
  .woocommerce-order .woocommerce-order-overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.woocommerce-order .woocommerce-order-overview li {
  border: 1px solid #E5E5E5;
  border-radius: 20px;
  padding: 14px 16px;
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #6B6B6B;
  text-align: left;
}

.woocommerce-order .woocommerce-order-overview li strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 400;
  color: #0D0D0D;
  letter-spacing: 0;
}

.woocommerce-order .woocommerce-order-details__title,
.woocommerce-order .woocommerce-column__title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #0D0D0D;
  letter-spacing: 0;
}

.woocommerce-order .woocommerce-customer-details .woocommerce-columns {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  text-align: left;
}

@media screen and (min-width: 768px) {
  .woocommerce-order .woocommerce-customer-details .woocommerce-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── WooCommerce markup that its own stylesheet would have handled ──
   woocommerce_enqueue_styles is emptied in inc/woocommerce.php, so the few
   utility classes its templates rely on have to be defined here. */

/* Shipping methods are a <ul>; without WooCommerce's CSS they show list bullets. */
.dpl-checkout .woocommerce-shipping-methods,
.dpl-checkout #shipping_method {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dpl-checkout .woocommerce-shipping-methods li,
.dpl-checkout #shipping_method li {
  list-style: none;
}

/* The sign-in form above the checkout form (WooCommerce hides it behind its toggle with JS;
   without JS it is simply open). */
.dpl-checkout .woocommerce-form-login-toggle,
.dpl-checkout .woocommerce-form-login {
  max-width: 560px;
}

.dpl-checkout .woocommerce-form-login {
  border: 1px solid #E5E5E5;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
}

.dpl-checkout .woocommerce-form-login .button {
  min-height: 44px;
  padding: 0 28px;
  border: none;
  border-radius: 20px;
  background: #FF9A01;
  color: #FFFFFF;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.dpl-checkout .woocommerce-privacy-policy-text p,
.dpl-checkout .woocommerce-terms-and-conditions-wrapper p {
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: #6B6B6B;
}

