/* ============================================================
   Set page, /komplet/ (templates/komplet/page.php).
   Values from the approved canvas "Stwórz komplet – makieta",
   on the same grid and type as the poster page (pb-pdp.css).
   ============================================================ */

.pb-komplet {
    --pb-k-ink: #2a2a2a;
    --pb-k-muted: #6b6a62;
    --pb-k-line: rgba(0, 0, 0, 0.075);
    --pb-k-sand: var(--color-surface-warm);
    --pb-k-wall: var(--color-surface-warm);
    --pb-k-sage: var(--color-primary, #5e6a46);
    padding: 0 0 48px;
    color: #3a3a34;
}

.pb-komplet__hero button {
    font-family: inherit;
    /* WoodMart sets buttons in uppercase with tracking; these are cards.
       Only in the set's own card: the bottom bar keeps the poster page's. */
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.3;
    min-height: 0;
    box-shadow: none;
}

.pb-komplet__hero button.pb-komplet__tile,
.pb-komplet button.pb-komplet__option,
.pb-komplet button.pb-komplet__preset,
.pb-komplet button.pb-komplet__frame-chip,
.pb-komplet button.pb-komplet__link {
    background: transparent;
}

.pb-komplet .pb-komplet__tile,
.pb-komplet .pb-komplet__option,
.pb-komplet .pb-komplet__preset,
.pb-komplet .pb-komplet__frame-chip {
    align-items: stretch;
    justify-content: flex-start;
    height: auto;
}

/* No 40px band over the page: the poster page starts right under the
   header too. */
.pb-komplet-page .wd-content-layout {
    padding-top: 0;
}

/* As .pb-pdp__crumbs on the poster page. */
.pb-komplet__crumbs {
    padding: 10px 0 14px; /* 15px under the header, as every page (style.css) */
}
@media (max-width: 767px) {
    .pb-komplet__crumbs {
        padding-top: 4px;
    }
}

.pb-komplet__crumbs .wd-breadcrumbs {
    font-size: 12px;
}

.pb-komplet__hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px 56px;
}

/* ---------- the wall ---------- */

.pb-komplet__gallery {
    flex: 1 1 480px;
    min-width: 0;
    display: flex;
    flex-wrap: wrap-reverse;
    align-items: flex-end;
    gap: 10px 16px;
}

@media (min-width: 1025px) {
    .pb-komplet__gallery {
        position: sticky;
        top: 90px;
    }
}

.pb-komplet__rooms {
    flex: 1 0 76px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pb-komplet__room-thumb {
    width: 76px;
    height: 101px;
    padding: 0;
    box-sizing: border-box;
    border: 1.5px solid #e5ded2;
    border-radius: 8px;
    overflow: hidden;
    background: var(--pb-k-wall);
    cursor: pointer;
}

.pb-komplet__room-thumb.is-on {
    border: 2px solid #23231f;
}

.pb-komplet__room-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pb-komplet__wall {
    flex: 999 1 380px;
    min-width: 0;
    position: relative;
    aspect-ratio: 5 / 6;
    max-height: min(82vh, 820px);
    background: var(--pb-k-wall);
    border-radius: 12px;
    overflow: hidden;
}

.pb-komplet__scene {
    position: absolute;
}

.pb-komplet__room {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pb-komplet__frame {
    position: absolute;
    box-sizing: border-box;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.42), 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: left 0.25s ease, top 0.25s ease, width 0.25s ease, height 0.25s ease;
}

.pb-komplet__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pb-komplet__caption {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 7px 12px;
    background: #fff;
    border: 1px solid #e5ded2;
    border-radius: 999px;
    color: var(--pb-k-ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.04em;
}

/* ---------- the card ---------- */

.pb-komplet__card {
    flex: 1 1 480px;
    min-width: 0;
    max-width: 680px;
    display: flex;
    flex-direction: column;
}

/* "KOMPLET · 3 PLAKATY · −15%": the page is a set, said before the title,
   in the look of the poster page's badges. */
.pb-komplet__eyebrow {
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #23231f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pb-komplet__title {
    margin: 0;
    font-weight: 400;
    color: var(--pb-k-ink);
}

.pb-komplet__name {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(33px, 3.5vw, 44px);
    line-height: 1.1;
    text-wrap: balance;
}

.pb-komplet__desc {
    display: block;
    margin-top: 6px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 18px;
    line-height: 1.35;
    color: var(--pb-k-muted);
}

.pb-komplet__price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    min-height: 43px;
    margin-top: 14px;
}

.pb-komplet__total {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--pb-k-ink);
    font-variant-numeric: tabular-nums;
}

