@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');

#earn-rewards-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 408px;
    max-width: calc(100vw - 32px);
    height: auto;
    min-height: 0;
    background: #fff;
    border-radius: 21.76px;
    z-index: 10000;
    display: none;
    box-sizing: border-box;
    overflow: visible;
    font-family: Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.earn-rewards-modal-inner {
    position: relative;
    width: 408px;
    height: auto;
    min-height: 0;
    padding: 28px 20px 28px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border-radius: 21.76px;
    overflow: visible;
    background: #fff;
}

.earn-rewards-modal-close {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 35px;
    height: 35px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #2493ea;
    color: #fff;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
}

.earn-rewards-modal-close span {
    font-size: 24px;
    line-height: 1;
    font-weight: 400;
    margin-top: -2px;
}

.earn-rewards-hero-block {
    position: relative;
    width: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    flex-shrink: 0;
    overflow: visible;
    line-height: 0;
}

.earn-rewards-hero-gift {
    width: 168px;
    height: auto;
    aspect-ratio: 291 / 72;
    display: block;
    margin: 0;
    object-fit: contain;
    object-position: top center;
}

.earn-rewards-heading {
    text-align: center;
    margin: 0;
    width: 100%;
    line-height: normal;
}

.earn-rewards-heading-line {
    margin: 0 0 2px;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    color: #000;
}

.earn-rewards-heading-merchant-row {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 100%;
    padding-right: 24px;
}

.earn-rewards-heading-merchant {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 38px;
    color: #7117ba;
    letter-spacing: -0.02em;
}

.earn-rewards-heading-sparkle {
    position: absolute;
    top: -3px;
    right: 0;
    width: 20px;
    height: 27px;
    display: block;
    object-fit: contain;
    pointer-events: none;
}

.earn-rewards-options {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 17.31px;
    width: 367.744px;
    max-width: 100%;
    margin: 0;
    flex-shrink: 0;
}

.earn-rewards-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 367.744px;
    height: 145.792px;
    padding: 16px 14px 16px 12px;
    border: none;
    border-radius: 16px;
    box-sizing: border-box;
    cursor: pointer;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.earn-rewards-option--spend {
    background: #f0fdf4;
}

.earn-rewards-option--visits {
    background: #f5f3ff;
}

.earn-rewards-option-art {
    flex-shrink: 0;
    width: 104px;
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.earn-rewards-option-art img {
    width: 100%;
    height: 100%;
    max-width: 104px;
    max-height: 104px;
    display: block;
    object-fit: contain;
}

.earn-rewards-option-body {
    flex: 1;
    min-width: 0;
}

.earn-rewards-option-title-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 6px;
}

.earn-rewards-option-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
}

.earn-rewards-option-title-word {
    display: inline-block;
    vertical-align: top;
}

.earn-rewards-option-title-mark {
    display: block;
    width: 28px;
    height: 2px;
    margin-top: 2px;
    border-radius: 1px;
}

.earn-rewards-option--spend .earn-rewards-option-title-mark {
    background: #15803d;
}

.earn-rewards-option--visits .earn-rewards-option-title-mark {
    background: #7117ba;
}

.earn-rewards-option--spend .earn-rewards-option-title {
    color: #15803d;
}

.earn-rewards-option--visits .earn-rewards-option-title {
    color: #7117ba;
}

.earn-rewards-option-title-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.earn-rewards-option-title-icon--spend {
    background: #dcfce7;
}

.earn-rewards-option-title-icon--visits {
    background: #ede9fe;
}

.earn-rewards-option-title-icon img {
    width: 14px;
    height: 14px;
    display: block;
}

.earn-rewards-option-subtitle {
    margin: 0 0 10px;
    max-width: 128px;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #6b7280;
}

.earn-rewards-option-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    line-height: 14px;
    white-space: nowrap;
}

.earn-rewards-option--spend .earn-rewards-option-tag {
    background: #dcfce7;
    color: #15803d;
}

.earn-rewards-option--visits .earn-rewards-option-tag {
    background: #ede9fe;
    color: #7117ba;
}

.earn-rewards-option-tag img {
    width: 12px;
    height: 12px;
    display: block;
    flex-shrink: 0;
}

.earn-rewards-option-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.earn-rewards-option-arrow img {
    width: 10px;
    height: 16px;
    display: block;
}


@media (max-width: 440px) {
    #earn-rewards-modal,
    .earn-rewards-modal-inner {
        width: calc(100vw - 24px);
        padding: 24px 16px 24px;
        gap: 16px;
    }

    .earn-rewards-hero-block {
        width: calc(100% - 32px);
        max-width: 290px;
    }

    .earn-rewards-options {
        width: 100%;
    }

    .earn-rewards-option {
        width: 100%;
        height: auto;
        min-height: 130px;
        padding: 14px 10px;
    }

    .earn-rewards-option-art {
        width: 88px;
        height: 88px;
    }

    .earn-rewards-option-art img {
        max-width: 88px;
        max-height: 88px;
    }

    .earn-rewards-hero-gift {
        width: min(168px, 100%);
    }

    .earn-rewards-heading-merchant {
        font-size: 26px;
        line-height: 32px;
    }
}
