.rs-vp-open { overflow: hidden; }

.rs-variant-picker {
    position: fixed;
    z-index: 11020;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    pointer-events: none;
    font-family: Roboto, Arial, sans-serif;
}

.rs-vp__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    opacity: 0;
    transition: opacity .22s ease;
}

.rs-vp__panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
    opacity: 0;
    transform: translateY(16px) scale(.98);
    transition: opacity .22s ease, transform .22s ease;
}

.rs-variant-picker.is-open { pointer-events: auto; }
.rs-variant-picker.is-open .rs-vp__backdrop { opacity: 1; }
.rs-variant-picker.is-open .rs-vp__panel { opacity: 1; transform: translateY(0) scale(1); }

.rs-vp__close {
    position: absolute;
    z-index: 1;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid #d9e1ea;
    border-radius: 9px;
    color: #1e293b;
    background: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.rs-vp__head {
    min-height: 126px;
    padding: 24px 64px 20px 24px;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid #e8edf3;
}

.rs-vp__head img { width: 88px; height: 88px; object-fit: contain; }
.rs-vp__head p {
    margin: 0 0 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.rs-vp__head h2 {
    margin: 0;
    color: #172033;
    font-size: 18px;
    line-height: 1.35;
}

.rs-vp__prices {
    margin-top: 8px;
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.rs-vp__price-now { color: #2563eb; font-size: 19px; }
.rs-vp__price-old { color: #94a3b8; font-size: 13px; }
.rs-vp__body { padding: 22px 24px 8px; }
.rs-vp__choices { margin-bottom: 21px; }

.rs-vp__label,
.rs-vp__choices .text-sm {
    margin-bottom: 10px;
    color: #263449;
    font-size: 14px;
    font-weight: 800;
}

.rs-vp__choices .pd-variants,
.rs-vp__choices .qv-second-option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rs-vp__choices .vopt,
.rs-vp__choices .qv-second-option-btn {
    min-width: 46px;
    min-height: 40px;
    padding: 7px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #243247;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .18s ease;
}

.rs-vp__choices .vopt:hover:not(:disabled),
.rs-vp__choices .qv-second-option-btn:hover:not(:disabled),
.rs-vp__choices .vopt.is-active,
.rs-vp__choices .qv-second-option-btn.is-active {
    border-color: #2563eb;
    color: #fff;
    background: #2563eb;
}

.rs-vp__choices .vopt:disabled,
.rs-vp__choices .qv-second-option-btn:disabled {
    opacity: .38;
    cursor: not-allowed;
    text-decoration: line-through;
}

.rs-vp__choices .qv-second-option-help {
    margin-top: 9px;
    color: #718096;
    font-size: 12px;
}

.rs-vp__footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #e8edf3;
}

.rs-vp__add {
    position: relative;
    width: 100%;
    min-height: 50px;
    border: 1px solid #2563eb;
    border-radius: 9px;
    color: #fff;
    background: #2563eb;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.rs-vp__add:disabled { opacity: .48; cursor: not-allowed; }
.rs-vp__add.is-loading { color: transparent; pointer-events: none; }
.rs-vp__add.is-loading::after {
    position: absolute;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    content: '';
    animation: rs-vp-spin .7s linear infinite;
}

@keyframes rs-vp-spin {
    to { transform: rotate(360deg); }
}

.rs-card-feedback {
    position: fixed;
    z-index: 12000;
    bottom: 24px;
    left: 50%;
    max-width: min(92vw, 460px);
    padding: 14px 18px;
    border-radius: 10px;
    color: #fff;
    background: #2563eb;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .20);
    font: 600 14px/1.45 Roboto, Arial, sans-serif;
    opacity: 0;
    transform: translate(-50%, 16px);
    transition: opacity .2s ease, transform .2s ease;
}

.rs-card-feedback.is-error { background: #b42318; }
.rs-card-feedback.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 575px) {
    .rs-variant-picker { align-items: end; padding: 0; }
    .rs-vp__panel {
        width: 100%;
        max-height: min(82vh, 720px);
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 20px 20px 0 0;
        transform: translateY(24px);
    }

    .rs-vp__head { padding: 20px 58px 18px 20px; grid-template-columns: 68px minmax(0, 1fr); gap: 13px; }
    .rs-vp__head img { width: 68px; height: 68px; }
    .rs-vp__head h2 { font-size: 16px; }
    .rs-vp__body { padding: 20px 20px 5px; }
    .rs-vp__footer { padding: 15px 20px 20px; }
}
