#xcwl-panel {
    --ink: #0f1b2a;
    --muted: #526477;
    --line: #ced8e2;
    --action: #125da4;
    --tint: #eef5fc;
    --danger: #9c3030;
    container-type: inline-size;
    width: 100%;
    max-width: 68rem;
    min-width: 0;
    margin-inline: auto;
    color: var(--ink);
    font-family: inherit;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
#xcwl-panel *, #xcwl-panel { box-sizing: border-box }
#xcwl-panel[aria-busy] { cursor: progress }
#xcwl-panel :is(h2,h3,p,dl,dd,form,table) { margin: 0 }
#xcwl-panel h2, #xcwl-panel h3 { color: var(--ink); font-weight: 700; line-height: 1.25 }
#xcwl-panel h2 { font-size: clamp(1.5rem, 4cqi, 2.1rem); letter-spacing: -.025em }
#xcwl-panel h3 { font-size: 1.12rem }
#xcwl-panel > * + *, #xcwl-panel .xcwl-box > * + * { margin-top: 1rem }
#xcwl-panel .xcwl-heading { padding-block: .4rem .75rem }
#xcwl-panel .xcwl-heading > * + * { margin-top: .65rem }
#xcwl-panel .xcwl-heading p { color: var(--muted) }
#xcwl-panel .xcwl-mode { font-weight: 600 }
#xcwl-panel .xcwl-box, #xcwl-panel .xcwl-products tbody tr {
    min-width: 0;
    padding: clamp(1rem, 3cqi, 1.5rem);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}
#xcwl-panel .xcwl-lists { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,19rem),1fr)) }
#xcwl-panel .xcwl-list { display: flex; flex-direction: column; align-items: start }
#xcwl-panel .xcwl-list h3 a { min-height: 44px; display: inline-flex; align-items: center; font-size: 1.2rem }
#xcwl-panel .xcwl-dates { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; line-height: 1.35; font-variant-numeric: tabular-nums }
#xcwl-panel .xcwl-dates dt { font-size: .76rem; color: var(--muted); font-weight: 500 }
#xcwl-panel .xcwl-dates dd { font-size: .86rem; font-weight: 600 }
#xcwl-panel .xcwl-list .xcwl-dates { margin-top: .45rem }
#xcwl-panel label { display: grid; gap: .35rem; color: var(--ink); font-size: .91rem; font-weight: 600; min-width: 0 }
#xcwl-panel input:not([type=hidden]), #xcwl-panel textarea {
    display: block; max-width: 100%; min-width: 0; min-height: 44px;
    padding: .6rem .8rem; border: 1px solid #879aab; border-radius: 7px;
    background: white; color: var(--ink); box-shadow: none; font: inherit;
}
#xcwl-panel .xcwl-share textarea {
    width: 100%; field-sizing: content; resize: vertical; min-height: 4.5em;
    line-height: 1.45; font-weight: 400; white-space: pre-wrap;
    overflow-wrap: anywhere; word-break: break-all; background: #f7f9fb;
}
#xcwl-panel .xcwl-rename, #xcwl-panel .xcwl-create {
    display: flex; align-items: end; flex-wrap: wrap; gap: .75rem;
}
#xcwl-panel :is(.xcwl-create,.xcwl-rename) label { flex: 1 1 15rem; max-width: 32rem }
#xcwl-panel .xcwl-delete { border-top: 1px solid var(--line); padding-top: 1rem }
#xcwl-panel .xcwl-actions { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center }
#xcwl-panel a { color: var(--action); text-underline-offset: .18em }
#xcwl-panel :is(.xcwl-back,.xcwl-actions a,.xcwl-name) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600 }
#xcwl-panel .xcwl-back::before { content: '←'; margin-right: .4em }
#xcwl-panel button {
    max-width: 100%; min-height: 44px; padding: .55rem .9rem;
    border: 1px solid #b0c5d9; border-radius: 7px; background: white;
    color: var(--action); font: inherit; font-weight: 600; line-height: 1.25;
    text-align: center; white-space: normal; box-shadow: none; cursor: pointer;
}
#xcwl-panel button:hover { background: var(--tint); border-color: var(--action) }
#xcwl-panel :is(.xcwl-create,.xcwl-add,.xcwl-total) button {
    background: var(--action); color: white; border-color: var(--action);
}
#xcwl-panel :is(.xcwl-create,.xcwl-add,.xcwl-total) button:hover { background: #0b477e }
#xcwl-panel :is(.xcwl-remove,.xcwl-delete) button { border-color: #d8b8b8; color: var(--danger) }
#xcwl-panel :is(.xcwl-remove,.xcwl-delete) button:hover { background: #fcf1f1; border-color: var(--danger) }
#xcwl-panel :is(button,a,input,textarea):focus-visible { outline: 3px solid #1e88e5; outline-offset: 2px }
#xcwl-panel [role=status]:not(:empty), #xcwl-panel [role=alert] {
    padding: .75rem 1rem; border-left: 3px solid var(--action); background: var(--tint);
}
#xcwl-panel [role=alert] { color: #812424; background: #fff4f3; border-color: var(--danger) }
#xcwl-panel [data-copy-result]:empty { display: none }

