.wpcwe-wishlist,
.wpcwe-wishlist * {
    box-sizing: border-box;
}

.wpcwe-wishlist {
    --wpcwe-dark: #000d22;
    --wpcwe-blue: #0067b2;
    --wpcwe-border: #e2e8f0;
    --wpcwe-muted: #64748b;
    width: 100%;
    color: var(--wpcwe-dark);
}

.wpcwe-wishlist + .klbwl-actions {
    display: none !important;
}

.wpcwe-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--wpcwe-border);
}

.wpcwe-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--wpcwe-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wpcwe-heading h2 {
    margin: 0 0 4px;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.15;
}

.wpcwe-heading p {
    margin: 0;
    color: var(--wpcwe-muted);
}

.wpcwe-primary-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.wpcwe-primary-actions .button,
.wpcwe-card .button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 10px 16px !important;
    border-radius: 7px !important;
    text-align: center;
}

.wpcwe-compare-selected {
    background: var(--wpcwe-dark) !important;
    color: #fff !important;
}

.wpcwe-compare-selected:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.wpcwe-selected-count {
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: 12px;
}

.wpcwe-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.wpcwe-search {
    flex: 1 1 520px;
}

.wpcwe-search input,
.wpcwe-sort {
    width: 100%;
    min-height: 44px;
    margin: 0;
    border: 1px solid #cfd8e3;
    border-radius: 7px;
    background: #fff;
}

.wpcwe-search input {
    padding: 10px 14px;
}

.wpcwe-sort-wrap {
    flex: 0 0 230px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--wpcwe-muted);
    font-size: 13px;
}

.wpcwe-sort {
    padding: 8px 34px 8px 10px;
}

.wpcwe-grid {
    display: grid;
    gap: 16px;
}

.wpcwe-card {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 190px;
    gap: 22px;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--wpcwe-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, .05);
}

.wpcwe-card[hidden] {
    display: none !important;
}

.wpcwe-card-select {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.wpcwe-card-select label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid var(--wpcwe-border);
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.wpcwe-card-select input {
    width: 15px;
    height: 15px;
    margin: 0;
}

.wpcwe-image {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 9px;
    background: #f8fafc;
}

.wpcwe-image img {
    width: 100%;
    height: 100%;
    max-height: 180px;
    object-fit: contain;
}

.wpcwe-main {
    min-width: 0;
    padding-top: 8px;
}

.wpcwe-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    padding-right: 110px;
}

.wpcwe-title-row h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.wpcwe-title-row h3 a {
    color: var(--wpcwe-dark);
    text-decoration: none;
}

.wpcwe-identifiers {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    color: var(--wpcwe-muted);
    font-size: 12px;
}

.wpcwe-identifiers strong {
    color: #334155;
}

.wpcwe-price-block {
    flex: 0 0 auto;
    text-align: right;
}

.wpcwe-price {
    font-size: 19px;
    font-weight: 700;
    white-space: nowrap;
}

.wpcwe-price del {
    opacity: .55;
}

.wpcwe-price-drop {
    display: inline-block;
    margin-top: 4px;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
}

.wpcwe-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 17px;
}

.wpcwe-meta-grid > div {
    min-width: 0;
    padding: 9px 10px;
    border-radius: 7px;
    background: #f7f9fc;
}

.wpcwe-meta-grid span,
.wpcwe-meta-grid strong {
    display: block;
}

