/* Header and grid spacing must win over the home theme's paragraph reset. */
body.everyday-edit .edit-search form input[type=search]{padding-inline:14px;font-size:16px}
body.everyday-edit .he-top-categories .edit-browse-all{margin:0;padding-block-start:32px;clear:both}
.he-product-facts,.he-upi{font-size:.9rem;color:#513d30}.he-product-facts span,.he-upi{display:inline-block;border:1px solid #d6c5b7;border-radius:1em;padding:.1em .65em}.he-product-facts span{margin-inline-start:.5em}
body.single-product .ed-photo-story.he-duplicate-story{display:none}
body.everyday-edit.woocommerce-checkout :is(.wc-block-checkout__sidebar,#order_review){background:#faf7f2;border:1px solid #dfd7cf;border-radius:12px;padding:clamp(16px,3vw,32px)}
body.woocommerce-checkout :is(.wc-block-components-text-input input,input.input-text,select){border-radius:6px;min-height:44px}
body.everyday-edit.woocommerce-checkout form.checkout > #order_review_heading {
    background: #faf7f2;
    border: 1px solid #dfd7cf;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    margin: 0;
    padding: 20px clamp(16px, 3vw, 32px) 12px;
}
body.everyday-edit.woocommerce-checkout form.checkout > #order_review {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    border-radius: 0 0 12px 12px;
}
@media (min-width: 960px) {
    body.woocommerce-checkout form.checkout.woocommerce-checkout:has(> #customer_details) {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        grid-template-rows: max-content 1fr;
        gap: 0 4%;
        align-items: start;
    }
    body.woocommerce-checkout form.checkout > #customer_details {
        grid-area: 1 / 1 / span 2;
        width: 100%;
        float: none;
    }
    body.woocommerce-checkout form.checkout > :is(#order_review_heading, #order_review) {
        grid-column: 2;
        width: 100%;
        float: none;
    }
    body.woocommerce-checkout form.checkout > #order_review_heading { grid-row: 1; }
    body.woocommerce-checkout form.checkout > #order_review { grid-row: 2; }
}
@media(max-width:767px),(pointer:coarse){
body.single-product .pswp .pswp__button--close{display:grid;place-items:center;position:absolute;inset:calc(env(safe-area-inset-top,0px) + 12px) 12px auto auto;width:48px;height:48px;border:2px solid white;background:#302b29;border-radius:50%;color:white;opacity:1;box-shadow:0 2px 8px #0006;z-index:2}
body.single-product .pswp .pswp__button--close::after{content:'×';font:32px/1 sans-serif;color:white}body.single-product .pswp .pswp__button--close>*{display:none}
body.single-product .pswp .pswp__top-bar{padding-right:66px}body.single-product .pswp .pswp__ui--hidden .pswp__top-bar{opacity:1}
body.everyday-edit.single-product .woocommerce-product-gallery .flex-control-thumbs{overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;padding-bottom:6px;scrollbar-width:thin}body.single-product .flex-control-thumbs li{scroll-snap-align:center}
.he-image-picker{display:flex;align-items:center;gap:10px;margin:.5rem 0}.he-image-picker select{font-size:16px;min-height:44px}
}
@media(min-width:768px) and (pointer:fine){.he-image-picker{display:none}}

/* Keep the whole campaign artwork visible, including captions printed in the image. */
body.home .edit-slide .edit-hero-image { background:#f4efe9; }
body.home .edit-slide .edit-hero-image img { object-fit:contain; object-position:center; }
/* PhotoSwipe already handles gestures and focus. Give its controls their own canvas. */
body.single-product .pswp.pswp--open { background:#141414; }
body.single-product .pswp--open .pswp__top-bar { background:#141414; }
@media(max-width:767px){
  body.everyday-edit #ast-scroll-top { bottom:calc(76px + env(safe-area-inset-bottom,0px)); }
  body.woocommerce-checkout .he-bottom-nav { display:none; }
  body.woocommerce-checkout .entry-content .wp-block-woocommerce-checkout.alignwide { margin-inline:0; width:100%; max-width:100%; }
  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__sidebar { margin-top:0; padding:14px; }
  body.single-product .he-mobile-heading { clear:both; margin:0 0 12px; }
  body.single-product .he-mobile-heading h1.product_title { font-size:22px; line-height:1.2; margin:0 0 4px; }
  body.single-product .he-mobile-heading p.price { font-size:18px; line-height:1.35; margin:0; }
  body.single-product .woocommerce-product-gallery:has(.he-image-picker) .flex-control-thumbs { display:none!important; }
  body.everyday-edit.single-product .woocommerce-product-gallery .he-image-picker { display:flex; justify-content:center; align-items:center; gap:8px; white-space:nowrap; margin:4px 0 0; }
  body.single-product .he-image-picker select { width:auto; min-width:85px; min-height:44px; padding:4px 25px 4px 8px; }
  body.everyday-edit.single-product div.product .woocommerce-product-gallery { margin-bottom:10px!important; }
  body.single-product .summary .he-product-facts { margin:0 0 5px; }
  body.everyday-edit.single-product .summary form.variations_form { display:block; padding-block:0; margin-bottom:14px; }
  body.everyday-edit.single-product .summary table.variations { margin:0 0 6px; }
  body.everyday-edit.single-product .summary table.variations tr { display:grid; grid-template-columns:minmax(4.25em,25%) minmax(0,1fr); gap:8px; align-items:start; margin-bottom:4px; }
  body.everyday-edit.single-product .summary table.variations :is(th,td){ margin:0; padding:0; width:auto; }
  body.everyday-edit.single-product .summary table.variations label { display:block; line-height:44px; }
  body.everyday-edit.single-product .summary table.variations select { width:100%; font-size:16px; min-height:44px; padding:6px 24px 6px 10px; }
  body.single-product .summary .woocommerce-product-details__short-description p { margin:0 0 10px; }
}

/* Keep the gallery in the product row, not pinned over subsequent sections. */
@media (min-width:768px) {
 body.everyday-edit.single-product div.product div.images {position:relative;top:auto;float:left;}
 body.everyday-edit.single-product div.product div.summary {float:right;clear:none;}
}

/* Use the available tablet width when Astra stacks the product sections. */
@media (min-width:768px) and (max-width:921px) {
 body.everyday-edit.single-product div.product div.images,
 body.everyday-edit.single-product div.product div.summary {width:100%!important;float:none;clear:both;}
 body.everyday-edit.single-product div.product div.images {max-width:560px;margin-inline:auto;}
}

/* The classic checkout grid owns the column widths, not Astra's float layout. */
@media (min-width:960px){body.everyday-edit.woocommerce-checkout form.checkout.woocommerce-checkout > #customer_details {width:100%!important;max-width:none;min-width:0;padding-inline:0;}}
body.woocommerce-checkout .woocommerce-shipping-fields label:has(>#he-same-address){display:flex;align-items:center;gap:9px;min-height:44px;cursor:pointer;line-height:1.35;}
body.woocommerce-checkout #he-same-address{width:18px;height:18px;flex:none;margin:0;}
@media (max-width:767px){body.everyday-edit.woocommerce-checkout form.checkout :is(input.input-text,select,textarea){font-size:16px;}}
