@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');

#rewards-activated-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 16px;
    z-index: 10002;
    display: none;
    box-sizing: border-box;
    overflow: visible;
    font-family: Roboto, sans-serif;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.14);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.rewards-activated-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 24px 24px;
    box-sizing: border-box;
    border-radius: 16px;
    background: #fff;
}

.rewards-activated-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #2493ea;
    color: #fff;
    cursor: pointer;
    z-index: 2;
    transform: translate(50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
}

    .rewards-activated-close span {
        display: block;
        font-size: 18px;
        line-height: 1;
        font-weight: 400;
        margin-top: -1px;
    }

.rewards-activated-title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    color: #283f50;
    text-align: center;
    letter-spacing: -0.01em;
}

.rewards-activated-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
    width: 100%;
}

.rewards-activated-ring-wrap {
    width: 120px;
    height: 120px;
    margin-bottom: 12px;
}

.rewards-activated-ring {
    width: 120px;
    height: 120px;
    display: block;
}

.rewards-activated-ring--visits .rewards-activated-segment-track {
    fill: none;
    stroke: none;
}

.rewards-activated-ring--visits .rewards-activated-segment {
    fill: #fff;
    stroke: #34c759;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.rewards-activated-ring--visits .rewards-activated-segment.is-filled {
    fill: #34c759;
    stroke: #34c759;
}

.rewards-activated-ring--visits .rewards-activated-divider {
    stroke: #34c759;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

.rewards-activated-ring--visits .rewards-activated-divider.is-filled-divider {
    stroke: #ffffff;
}

.rewards-activated-ring--spend {
    transform: rotate(-90deg);
}

.rewards-activated-ring__track {
    fill: none;
    stroke: #ececec;
    stroke-width: 8;
}

.rewards-activated-ring__fill {
    fill: none;
    stroke: #2493ea;
    stroke-width: 8;
    stroke-linecap: round;
}

.rewards-activated-count--spend {
    font-size: 22px;
}

.rewards-activated-count-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rewards-activated-count {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: #283f50;
    letter-spacing: -0.02em;
}

.rewards-activated-count-label {
    margin: 4px 0 0;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    color: #8e8e93;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rewards-activated-reward {
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
    color: #2493ea;
    text-align: center;
    letter-spacing: -0.01em;
}

.rewards-activated-reward-icon {
    width: 14px;
    height: 14px;
    display: block;
    flex-shrink: 0;
}

.rewards-activated-hint {
    margin: 0 0 22px;
    max-width: 300px;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.55;
    color: #8e8e93;
    text-align: center;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rewards-activated-actions {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

.rewards-activated-btn {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 12px;
    border-radius: 8px;
    font-family: Roboto, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.rewards-activated-btn--back {
    border: 1px solid #e4e4e4;
    background: #fff;
    color: #283f50;
}

    .rewards-activated-btn--back:hover {
        background: #f9fafb;
    }

.rewards-activated-btn--track {
    border: none;
    background: #2493ea;
    color: #fff;
}

    .rewards-activated-btn--track:hover {
        background: #1f84d4;
    }

@media (max-width: 420px) {
    #rewards-activated-modal {
        width: calc(100vw - 24px);
        border-radius: 16px;
    }

    .rewards-activated-inner {
        padding: 24px 18px 20px;
        border-radius: 16px;
    }

    .rewards-activated-actions {
        flex-direction: column;
    }

    .rewards-activated-btn {
        width: 100%;
    }
}
