.csp-app {
    --csp-accent: var(--global-palette1, #2563eb);
    --csp-accent-dark: var(--global-palette2, #1746a2);
    --csp-text: var(--global-palette3, #172033);
    --csp-muted: #64748b;
    --csp-border: #dfe5ec;
    --csp-soft: #f6f8fb;
    --csp-card: #ffffff;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto 2.5rem;
    color: var(--csp-text);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.45;
}

.cloudzat-storage-prices-page .entry-title,
.cloudzat-storage-prices-page h1.wp-block-post-title {
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 2.6vw, 2.45rem);
    line-height: 1.14;
}

.csp-app *,
.csp-app *::before,
.csp-app *::after {
    box-sizing: border-box;
}

.csp-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(310px, .65fr);
    gap: 1.25rem;
    align-items: center;
    padding: clamp(1.1rem, 2vw, 1.55rem);
    margin-bottom: 1rem;
    border: 1px solid var(--csp-border);
    border-radius: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f7fc 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.csp-eyebrow {
    display: inline-block;
    margin-bottom: .35rem;
    color: var(--csp-accent-dark);
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.csp-overview h2,
.csp-empty h2 {
    margin: 0 0 .5rem;
    color: var(--csp-text);
    font-size: clamp(1.38rem, 2.3vw, 1.9rem);
    line-height: 1.12;
}

.csp-overview p {
    max-width: 720px;
    margin: 0;
    color: #46556b;
    font-size: .9rem;
    line-height: 1.5;
}

.csp-page-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .8rem;
}

.csp-page-switcher__link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: .42rem .7rem;
    border: 1px solid var(--csp-border);
    border-radius: 999px;
    background: #fff;
    color: var(--csp-text);
    font-size: .78rem;
    font-weight: 650;
    text-decoration: none;
}

.csp-page-switcher__link:hover,
.csp-page-switcher__link:focus,
.csp-page-switcher__link.is-active {
    border-color: var(--csp-accent);
    background: var(--csp-accent);
    color: #fff;
}

.csp-overview__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
}

.csp-stat {
    min-width: 0;
    padding: .7rem .45rem;
    border: 1px solid var(--csp-border);
    border-radius: 11px;
    background: rgba(255,255,255,.9);
    text-align: center;
}

.csp-stat strong,
.csp-stat span {
    display: block;
}

.csp-stat strong {
    color: var(--csp-text);
    font-size: 1rem;
    line-height: 1.15;
    white-space: nowrap;
}

.csp-stat span {
    margin-top: .15rem;
    color: var(--csp-muted);
    font-size: .63rem;
    line-height: 1.25;
}

.csp-controls {
    display: grid;
    grid-template-columns: minmax(190px, 1.45fr) repeat(4, minmax(125px, 1fr));
    gap: .65rem;
    align-items: end;
    padding: .85rem;
    border: 1px solid var(--csp-border);
    border-radius: 13px;
    background: var(--csp-card);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.csp-filter label,
.csp-check-filter {
    color: #364152;
    font-size: .7rem;
    font-weight: 700;
}

.csp-filter label {
    display: block;
    margin-bottom: .25rem;
}

.csp-filter input,
.csp-filter select {
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: .5rem .58rem;
    border: 1px solid #cfd7e2;
    border-radius: 8px;
    background: #fff;
    color: var(--csp-text);
    font: inherit;
    font-size: .8rem;
}

.csp-filter input:focus,
.csp-filter select:focus,
.csp-reset:focus,
.csp-load-more:focus,
.csp-button:focus {
    outline: 3px solid color-mix(in srgb, var(--csp-accent) 24%, transparent);
    outline-offset: 1px;
    border-color: var(--csp-accent);
}

.csp-range-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: .35rem;
    align-items: center;
}

.csp-range-inputs span {
    color: var(--csp-muted);
    font-size: .75rem;
}

.csp-check-filter {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    gap: .5rem;
    padding: 0 .2rem;
    cursor: pointer;
}

.csp-check-filter input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--csp-accent);
}

.csp-reset {
    min-height: 38px;
    padding: .5rem .7rem;
    border: 1px solid var(--csp-border);
    border-radius: 9px;
    background: var(--csp-soft);
    color: var(--csp-text);
    font: inherit;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
}

.csp-reset:hover {
    border-color: #b9c4d2;
    background: #eef2f7;
}

.csp-results-bar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: .8rem 0 .5rem;
    color: var(--csp-muted);
    font-size: .78rem;
}

.csp-results-bar p {
    margin: 0;
}

.csp-results-bar strong {
    color: var(--csp-text);
}

.csp-table-wrap {
    overflow-x: hidden;
    border: 1px solid var(--csp-border);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
}

.csp-table {
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    background: #fff;
    color: var(--csp-text);
    font-size: .78rem;
}

.csp-col-product { width: 34%; }
.csp-col-pptb { width: 10%; }
.csp-col-price { width: 11%; }
.csp-col-capacity { width: 8%; }
.csp-col-type { width: 13%; }
.csp-col-condition { width: 12%; }
.csp-col-action { width: 12%; }