.wpcwe-meta-grid span {
    margin-bottom: 3px;
    color: var(--wpcwe-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.wpcwe-meta-grid strong {
    overflow: hidden;
    color: #1e293b;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.wpcwe-details {
    margin-top: 12px;
    border-top: 1px solid #edf1f5;
    padding-top: 10px;
}

.wpcwe-details summary {
    color: var(--wpcwe-blue);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.wpcwe-details-section {
    margin-top: 10px;
    color: #475569;
    font-size: 12px;
    line-height: 1.55;
}

.wpcwe-details-section p,
.wpcwe-details-section ul {
    margin: 5px 0 0;
}

.wpcwe-details-section ul {
    padding-left: 18px;
}

.wpcwe-note-wrap {
    display: block;
    margin-top: 14px;
}

.wpcwe-note-wrap > span {
    display: block;
    margin-bottom: 5px;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.wpcwe-note {
    width: 100%;
    min-height: 62px;
    resize: vertical;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid #d8e0e9;
    border-radius: 7px;
    background: #fff;
    font-size: 12px;
    line-height: 1.45;
}

.wpcwe-note-status {
    display: block;
    min-height: 16px;
    margin-top: 3px;
    color: var(--wpcwe-muted);
    font-size: 10px;
}

.wpcwe-side {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    padding: 30px 0 0 18px;
    border-left: 1px solid var(--wpcwe-border);
}

.wpcwe-stock {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

.wpcwe-stock.is-in-stock {
    color: #15803d;
}

.wpcwe-stock.is-out-of-stock {
    color: #be123c;
}

.wpcwe-stock p {
    margin: 0;
}

.wpcwe-date {
    color: var(--wpcwe-muted);
    font-size: 11px;
    text-align: center;
}

.wpcwe-card .klbwl-item--remove {
    text-align: center;
}

.wpcwe-card .klbwl-item--remove > span {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border: 0;
    border-radius: 6px;
    color: #64748b;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
}

.wpcwe-card .klbwl-item--remove > span:hover {
    color: #be123c;
    background: #fff1f2;
}


.wpcwe-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    padding: 15px 17px;
    border: 1px solid var(--wpcwe-border);
    border-radius: 10px;
    background: #f8fafc;
}

.wpcwe-share > span:first-child {
    margin-right: 5px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.wpcwe-share-button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border: 1px solid #d7dee7;
    border-radius: 6px;
    background: #fff;
    color: #1e293b;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.wpcwe-share-button:hover {
    border-color: #b9c5d3;
    color: var(--wpcwe-blue);
}

.wpcwe-copy-status,
.wpcwe-global-status {
    color: #15803d;
    font-size: 12px;
    font-weight: 600;
}

.wpcwe-global-status {
    min-height: 20px;
    margin-top: 10px;
    text-align: right;
}

.wpcwe-no-search-results {
    padding: 30px;
    text-align: center;
    color: var(--wpcwe-muted);
}

.wpcwe-empty {
    padding: 55px 20px;
    border: 1px solid var(--wpcwe-border);
    border-radius: 12px;
    text-align: center;
    background: #fff;
}

.wpcwe-empty-icon {
    display: block;
    margin-bottom: 10px;
    color: #94a3b8;
    font-size: 64px;
    line-height: 1;
}

.wpcwe-empty h3 {
    margin: 0 0 7px;
    font-size: 23px;
}

.wpcwe-empty p {
    margin: 0 0 18px;
    color: var(--wpcwe-muted);
}

@media (max-width: 1199px) {
    .wpcwe-card {
        grid-template-columns: 135px minmax(0, 1fr) 165px;
        gap: 16px;
    }

    .wpcwe-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wpcwe-title-row {
        display: block;
        padding-right: 90px;
    }

    .wpcwe-price-block {
        margin-top: 8px;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .wpcwe-header,
    .wpcwe-controls {
        display: block;
    }

    .wpcwe-primary-actions {
        justify-content: stretch;
        margin-top: 16px;
    }

    .wpcwe-primary-actions .button {
        flex: 1 1 100%;
    }

    .wpcwe-sort-wrap {
        width: 100%;
        margin-top: 10px;
    }

    .wpcwe-card {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }

    .wpcwe-card-select {
        top: 9px;
        right: 9px;
    }

    .wpcwe-card-select label span {
        display: none;
    }

    .wpcwe-image {
        min-height: 92px;
        align-self: start;
        margin-top: 25px;
    }

    .wpcwe-main {
        padding-top: 30px;
    }

    .wpcwe-title-row {
        padding-right: 0;
    }

    .wpcwe-title-row h3 {
        font-size: 15px;
    }

    .wpcwe-identifiers {
        display: grid;
        gap: 3px;
        font-size: 11px;
    }

    .wpcwe-price {
        font-size: 17px;
    }

    .wpcwe-meta-grid {
        grid-template-columns: 1fr 1fr;
    }

    .wpcwe-side {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        padding: 12px 0 0;
        border-top: 1px solid var(--wpcwe-border);
        border-left: 0;
    }

    .wpcwe-side .button {
        grid-column: 1 / -1;
    }

    .wpcwe-card .klbwl-item--remove {
        text-align: right;
    }

    .wpcwe-note-wrap,
    .wpcwe-details,
    .wpcwe-meta-grid {
        grid-column: 1 / -1;
    }

    .wpcwe-share {
        align-items: stretch;
    }

    .wpcwe-share > span:first-child {
        width: 100%;
    }

    .wpcwe-share-button {
        flex: 1 1 auto;
    }

    .wpcwe-global-status {
        text-align: center;
    }
}

@media (max-width: 420px) {
    .wpcwe-card {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 10px;
        padding: 11px;
    }

    .wpcwe-meta-grid {
        grid-template-columns: 1fr;
    }

    .wpcwe-side {
        grid-template-columns: 1fr;
    }

    .wpcwe-card .klbwl-item--remove,
    .wpcwe-stock,
    .wpcwe-date {
        text-align: center;
    }
}
