/* fpopcje – wygląd zbliżony do Attribute Wizard Pro */
html.fpo-active .product-variants { display: none !important; }

.fpo-wizard { margin: 1rem 0; }
.fpo-box { border: 1px solid #ddd; border-radius: 4px; margin-bottom: 1rem; background: #fff; }
.fpo-head { background: #974523; color: #fff; font-weight: 600; padding: .75rem 1rem; border-radius: 4px 4px 0 0; }
.fpo-body { padding: .75rem 1rem; }
.fpo-select { min-width: 280px; max-width: 100%; padding: .3rem; }

.fpo-grid { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: flex-start; gap: 1rem 1.25rem; }
.fpo-tile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; font-weight: 400; margin: 0; width: calc(var(--fpo-w, 90px) + 40px); }
.fpo-tile img { width: var(--fpo-w, 90px); max-width: 100%; height: auto; border: 2px solid transparent; }
.fpo-tile input { margin: .35rem 0 .15rem; }
.fpo-label { line-height: 1.25; }
@media (max-width: 575px) { .fpo-tile { width: calc(33.333% - 1rem); } .fpo-tile img { width: 100%; } }
.fpo-tile input:checked ~ .fpo-label { font-weight: 700; }
.fpo-tile:has(input:checked) img { border-color: #974523; }
.fpo-swatch { width: 60px; height: 60px; border: 1px solid #ccc; display: block; }

.fpo-check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; margin: .25rem 0; cursor: pointer; }
.fpo-check input { margin-top: .25rem; }
.fpo-impact { color: #974523; font-size: .9em; white-space: nowrap; }

.fpo-text { display: block; font-weight: 400; width: 100%; }
.fpo-text textarea { width: 100%; max-width: 600px; display: block; margin-top: .25rem; }

.fpo-files { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 1rem 2rem; }
.fpo-file { display: flex; flex-direction: column; align-items: flex-start; width: 220px; text-align: left; }
.fpo-file .fpo-label { min-height: 1.4em; }
@media (max-width: 575px) { .fpo-file { width: 100%; } }
.fpo-preview img { max-width: 140px; max-height: 140px; display: block; margin: .4rem 0; }
.fpo-fname { font-size: .8em; color: #666; word-break: break-all; max-width: 200px; }
.fpo-btn { display: inline-block; background: #eee; padding: .35rem .9rem; cursor: pointer; margin-top: .3rem; font-weight: 400; }
.fpo-del { margin-left: .4rem; background: none; border: 0; color: #b00; text-decoration: underline; cursor: pointer; }
.fpo-progress { font-size: .85em; color: #666; }

.fpo-total { font-size: 1.1rem; margin: .5rem 0 1rem; }
.fpo-error { background: #fdecea; color: #a30000; padding: .6rem .9rem; border-radius: 4px; margin-bottom: 1rem; }

/* powiększenie obrazków */
.fpo-zoom { position: fixed; z-index: 10000; display: none; background: #fff; padding: 8px; border-radius: 6px; box-shadow: 0 8px 30px rgba(0,0,0,.35); pointer-events: none; text-align: center; }
.fpo-zoom.fpo-zoom-open { display: block; }
.fpo-zoom img { display: block; width: 320px; max-width: 80vw; height: auto; max-height: 70vh; object-fit: contain; }
.fpo-zoom-cap { font-size: .9rem; margin-top: 6px; }
.fpo-zoom.fpo-zoom-modal { pointer-events: auto; left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); cursor: zoom-out; }
.fpo-zoom.fpo-zoom-modal img { width: 90vw; max-width: 600px; }
.fpo-zoom-btn { position: absolute; top: 2px; right: 2px; border: 0; background: rgba(255,255,255,.85); border-radius: 50%; width: 26px; height: 26px; line-height: 26px; padding: 0; font-size: 14px; cursor: zoom-in; }
@media (hover: hover) { .fpo-tile img { cursor: pointer; } }

/* zwijanie długich list z obrazkami */
.fpo-grid[data-collapse] { position: relative; transition: max-height .25s ease; }
.fpo-grid.fpo-collapsed { overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); }
.fpo-more { display: block; width: 100%; margin-top: .5rem; padding: .55rem 1rem; background: #fff; border: 1px solid #974523; color: #974523; border-radius: 4px; font-weight: 600; cursor: pointer; }
.fpo-more:hover, .fpo-more:focus-visible { background: #974523; color: #fff; }
.fpo-chosen:not(:empty) { font-weight: 400; margin-left: .5rem; opacity: .9; }
.fpo-chosen:not(:empty)::before { content: '– wybrano: '; }

/* 1.0.5: motyw wyrównuje etykiety do prawej/środka – w kreatorze tekst zawsze od lewej */
.fpo-wizard label, .fpo-wizard .fpo-label, .fpo-wizard .fpo-body { text-align: left; }
.fpo-wizard .fpo-check { display: flex; justify-content: flex-start; align-items: flex-start; gap: .6rem; width: 100%; }
.fpo-wizard .fpo-check input { flex: 0 0 auto; margin: .3rem 0 0; }
.fpo-wizard .fpo-check .fpo-label { flex: 0 1 auto; text-align: left; }
.fpo-wizard .fpo-check .fpo-impact { flex: 0 0 auto; padding-top: .05rem; }
.fpo-wizard .fpo-tile, .fpo-wizard .fpo-tile .fpo-label { text-align: center; }
@media (max-width: 575px) {
  .fpo-wizard .fpo-check { display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; }
  .fpo-wizard .fpo-check .fpo-impact { grid-column: 2; padding-top: .15rem; }
  .fpo-wizard .fpo-check .fpo-impact:empty { display: none; }
}

/* 1.0.7: stare opisy krótkie mają pływające bloki (np. .pb-center-column float:left) bez wyczyszczenia –
   wtedy tekst opisu nachodził na kreator. Opis zamyka swoje floaty, a kreator zawsze zaczyna się pod nimi. */
.product-information [id^="product-description-short"] { display: flow-root; }
.fpo-wizard { clear: both; }

/* 1.0.8: na komputerze zdjęcie produktu zostaje na ekranie, a opcje przewijają się obok (jak tortli.pl).
   Kolumny w motywie są pływające, więc wyrównujemy ich wysokość flexem; 80px = przyklejone menu (60px) + odstęp.
   Tylko gdy ekran jest wystarczająco wysoki, żeby zdjęcie się zmieściło. */
@media (min-width: 768px) and (min-height: 700px) {
  html.fpo-active .product-container { display: flex; flex-wrap: wrap; align-items: stretch; }
  html.fpo-active .product-container::before, html.fpo-active .product-container::after { display: none; }
  html.fpo-active .product-container > .col-md-6:first-child > .page-content { position: sticky !important; top: 80px; }
}
.fpo-impact.fpo-impact-price { color: inherit; font-weight: 600; }

/* 1.0.12: czytelniejszy opis krótki na karcie produktu.
   Ciemniejszy tekst i większa interlinia; czerwone linie z terminami (#d0121a w opisach) jako ramka informacyjna;
   niebieskie „zamów klej” (#2c9ffd) jako nagłówek + przycisk w kolorze firmy. */
.product-information [id^="product-description-short"] { font-size: 15px; line-height: 1.6; color: #333; border-top: 1px solid #e6e1dc; padding-top: 14px; margin-top: 6px; }
.product-information [id^="product-description-short"] p { color: #3d3d3d !important; margin: 0 0 .7em; }
.product-information [id^="product-description-short"] p:has(span[style*="d0121a" i]) { margin: 0; padding: .55rem .9rem; background: #f7efe9; border-left: 3px solid #974523; color: #5a2a14 !important; font-size: 14px; }
.product-information [id^="product-description-short"] p:has(span[style*="d0121a" i]) + p:has(span[style*="d0121a" i]) { border-top: 1px solid #ecdcd0; }
.product-information [id^="product-description-short"] p:has(span[style*="d0121a" i]) + p:not(:has(span[style*="d0121a" i])) { margin-top: 1em; }
.product-information [id^="product-description-short"] span[style*="d0121a" i] { color: #5a2a14 !important; }
.product-information [id^="product-description-short"] span[style*="2c9ffd" i] { color: inherit !important; text-decoration: none !important; }
.product-information [id^="product-description-short"] span[style*="underline"] { text-decoration: none !important; }
.product-information [id^="product-description-short"] p:has(span[style*="2c9ffd" i]):not(:has(a)) { margin: 1em 0 .4em; color: #974523 !important; font-size: 13px; letter-spacing: .02em; }
.product-information [id^="product-description-short"] p:has(a span[style*="2c9ffd" i]) a { display: inline-block; background: #974523; color: #fff !important; padding: .5rem 1rem; border-radius: 4px; font-size: 13px; text-decoration: none; }
.product-information [id^="product-description-short"] p:has(a span[style*="2c9ffd" i]) a:hover { background: #7a3519; }

/* 1.0.14: sekcja „Wysyłka / RODO / Zwroty” (blockreassurance) jako jedna lekka karta z ikonami w kolorze firmy */
.blockreassurance_product { background: #fff; border: 1px solid #e6e1dc; border-radius: 6px; padding: 4px 16px; margin-top: 1.25rem; }
.blockreassurance_product .item { display: flex !important; align-items: center; gap: 14px; background: transparent !important; box-shadow: none !important; padding: 12px 0 !important; margin: 0 !important; border-bottom: 0 !important; }
.blockreassurance_product .item + .item { border-top: 1px solid #f0ebe6; }
.blockreassurance_product .clearfix { display: none; }
.blockreassurance_product .item-product { position: relative !important; display: block !important; flex: 0 0 36px; width: 36px !important; height: 36px !important; padding: 0 !important; border-radius: 50%; background: #f7efe9; margin: 0 !important; float: none !important; }
.blockreassurance_product .item-product img, .blockreassurance_product .item-product svg { position: absolute !important; top: 50% !important; left: 50% !important; margin: 0 !important; transform: translate(-50%, -50%) !important; width: 18px !important; height: 18px !important; filter: invert(27%) sepia(52%) saturate(1500%) hue-rotate(352deg) brightness(88%) contrast(90%); }
.blockreassurance_product .block-title { margin: 0 !important; font-size: 13.5px !important; line-height: 1.45 !important; padding: 0 !important; color: #3d3d3d !important; font-weight: 400 !important; text-align: left; }
.blockreassurance_product .item[style*="cursor"]:hover .block-title, .blockreassurance_product .item:has(a):hover .block-title { color: #974523 !important; }
