@import url("app.css");

.Joy__Way-To-Redeem {
    margin: 0 auto;
    width: calc(100vw);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 65px 24px;
}

.Joy-Redeem__List {
    margin: 50px auto 30px;
    display: flex;
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.Joy-Redeem__Item {
    position: relative;
    display: flex;
    padding: 16px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex: 1 0 0;
    border-radius: 12px;
    background: #F6F6F6;
    cursor: pointer;
    transition: all .2s ease-in-out;
    min-height: 100%;
}

/* Card style hover effects */
.Joy-Redeem__Item--card-style-none:hover {
    transform: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

.Joy-Redeem__Item--card-style-subtle-lift:hover {
    transform: translateY(-3px) !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

.Joy-Redeem__Item--card-style-dramatic-lift:hover {
    transform: translateY(-6px) !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

.Joy-Redeem__Item--card-style-inverted:hover {
    transform: translateY(-3px) !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    background: var(--joy-way-to-redeem-program-name-color) !important;
}

.Joy-Redeem__Item--card-style-inverted:hover .Joy-Redeem__Item-Title {
    color: var(--joy-way-to-redeem-card-color) !important;
}

.Joy-Redeem__Item--card-style-inverted:hover .Joy-Way-To-Redeem__Item-SubTitle {
    color: var(--joy-way-to-redeem-card-color) !important;
}

.Joy-Redeem__Item--card-style-strong-shadow:hover {
    transform: translateY(0) scale(1.02) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2), 0 6px 15px rgba(0, 0, 0, 0.15) !important;
}

.Joy-Redeem__Item--card-style-scale-only:hover {
    transform: translateY(0) scale(1.03) !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.Joy-Redeem__Item--card-style-minimal:hover {
    transform: translateY(-2px) !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

/* Floating shadow effect (original default) */
.Joy-Redeem__Item--card-style-none:hover {
    transform: translateY(-2px) scale(1.005) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 1px 6px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease-in-out !important;
}

/* Default hover state (fallback) - only applies when no card style is selected */
.Joy-Redeem__Item:not([class*="card-style"]):hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 1px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.Joy-Redeem__Item-Number {
    font-weight: 700;
    display: inline;
}

.Joy-Way-To-Redeem__Item-SubTitle {
    margin: 0;
}

.Joy-Redeem__Item-Icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.Joy-Redeem__Item-Icon svg,
.Joy-Redeem__Item-Icon img.Joy-Redeem__Chevron {
    min-width: fit-content;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 56px;
    max-height: 56px;
    object-fit: cover;
}

.Joy-Redeem__Item-Icon--Arrow:not(.Joy-Redeem__Item-Icon--hidden) svg {
    fill: #999;
    cursor: pointer;
}

.Joy-Redeem__Item-Icon--hidden svg path {
    display: none;
}

.Joy-Redeem__Item-Text .Joy-Way-To-Redeem__Item-SubTitle {
    text-align: center;
    color: #000;
    line-height: normal;
    font-size: 14px;
}

.Joy-Redeem__Item-Text .Joy-Redeem__Item-Title {
    text-align: center;
    margin-top: 0;
    line-height: 16px;
    margin-bottom: 12px;
}

.Joy-Redeem__Item-Title {
    font-size: 16px;
    font-weight: 650;
    line-height: normal;
    margin: 0;
}

.Joy-Redeem__Item-Icon {
    .Avada-Joy_ColorTRigger {
        fill: var(--joy-way-to-redeem-icon-color);
    }
}

.Joy-Redeem__Item-IconCustom {
    min-height: 56px;
    height: auto;
}

.Joy-Redeem__Button-ShopNow {
    padding: 10px;
    width: 220px;
    font-weight: 500;
    text-decoration: none;
    display: block;
    text-align: center;
    margin: 80px auto 0;
}

.Joy-WayRedeem__ShowMore {
    display: none;
}

@media only screen and (max-width: 460px) {
    .Joy__Way-To-Redeem {
        padding: 24px;
    }

    .Joy-Redeem__List {
        gap: 16px;
        margin: 0 auto;
    }

    .Joy-Redeem__Item-Title {
        font-size: 14px;
    }

    .Joy-Redeem__Item {
        flex-direction: row;
        align-items: start;
        justify-content: start;
    }

    .Joy-Redeem__Item-Icon {
        width: 56px;
        height: 56px;
    }

    .Joy-Redeem__Item-Icon svg,
    .Joy-Redeem__Item-IconCustom {
        width: 50px;
        height: auto;
        min-height: unset;
        min-width: unset;
    }

    .Joy-Redeem__Item-Icon img.Joy-Redeem__Chevron {
        display: none;
    }

    .Joy-WayRedeem__ShowMore {
        text-align: center;
        display: unset;
    }

    .Joy-WayRedeem__ShowMore button {
        background: transparent;
        font-size: 14px;
        border: none;
        padding: 10px 20px;
        cursor: pointer;
        color: var(--joy-way-to-redeem-show-more-color, '#000000');
    }

    .Joy-Redeem__Item-Text .Joy-Redeem__Item-Title,
    .Joy-Redeem__Item-Text .Joy-Way-To-Redeem__Item-SubTitle {
        text-align: left;
    }

    /* Apply card style effects permanently on mobile */
    .Joy-Redeem__Item--card-style-subtle-lift,
    .Joy-Redeem__Item--card-style-dramatic-lift,
    .Joy-Redeem__Item--card-style-inverted,
    .Joy-Redeem__Item--card-style-strong-shadow,
    .Joy-Redeem__Item--card-style-scale-only,
    .Joy-Redeem__Item--card-style-minimal {
        transform: translateY(-3px) !important;
        /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 1px 6px rgba(0, 0, 0, 0.1) !important;*/
    }

    .Joy-Redeem__Item--card-style-inverted {
        background: var(--joy-way-to-redeem-program-name-color) !important;
    }

    .Joy-Redeem__Item--card-style-inverted .Joy-Redeem__Item-Title {
        color: var(--joy-way-to-redeem-card-color) !important;
    }

    .Joy-Redeem__Item--card-style-inverted .Joy-Way-To-Redeem__Item-SubTitle {
        color: var(--joy-way-to-redeem-card-color) !important;
    }
}

/* Force remove box shadow for lift effects */
.Joy-Redeem__Item--card-style-subtle-lift:hover,
.Joy-Redeem__Item--card-style-dramatic-lift:hover,
.Joy-Redeem__Item--card-style-inverted:hover,
.Joy-Redeem__Item--card-style-minimal:hover {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}