.pb-komplet__was {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pb-komplet__was[hidden] {
    display: none;
}

.pb-komplet__was s {
    font-size: 18px;
    color: var(--pb-k-muted);
}

.pb-komplet__pct {
    padding: 4px 9px;
    border-radius: 999px;
    background: #23231f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.pb-komplet__h2 {
    margin: 20px 0 8px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--pb-k-ink);
    text-transform: none;
}

/* ---------- presets ---------- */

.pb-komplet__presets {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.pb-komplet__preset {
    flex: 0 0 150px;
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.pb-komplet__preset-art {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 84px;
    box-sizing: border-box;
    border: 2px solid var(--pb-k-line);
    border-radius: 8px;
    background: var(--pb-k-wall);
}

.pb-komplet__preset.is-on .pb-komplet__preset-art {
    border-color: var(--pb-k-sage);
}

.pb-komplet__preset-art img {
    height: 56px;
    width: auto;
    aspect-ratio: 5 / 7;
    object-fit: cover;
    box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.2);
}

.pb-komplet__preset-name {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--pb-k-ink);
}

/* ---------- 2 or 3 posters ---------- */

.pb-komplet__count {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.pb-komplet__count[hidden] {
    display: none;
}

.pb-komplet__hero button.pb-komplet__count-btn {
    min-height: 40px;
    padding: 6px 14px;
    border: 2px solid var(--pb-k-line);
    border-radius: 999px;
    background: #fff;
    color: var(--pb-k-ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.pb-komplet__hero button.pb-komplet__count-btn.is-on {
    border-color: var(--pb-k-ink);
    background: var(--color-surface-warm);
}

.pb-komplet__count-btn span {
    margin-left: 4px;
    color: var(--pb-k-sage);
    font-weight: 700;
}

/* ---------- tiles ---------- */

.pb-komplet__options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 10px;
}

/* Two or three posters, room for each. Each tile spans three rows of the
   grid (picture, name, note) through subgrid, so a two-line name in one
   tile lowers the notes of all of them and they stay in line. */
.pb-komplet__tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 150px));
    column-gap: 16px;
    row-gap: 0;
}

.pb-komplet__hero .pb-komplet__tiles > .pb-komplet__tile {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    align-content: start;
}

.pb-komplet__tile,
.pb-komplet__option {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: center;
    color: var(--pb-k-ink);
}

.pb-komplet__tile[aria-disabled="true"] {
    cursor: default;
}

.pb-komplet__tile-art {
    display: block;
    box-sizing: border-box;
    padding: 6px;
    border: 2px solid var(--pb-k-line);
    border-radius: 8px;
    background: #fff;
}

.pb-komplet__tile.is-active .pb-komplet__tile-art {
    border-color: var(--pb-k-ink);
    background: var(--color-surface-warm);
}

.pb-komplet__tile:not([aria-disabled="true"]):hover .pb-komplet__tile-art,
.pb-komplet__option:hover .pb-komplet__tile-art {
    border-color: rgba(0, 0, 0, 0.25);
}

.pb-komplet__tile-art img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 7;
    object-fit: cover;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.09);
    box-shadow: 2px 3px 9px rgba(0, 0, 0, 0.16);
}

