/* ─── Affiliate Calculator Widget ─── */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap');

.acw-card {
    font-family: 'Sora', sans-serif;
    background: #fff;
    border-radius: 20px;
    padding: 36px 40px 28px;
    box-shadow: 0 8px 40px rgba(100, 80, 200, 0.08);
    max-width: 860px;
    margin: 0 auto;
}

/* Heading */
.acw-main-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1535;
    margin: 0 0 24px;
}

/* Section label */
.acw-section-label {
    font-size: 12px;
    font-weight: 600;
    color: #8884aa;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Package row */
.acw-pkg-row {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.acw-pkg-btn {
    flex: 1;
    min-width: 100px;
    padding: 14px 10px;
    border-radius: 12px;
    border: 2px solid #e8e6f0;
    background: #faf9fd;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.18s, background 0.18s;
    font-family: inherit;
}

.acw-pkg-btn:hover {
    border-color: #b3aee0;
}

.acw-pkg-btn.active {
    border-color: #7c6fe0;
    background: #f2f0fd;
}

.acw-pkg-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1535;
    margin-bottom: 4px;
}

.acw-pkg-btn.active .acw-pkg-name {
    color: #7c6fe0;
}

.acw-pkg-price {
    font-size: 12px;
    color: #8884aa;
    font-weight: 500;
}

/* Slider header */
.acw-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}

.acw-slider-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1535;
}

.acw-slider-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a1535;
}

/* Range slider */
.acw-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 6px;
    background: #e8e6f4;
    outline: none;
    cursor: pointer;
    display: block;
    accent-color: #7c6fe0;
}

.acw-slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 6px;
}

.acw-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #7c6fe0;
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 2px 10px rgba(124, 111, 224, 0.4);
    transition: transform 0.15s;
}

.acw-slider::-webkit-slider-thumb:hover {
    transform: scale(1.12);
}

.acw-slider::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #7c6fe0;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(124,111,224,.4);
}

.acw-slider-range {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #8884aa;
    font-weight: 600;
    margin: 8px 0 28px;
}

/* Result cards */
.acw-results-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.acw-result-card {
    background: #f6f5fc;
    border-radius: 14px;
    padding: 18px 20px 20px;
}

.acw-result-label {
    font-size: 13px;
    color: #8884aa;
    font-weight: 500;
    margin-bottom: 10px;
}

.acw-result-amount {
    font-size: 26px;
    font-weight: 700;
    color: #a09be0;
    transition: transform 0.2s, color 0.2s;
}

.acw-result-amount.acw-pop {
    transform: scale(1.08);
    color: #7c6fe0;
}

/* Tier banner */
.acw-tier-banner {
    background: #f2f0fd;
    border: 1.5px solid #dbd7f5;
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.acw-tier-label-sm {
    font-size: 11px;
    color: #8884aa;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.acw-tier-name {
    font-size: 17px;
    font-weight: 700;
    color: #7c6fe0;
}

.acw-tier-hint {
    font-size: 13px;
    color: #6b5ee0;
    font-weight: 600;
    text-align: right;
}

/* Progress bar */
.acw-progress-bar {
    height: 4px;
    background: #e2dff8;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.acw-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a09be0, #7c6fe0);
    border-radius: 4px;
    transition: width 0.35s ease;
}

.acw-milestone-hint {
    text-align: center;
    font-size: 13px;
    color: #a09be0;
    font-weight: 500;
    padding-bottom: 4px;
}

/* Responsive */
@media (max-width: 600px) {
    .acw-card {
        padding: 24px 18px 20px;
    }
    .acw-results-row {
        grid-template-columns: 1fr;
    }
    .acw-pkg-row {
        flex-direction: column;
    }
    .acw-result-amount {
        font-size: 22px;
    }
}
