/* Karta produktu zestawu plakatow (0.34): sklad z miniaturami i cenami, dane dziecka, przycisk koszyka, kafelek plannera. */
.rrp-zestaw { margin: 0 0 1.2em; container-type: inline-size; }
.rrp-zestaw-tytul { font-size: 1.05em; margin: 0 0 .5em; }
.rrp-zestaw-wymiary { margin: 0 0 .8em; font-size: .9em; line-height: 1.45; color: #50575e; }
.rrp-zestaw-wymiary span { display: block; }
.rrp-zestaw-wymiary strong { font-weight: 600; color: #03295d; }
.rrp-zestaw-sklad { list-style: none; margin: 0 0 .8em; padding: 0; border: 1px solid #e3e0da; border-radius: 6px; }
.rrp-zestaw-sklad li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px 12px; align-items: center; padding: 8px 12px; border-top: 1px solid #ece9e3; }
.rrp-zestaw-sklad li:first-child { border-top: 0; }
.rrp-zestaw-sklad img { width: 48px; height: 64px; object-fit: contain; background: #f6f4ef; border-radius: 3px; }
.rrp-zestaw-brak-miniatury { display: block; width: 48px; height: 64px; background: #f6f4ef; border-radius: 3px; }
.rrp-zestaw-tapeta-ikona { background: repeating-linear-gradient(45deg, #efe9df 0 6px, #e4dccd 6px 12px); }
.rrp-zestaw-opis { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.3; }
.rrp-zestaw-opis strong { font-size: .95em; }
.rrp-zestaw-opis small { color: #6b6b6b; font-size: .82em; }
.rrp-zestaw-cena { white-space: nowrap; font-size: .95em; text-align: right; }
.rrp-zestaw-cena del { color: #9a9a9a; font-size: .85em; margin-right: 4px; }
/* Proponowane tapety (0.36): na karcie same miniatury; klikniecie otwiera okienko z wiekszymi grafikami, nazwa, cena
   i przejsciem do plannera z zestawem na tej tapecie (na telefonie arkusz od dolu). */
.rrp-zestaw-tapety { margin: 0 0 1em; }
.rrp-zestaw-tapety-tytul { font-size: .95em; margin: 0 0 .5em; }
.rrp-zestaw-tapety-lista { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.rrp-zestaw-tapety-lista li { margin: 0 !important; padding: 0; }
.rrp-zestaw-tapeta-mini { display: block; width: 72px; height: 72px; margin: 0; padding: 3px; border: 1.5px solid #e3e0da; border-radius: 8px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.rrp-zestaw-tapeta-mini:hover, .rrp-zestaw-tapeta-mini:focus-visible { border-color: #03295d; box-shadow: 0 4px 14px -8px rgba(3, 41, 93, .5); }
.rrp-zestaw-tapeta-mini img, .rrp-zestaw-tapeta-mini .rrp-zestaw-brak-miniatury { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 5px; background: #f6f4ef; }
/* Sklad jako miniatury (0.36.1): pionowe podglady wydrukow, pod nimi "Zobacz, co jest w zestawie" */
.rrp-zestaw-sklad-mini { margin-bottom: .4em !important; }
.rrp-zestaw-wydruk-mini { width: 60px; height: 80px; }
.rrp-zestaw-wydruk-mini img { object-fit: contain; }
.rrp-zestaw-pokaz { display: inline; margin: 0 0 1em; padding: 0; border: 0; background: none; color: #03295d; font-size: .85em; font-weight: 600; text-decoration: underline; text-transform: none; letter-spacing: 0; cursor: pointer; min-height: 0; line-height: 1.4; }
.rrp-zestaw-sklad-karty .rrp-zestaw-tapeta-karta img { aspect-ratio: 3 / 4; object-fit: contain; }
.rrp-zestaw-wydruk-opcje { font-size: .8em; color: #6b6b6b; line-height: 1.35; }
.rrp-zestaw-sklad-karty .rrp-zestaw-cena { text-align: left; white-space: normal; }
.rrp-zestaw-tapety-okno { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.rrp-zestaw-tapety-okno[hidden] { display: none; }
.rrp-zestaw-tapety-tlo { position: absolute; inset: 0; background: rgba(3, 41, 93, .55); }
.rrp-zestaw-tapety-panel { position: relative; width: fit-content; min-width: min(420px, 100%); max-width: min(860px, 100%); max-height: 90vh; overflow-y: auto; padding: 20px 22px 22px; border-radius: 16px; background: #fff; box-shadow: 0 24px 64px rgba(3, 41, 93, .35); }
.rrp-zestaw-tapety-glowa { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rrp-zestaw-tapety-glowa h3 { margin: 0; font-size: 1.15em; color: #03295d; }
.rrp-zestaw-tapety-zamknij { flex: none; width: 40px; height: 40px; min-height: 40px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #f3eff0; color: #03295d; font-size: 24px; line-height: 1; cursor: pointer; }
.rrp-zestaw-tapety-opis { font-size: .85em; color: #6b6b6b; margin: .3em 0 1em; }
/* Opis nie poszerza okienka - szerokosc ustalaja karty tapet (fit-content panelu). */
.rrp-zestaw-tapety-panel .rrp-zestaw-tapety-opis { width: 0; min-width: 100%; }
.rrp-zestaw-tapety-karty { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 250px); gap: 14px; }
.rrp-zestaw-tapety-karty li { margin: 0 !important; }
.rrp-zestaw-tapety-karty li.is-wybrana .rrp-zestaw-tapeta-karta { border-color: #03295d; }
.rrp-zestaw-tapeta-karta { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 8px 8px 12px; border: 1.5px solid #e3e0da; border-radius: 10px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.rrp-zestaw-tapeta-karta:hover, .rrp-zestaw-tapeta-karta:focus-visible { border-color: #03295d; box-shadow: 0 6px 18px -10px rgba(3, 41, 93, .5); }
.rrp-zestaw-tapeta-karta img, .rrp-zestaw-tapeta-karta .rrp-zestaw-brak-miniatury { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 7px; background: #f6f4ef; }
.rrp-zestaw-tapeta-nazwa { font-size: .92em; font-weight: 600; line-height: 1.3; color: #333; }
.rrp-zestaw-tapeta-cena { font-size: .88em; color: #03295d; }
.rrp-zestaw-tapeta-cena small, .rrp-zestaw-tapeta-cena .woocommerce-price-suffix { display: none; }
.rrp-zestaw-tapeta-akcja { margin-top: auto; font-size: .82em; font-weight: 700; color: #03295d; }
body.rrp-tapety-otwarte { overflow: hidden; }
@media (max-width: 549px) {
    .rrp-zestaw-tapety-okno { align-items: flex-end; padding: 0; }
    .rrp-zestaw-tapety-panel { max-height: 88vh; border-radius: 16px 16px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
    .rrp-zestaw-tapety-panel { width: 100%; min-width: 0; max-width: none; }
    .rrp-zestaw-tapety-karty { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; gap: 10px; }
    .rrp-zestaw-tapeta-karta { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 14px; row-gap: 4px; padding: 8px; }
    .rrp-zestaw-tapeta-karta img, .rrp-zestaw-tapeta-karta .rrp-zestaw-brak-miniatury { grid-row: 1 / 4; width: 96px; }
    .rrp-zestaw-tapeta-akcja { align-self: end; }
}
.rrp-zestaw-suma { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 0 0 1em; font-size: 1.05em; }
.rrp-zestaw-suma strong { font-size: 1.3em; }
.rrp-zestaw-oszczednosc { color: #137a3e; font-size: .9em; }
.rrp-zestaw-form { margin: 0 0 1em; }
.rrp-zestaw-form .rrp-karta-dane { border: 1px solid #e3e0da; border-radius: 6px; padding: 12px 14px 6px; margin: 0 0 12px; }
.rrp-zestaw-form .rrp-karta-dane legend { padding: 0 6px; font-weight: 600; font-size: .95em; }
.rrp-zestaw-form .rrp-karta-pola { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.rrp-zestaw-form .rrp-karta-pole { display: flex; flex-direction: column; gap: 3px; font-size: .9em; margin: 0; }
.rrp-zestaw-form .rrp-karta-pole input { width: 100%; margin: 0; }
.rrp-zestaw-form .rrp-karta-pole abbr { text-decoration: none; color: #b0413e; }
.rrp-zestaw-form .rrp-karta-pole-imie { grid-column: 1 / -1; }
.rrp-zestaw-form .rrp-karta-pole-litera input { max-width: 4em; text-align: center; text-transform: uppercase; font-size: 1.2em; }
.rrp-zestaw-form .rrp-karta-uwaga { font-size: .82em; color: #6b6b6b; margin: 8px 0 6px; }
.rrp-zestaw-przyciski { display: flex; flex-direction: column; gap: 8px; }
.rrp-zestaw-koszyk { width: 100%; margin: 0; }
.rrp-zestaw-do-koszyka { font-weight: 600; }
.rrp-zestaw-blad { color: #b0413e; margin: .5em 0 0; font-size: .9em; }
.rrp-zestaw-blad[hidden] { display: none; }
.rrp-cta-zestaw { margin-top: .4em; }
/* Telefon (uklad Flatsome do 849 px): pasek z cena i "Kup teraz" przyklejony do dolu, gdy przyciski formularza sa poza ekranem (0.35). */
.rrp-zestaw-pasek { display: none; }
@media (max-width: 849px) {
    .rrp-zestaw-pasek { position: fixed; left: 0; right: 0; bottom: 0; z-index: 998; display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -4px 18px rgba(3, 41, 93, .14); transform: translateY(110%); transition: transform .25s ease; visibility: hidden; }
    .rrp-zestaw-pasek[hidden] { display: flex; }
    .rrp-zestaw-pasek.rrp-zestaw-pasek-on { transform: none; visibility: visible; }
    .rrp-zestaw-pasek-info { flex: 1; min-width: 0; line-height: 1.25; }
    .rrp-zestaw-pasek-etykieta { display: block; font-size: .8rem; color: #6b747d; }
    .rrp-zestaw-pasek-cena { display: block; font-size: 1.05rem; font-weight: 700; color: #03295d; }
    .rrp-zestaw-pasek-cena .woocommerce-Price-currencySymbol { font-size: .85em; }
    .rrp-zestaw-pasek-btn { flex: none; margin: 0; min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; background: #03295d; color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: .2px; text-transform: none; line-height: 1; }
    body.rrp-zestaw-pasek-on { padding-bottom: 76px; }
    body.rrp-zestaw-pasek-on #CookiebotWidget, body.rrp-zestaw-pasek-on .back-to-top { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
}
@media (prefers-reduced-motion: reduce) { .rrp-zestaw-pasek { transition: none; } }
/* Waska kolumna opisu produktu (Flatsome przy duzym zdjeciu) i telefon: cena pod nazwa, mniejsza miniatura. */
@container (max-width: 420px) {
    .rrp-zestaw-sklad li { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 10px; }
    .rrp-zestaw-sklad img, .rrp-zestaw-brak-miniatury { width: 40px; height: 54px; grid-row: span 2; }
    .rrp-zestaw-cena { grid-column: 2; text-align: left; }
    .rrp-zestaw-form .rrp-karta-pola { grid-template-columns: 1fr; }
}
@media (max-width: 549px) {
    .rrp-zestaw-form .rrp-karta-pola { grid-template-columns: 1fr; }
    .rrp-zestaw-sklad li { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 10px; }
    .rrp-zestaw-sklad img, .rrp-zestaw-brak-miniatury { width: 40px; height: 54px; grid-row: span 2; }
    .rrp-zestaw-cena { grid-column: 2; text-align: left; }
}

/* Rozmiar plakatow zestawu (warianty rozmiaru, 0.38): wybor nad skladem, opcje i ceny innych rozmiarow ukryte. */
.rrp-zestaw [data-rrp-wariant][hidden],
.rrp-zestaw-tapety-okno [data-rrp-wariant][hidden] { display: none !important; }
.rrp-zestaw-rozmiary { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.rrp-zestaw-rozmiary legend { font-weight: 600; margin-bottom: 6px; padding: 0; color: #03295d; }
.rrp-zestaw-rozmiary-lista { display: flex; flex-wrap: wrap; gap: 8px; }
.rrp-zestaw-rozmiar { position: relative; margin: 0; cursor: pointer; }
.rrp-zestaw-rozmiar input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rrp-zestaw-rozmiar > span { display: flex; flex-direction: column; min-width: 92px; padding: 8px 12px; border: 1px solid #d5cfc6; border-radius: 8px; background: #fff; line-height: 1.3; }
.rrp-zestaw-rozmiar > span > strong { font-size: .95em; color: #03295d; }
.rrp-zestaw-rozmiar > span > em { font-style: normal; font-size: .8em; color: #03295d; max-width: 210px; }
.rrp-zestaw-rozmiar > span > small { font-size: .82em; color: #6b6b6b; }
.rrp-zestaw-rozmiar small .woocommerce-price-suffix { display: none; }
.rrp-zestaw-rozmiar input:checked + span { border-color: #03295d; box-shadow: inset 0 0 0 1px #03295d; background: #f6f8fb; }
.rrp-zestaw-rozmiar input:focus-visible + span { outline: 2px solid #03295d; outline-offset: 2px; }

/* Okna wyboru wariantu jak na kartach plakatow (0.38.4): przyciski Rozmiar / Nosnik / Rama zamiast listy (lista zostaje bez JS). */
.rrp-zestaw-rozmiary.is-wybory > legend,
.rrp-zestaw-rozmiary.is-wybory > .rrp-zestaw-rozmiary-lista { display: none; }
.rrp-zestaw-wybory { display: flex; flex-direction: column; }
.rrp-zestaw-wybor-thumb { background: #eee; }
.rrp-zestaw-wybor-thumb svg { display: block; width: 100%; height: 100%; }
.rrp-mat .rrp-zestaw-wybor-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
/* Zdjecia zestawu w ramach maja tlo sciany (#eee) - cale, bez przyciecia i powiekszenia. */
.rrp-mat .rrp-zestaw-wybor-grid .rrp-material-photo { cursor: default; background: #eee; }
.rrp-mat .rrp-zestaw-wybor-grid .rrp-material-photo img { transform: none; transition: none; }
.rrp-mat .rrp-zestaw-wybor-grid.is-rozmiar .rrp-material-photo,
.rrp-mat .rrp-zestaw-wybor-grid .rrp-material-photo.is-ramy { aspect-ratio: 16 / 10; }
.rrp-mat .rrp-zestaw-wybor-grid .rrp-material-photo.is-ramy img { object-fit: contain; }
.rrp-mat .rrp-zestaw-wybor-grid .rrp-material-photo.is-rysunek { display: flex; align-items: center; justify-content: center; padding: 12px; background: #faf7f7; }
.rrp-zestaw-wybor-foto .rrp-zestaw-uklad,
.rrp-zestaw-wybor-foto .rrp-zestaw-rysunek { display: block; width: 100%; height: 100%; }
.rrp-zestaw-wybor-inne { margin: 0; color: #6b6b6b; font-size: 12.5px; }
@media (min-width: 701px) {
    .rrp-mat-box.rrp-zestaw-wybor-box { width: auto; max-width: min(94vw, 1180px); }
    .rrp-mat .rrp-zestaw-wybor-box .rrp-zestaw-wybor-grid { grid-template-columns: repeat(var(--rrp-zestaw-kolumny, 3), minmax(0, 250px)); justify-content: center; }
    .rrp-mat .rrp-zestaw-wybor-box .rrp-zestaw-wybor-grid.is-rozmiar { grid-template-columns: repeat(var(--rrp-zestaw-kolumny, 3), minmax(0, 320px)); }
}
@media (max-width: 700px) {
    /* Telefon: nosniki i ramy po dwie w rzedzie, zdjecia rozmiarow na cala szerokosc (inaczej ramy sa za male). */
    .rrp-mat .rrp-zestaw-wybor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .rrp-mat .rrp-zestaw-wybor-grid.is-rozmiar { grid-template-columns: 1fr; }
}

/* Podglad wybranego wariantu (0.38.6): przycisk pod wyborami i okno ze zdjeciami wariantu. */
/* Flatsome stylizuje przyciski (wielkie litery, wysrodkowanie, zawijanie) - pelny reset, wyglad jak przyciski wyboru obok. */
.rrp-zestaw .rrp-zestaw-podglad { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: none; min-height: 0; margin: 0 0 10px; padding: 9px 12px;
    border: 1px dashed #9aa7b8; border-radius: 10px; background: #f6f8fb; color: #03295d; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.3; text-align: center;
    text-transform: none; letter-spacing: 0; white-space: normal; box-shadow: none; cursor: pointer; }
.rrp-zestaw .rrp-zestaw-podglad[hidden] { display: none; }
.rrp-zestaw .rrp-zestaw-podglad small { font-size: 13px; font-weight: 400; color: #6b6b6b; }
@media (hover: hover) { .rrp-zestaw .rrp-zestaw-podglad:hover { border-style: solid; background: #eef2f8; } }
.rrp-mat-box.rrp-zestaw-podglad-box { width: min(1100px, 100%); }
.rrp-zestaw-podglad-okno { display: flex; flex-direction: column; gap: 10px; }
.rrp-zestaw-podglad-obraz { position: relative; display: flex; align-items: center; justify-content: center; background: #eee; border-radius: 8px; min-height: 200px; }
.rrp-zestaw-podglad-obraz img { display: block; max-width: 100%; max-height: min(66vh, 720px); width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.rrp-mat .rrp-zestaw-podglad-strzalka { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #03295d; font-size: 30px; line-height: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); cursor: pointer; }
.rrp-mat .rrp-zestaw-podglad-strzalka.is-prev { left: 10px; }
.rrp-mat .rrp-zestaw-podglad-strzalka.is-next { right: 10px; }
.rrp-zestaw-podglad-opis { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 0; }
.rrp-zestaw-podglad-licznik { color: #6b6b6b; font-size: 13px; }
.rrp-zestaw-podglad-miniatury { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.rrp-mat .rrp-zestaw-podglad-miniatury button { flex: none; width: 92px; height: 66px; min-height: 0; margin: 0; padding: 2px; border: 2px solid transparent; border-radius: 6px; background: #f3f2ef; cursor: pointer; box-shadow: none; }
.rrp-mat .rrp-zestaw-podglad-miniatury button.is-current { border-color: #03295d; }
.rrp-zestaw-podglad-miniatury img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
@media (max-width: 700px) {
    .rrp-zestaw-podglad-obraz img { max-height: 60vh; }
    .rrp-mat .rrp-zestaw-podglad-strzalka { width: 38px; height: 38px; font-size: 26px; }
    .rrp-mat .rrp-zestaw-podglad-miniatury button { width: 72px; height: 52px; }
}