.pb-komplet__tile-name {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

/* At most two lines of name. */
.pb-komplet__tile .pb-komplet__tile-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pb-komplet__tile-note {
    display: block;
    min-height: 1.4em;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pb-komplet__tile-note.is-quiet {
    color: var(--pb-k-muted);
    text-decoration: none;
}

/* ---------- picker ---------- */

.pb-komplet__picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding: 12px 14px 8px;
    background: var(--pb-k-sand);
    border-radius: 10px;
}

.pb-komplet__picker[hidden] {
    display: none;
}

.pb-komplet__picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--pb-k-ink);
}

.pb-komplet__icon-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin: -6px -8px -6px 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--pb-k-ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pb-komplet__search {
    display: block;
}

.pb-komplet__search input {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: 44px;
    border: 1px solid #ddd5c7;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
}

.pb-komplet__options {
    max-height: 360px;
    overflow-y: auto;
}

.pb-komplet__empty {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 14px;
    color: var(--pb-k-muted);
}

.pb-komplet__link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pb-k-ink);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pb-komplet__link[hidden] {
    display: none;
}

/* "Inna propozycja": a pill on the wall, as .pb-gal-zoom on the poster page. */
.pb-komplet__wall .pb-komplet__shuffle {
    position: absolute;
    z-index: 3;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #e5ded2;
    border-radius: 999px;
    background: #fff;
    box-shadow: none;
    color: var(--pb-k-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer;
}

.pb-komplet__wall .pb-komplet__shuffle:hover {
    border-color: #9c9484;
    background: #fff;
    color: var(--pb-k-ink);
}

.pb-komplet__wall .pb-komplet__shuffle[hidden] {
    display: none;
}

/* ---------- size and frame ---------- */

.pb-komplet__label {
    margin: 24px 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--pb-k-ink);
}

.pb-komplet__label span,
.pb-komplet__sublabel span {
    font-weight: 400;
    color: var(--pb-k-muted);
}

.pb-komplet__options-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 2px solid var(--pb-k-line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--pb-k-ink);
}

.pb-komplet__link-text {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pb-komplet__options-panel {
    padding-top: 6px;
}

.pb-komplet__options-panel[hidden] {
    display: none;
}

.pb-komplet__sublabel {
    margin: 14px 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--pb-k-ink);
}

.pb-komplet__sizes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 18px 10px;
    padding-top: 8px;
}

.pb-komplet__size {
    position: relative;
    min-height: 68px;
    padding: 6px 4px;
    border: 2px solid var(--pb-k-line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    color: var(--pb-k-ink);
}

.pb-komplet__size.is-on {
    border-color: var(--pb-k-ink);
    background: var(--color-surface-warm);
}

.pb-komplet__size:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pb-komplet__badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 8px;
    border-radius: 999px;
    background: #23231f;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pb-komplet__check {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--pb-k-ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pb-komplet__size-label {
    font-size: 16px;
    font-weight: 700;
}

.pb-komplet__size-price {
    margin-top: 2px;
    font-size: 13px;
    color: var(--pb-k-muted);
}