.csp-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: .65rem .52rem;
    border: 0;
    border-bottom: 1px solid var(--csp-border);
    background: #f7f9fc;
    color: #4b5a6f;
    font-size: .64rem;
    font-weight: 750;
    letter-spacing: .025em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.csp-table tbody td {
    min-width: 0;
    padding: .62rem .52rem;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.csp-table tbody tr:last-child td {
    border-bottom: 0;
}

.csp-table tbody tr:hover {
    background: #fafcff;
}

.csp-product {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: .58rem;
    align-items: center;
    min-width: 0;
}

.csp-product__image {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    background: #fff;
}

.csp-product__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.csp-product__placeholder {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 800;
}

.csp-product__title {
    display: -webkit-box;
    overflow: hidden;
    color: #1e293b;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.csp-product__title:hover,
.csp-product__title:focus {
    color: var(--csp-accent);
    text-decoration: underline;
}

.csp-product__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .22rem .4rem;
    margin-top: .25rem;
    color: var(--csp-muted);
    font-size: .61rem;
}

.csp-deal-badge {
    display: inline-flex;
    align-items: center;
    padding: .08rem .32rem;
    border-radius: 999px;
    background: #fff3d6;
    color: #8a4b00;
    font-weight: 750;
}

.csp-pptb {
    display: block;
    color: var(--csp-accent-dark);
    font-size: .9rem;
}

.csp-unit,
.csp-table del {
    display: block;
    margin-top: .12rem;
    color: var(--csp-muted);
    font-size: .64rem;
    font-weight: 450;
}

.csp-condition {
    display: inline-flex;
    padding: .16rem .4rem;
    border-radius: 999px;
    background: #edf7ee;
    color: #28733a;
    font-size: .64rem;
    font-weight: 750;
}

.csp-condition--used,
.csp-condition--refurbished {
    background: #f1f0ff;
    color: #5145a5;
}

.csp-button,
.csp-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: .45rem .52rem;
    border: 1px solid var(--csp-accent);
    border-radius: 8px;
    background: var(--csp-accent);
    color: #fff;
    font: inherit;
    font-size: .7rem;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.csp-button:hover,
.csp-button:focus,
.csp-load-more:hover,
.csp-load-more:focus {
    border-color: var(--csp-accent-dark);
    background: var(--csp-accent-dark);
    color: #fff;
}

.csp-action-cell {
    text-align: right;
}

.csp-action-cell .csp-button {
    width: 100%;
}

.csp-paid-link {
    display: block;
    margin-top: .2rem;
    color: var(--csp-muted);
    font-size: .6rem;
    white-space: nowrap;
}

.csp-load-more-wrap {
    display: flex;
    justify-content: center;
    margin: 1.2rem 0;
}

.csp-load-more {
    min-width: 190px;
}

.csp-load-more[hidden],
.csp-product-row[hidden] {
    display: none !important;
}

.csp-no-results,
.csp-empty {
    padding: 2rem;
    border: 1px solid var(--csp-border);
    border-radius: 15px;
    background: var(--csp-soft);
    text-align: center;
}

.csp-no-results h3,
.csp-empty h2 {
    margin-top: 0;
}

.csp-no-results p,
.csp-empty p {
    color: var(--csp-muted);
}

.csp-disclosure {
    margin-top: 1.2rem;
    padding: 1rem 1.1rem;
    border-left: 4px solid var(--csp-accent);
    border-radius: 0 10px 10px 0;
    background: var(--csp-soft);
    color: #526075;
    font-size: .78rem;
}

.csp-disclosure strong {
    display: block;
    margin-bottom: .2rem;
    color: var(--csp-text);
}

.csp-disclosure p {
    margin: 0;
}

@media (max-width: 1180px) {
    .csp-controls {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
    }

    .csp-filter--search {
        grid-column: span 2;
    }
}

@media (max-width: 820px) {
    .csp-overview {
        grid-template-columns: 1fr;
    }

    .csp-overview__stats {
        max-width: 520px;
    }

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

    .csp-filter--search,
    .csp-filter--capacity {
        grid-column: 1 / -1;
    }

    .csp-results-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }

    .csp-table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .csp-table,
    .csp-table tbody,
    .csp-table tr,
    .csp-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .csp-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .csp-table tbody {
        display: grid;
        gap: .9rem;
    }

    .csp-table tbody tr {
        padding: .9rem;
        border: 1px solid var(--csp-border);
        border-radius: 13px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
    }

    .csp-table tbody td {
        display: grid;
        grid-template-columns: minmax(105px, .65fr) minmax(0, 1.35fr);
        gap: .75rem;
        align-items: center;
        padding: .55rem 0;
        border-bottom: 1px solid #edf0f4;
        text-align: right;
    }

    .csp-table tbody td::before {
        content: attr(data-label);
        color: var(--csp-muted);
        font-size: .7rem;
        font-weight: 750;
        letter-spacing: .02em;
        text-align: left;
        text-transform: uppercase;
    }

    .csp-table tbody td:first-child,
    .csp-table tbody td:last-child {
        grid-template-columns: 1fr;
    }

    .csp-table tbody td:first-child::before,
    .csp-table tbody td:last-child::before {
        display: none;
    }

    .csp-table tbody td:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .csp-product {
        grid-template-columns: 76px minmax(0, 1fr);
        min-width: 0;
        text-align: left;
    }

    .csp-product__image {
        width: 76px;
        height: 76px;
    }

    .csp-action-cell .csp-button {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .csp-overview,
    .csp-controls {
        padding: 1rem;
        border-radius: 13px;
    }

    .csp-overview__stats {
        grid-template-columns: 1fr;
    }

    .csp-stat {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        align-items: center;
        text-align: left;
    }

    .csp-stat span {
        margin: 0;
        text-align: right;
    }

    .csp-controls {
        grid-template-columns: 1fr;
    }

    .csp-filter--search,
    .csp-filter--capacity {
        grid-column: auto;
    }

    .csp-page-switcher {
        align-items: stretch;
        flex-direction: column;
    }

    .csp-page-switcher__link {
        justify-content: center;
    }

    .csp-table tbody td {
        grid-template-columns: 92px minmax(0, 1fr);
    }
}
