@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Buy More Save More — product radio variation rows */
.bmsm-options {
    --bmsm-ink: #1a1a1a;
    --bmsm-muted: #6b6b6b;
    --bmsm-line: #e5e5e5;
    --bmsm-yellow: #f6e7a1;
    --bmsm-yellow-soft: #fbf3c8;
    --bmsm-popular: #e53935;
    width: 100%;
    margin: 0.35rem 0 1rem;
    font-family: "Montserrat", "DM Sans", system-ui, sans-serif;
}

.bmsm-heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.bmsm-heading-line {
    flex: 1;
    height: 1px;
    background: var(--bmsm-line);
}

.bmsm-heading-text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--bmsm-ink);
    white-space: nowrap;
}

.bmsm-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.bmsm-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    font-weight: 400;
}

.bmsm-option:hover {
    border-color: #bdbdbd;
}

.bmsm-option.is-selected {
    background: var(--bmsm-yellow-soft);
    border-color: #1a1a1a;
    border-width: 2px;
    padding: calc(0.85rem - 1px) calc(1rem - 1px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.bmsm-option.is-out-of-stock {
    opacity: 0.55;
    pointer-events: none;
}

.bmsm-popular {
    position: absolute;
    top: -0.55rem;
    right: 0.85rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: var(--bmsm-popular);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    display: none;
}

.bmsm-option.is-selected .bmsm-popular {
    display: inline-block;
}

.bmsm-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bmsm-radio-ui {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    border: 2px solid #9e9e9e;
    border-radius: 50%;
    background: #fff;
    position: relative;
}

.bmsm-option.is-selected .bmsm-radio-ui {
    border-color: #1a1a1a;
}

.bmsm-option.is-selected .bmsm-radio-ui::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #1a1a1a;
}

.bmsm-option-body {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.bmsm-option-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.bmsm-option-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    color: var(--bmsm-ink);
    font-size: 0.92rem;
    line-height: 1.35;
}

.bmsm-off {
    font-weight: 700;
}

.bmsm-name {
    font-weight: 500;
}

.bmsm-pill {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: var(--bmsm-yellow);
    color: var(--bmsm-ink);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
}

.bmsm-sub {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--bmsm-ink);
}

.bmsm-option-price {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
    line-height: 1.25;
}

.bmsm-price-old {
    display: block;
    font-size: 0.78rem;
    color: var(--bmsm-muted);
    text-decoration: line-through;
}

.bmsm-price-now {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bmsm-ink);
}

.bmsm-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.95rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--bmsm-line);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--bmsm-ink);
}

.bmsm-total-value {
    font-weight: 700;
}

@media (max-width: 575px) {
    .bmsm-option {
        padding: 0.75rem 0.8rem;
    }

    .bmsm-option.is-selected {
        padding: calc(0.75rem - 1px) calc(0.8rem - 1px);
    }

    .bmsm-option-title {
        font-size: 0.86rem;
    }

    .bmsm-price-now {
        font-size: 0.88rem;
    }
}
