/* NEMSTORY 1.6 — dedicated WooCommerce checkout page. */
.nemstory-checkout-page { max-width: 1120px; }
.nemstory-checkout-header { max-width: 760px; margin-bottom: 34px; }
.nemstory-checkout-header h1 { font-family: 'Joti One', Georgia, serif !important; color: #f7f2ea !important; font-weight: 400 !important; }
.nemstory-checkout-header h1 em { color: #e7b36e !important; font-style: normal; }
.nemstory-checkout-header .brand-page-lead { color: #c9c0b4 !important; }
.nemstory-checkout-content,
.nemstory-checkout-content .woocommerce,
.nemstory-checkout-content .woocommerce-checkout { color: #f5f0e8 !important; font-family: Inter, Arial, sans-serif !important; }

/* Classic shortcode checkout columns and review panels. */
.nemstory-checkout-content .woocommerce-checkout .col2-set,
.nemstory-checkout-content .woocommerce-checkout #order_review,
.nemstory-checkout-content .woocommerce-checkout #order_review_heading,
.nemstory-checkout-content .woocommerce-checkout .woocommerce-billing-fields,
.nemstory-checkout-content .woocommerce-checkout .woocommerce-shipping-fields,
.nemstory-checkout-content .woocommerce-checkout .woocommerce-additional-fields,
.nemstory-checkout-content .woocommerce-checkout #payment,
.nemstory-checkout-content .woocommerce-checkout .woocommerce-checkout-payment {
  color: #f5f0e8 !important;
}
.nemstory-checkout-content .woocommerce-checkout #customer_details,
.nemstory-checkout-content .woocommerce-checkout #order_review,
.nemstory-checkout-content .woocommerce-checkout .woocommerce-checkout-review-order,
.nemstory-checkout-content .woocommerce-checkout #payment,
.nemstory-checkout-content .woocommerce-checkout .woocommerce-checkout-payment {
  background: linear-gradient(145deg,#211f1b 0%,#171615 100%) !important;
  border: 1px solid rgba(217,164,95,.20) !important;
  border-radius: 20px !important;
  padding: 24px !important;
  overflow: hidden;
}
.nemstory-checkout-content .woocommerce-checkout h3,
.nemstory-checkout-content .woocommerce-checkout #order_review_heading,
.nemstory-checkout-content .woocommerce-checkout .woocommerce-billing-fields h3,
.nemstory-checkout-content .woocommerce-checkout .woocommerce-additional-fields h3 {
  color: #fff !important;
  font-family: 'Joti One', Georgia, serif !important;
  font-size: clamp(21px,2vw,27px) !important;
  font-weight: 400 !important;
  border: 0 !important;
}
.nemstory-checkout-content .woocommerce-checkout label {
  color: #e9dfd2 !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
.nemstory-checkout-content .woocommerce-checkout input.input-text,
.nemstory-checkout-content .woocommerce-checkout textarea,
.nemstory-checkout-content .woocommerce-checkout select,
.nemstory-checkout-content .woocommerce-checkout .select2-container .select2-selection {
  min-height: 48px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(217,164,95,.25) !important;
  border-radius: 11px !important;
  background: #171615 !important;
  color: #f5f0e8 !important;
  box-shadow: none !important;
  font-family: Inter, Arial, sans-serif !important;
}
.nemstory-checkout-content .woocommerce-checkout textarea { min-height: 110px !important; }
.nemstory-checkout-content .woocommerce-checkout input:focus,
.nemstory-checkout-content .woocommerce-checkout textarea:focus,
.nemstory-checkout-content .woocommerce-checkout select:focus {
  outline: 0 !important;
  border-color: #e7b36e !important;
  box-shadow: 0 0 0 3px rgba(231,179,110,.13) !important;
}
.nemstory-checkout-content .woocommerce-checkout table.shop_table,
.nemstory-checkout-content .woocommerce-checkout table.shop_table th,
.nemstory-checkout-content .woocommerce-checkout table.shop_table td {
  border-color: rgba(255,255,255,.10) !important;
  background: transparent !important;
  color: #f5f0e8 !important;
}
.nemstory-checkout-content .woocommerce-checkout #payment,
.nemstory-checkout-content .woocommerce-checkout #payment div.payment_box {
  background-color: #211f1b !important;
  color: #eee5d9 !important;
}
.nemstory-checkout-content .woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #211f1b !important; }
.nemstory-checkout-content .woocommerce-checkout .woocommerce-privacy-policy-text,
.nemstory-checkout-content .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { color: #bdb3a6 !important; font-size: 12px !important; }

/* The primary action is deliberately independent from the theme/plugin default button palettes. */
body .nemstory-checkout-page .woocommerce #place_order,
body .nemstory-checkout-page .woocommerce button#place_order,
body .nemstory-checkout-page .woocommerce button[name="woocommerce_checkout_place_order"],
body .nemstory-checkout-page .woocommerce .form-row.place-order button,
body .nemstory-checkout-page .woocommerce .wc-block-components-checkout-place-order-button,
body .nemstory-checkout-page .wc-block-checkout__actions button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 54px !important;
  padding: 16px 26px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg,#f2c98e 0%,#d9a45f 100%) !important;
  background-color: #d9a45f !important;
  color: #17130e !important;
  -webkit-text-fill-color: #17130e !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  box-shadow: 0 9px 24px rgba(217,164,95,.15) !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}
body .nemstory-checkout-page .woocommerce #place_order:hover,
body .nemstory-checkout-page .woocommerce button#place_order:hover,
body .nemstory-checkout-page .woocommerce button[name="woocommerce_checkout_place_order"]:hover,
body .nemstory-checkout-page .woocommerce .form-row.place-order button:hover,
body .nemstory-checkout-page .woocommerce .wc-block-components-checkout-place-order-button:hover,
body .nemstory-checkout-page .wc-block-checkout__actions button:hover {
  filter: brightness(1.07) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 13px 30px rgba(217,164,95,.24) !important;
}
.nemstory-checkout-content .woocommerce .woocommerce-info,
.nemstory-checkout-content .woocommerce .woocommerce-message,
.nemstory-checkout-content .woocommerce .woocommerce-error {
  border-top: 0 !important;
  border: 1px solid rgba(217,164,95,.24) !important;
  border-radius: 13px !important;
  background: #211f1b !important;
  color: #f5f0e8 !important;
}
.nemstory-checkout-content .woocommerce a { color: #e7b36e; }
.nemstory-checkout-content .woocommerce a:hover { color: #ffd49b; }

/* WooCommerce Checkout Block fallback (in case the page is later changed to the block). */
.nemstory-checkout-content .wc-block-checkout,
.nemstory-checkout-content .wc-block-components-checkout-step,
.nemstory-checkout-content .wc-block-checkout__main,
.nemstory-checkout-content .wc-block-checkout__sidebar,
.nemstory-checkout-content .wc-block-components-order-summary {
  color: #f5f0e8 !important;
}
.nemstory-checkout-content .wc-block-components-checkout-step,
.nemstory-checkout-content .wc-block-checkout__sidebar,
.nemstory-checkout-content .wc-block-components-order-summary {
  background: #211f1b !important;
  border: 1px solid rgba(217,164,95,.20) !important;
  border-radius: 18px !important;
  padding: 20px !important;
}
.nemstory-checkout-content .wc-block-components-text-input input,
.nemstory-checkout-content .wc-block-components-combobox .components-combobox-control__input,
.nemstory-checkout-content .wc-block-components-select .wc-block-components-select__container,
.nemstory-checkout-content .wc-block-components-textarea textarea {
  border-radius: 10px !important;
  border-color: rgba(217,164,95,.25) !important;
  background: #171615 !important;
  color: #f5f0e8 !important;
}
@media (max-width: 782px) {
  .nemstory-checkout-content .woocommerce-checkout #customer_details,
  .nemstory-checkout-content .woocommerce-checkout #order_review,
  .nemstory-checkout-content .woocommerce-checkout #payment { padding: 16px !important; border-radius: 16px !important; }
  .nemstory-checkout-header { margin-bottom: 24px; }
}
