.nwc-tier-selector {
    width: 100%;
    margin: 14px 0 16px;
}

.nwc-tier-selector__heading {
    margin-bottom: 8px;
}

.nwc-tier-selector__heading h3 {
    margin: 0;
    color: #334039;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

/* Tre selettori compatti sulla stessa riga */
.nwc-tier-selector__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.nwc-tier-choice {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 76px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 11px 12px;
    overflow: hidden;
    border: 1px solid #d5ded8;
    border-radius: 10px;
    background: #fff;
    color: #29332d;
    text-align: left;
    box-shadow: none;
    transition:
        border-color 150ms ease,
        background-color 150ms ease,
        box-shadow 150ms ease;
}

.nwc-tier-choice:nth-child(2) {
    background: #fcf8f0;
}

.nwc-tier-choice:nth-child(3) {
    background: #f1f7fa;
}

.nwc-tier-choice:hover {
    border-color: #91b29b;
    box-shadow: 0 5px 14px rgba(36, 91, 56, .07);
}

.nwc-tier-choice.is-active {
    border: 2px solid #287447;
    padding: 10px 11px;
    background: #f3f9f5;
    box-shadow: 0 0 0 2px rgba(40, 116, 71, .07);
}

.nwc-tier-choice:focus-visible {
    outline: 2px solid rgba(40, 116, 71, .25);
    outline-offset: 2px;
}

.nwc-tier-choice__top {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

.nwc-tier-choice__top strong {
    min-width: 0;
    color: #2d3731;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.15;
    white-space: nowrap;
}

.nwc-tier-choice__badge {
    display: inline-flex;
    min-width: 40px;
    min-height: 21px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    border-radius: 999px;
    background: #287447;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.nwc-tier-choice__badge.is-base {
    background: #e3e9e5;
    color: #647068;
    font-size: 9px;
    text-transform: uppercase;
}

.nwc-tier-choice__price-row {
    display: flex;
    width: 100%;
    align-items: baseline;
    gap: 5px;
}

.nwc-tier-choice__price {
    display: block;
    min-width: 0;
}

.nwc-tier-choice__price .price-container,
.nwc-tier-choice__price .price-wrapper {
    display: inline;
}

.nwc-tier-choice__price .price {
    color: #287447 !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.nwc-tier-choice__price-row small {
    color: #78837c;
    font-size: 9px;
    font-weight: 650;
    line-height: 1;
}

.sfpdp-tier-prices {
    margin: 0 !important;
}

.sfpdp-tier-prices .nwc-tier-selector {
    margin-top: 14px;
}

/* Tablet */
@media (max-width: 900px) {
    .nwc-tier-choice {
        min-height: 72px;
        padding: 10px;
    }

    .nwc-tier-choice.is-active {
        padding: 9px;
    }

    .nwc-tier-choice__top strong {
        font-size: 12px;
    }

    .nwc-tier-choice__price .price {
        font-size: 18px !important;
    }
}

/* Smartphone: scorrimento orizzontale compatto */
@media (max-width: 620px) {
    .nwc-tier-selector {
        margin: 12px 0 14px;
    }

    .nwc-tier-selector__grid {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        padding: 2px 2px 7px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .nwc-tier-selector__grid::-webkit-scrollbar {
        display: none;
    }

    .nwc-tier-choice {
        min-width: 145px;
        min-height: 70px;
        flex: 0 0 145px;
        scroll-snap-align: start;
    }

    .nwc-tier-choice__top strong {
        font-size: 11px;
    }

    .nwc-tier-choice__price .price {
        font-size: 17px !important;
    }

    .nwc-tier-choice__badge {
        min-width: 36px;
        min-height: 20px;
        padding-inline: 6px;
        font-size: 9px;
    }
}
