/* PK Sparkle v118 — targeted fixes for layout regressions. Loaded last. */
*,*::before,*::after{box-sizing:border-box}
/* Reset inherited styles that were forcing pale headings into dark pages. */
@media(prefers-color-scheme:dark){
  :root{color-scheme:dark}
  body .page-head{background:#171316!important;border-color:#40343a!important}
  body .page-head h1,body .page-head h2{color:#faf1f4!important}
  body .page-head p{color:#c6b7be!important}
  body .pks-product-page h1,body .pks-product-page h2,body .pks-product-page h3,
  body .pks-product-page .pks-section-head h2,body .pks-detail-section h2,
  body .pks-detail-section h3,body .pks-detail-section .pks-section-head h2,
  body .checkout-page h1,body .checkout-page h2,body .checkout-page h3,
  body .cart-page h1,body .cart-page h2,body .cart-layout h1,body .cart-layout h2{color:#f9edf1!important}
  body .pks-product-page .pks-product-copy h1,body .pks-product-page .product-info h1{color:#f9edf1!important}
  body .checkout-page .content-card,body .checkout-page .form-card,
  body .checkout-page .checkout-summary-card,body .cart-layout .content-card,
  body .cart-layout .cart-summary-box{background:#1d181b!important;color:#f7edf1!important;border-color:#42363c!important;box-shadow:none!important}
  body .checkout-page .checkout-summary-row,body .checkout-page .checkout-summary-row span,
  body .checkout-page .checkout-summary-row strong{color:#f6eef1!important}
  body .checkout-page .checkout-summary-row.delivery-line,body .checkout-page .checkout-summary-row.delivery-line strong{color:#79d6a5!important}
  body .checkout-page .checkout-summary-row.grand{background:#302127!important}
  body .checkout-page .checkout-summary-row.grand span,body .checkout-page .checkout-summary-row.grand strong{color:#fff4f7!important}
  body .checkout-page .coupon-inline-form input{background:#221b1f!important;color:#fff!important}
  body .checkout-page .checkout-choice-card,body .checkout-page .address-checkout-form{background:#1d181b!important;color:#fff!important}
  body .checkout-page .checkout-choice-card.active{background:#302026!important}
  body .checkout-page .checkout-choice-kicker,body .checkout-page .checkout-form-heading span{color:#ff9ec1!important}
  body .checkout-page .address-checkout-form label{color:#f8eff2!important}
  body .pks-product-page .pks-long-detail,body .pks-product-page .pks-detail-card,
  body .pks-detail-section .pks-info-card{background:#1d181b!important;color:#f8eff2!important;border-color:#42363c!important}
  body .pks-product-page .pks-detail-section p,body .pks-product-page .pks-section-head p{color:#cbbec4!important}
}
/* Checkout needs an actual wide page rather than the legacy narrow form width. */
body main section.section.narrow.checkout-page{width:min(1180px,calc(100% - 40px))!important;max-width:1180px!important;margin:32px auto 80px!important;padding:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(310px,360px)!important;align-items:start!important;gap:28px!important}
body .checkout-page>.checkout-main-column{width:100%;min-width:0;display:grid;gap:18px}
body .checkout-page>.checkout-summary-card{width:100%;min-width:0;position:sticky;top:110px;margin:0!important;align-self:start;z-index:1}
body .checkout-page .checkout-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%}
body .checkout-page .checkout-choice-card{min-width:0;padding:22px}
body .checkout-page .checkout-choice-card h2{font-size:24px;line-height:1.25}
body .checkout-page .checkout-choice-card p{font-size:13px;line-height:1.6}
body .checkout-page .address-checkout-form{min-width:0;width:100%;padding:26px!important}
body .checkout-page .address-checkout-form .grid-2{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
body .checkout-page .address-checkout-form .grid-2 label{min-width:0;display:block;overflow-wrap:break-word;margin:0;font-size:13px}
body .checkout-page .address-checkout-form .grid-2 input,body .checkout-page .address-checkout-form .grid-2 select{width:100%!important;max-width:100%;min-width:0;display:block;margin-top:8px;height:46px;font-size:14px;padding:10px 12px}
body .checkout-page .checkout-form-heading{flex-wrap:wrap}
body .checkout-page .checkout-summary-card .checkout-summary-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 20px!important}
body .checkout-page .checkout-summary-row>span{min-width:0}
body .checkout-page .checkout-summary-row>strong{white-space:nowrap}
body .checkout-page .checkout-summary-card h2{padding:22px 20px 12px;margin:0!important}
body .checkout-page .checkout-summary-card .coupon-inline-form{margin:0!important;padding:18px 20px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px}
body .checkout-page .checkout-summary-card .coupon-inline-form input{min-width:0;width:100%!important}
body .checkout-page .checkout-summary-card .coupon-inline-form button{width:auto!important;min-width:70px!important}
body .checkout-page .checkout-trust-list{padding:16px 20px!important;margin:0!important}
/* Protect readable homepage typography on light-colored artwork, even with a dark system preference. */
body .pk2-home{color:#261b20!important}
body .pk2-home .pk2-hero h1,body .pk2-home .pk2-hero h1 span,
body .pk2-home .pk2-section-head h2,body .pk2-home .pk2-category-copy h3,
body .pk2-home .pk2-editorial-copy h2{color:#341c28!important;opacity:1!important}
body .pk2-home .pk2-hero h1 em,body .pk2-home .pk2-hero h1 i{color:#dd216e!important}
body .pk2-home .pk2-hero-copy>p,body .pk2-home .pk2-category-copy p,
body .pk2-home .pk2-editorial-copy p{color:#57444f!important}
body .pk2-home .pk2-category-card,body .pk2-home .pk2-editorial-card{color:#2d1d26!important}
body .pk2-home .pk2-category-copy h3,body .pk2-home .pk2-editorial-copy h2{text-shadow:0 1px 0 rgba(255,255,255,.3)}
body .pk2-home .pk2-section-head h2{font-weight:700!important}
@media(max-width:900px){
 body main section.section.narrow.checkout-page{width:calc(100% - 28px)!important;max-width:700px!important;display:flex!important;flex-direction:column!important;gap:18px!important}
 body .checkout-page>.checkout-main-column{order:0!important}
 body .checkout-page>.checkout-summary-card{order:1!important;position:static!important}
}
@media(max-width:600px){
 body main section.section.narrow.checkout-page{width:calc(100% - 24px)!important;margin:18px auto 44px!important}
 body .checkout-page .checkout-choice-grid{grid-template-columns:1fr!important}
 body .checkout-page .checkout-choice-card{padding:18px!important}
 body .checkout-page .address-checkout-form{padding:18px!important}
 body .checkout-page .address-checkout-form .grid-2{grid-template-columns:1fr!important;gap:12px!important}
 body .checkout-page .checkout-form-heading{display:block!important}
 body .checkout-page .checkout-form-heading small{display:inline-block;margin-top:12px}
 body .checkout-page .checkout-summary-card .coupon-inline-form{grid-template-columns:minmax(0,1fr) auto!important}
}
