/* v117 checkout contrast fix: readable chest panel + sane form controls */

body.checkout-page select,
body.checkout-page input,
body.checkout-page textarea {
  color: #f8edd8 !important;
  background: rgba(27, 25, 27, 0.96) !important;
  border-color: rgba(214, 179, 112, 0.55) !important;
  caret-color: #f8edd8 !important;
}

body.checkout-page select {
  color-scheme: dark;
}

body.checkout-page select option {
  color: #f8edd8 !important;
  background: #1f1c1f !important;
}

/* Firefox/Chrome sometimes render native dropdowns in their own colors.
   This keeps the closed field readable even when the popup is OS-controlled. */
body.checkout-page select:focus,
body.checkout-page input:focus,
body.checkout-page textarea:focus {
  outline: 2px solid rgba(235, 199, 126, 0.75) !important;
  box-shadow: 0 0 0 4px rgba(235, 199, 126, 0.18) !important;
}

/* Right checkout chest card */
body.checkout-page .checkout-sunduk-panel,
body.checkout-page .checkout-cart-panel,
body.checkout-page .order-summary-panel,
body.checkout-page .cart-summary-panel {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 247, 218, 0.95), transparent 36%),
    linear-gradient(180deg, #ead9b1 0%, #d8bc83 100%) !important;
  color: #2d2116 !important;
  border: 1px solid rgba(92, 57, 24, 0.45) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34) !important;
}

body.checkout-page .checkout-sunduk-panel *,
body.checkout-page .checkout-cart-panel *,
body.checkout-page .order-summary-panel *,
body.checkout-page .cart-summary-panel * {
  color: #2d2116 !important;
  text-shadow: none !important;
}

body.checkout-page .checkout-sunduk-panel h1,
body.checkout-page .checkout-sunduk-panel h2,
body.checkout-page .checkout-sunduk-panel h3,
body.checkout-page .checkout-cart-panel h1,
body.checkout-page .checkout-cart-panel h2,
body.checkout-page .checkout-cart-panel h3,
body.checkout-page .order-summary-panel h1,
body.checkout-page .order-summary-panel h2,
body.checkout-page .order-summary-panel h3,
body.checkout-page .cart-summary-panel h1,
body.checkout-page .cart-summary-panel h2,
body.checkout-page .cart-summary-panel h3 {
  color: #5a3318 !important;
  opacity: 1 !important;
  text-shadow: 0 1px 0 rgba(255, 245, 214, 0.45) !important;
}

body.checkout-page .checkout-sunduk-panel .btn,
body.checkout-page .checkout-cart-panel .btn,
body.checkout-page .order-summary-panel .btn,
body.checkout-page .cart-summary-panel .btn {
  background: linear-gradient(135deg, #8a5f2e, #5a3318) !important;
  color: #fff4dc !important;
  border-color: rgba(90, 51, 24, 0.6) !important;
}

body.checkout-page .checkout-sunduk-panel a,
body.checkout-page .checkout-cart-panel a,
body.checkout-page .order-summary-panel a,
body.checkout-page .cart-summary-panel a {
  color: #4c260f !important;
  font-weight: 700;
}

body.checkout-page .checkout-sunduk-panel hr,
body.checkout-page .checkout-cart-panel hr,
body.checkout-page .order-summary-panel hr,
body.checkout-page .cart-summary-panel hr {
  border-color: rgba(90, 51, 24, 0.25) !important;
}