/* Cards are the default, including narrow account columns on wider devices. */
#xcwl-panel .xcwl-products, #xcwl-panel .xcwl-products tbody { display: grid; gap: .85rem; width: 100%; min-width: 0; border: 0; background: transparent }
#xcwl-panel .xcwl-products thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden }
#xcwl-panel .xcwl-products tbody tr { display: grid; gap: .7rem }
#xcwl-panel .xcwl-products td {
    display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: center; gap: .5rem; min-width: 0; text-align: start;
    background: transparent; padding: .45rem 0 0; border: 0; border-top: 1px solid #e6ecf1;
}
#xcwl-panel .xcwl-products .xcwl-product { display: block; padding-top: 0; border: 0 }
#xcwl-panel .xcwl-label { font-size: .83rem; font-weight: 600; color: var(--muted) }
#xcwl-panel .xcwl-card { display: grid; grid-template-columns: 3.5rem minmax(0,1fr); gap: .75rem; align-items: center }
#xcwl-panel .xcwl-card img { display: block; width: 3.5rem; height: 3.5rem; object-fit: contain; margin: 0 }
#xcwl-panel .xcwl-card div { color: var(--muted); font-size: .87rem }
#xcwl-panel .xcwl-name { color: var(--ink); font-weight: 700; font-size: 1rem; line-height: 1.35 }
#xcwl-panel .xcwl-product .xcwl-actions { margin-top: .75rem }
#xcwl-panel .xcwl-quantity { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center }
#xcwl-panel input[name=qty] { width: 4.5rem }
#xcwl-panel .xcwl-value { font-weight: 700 }
#xcwl-panel .amount { white-space: normal; font-variant-numeric: tabular-nums }
#xcwl-panel .xcwl-total {
    display: flex; flex-wrap: wrap; gap: .9rem 1.5rem; align-items: center;
    justify-content: space-between; border: 1px solid #bacde0;
    background: var(--tint); border-radius: 12px; padding: clamp(1rem,3cqi,1.5rem);
}
#xcwl-panel .xcwl-total p { flex-basis: 100%; color: var(--muted) }
#xcwl-panel .xcwl-amount h3 { font-size: .9rem; color: var(--muted) }
#xcwl-panel .xcwl-amount strong { display: block; color: var(--ink); font-size: 1.65rem; font-variant-numeric: tabular-nums }
@media (min-width:701px) {
    @container (min-width:640px) {
        #xcwl-panel .xcwl-lines { background: white; border: 1px solid var(--line); border-radius: 12px }
        #xcwl-panel table.xcwl-products { display: table; border-collapse: separate; border-spacing: 0; table-layout: fixed }
        #xcwl-panel .xcwl-products thead { display: table-header-group; position: static; width: auto; height: auto; clip-path: none; overflow: visible }
        #xcwl-panel .xcwl-products tbody { display: table-row-group }
        #xcwl-panel .xcwl-products tbody tr { display: table-row }
        #xcwl-panel .xcwl-products tr > :is(th,td) { display: table-cell; padding: .9rem; vertical-align: top; background: transparent; border: 0; text-align: start }
        #xcwl-panel .xcwl-products tbody tr > td { border-top: 1px solid var(--line) }
        #xcwl-panel .xcwl-products th { color: var(--muted); font-size: .82rem }
        #xcwl-panel .xcwl-products th:first-child { width: 43% }
        #xcwl-panel .xcwl-products th:nth-child(3) { width: 24% }
        #xcwl-panel .xcwl-label { display: none }
    }
}
/* The shop uses the same destination for its desktop and mobile heart. */
a[href*="/lista-zakupow"]:is(.xc-ni,header a,nav a)::after { content: none !important }
a[href*="/lista-zakupow"] :is(sup,.xcwl-count,.wishlist-count,.yith-wcwl-items-count,.count,.badge,[class*="-badge"],[data-count]) { display: none !important }

