.gassu-custom,.gassu-heels{border:1px solid #ddd;border-radius:7px;padding:15px;margin:15px 0}.gassu-custom-fields{padding-top:14px}.gassu-custom-fields>p{margin:0 0 13px}.gassu-custom-fields select,.gassu-custom-fields textarea,.gassu-measure-grid input{display:block;width:100%;max-width:100%;margin-top:5px}.gassu-measure-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gassu-warning{color:#a12828}.gassu-hint{font-size:.95em}.gassu-heel-options{margin-top:12px}.gassu-heel-options select{display:block;width:100%}[hidden]{display:none!important}
.gassu-conditional{display:block;margin-top:7px}.gassu-dialog-open{overflow:hidden}.gassu-error-overlay{position:fixed;inset:0;z-index:999999;background:rgba(0,0,0,.52);display:flex;align-items:center;justify-content:center;padding:18px}.gassu-error-overlay[hidden]{display:none!important}.gassu-error-dialog{width:min(440px,100%);background:#fff;color:#252525;border-radius:9px;padding:25px;box-shadow:0 12px 40px #0003}.gassu-error-dialog h3{margin:0 0 12px}.gassu-error-dialog button{margin-top:12px}
/* Wskazówki są odróżnione od etykiet pól. */
.gassu-custom-fields textarea::placeholder,.gassu-measure-grid input::placeholder{color:#777!important;font-size:.9em;font-style:italic;opacity:1}
.gassu-measure-help{border:0;background:transparent;color:#14659a;text-decoration:underline;cursor:pointer;padding:3px 0;margin-bottom:12px;font-size:.92em}
.gassu-help-overlay{position:fixed;inset:0;z-index:999998;background:rgba(0,0,0,.56);display:flex;align-items:center;justify-content:center;padding:20px}
.gassu-help-dialog{position:relative;background:#fff;color:#222;width:min(850px,100%);max-height:85vh;overflow:auto;border-radius:9px;padding:28px;box-shadow:0 10px 45px #0004}
.gassu-help-close{position:absolute;top:8px;right:12px;border:0;background:none;font-size:28px;cursor:pointer;z-index:1}

/* 0.1.4: szerokość formularza i responsywne pomiary */
.gassu-custom,.gassu-heels{width:100%;max-width:100%;min-width:0;box-sizing:border-box;clear:both}
.gassu-custom-fields,.gassu-measures{width:100%;min-width:0;box-sizing:border-box}
.gassu-custom-fields p,.gassu-custom-fields label{max-width:100%}
.gassu-measure-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 22px;width:100%}
.gassu-measure-grid label{min-width:0;display:block;overflow-wrap:break-word}
.gassu-measure-grid input{box-sizing:border-box;min-width:0;width:100%}
.gassu-measure-intro{margin:12px 0 18px}
.gassu-measure-intro p{margin:0 0 6px}
.gassu-measure-help{display:inline-block;text-align:left;font-weight:400;text-transform:none;letter-spacing:normal;font-size:.95em;line-height:1.5;color:#126ba1!important;text-decoration:none!important;padding:4px 0 7px;margin:0;background:transparent!important;border:0!important;box-shadow:none!important}
.gassu-measure-help span{font-weight:700;text-decoration:underline;text-underline-offset:3px}
.gassu-measure-help:hover span,.gassu-measure-help:focus-visible span{text-decoration-thickness:2px}
@media(max-width:480px){.gassu-measure-grid{grid-template-columns:1fr;gap:12px}.gassu-custom{padding:12px}}

.gassu-swatch-help{display:inline-flex;gap:6px;align-items:center;margin-top:8px;border:0!important;background:transparent!important;color:#126ba1!important;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:3px 0!important;box-shadow:none!important;text-transform:none!important;letter-spacing:normal!important}
.gassu-swatch-overlay{position:fixed;inset:0;z-index:999998;background:rgba(0,0,0,.56);display:flex;align-items:center;justify-content:center;padding:20px}
.gassu-swatch-overlay .gassu-help-dialog{width:min(1050px,100%)}
.gassu-swatch-content img{max-width:100%;height:auto}

/* 0.1.8: show image captions in dynamically loaded Woodmart/Elementor swatches.
   Only the swatch popup is affected; original caption text is preserved. */
.gassu-swatch-content figcaption,
.gassu-swatch-content .wp-caption-text,
.gassu-swatch-content .widget-image-caption,
.gassu-swatch-content .wd-image-caption,
.gassu-swatch-content .wd-gallery-caption,
.gassu-swatch-content .wd-caption,
.gassu-swatch-content .gallery-caption,
.gassu-swatch-content .elementor-image-box-title {
 display:block!important;visibility:visible!important;opacity:1!important;
 height:auto!important;max-height:none!important;overflow:visible!important;
 position:static!important;transform:none!important;clip:auto!important;
 color:inherit;text-align:center;margin-top:6px;
}
.gassu-swatch-content figure{height:auto;overflow:visible}


/* Woodmart PhotoSwipe is rendered on the document body, above our swatch modal. */
body .pswp{z-index:15000000!important}

/* 0.1.19: shared heel/personalization panel and responsive alternatives. */
.gassu-custom>.gassu-heels{border:0;border-radius:0;padding:0 0 14px;margin:0 0 14px;border-bottom:1px solid #ddd}
.gassu-custom>.gassu-heels .gassu-heel-label{display:block}
.gassu-heel-results{margin-top:12px}
.gassu-heel-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:14px;margin:12px 0}
.gassu-heel-card{display:flex;flex-direction:column;gap:6px;min-width:0;text-decoration:none!important;border:1px solid #ddd;padding:9px;border-radius:6px}
.gassu-heel-card img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain}
.gassu-heel-card-name{font-size:.9em;line-height:1.35;overflow-wrap:anywhere}
.gassu-heel-card-price{font-weight:600;font-size:.9em}
.gassu-heel-result p{margin:10px 0}
@media(max-width:480px){.gassu-heel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}}

/* 0.1.23: isolated, independent carousel and full-grid containers. */
.gassu-heels,.gassu-heel-options,.gassu-heel-results,.gassu-heel-result{min-width:0;max-width:100%}
.gassu-heels .gassu-heel-carousel-shell{width:100%;max-width:100%;min-width:0;overflow:hidden;display:block}
.gassu-heels .gassu-heel-carousel{display:block;width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.gassu-heels .gassu-heel-track{display:flex!important;align-items:stretch;gap:10px;width:max-content;min-width:100%;max-width:none;transform:none!important}
.gassu-heels .gassu-heel-carousel .gassu-heel-slide{flex:0 0 155px!important;width:155px!important;min-width:0;max-width:155px;scroll-snap-align:start;box-sizing:border-box}
.gassu-heels .gassu-heel-card{display:flex;flex-direction:column;gap:6px;height:100%;min-width:0;box-sizing:border-box;position:relative}
.gassu-heels .gassu-heel-card img{display:block!important;width:100%!important;max-width:100%!important;height:135px!important;max-height:135px!important;aspect-ratio:auto!important;object-fit:contain!important}
.gassu-heels .gassu-heel-card-match{border:2px solid #5b795a}
.gassu-heels .gassu-heel-match-label{font-size:11px;font-weight:600;color:#286b37}
.gassu-heels .gassu-heel-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0}
.gassu-heels .gassu-heel-controls button{width:34px;height:34px;min-height:34px;padding:0;border:1px solid #ccc;border-radius:5px;background:transparent;font-size:25px;line-height:1;cursor:pointer}
.gassu-heels .gassu-heel-swipe-hint{font-size:12px;color:#777;text-align:center}
.gassu-heels .gassu-heel-show-all{display:block;margin:8px auto;background:transparent;border:0;text-decoration:underline;cursor:pointer;font-size:13px}
.gassu-heels .gassu-heel-all-grid:not([hidden]){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px;min-width:0}
.gassu-heels .gassu-heel-all-grid[hidden]{display:none!important}
.gassu-heels .gassu-heel-all-grid .gassu-heel-slide{width:auto!important;min-width:0;max-width:none}
@media(max-width:767px){.gassu-heels .gassu-heel-carousel .gassu-heel-slide{flex-basis:145px!important;width:145px!important;max-width:145px}.gassu-heels .gassu-heel-all-grid:not([hidden]){grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 0.1.24: contain the carousel within the product form; responsive fractional cards.
   The track must NOT use max-content width: its children are the scrollable content. */
.gassu-custom,.gassu-custom>.gassu-heels,.gassu-heels .gassu-heel-options,
.gassu-heels .gassu-heel-results,.gassu-heels .gassu-heel-result{
  box-sizing:border-box;min-width:0!important;max-width:100%!important;width:100%;
}
.gassu-heels .gassu-heel-carousel-shell{
  box-sizing:border-box;min-width:0!important;width:100%!important;max-width:100%!important;
  overflow:hidden!important;
}
.gassu-heels .gassu-heel-carousel{
  box-sizing:border-box;min-width:0!important;width:100%!important;max-width:100%!important;
  overflow-x:auto!important;overflow-y:hidden!important;
}
.gassu-heels .gassu-heel-track{
  display:flex!important;box-sizing:border-box;width:100%!important;min-width:0!important;
  max-width:100%!important;gap:10px;align-items:stretch;
}
/* 3.5 cards on desktop, 2.5 on tablet, 2.15 on phone. */
.gassu-heels .gassu-heel-carousel .gassu-heel-slide{
  box-sizing:border-box;flex:0 0 calc((100% - 25px) / 3.5)!important;
  width:calc((100% - 25px) / 3.5)!important;
  max-width:calc((100% - 25px) / 3.5)!important;
  min-width:0!important;
}
.gassu-heels .gassu-heel-controls{width:100%;max-width:100%;min-width:0;box-sizing:border-box;flex-wrap:wrap}
.gassu-heels .gassu-heel-show-all{max-width:100%;white-space:normal}
@media (max-width:1024px){
  .gassu-heels .gassu-heel-carousel .gassu-heel-slide{
    flex-basis:calc((100% - 15px) / 2.5)!important;
    width:calc((100% - 15px) / 2.5)!important;
    max-width:calc((100% - 15px) / 2.5)!important;
  }
}
@media (max-width:767px){
  .gassu-heels .gassu-heel-carousel .gassu-heel-slide{
    flex-basis:calc((100% - 11.5px) / 2.15)!important;
    width:calc((100% - 11.5px) / 2.15)!important;
    max-width:calc((100% - 11.5px) / 2.15)!important;
  }
  .gassu-heels .gassu-heel-card{padding:6px}
  .gassu-heels .gassu-heel-card img{height:110px!important;max-height:110px!important}
}

/* 0.1.25: isolate intrinsic size from Woodmart's product-summary flex/grid layout.
   contain:inline-size prevents the 17 product cards from sizing the parent column. */
body.single-product .summary .gassu-custom,
body.single-product .summary .gassu-heels,
.gassu-custom > .gassu-heels,
.gassu-heels .gassu-heel-results,
.gassu-heels .gassu-heel-result,
.gassu-heels .gassu-heel-carousel-shell {
  box-sizing:border-box!important;
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  contain:inline-size;
}
.gassu-heels .gassu-heel-carousel-shell {overflow:hidden!important}
.gassu-heels .gassu-heel-carousel {overflow-x:auto!important;overflow-y:hidden!important;max-width:100%!important;min-width:0!important}
.gassu-heels .gassu-heel-track {width:100%!important;min-width:0!important;max-width:100%!important}
.gassu-heels .gassu-heel-all-grid {min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box}

/* 0.1.26: alternate carousel/grid views; override theme display rules. */
.gassu-heels .gassu-heel-carousel-shell[hidden]{display:none!important}

/* 0.1.27: highlight production lead time without disturbing layout */
.gassu-hint .gassu-lead-time{display:inline-block;font-weight:700;color:#8a4316;background:#fff3e7;border-radius:4px;padding:2px 6px;margin-top:3px;}


/* 0.1.30: PhotoSwipe caption formatting and copy button for GASSU swatches only. */
body.gassu-swatch-lightbox .pswp__caption{
 position:fixed!important;bottom:auto!important;top:calc(50% + 190px)!important;
 left:0!important;width:100%!important;background:transparent!important;text-align:center!important;
}
body.gassu-swatch-lightbox .pswp__caption__center{
 max-width:100%!important;padding:10px 15px!important;font-size:20px!important;
 font-weight:600!important;line-height:1.4!important;text-transform:uppercase!important;
 color:#fff!important;text-align:center!important;
}
body.gassu-swatch-lightbox .pswp__caption__center .gassu-copy-name{
 display:inline-flex!important;align-items:center;gap:5px;margin-left:12px;padding:4px 6px;
 border:0!important;box-shadow:none!important;border-radius:0!important;
 background:transparent!important;color:#fff!important;font-size:14px!important;
 font-weight:400!important;line-height:1.4!important;text-transform:none!important;
 cursor:pointer;vertical-align:middle;
}
body.gassu-swatch-lightbox .gassu-copy-name:hover{opacity:.7;background:transparent!important}
body.gassu-swatch-lightbox .gassu-copy-name:focus-visible{outline:2px solid #fff;outline-offset:3px}
/* Larger close symbol without enlarging the button's hit area. */
.gassu-help-overlay .gassu-help-close,.gassu-swatch-overlay .gassu-help-close{font-size:34px!important;line-height:1!important}
/* Woodmart's Magnific Popup close buttons, used by size guide and swatch popups. */
body.single-product .mfp-wrap .mfp-close{font-size:32px!important;line-height:1!important}

/* 0.1.31: Compact close-button hit area, preserving a legible X. */
.gassu-swatch-overlay .gassu-help-close,
.gassu-help-overlay .gassu-help-close{
 width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
 padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;
 top:12px!important;left:12px!important;right:auto!important;
 font-size:30px!important;line-height:1!important;box-sizing:border-box!important;
}
body.single-product .mfp-wrap .mfp-close{
 width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
 padding:0!important;font-size:30px!important;line-height:44px!important;
}

/* 0.1.32: Keep the close control clear of the popup title. */
.gassu-swatch-overlay .gassu-help-close,
.gassu-help-overlay .gassu-help-close{
 top:4px!important;left:4px!important;
 width:44px!important;height:44px!important;
}



/* 0.1.33: Close control moves inside existing blank space, without expanding the popup. */

.gassu-swatch-overlay .gassu-help-close,
.gassu-help-overlay .gassu-help-close{
 top:8px!important;left:8px!important;transform:translateY(-14px)!important;
 width:44px!important;height:44px!important;
}


/* 0.1.34: position only the close control, without shifting popup content. */
.gassu-swatch-overlay .gassu-help-close,
.gassu-help-overlay .gassu-help-close{
 top:8px!important;left:2px!important;right:auto!important;transform:none!important;
 width:44px!important;height:44px!important;
}
/* Copy control is attached to the currently visible PhotoSwipe caption. */
body.gassu-swatch-lightbox .pswp__caption:not(.pswp__caption--empty) .gassu-copy-name{
 visibility:visible!important;opacity:1!important;
}

/* 0.1.35: Final approved swatch popup close-button position and size. */
.gassu-swatch-overlay .gassu-help-close{
 top:8px!important;left:8px!important;right:auto!important;
 transform:translateY(-14px)!important;
 width:34px!important;height:34px!important;
 min-width:34px!important;min-height:34px!important;
}

/* 0.1.36: identical approved close control for swatch and foot-measurement popups. */
.gassu-swatch-overlay .gassu-help-close,
.gassu-help-overlay .gassu-help-close{
 top:8px!important;left:8px!important;right:auto!important;
 transform:translateY(-14px)!important;
 width:34px!important;height:34px!important;
 min-width:34px!important;min-height:34px!important;
}
