.ssw-card,
.ssw-card * {
    box-sizing: border-box;
}

.ssw-card {
    width: 100%;
    max-width: 500px;
    height: 75px;
    max-height: 75px;
    font-family: inherit;
}

.ssw-front {
    width: 100%;
    height: 75px;
    max-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #0171b7, #0275be);
    box-shadow: 0 12px 28px rgba(12, 40, 63, 0.18);
    overflow: hidden;
}

.ssw-front-copy {
    min-width: 0;
}

.ssw-kicker {
    display: block;
    font-size: 12px;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.82;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ssw-price {
    display: block;
    margin-top: 4px;
    font-size: clamp(16px, 5vw, 19px);
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.ssw-view-all {
    flex: 0 0 auto;
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(255,255,255,0.18);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

.ssw-view-all:hover,
.ssw-view-all:focus {
    background: rgba(255,255,255,0.28);
    outline: none;
    transform: translateY(-1px);
}

.ssw-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(0, 0, 0, 0.55);
}

.ssw-modal-overlay.ssw-is-open {
    display: flex !important;
}

body.ssw-modal-open {
    overflow: hidden;
}

.ssw-modal {
    position: relative;
    z-index: 2147483647 !important;
    width: min(520px, 100%);
    border-radius: 22px;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #0076be, #0076be);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.ssw-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    color: #ffffff;
    font-size: 26px;
    line-height: 30px;
    cursor: pointer;
}

.ssw-close:hover,
.ssw-close:focus {
    background: rgba(255,255,255,0.28);
    outline: none;
}

.ssw-modal-header {
    padding-right: 40px;
    margin-bottom: 18px;
}

.ssw-modal-kicker {
    display: block;
    font-size: 12px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.78;
}

.ssw-modal h3 {
    margin: 4px 0 0;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.1;
}

.ssw-details {
    display: grid;
    gap: 10px;
}

.ssw-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.14);
}

.ssw-detail-row span {
    font-size: 14px;
    opacity: 0.9;
}

.ssw-detail-row strong {
    font-size: 18px;
    white-space: nowrap;
}

.ssw-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.ssw-action-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 64px;
    padding: 13px 14px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    background: #ffffff;
    color: #0c283f;
    font-weight: 800;
    line-height: 1.15;
}

.ssw-action-button small {
    display: block;
    margin-top: 4px;
    color: #325269;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ssw-action-button:hover,
.ssw-action-button:focus {
    text-decoration: none;
    transform: translateY(-1px);
}

.ssw-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 520px) {
    .ssw-front {
        padding: 12px 13px;
        gap: 10px;
    }

    .ssw-kicker {
        font-size: 10px;
    }

    .ssw-price {
        font-size: 28px;
    }

    .ssw-view-all {
        padding: 8px 11px;
        font-size: 12px;
    }

    .ssw-actions {
        grid-template-columns: 1fr;
    }

    .ssw-detail-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}