/* Golden Records 1.2.5: live Gutenberg content, full-width maps and product video.
   Loaded AFTER the earlier CSS; does not change WooCommerce business logic. */

/* Core Gutenberg groups get layout classes on the live site. Reset their width
   constraints before laying out cards; do not rely on editor preview markup. */
body.gr-site main.gr-editorial,
body.gr-site main.gr-editorial > .gr-editorial-content,
body.gr-site main.gr-editorial .gr-editorial-content > :is(.gr-about,.gr-delivery,.gr-contacts),
body.gr-site main.gr-editorial :is(.gr-about,.gr-delivery,.gr-contacts) {
  display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;
}
body.gr-site main.gr-editorial :is(.gr-about,.gr-delivery,.gr-contacts) :is(.wp-block-group,.wp-block-columns,section,figure) {box-sizing:border-box;min-width:0;}
body.gr-site main.gr-editorial :is(.gr-about,.gr-delivery,.gr-contacts) :is(h1,h2,h3,h4,p) {overflow-wrap:break-word;}
body.gr-site main.gr-editorial :is(.gr-about,.gr-delivery,.gr-contacts) > .wp-block-group {max-width:none!important;width:100%!important;}
body.gr-site main.gr-editorial :is(.gr-about,.gr-delivery) :is(
   .founder-section,.manifesto-grid,.standards-3col,.service-2col,.priv-grid,.club-tg-grid,
   .pack-grid-4,.carriers-3col,.geo-grid-4,.pay-grid-4) {
   display:grid!important;grid-auto-flow:row!important;
   align-items:stretch;gap:clamp(14px,2vw,25px)!important;
   width:100%!important;max-width:none!important;min-width:0!important;
}
body.gr-site main.gr-editorial :is(.gr-about,.gr-delivery) :is(
   .founder-section,.manifesto-grid,.standards-3col,.service-2col,.priv-grid,.club-tg-grid,
   .pack-grid-4,.carriers-3col,.geo-grid-4,.pay-grid-4) > * {
   min-width:0!important;max-width:none!important;
   width:auto!important;grid-column:auto!important;grid-row:auto!important;
   margin:0!important;float:none!important;
}
body.gr-site main.gr-editorial .gr-about .founder-section {grid-template-columns:minmax(0,0.84fr) minmax(0,1.16fr)!important;}
body.gr-site main.gr-editorial .gr-about .manifesto-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
body.gr-site main.gr-editorial .gr-about .standards-3col {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
body.gr-site main.gr-editorial .gr-about :is(.service-2col,.club-tg-grid) {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
body.gr-site main.gr-editorial .gr-about .priv-grid {grid-template-columns:repeat(4,minmax(0,1fr))!important;}
body.gr-site main.gr-editorial .gr-delivery :is(.pack-grid-4,.geo-grid-4,.pay-grid-4) {grid-template-columns:repeat(4,minmax(0,1fr))!important;}
body.gr-site main.gr-editorial .gr-delivery .carriers-3col {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
body.gr-site main.gr-editorial .gr-delivery .delivery-hero {display:grid!important;grid-template-columns:minmax(0,1fr) minmax(210px,300px)!important;gap:24px!important;align-items:center!important;}
body.gr-site main.gr-editorial .gr-delivery .delivery-hero > * {min-width:0!important;max-width:100%!important;}

/* Full-height cards across the row instead of narrow left-side piles. */
body.gr-site main.gr-editorial .gr-about :is(.s-card,.manifesto-main,.credo-card,.priv-item,.srv-card-dark,.srv-card-light) ,
body.gr-site main.gr-editorial .gr-delivery :is(.pack-card,.carrier-card,.pay-card,.geo-col) {
   height:100%;padding:clamp(19px,2.1vw,31px)!important;box-sizing:border-box;
}
body.gr-site main.gr-editorial .gr-about :is(.about-hero,.credo-card,.srv-card-dark,.tg-box) :is(h1,h2,h3),
body.gr-site main.gr-editorial .gr-delivery :is(.delivery-hero,.geo-box) :is(h1,h2,h3,h4) {
   color:#f9f2e4!important;
}
body.gr-site main.gr-editorial .gr-about .about-hero h1 {max-width:24ch;font-size:clamp(33px,4.1vw,54px)!important;line-height:1.08!important;}
body.gr-site main.gr-editorial .gr-delivery .delivery-hero h1 {font-size:clamp(33px,4.1vw,52px)!important;line-height:1.08!important;}
body.gr-site main.gr-editorial .gr-delivery .geo-box :is(.geo-grid-4,.geo-col) {min-width:0!important;}
body.gr-site main.gr-editorial .gr-about .founder-portrait-frame {min-width:0;align-self:stretch;}
body.gr-site main.gr-editorial .gr-about .founder-portrait-frame img {display:block;max-width:100%;height:auto;}
body.gr-site main.gr-editorial .gr-about .closing-quote {max-width:100%;}

/* CONTACTS: keep the existing database-stored Gutenberg blocks intact.
   Flatten only the two old row wrappers; arrange information and form on one
   row, banking details below, then the full-width iframe at the bottom. */
body.gr-site main.gr-editorial .gr-contacts {
   display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
   column-gap:clamp(16px,2.4vw,30px);row-gap:clamp(18px,2.4vw,30px);
   align-items:stretch;width:100%!important;max-width:none!important;
}
body.gr-site main.gr-editorial .gr-contacts > :is(.contacts-top-grid,.contacts-bottom-grid) {
   display:contents!important;
}
body.gr-site main.gr-editorial .gr-contacts .salon-info-card {
   grid-column:1!important;grid-row:1!important;
   width:100%!important;max-width:none!important;min-height:430px;
   padding:clamp(25px,3.4vw,48px)!important;box-sizing:border-box;
   margin:0!important;display:block;
}
body.gr-site main.gr-editorial .gr-contacts .contact-form-card {
   grid-column:2!important;grid-row:1!important;
   width:100%!important;max-width:none!important;min-height:430px;
   padding:clamp(25px,3.4vw,48px)!important;box-sizing:border-box;margin:0!important;
   background:#fffdf9;border:1px solid #dfd7c8;border-top:3px solid #b89655;
}
body.gr-site main.gr-editorial .gr-contacts .requisites-card {
   grid-column:1/-1!important;grid-row:2!important;
   width:100%!important;max-width:none!important;box-sizing:border-box;margin:0!important;
   padding:clamp(20px,2.7vw,35px)!important;background:#fffdf9;
}
body.gr-site main.gr-editorial .gr-contacts .gr-contact-embed {
   grid-column:1/-1!important;grid-row:3!important;
   width:100%!important;max-width:none!important;box-sizing:border-box;
   margin:0!important;padding:0!important;min-height:0;
   background:#e9e4d7;border:1px solid #d9cdb7;
}
body.gr-site main.gr-editorial .gr-contacts .gr-contact-embed .gr-map-heading {padding:22px 28px 18px;display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;}
body.gr-site main.gr-editorial .gr-contacts .gr-contact-embed .gr-map-heading h2 {font:600 clamp(26px,2.7vw,36px)/1.15 'Cormorant Garamond',serif;color:#102117;margin:0;}
body.gr-site main.gr-editorial .gr-contacts .gr-contact-embed .gr-map-heading p {font-size:13px;color:#5a584e;margin:0;}
body.gr-site main.gr-editorial .gr-contacts .gr-contact-embed iframe {
   display:block;width:100%!important;min-width:0;max-width:100%;height:clamp(380px,42vw,560px)!important;
   border:0!important;background:#e3e0d8;
}
body.gr-site main.gr-editorial .gr-contacts .salon-info-card h1 {font-size:clamp(30px,3.4vw,45px)!important;color:#fffaf0!important;}
body.gr-site main.gr-editorial .gr-contacts .salon-info-card :is(.gr-contact-label,.gr-contact-value,.gr-contact-social a) {line-height:1.55;}
body.gr-site main.gr-editorial .gr-contacts .gr-contact-details {display:grid;gap:14px;}
body.gr-site main.gr-editorial .gr-contacts .gr-contact-detail {display:grid;gap:2px;}
body.gr-site main.gr-editorial .gr-contacts .gr-contact-label {color:#dfbd78;font-size:11px;letter-spacing:.07em;text-transform:uppercase;}
body.gr-site main.gr-editorial .gr-contacts .gr-contact-value {color:#fffdf7;font-size:clamp(14px,1.2vw,16px);font-weight:500;overflow-wrap:anywhere;}
body.gr-site main.gr-editorial .gr-contacts .gr-contact-social {display:flex;gap:8px;flex-wrap:wrap;margin-top:15px;}
body.gr-site main.gr-editorial .gr-contacts .gr-contact-social a {display:inline-block;text-decoration:none;border:1px solid #b8965580;color:#dfbd78;padding:8px 13px;font-size:12px;}
body.gr-site main.gr-editorial .gr-contacts .gr-contact-social a:hover {background:#b89655;color:#102117;}
body.gr-site main.gr-editorial .gr-contacts .contact-form-card h2 {font-size:clamp(28px,3vw,39px);margin-bottom:20px;}
body.gr-site main.gr-editorial .gr-contacts .contact-form-card .gr-contact-form {gap:15px;}
body.gr-site main.gr-editorial .gr-contacts .contact-form-card :is(input:not([type=checkbox]),textarea) {padding:12px 14px;min-height:46px;}
body.gr-site main.gr-editorial .gr-contacts .contact-form-card .gr-contact-form button {padding:14px 24px;min-height:46px;}
body.gr-site main.gr-editorial .gr-contacts figure.wp-block-table {max-width:100%;overflow-x:auto;}
body.gr-site main.gr-editorial .gr-contacts .requisites-card table {width:100%;table-layout:auto;}
body.gr-site main.gr-editorial .gr-contacts .requisites-card td {overflow-wrap:anywhere;}

/* ACF YouTube player in its OWN WooCommerce tab, after Description. */
body.gr-site .gr-pdp-details .woocommerce-tabs {width:100%;max-width:none;min-width:0;}
body.gr-site .gr-pdp-details .woocommerce-Tabs-panel--gr_product_video {width:100%;max-width:none!important;min-width:0;clear:both;}
body.gr-site .gr-product-video {width:100%;min-width:0;max-width:none;margin:0;padding:clamp(12px,2vw,22px) 0;}
body.gr-site .gr-product-video-frame {position:relative;width:100%;max-width:none;aspect-ratio:16/9;background:#0b110e;overflow:hidden;}
body.gr-site .gr-product-video iframe {position:absolute;inset:0;display:block;width:100%!important;height:100%!important;border:0;}

/* Checkout: one coherent visual system, with no changes to shipping or payment handlers. */
body.gr-site.woocommerce-checkout .woocommerce form.checkout {grid-template-columns:minmax(0,1.03fr) minmax(0,1fr);gap:22px 24px;align-items:start;}
body.gr-site.woocommerce-checkout .woocommerce form.checkout > #customer_details {
   background:#fffdf9;border:1px solid #ded7c8;border-top:3px solid #102117;
   box-shadow:0 9px 28px rgba(15,30,21,.055);padding:clamp(18px,2.4vw,30px)!important;
}
body.gr-site.woocommerce-checkout .woocommerce form.checkout > #order_review {
   background:#fffdf9;border:1px solid #ded7c8;border-top:3px solid #b89655;
   box-shadow:0 9px 28px rgba(15,30,21,.055);padding:clamp(14px,2vw,24px) clamp(14px,2vw,24px) 0!important;
}
body.gr-site.woocommerce-checkout form.checkout #customer_details .col2-set,
body.gr-site.woocommerce-checkout form.checkout #customer_details .col-1,
body.gr-site.woocommerce-checkout form.checkout #customer_details .col-2 {float:none;width:100%;min-width:0;max-width:100%;}
body.gr-site.woocommerce-checkout .woocommerce form.checkout #order_review_heading {font-size:clamp(26px,3vw,34px);}
body.gr-site.woocommerce-checkout #order_review .shop_table {width:100%;border-collapse:collapse;table-layout:auto;margin:0;}
body.gr-site.woocommerce-checkout #order_review .shop_table thead {background:#f1ece2;}
body.gr-site.woocommerce-checkout #order_review .shop_table :is(td,th) {padding:13px 10px!important;font-size:13px;line-height:1.5;}
body.gr-site.woocommerce-checkout #order_review .shop_table tr:not(:last-child) :is(td,th) {border-bottom:1px solid #eee8dc;}
body.gr-site.woocommerce-checkout #order_review .shop_table th.product-total,
body.gr-site.woocommerce-checkout #order_review .shop_table td.product-total {white-space:nowrap;text-align:right;}
body.gr-site.woocommerce-checkout #order_review .woocommerce-shipping-methods {display:grid;gap:11px;min-width:0;}
body.gr-site.woocommerce-checkout #order_review .woocommerce-shipping-methods li {display:flex!important;gap:9px!important;align-items:flex-start;min-width:0;line-height:1.4;}
body.gr-site.woocommerce-checkout #order_review .woocommerce-shipping-methods li :is(input[type=radio],input[type=checkbox]) {flex:0 0 16px;margin:4px 0 0!important;}
body.gr-site.woocommerce-checkout #order_review .woocommerce-shipping-methods li label {font-size:12.5px!important;line-height:1.5;}
body.gr-site.woocommerce-checkout #order_review #payment {background:#f2ede3;margin:14px calc(-1 * clamp(14px,2vw,24px)) 0;}
body.gr-site.woocommerce-checkout #payment .place-order button#place_order {background:#102117!important;color:#dfbd78!important;}
body.gr-site.woocommerce-checkout #payment .place-order button#place_order:hover {background:#b89655!important;color:#102117!important;}

@media(max-width:1100px) {
 body.gr-site main.gr-editorial .gr-about :is(.standards-3col,.priv-grid),
 body.gr-site main.gr-editorial .gr-delivery :is(.pack-grid-4,.carriers-3col,.geo-grid-4,.pay-grid-4) {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:820px) {
 body.gr-site main.gr-editorial .gr-about :is(.founder-section,.manifesto-grid,.service-2col,.club-tg-grid),
 body.gr-site main.gr-editorial .gr-delivery .delivery-hero {grid-template-columns:minmax(0,1fr)!important;}
 body.gr-site main.gr-editorial .gr-contacts {grid-template-columns:minmax(0,1fr)!important;}
 body.gr-site main.gr-editorial .gr-contacts .salon-info-card {grid-column:1!important;grid-row:1!important;min-height:0;}
 body.gr-site main.gr-editorial .gr-contacts .contact-form-card {grid-column:1!important;grid-row:2!important;min-height:0;}
 body.gr-site main.gr-editorial .gr-contacts .requisites-card {grid-column:1!important;grid-row:3!important;}
 body.gr-site main.gr-editorial .gr-contacts .gr-contact-embed {grid-column:1!important;grid-row:4!important;}
 body.gr-site.woocommerce-checkout .woocommerce form.checkout {grid-template-columns:minmax(0,1fr)!important;}
 body.gr-site.woocommerce-checkout .woocommerce form.checkout > :is(#customer_details,#order_review_heading,#order_review) {grid-column:1!important;grid-row:auto!important;}
}
@media(max-width:560px) {
 body.gr-site main.gr-editorial .gr-about :is(.standards-3col,.priv-grid),
 body.gr-site main.gr-editorial .gr-delivery :is(.pack-grid-4,.carriers-3col,.geo-grid-4,.pay-grid-4) {grid-template-columns:minmax(0,1fr)!important;}
 body.gr-site main.gr-editorial .gr-about .about-hero {padding:28px 20px!important;}
 body.gr-site main.gr-editorial .gr-delivery :is(.delivery-hero,.geo-box) {padding:26px 19px!important;}
 body.gr-site main.gr-editorial .gr-contacts .salon-info-card,
 body.gr-site main.gr-editorial .gr-contacts .contact-form-card,
 body.gr-site main.gr-editorial .gr-contacts .requisites-card {padding:23px 19px!important;}
 body.gr-site main.gr-editorial .gr-contacts .gr-contact-form-fields {grid-template-columns:1fr;}
 body.gr-site main.gr-editorial .gr-contacts .gr-contact-embed .gr-map-heading {padding:18px;}
 body.gr-site main.gr-editorial .gr-contacts .gr-contact-embed iframe {height:350px!important;}
 body.gr-site.woocommerce-checkout .woocommerce form.checkout > #customer_details {padding:20px 16px!important;}
}

/* Contact Form 7 replacement, if the shop uses the configured existing form. */
body.gr-site main.gr-editorial .gr-contacts .contact-form-card form.wpcf7-form {display:grid;gap:12px;}
body.gr-site main.gr-editorial .gr-contacts .contact-form-card form.wpcf7-form p {margin:0;}
body.gr-site main.gr-editorial .gr-contacts .contact-form-card form.wpcf7-form label {display:block;font-size:13px;font-weight:600;color:#102117;}
body.gr-site main.gr-editorial .gr-contacts .contact-form-card form.wpcf7-form :is(input:not([type=checkbox]):not([type=submit]),textarea,select) {display:block;width:100%;max-width:100%;box-sizing:border-box;padding:12px 14px;min-height:46px;margin-top:5px;border:1px solid #ded7c8;background:#fff;}
body.gr-site main.gr-editorial .gr-contacts .contact-form-card form.wpcf7-form input[type=submit] {background:#102117;color:#dfbd78;border:1px solid #102117;padding:13px 25px;cursor:pointer;min-height:46px;}
body.gr-site main.gr-editorial .gr-contacts .contact-form-card form.wpcf7-form input[type=submit]:hover {background:#b89655;color:#102117;}
