.sks-npa-wrap {
    --sks-npa-border: #d9d9d9;
    --sks-npa-text: #171717;
    --sks-npa-muted: #666;
    --sks-npa-accent: #111;
    --sks-npa-radius: 6px;
    margin: 24px 0;
    color: var(--sks-npa-text);
}

.sks-npa-set + .sks-npa-set {
    margin-top: 28px;
}

.sks-npa-heading {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.sks-npa-group-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sks-npa-group {
    min-width: 0;
}

.sks-npa-group-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--sks-npa-border);
    border-radius: var(--sks-npa-radius);
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.sks-npa-group-card:hover,
.sks-npa-group-card:focus-visible {
    border-color: #777;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
    outline: none;
}

.sks-npa-group.is-selected .sks-npa-group-card {
    border: 2px solid var(--sks-npa-accent);
}

.sks-npa-check {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sks-npa-accent);
    color: #fff;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
}

.sks-npa-group.is-selected .sks-npa-check {
    display: block;
}

.sks-npa-group-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f2f2f2;
}

.sks-npa-group-copy {
    display: grid;
    gap: 4px;
    padding: 10px 10px 12px;
}

.sks-npa-group-title {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
}

.sks-npa-group-selection {
    min-height: 18px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--sks-npa-muted);
}

.sks-npa-group-price {
    font-size: 12px;
    line-height: 1.3;
    color: var(--sks-npa-muted);
}

.sks-npa-clear-selection {
    display: inline-block;
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

.sks-npa-clear-selection[hidden] {
    display: none !important;
}

.sks-npa-summary {
    display: grid;
    gap: 3px;
    margin-top: 24px;
    font-size: 14px;
}

.sks-npa-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sks-npa-modal.is-open {
    display: flex;
}

.sks-npa-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .58);
    backdrop-filter: blur(2px);
}

.sks-npa-modal-panel {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow: auto;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
}

.sks-npa-modal-header {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border-bottom: 1px solid #ececec;
    background: #fff;
}

.sks-npa-modal-header h4 {
    margin: 2px 0 0;
    font-size: 22px;
    line-height: 1.25;
}

.sks-npa-modal-kicker {
    display: block;
    font-size: 12px;
    line-height: 1.3;
    color: var(--sks-npa-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.sks-npa-modal-close {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 28px;
    line-height: 36px;
    cursor: pointer;
}

.sks-npa-swatches {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 22px;
}

.sks-npa-swatch {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--sks-npa-border);
    border-radius: 6px;
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.sks-npa-swatch:hover,
.sks-npa-swatch:focus-visible {
    border-color: #777;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
    outline: none;
}

.sks-npa-swatch.is-selected {
    border: 2px solid var(--sks-npa-accent);
}

.sks-npa-swatch img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f2f2f2;
}

.sks-npa-swatch-title,
.sks-npa-swatch-price {
    display: block;
    padding-inline: 10px;
}

.sks-npa-swatch-title {
    padding-top: 10px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
}

.sks-npa-swatch-price {
    padding-top: 4px;
    padding-bottom: 12px;
    font-size: 12px;
    color: var(--sks-npa-muted);
}

.sks-npa-swatch-check {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sks-npa-accent);
    color: #fff;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
}

.sks-npa-swatch.is-selected .sks-npa-swatch-check {
    display: block;
}

body.sks-npa-modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .sks-npa-swatches {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sks-npa-group-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sks-npa-modal {
        align-items: flex-end;
        padding: 0;
    }

    .sks-npa-modal-panel {
        width: 100%;
        max-height: 88vh;
        border-radius: 14px 14px 0 0;
    }

    .sks-npa-modal-header {
        padding: 16px;
    }

    .sks-npa-modal-header h4 {
        font-size: 19px;
    }

    .sks-npa-swatches {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 16px;
    }
}