.pb-komplet__frames {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.pb-komplet__frame-chip {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: center;
    color: var(--pb-k-ink);
}

.pb-komplet__frame-art {
    display: block;
    box-sizing: border-box;
    padding: 10px;
    border: 2px solid var(--pb-k-line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.pb-komplet__frame-chip.is-on .pb-komplet__frame-art {
    border-color: var(--pb-k-sage);
}

/* A corner of the poster in its frame, as on the poster page. */
.pb-komplet__frame-mat {
    display: block;
    box-sizing: border-box;
    height: 86px;
    margin: 0 -10px -10px 0;
    padding: 8px 0 0 8px;
    overflow: hidden;
}

.pb-komplet__frame-mat img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}

.pb-komplet__frame-chip--none .pb-komplet__frame-mat {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 76px;
    margin: 0;
    padding: 0;
}

.pb-komplet__frame-chip--none .pb-komplet__frame-mat img {
    width: auto;
    height: 100%;
    aspect-ratio: 5 / 7;
    border: 1px solid rgba(0, 0, 0, 0.09);
    box-shadow: 2px 3px 9px rgba(0, 0, 0, 0.16);
}

.pb-komplet__frame-chip--biala .pb-komplet__frame-mat {
    background: #fbfbf9;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05), 0 2px 10px rgba(0, 0, 0, 0.16);
}

.pb-komplet__frame-chip--czarna .pb-komplet__frame-mat {
    background: #1b1b1b;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 2px 9px rgba(0, 0, 0, 0.2);
}

.pb-komplet__frame-chip--debowa .pb-komplet__frame-mat {
    background: #c99a5f;
    box-shadow: inset 0 0 0 1px rgba(90, 58, 24, 0.18), 0 2px 9px rgba(0, 0, 0, 0.16);
}

.pb-komplet__frame-name {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
}

.pb-komplet__frame-price {
    display: block;
    min-height: 1.4em;
    font-size: 13px;
    color: var(--pb-k-muted);
}

.pb-komplet__note {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--pb-k-muted);
}

/* ---------- summary and button ---------- */

.pb-komplet__summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 20px 0;
    padding: 12px 14px;
    background: var(--pb-k-sand);
    border-radius: 10px;
}

.pb-komplet__summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    font-size: 15px;
    color: var(--pb-k-ink);
}