#xcwl-picker {
    box-sizing: border-box; width: min(30rem,calc(100% - 2rem)); max-width: none;
    max-height: calc(100dvh - 2rem); overflow-y: auto; margin: auto; padding: 0;
    color: #0f1b2a; background: white; border: 1px solid #c4d1df; border-radius: 14px;
    box-shadow: 0 1rem 4rem rgb(15 27 42 / 24%); font: inherit; overflow-wrap: anywhere;
}
#xcwl-picker::backdrop { background: rgb(15 27 42 / 58%) }
#xcwl-picker [hidden], #xcwl-picker p:empty { display: none !important }
#xcwl-picker .xcwl-dialog-body { display: grid; gap: 1rem; padding: clamp(1rem,4vw,1.65rem) }
#xcwl-picker header { display: flex; align-items: center; justify-content: space-between; gap: .75rem }
#xcwl-picker h2 { margin: 0; color: #0f1b2a; font-size: 1.35rem; line-height: 1.25 }
#xcwl-picker p, #xcwl-picker form { margin: 0 }
#xcwl-picker [data-product] { font-weight: 600 }
#xcwl-picker form, #xcwl-picker label { display: grid; min-width: 0; gap: .45rem }
#xcwl-picker form { gap: 1rem }
#xcwl-picker :is(select,input,button) {
    box-sizing: border-box; min-width: 0; max-width: 100%; min-height: 44px; border: 1px solid #879aab;
    border-radius: 7px; padding: .6rem .8rem; color: #0f1b2a; background: white; font: inherit;
}
#xcwl-picker :is(select,input) { width: 100% }
#xcwl-picker button { cursor: pointer; font-weight: 600; white-space: normal }
#xcwl-picker [data-close] { flex: 0 0 44px; font-size: 1.4rem; line-height: 1 }
#xcwl-picker .xcwl-primary, #xcwl-picker [data-finish] { background: #125da4; border-color: #125da4; color: white }
#xcwl-picker button:disabled { opacity: .65; cursor: wait }
#xcwl-picker [role=alert] { color: #812424 }
#xcwl-picker :focus-visible { outline: 3px solid #1e88e5; outline-offset: 2px }
a.xc-ni[href*="/lista-zakupow"]:has(svg)::before { content: none !important }

.xcwl-products tr.xcwl-unavailable td { background:#f3f5f7;color:#495564 }
.xcwl-unavailable .xcwl-card img { filter:grayscale(1);opacity:.65 }
.xcwl-unavailable .xcwl-name { color:#465567 }
.xcwl-alert { max-width:100%; }
.xcwl-alert summary { cursor:pointer;color:#125d9c;min-height:44px;align-content:center;font-weight:600 }
.xcwl-alert form { display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin:8px 0 }
.xcwl-alert label,.xcwl-alert input { max-width:100%;min-width:0;box-sizing:border-box }
#xcwl-panel .xcwl-dates > div:last-child dd { color:#b42318 }

/* Storefront and cached catalog cards share the same compare control. */
.xcwl-card-actions {
    display:flex; flex-wrap:wrap; align-items:stretch; gap:6px;
    width:100%; min-width:0; box-sizing:border-box; margin-block-start:8px;
}
.xcwl-card-actions > button.xc-cmp-btn {
    flex:1 1 5.4rem; width:auto; min-width:44px; min-height:44px;
    box-sizing:border-box; margin:0 !important; white-space:normal; overflow-wrap:anywhere;
}
.xcwl-card-actions > button.xcwl-card-heart {
    display:inline-grid; place-items:center; flex:0 0 44px; width:44px; min-width:44px;
    min-height:44px; box-sizing:border-box; margin:0; padding:0; border:1px solid #bccbd8;
    border-radius:8px; background:white; color:#17364f; cursor:pointer;
}
.xcwl-card-actions .xcwl-card-heart:hover { color:#a12141; border-color:currentColor }
.xcwl-card-actions .xcwl-card-heart:focus-visible { outline:3px solid #176db2; outline-offset:2px }
.xcwl-paired-card:has(.xcwl-card-actions) :is(.xcwl-pick:not(.xcwl-card-heart),.yith-add-to-wishlist-button-block,.yith-wcwl-add-to-wishlist,a.add_to_wishlist) {
    display:none !important;
}
.xcwl-card-actions { container-type:inline-size; container-name:xc-actions; flex-wrap:nowrap; gap:clamp(2px,1vw,6px) }
@container xc-actions (max-width:140px) {
    .xcwl-card-actions > button.xc-cmp-btn { position:relative;flex:1 1 44px;min-width:0;padding-inline:0;justify-content:center }
    .xcwl-card-actions > button.xc-cmp-btn .xc-cmp-l { position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap }
}
@media(max-width:360px) {
    .woocommerce ul.products:not(.xc-rail):has(>li.xcwl-paired-card):not(.swiper-wrapper):not(.slick-track) { grid-template-columns:minmax(0,1fr)!important }
}