.pb-komplet__summary-row strong {
    font-size: 18px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.pb-komplet__summary-row--save {
    font-size: 14px;
    font-weight: 600;
    color: var(--pb-k-sage);
}

.pb-komplet__summary-row[hidden] {
    display: none;
}

.pb-komplet__cta-wrap {
    position: relative;
}

/* The poster page's add-to-cart button: 44px, 18px bold, 5px corners. */
.pb-komplet .pb-komplet__cta {
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 5px 20px;
    border: 0;
    border-radius: 5px;
    background: var(--pb-k-sage);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.pb-komplet .pb-komplet__cta:hover {
    background: var(--color-primary-dark, #4f5a3a);
}

.pb-komplet__cta:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pb-komplet__error {
    margin: 10px 0 0;
    font-size: 14px;
    color: #a3261b;
}

.pb-komplet__facts {
    /* Looks come from the poster page's .pb-facts__list. */
    margin-top: 20px;
}

.pb-komplet__facts b {
    color: #2a2a2a;
}

.pb-komplet :focus-visible {
    outline: 2px solid var(--pb-k-ink);
    outline-offset: 2px;
}

/* Composition photos: on the poster page the last quarter of the row is the
   way into a set; here the photos take the whole row. */
.pb-komplet__ideas .pb-pdp__ideas-gallery {
    flex: 1 1 100%;
    padding-right: 0;
}

@media (max-width: 767px) {
    .pb-komplet__hero {
        gap: 16px;
    }

    .pb-komplet__gallery {
        flex-wrap: wrap;
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .pb-komplet__rooms {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .pb-komplet__room-thumb {
        flex: 0 0 60px;
        width: 60px;
        height: 80px;
    }

    .pb-komplet__wall {
        flex: 0 0 auto;
        width: 100%;
    }

    .pb-komplet__tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 12px;
    }

    .pb-komplet__options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

/* ---- "Zobacz komplet na swojej ścianie" (js/pb-komplet-ar.js) -----------
   The row and the sheet are the poster page's (.pb-ar-entry, .pb-ar in
   pb-pdp.css); here only what a set adds: how much wall it takes. */

.pb-komplet__ar.pb-ar-entry {
    margin-top: 0;
}

.pb-komplet-ar__span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    height: 184px;
    box-sizing: border-box;
    padding: 14px 12px 12px;
    border-radius: 10px;
    background: var(--color-surface-warm);
}

.pb-komplet-ar__row {
    display: flex;
    align-items: flex-end;
}

.pb-komplet-ar__row img {
    display: block;
    box-sizing: border-box;
    max-width: none;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(35, 35, 31, .22);
}

/* A dimension line: the row's width, end ticks included. */
.pb-komplet-ar__rule {
    display: flex;
    align-items: center;
    height: 7px;
    box-sizing: border-box;
    border-left: 1.5px solid #23231f;
    border-right: 1.5px solid #23231f;
}

.pb-komplet-ar__rule::before {
    content: "";
    flex: 1;
    height: 1.5px;
    background: #23231f;
}

.pb-komplet-ar__dims {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    color: #23231f;
    text-align: center;
}

.pb-komplet-ar__dims b {
    font-variant-numeric: tabular-nums;
}

/* Wider screens: the pill on the wall, opposite "Inna propozycja". */
.pb-komplet__wall .pb-komplet__ar-pill {
    min-height: 40px;
    color: var(--pb-k-ink);
}

.pb-komplet__wall .pb-komplet__ar-pill[hidden] {
    display: none;
}

/* ---- Swapping a poster -------------------------------------------------
   "Zamień" sits on the picture as a pill, so it reads as what the tile does,
   with a line under the posters saying so. The picker opens below them; on a
   phone it is a sheet from the bottom, the posters still in sight above it. */

.pb-komplet__tile-art {
    position: relative;
}

.pb-komplet__swap-pill {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px 4px 7px;
    border: 1px solid #e5ded2;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--pb-k-ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(35, 35, 31, 0.12);
    pointer-events: none;
}

.pb-komplet__tile.is-active .pb-komplet__swap-pill {
    border-color: var(--pb-k-ink);
    background: var(--pb-k-ink);
    color: #fff;
}

@media (hover: hover) {
    .pb-komplet__tile:not([aria-disabled="true"]):hover .pb-komplet__swap-pill {
        border-color: var(--pb-k-ink);
    }
}

.pb-komplet__tile.is-swapped .pb-komplet__tile-art {
    animation: pb-komplet-swapped 1.6s ease-out;
}

@keyframes pb-komplet-swapped {
    0%, 40% { border-color: var(--pb-k-sage); box-shadow: 0 0 0 4px rgba(94, 106, 70, 0.25); }
    100% { box-shadow: 0 0 0 0 rgba(94, 106, 70, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .pb-komplet__tile.is-swapped .pb-komplet__tile-art { animation: none; border-color: var(--pb-k-sage); }
}

.pb-komplet__tile-note:empty {
    display: none;
}

.pb-komplet__hint {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--pb-k-muted);
}

.pb-komplet__hint[hidden] {
    display: none;
}

.pb-komplet__picker-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Focused only so a screen reader starts there; no ring for that. */
.pb-komplet .pb-komplet__picker-title:focus,
.pb-komplet .pb-komplet__picker-title:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

.pb-komplet__picker-title img {
    width: 30px;
    height: 42px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 1px 2px 4px rgba(35, 35, 31, 0.18);
}

.pb-komplet__picker-title b {
    font-weight: 700;
}

/* The picker is a popup: a dialog in the middle of the screen, a sheet
   from the bottom on a phone. The page under it holds still. */
.pb-komplet__sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100000;
    width: 100%;
    padding: 0;
    border: 0;
    background: rgba(35, 35, 31, 0.45);
    cursor: default;
}

.pb-komplet__sheet-backdrop[hidden] {
    display: none;
}

/* It is a button (so a click closes the popup): keep WoodMart's button
   hover and focus colours off it. */
.pb-komplet .pb-komplet__sheet-backdrop:hover,
.pb-komplet .pb-komplet__sheet-backdrop:focus,
.pb-komplet .pb-komplet__sheet-backdrop:active {
    background: rgba(35, 35, 31, 0.45);
    box-shadow: none;
    outline: none;
}

.pb-komplet__picker {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 100001;
    width: min(760px, calc(100vw - 48px));
    max-height: min(680px, calc(100vh - 96px));
    margin: 0;
    padding: 20px 24px 16px;
    box-sizing: border-box;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(35, 35, 31, 0.12), 0 24px 60px rgba(35, 35, 31, 0.18);
}

.pb-komplet__picker .pb-komplet__options {
    flex: 1 1 auto;
    max-height: none;
    min-height: 0;
    grid-auto-rows: max-content;
    align-content: start;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 16px 12px;
    padding-top: 2px;
}

html.pb-komplet-sheet-open,
html.pb-komplet-sheet-open body {
    overflow: hidden;
}

@media (max-width: 767px) {
    .pb-komplet__swap-pill {
        right: 6px;
        bottom: 6px;
        padding: 3px 7px 3px 6px;
        font-size: 11px;
    }

    .pb-komplet__sheet-backdrop,
    .pb-komplet .pb-komplet__sheet-backdrop:hover,
    .pb-komplet .pb-komplet__sheet-backdrop:focus,
    .pb-komplet .pb-komplet__sheet-backdrop:active {
        background: rgba(35, 35, 31, 0.3);
    }

    .pb-komplet__picker {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        max-height: 60vh;
        max-height: 60svh;
        padding: 16px 16px calc(12px + env(safe-area-inset-bottom));
        transform: none;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 30px rgba(35, 35, 31, 0.18);
    }

    .pb-komplet__picker .pb-komplet__options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* No WoodMart dotted outline on the tiles; the keyboard gets the sage ring. */
.pb-komplet .pb-komplet__tile:focus {
    outline: none;
}

.pb-komplet .pb-komplet__tile:focus-visible .pb-komplet__tile-art {
    outline: 2px solid var(--pb-k-sage);
    outline-offset: 3px;
}

/* ---- The picker's catalogue: "Pasujące" / "Wszystkie" and the filters
   of the category pages (Kolor, Styl, Motyw). One row that scrolls
   sideways on a phone; a filter opens its values under it. */

.pb-komplet__browse-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -2px;
    padding: 2px;
}

.pb-komplet__browse-bar::-webkit-scrollbar {
    display: none;
}

.pb-komplet__browse-sep {
    flex: 0 0 1px;
    align-self: stretch;
    margin: 6px 2px;
    background: #e8e1d5;
}

.pb-komplet .pb-komplet__chip,
.pb-komplet .pb-komplet__term {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #cfc8bb;
    border-radius: 999px;
    background: #fff;
    color: var(--pb-k-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
    box-shadow: none;
    cursor: pointer;
}

.pb-komplet .pb-komplet__chip.is-on,
.pb-komplet .pb-komplet__term.is-on {
    border-color: var(--pb-k-ink);
    background: var(--color-surface-warm, #f6f3ed);
    box-shadow: inset 0 0 0 1px var(--pb-k-ink);
}

.pb-komplet .pb-komplet__chip.is-open {
    border-color: var(--pb-k-ink);
}

.pb-komplet__chip svg {
    transition: transform 0.2s ease;
}

.pb-komplet__chip.is-open svg {
    transform: rotate(180deg);
}

.pb-komplet__chip-count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    box-sizing: border-box;
    border-radius: 999px;
    background: var(--pb-k-ink);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

.pb-komplet__facet {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
    background: var(--color-surface-warm, #f6f3ed);
}

.pb-komplet .pb-komplet__term {
    min-height: 34px;
    padding: 0 12px;
    font-weight: 500;
}

.pb-komplet .pb-komplet__term--clear {
    border-color: transparent;
    background: transparent;
    color: var(--pb-k-sage);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pb-komplet__swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.pb-komplet .pb-komplet__browse-more {
    grid-column: 1 / -1;
    justify-self: center;
    min-height: 44px;
    margin: 4px 0 8px;
    padding: 0 24px;
    border: 2px solid var(--pb-k-ink);
    border-radius: 5px;
    background: #fff;
    color: var(--pb-k-ink);
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
    cursor: pointer;
}

@media (max-width: 767px) {
    .pb-komplet__picker.is-browsing {
        max-height: 85vh;
        max-height: 85svh;
    }

    .pb-komplet__facet {
        max-height: 160px;
        overflow-y: auto;
    }
}
