.cashback-component {
    font-family: inherit;
}

.cashback-fixed-btn {
    position: fixed;
    left: 0;
    top: 20%;
    transform: translateY(-20%);
    background: linear-gradient(135deg, var(--text_1) 0%, var(--text_1) 100%);
    color: var(--text_2);
    padding: 20px 12px;
    border: none;
    border-radius: 0 16px 16px 0;
    cursor: pointer;
    z-index: 1050;
    box-shadow: 4px 0 20px rgba(211, 84, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    writing-mode: sideways-lr;
    text-orientation: mixed;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    /* border-left: 4px solid #fff; */
}

.cashback-fixed-btn:hover {
    padding-left: 15px;
    /* background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); */
    box-shadow: 6px 0 25px rgba(211, 84, 0, 0.4);
}

.cashback-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cashback-modal {
    background: var(--background_2);
    max-width: 500px;
    width: 100%;
    padding: 50px 40px 40px;
    border-radius: 32px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.cashback-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    /* background: linear-gradient(90deg, #f39c12, #d35400); */
    background: linear-gradient(90deg, var(--text_1), var(--text_5));
}

.cashback-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--background_5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text_3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cashback-close-btn:hover {
    background: var(--background_4);
    color: var(--text_4);
    transform: rotate(90deg);
}

.cashback-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--background_4);
    color: var(--text_1);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px;
}

.cashback-title {
    color: var(--text_4);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
    font-family: 'Kaisei Opti';
}

.cashback-desc {
    font-size: 1.125rem;
    color: var(--text_3);
    margin-bottom: 32px;
    line-height: 1.5;
}

.cashback-value-card {
    /* background: linear-gradient(135deg, var(--background_4) 0%, var(--background_3) 100%); */
    padding: 32px;
    border-radius: 24px;
    /* margin-bottom: 32px; */
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text_1);
    /* box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2); */
}

.cashback-percentage {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    /* background: linear-gradient(to bottom, var(--text_4), var(--text_5)); */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
}

.cashback-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
    color: #94a3b8;
}

.cashback-policy-box {
    background: var(--background_4);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    /* text-align: left; */
    /* border-left: 4px solid var(--border_1); */
}

.cashback-policy-box p {
    font-size: 0.9375rem;
    color: var(--text_3);
    line-height: 1.6;
    margin: 0;
}

.cashback-footer-text {
    font-size: 1.1rem;
    color: var(--text_1);
    font-weight: 600;
}

/* RTL Specifics */
[dir="rtl"] .cashback-fixed-btn {
    right: 0;
    left: auto;
    border-radius: 16px 0 0 16px;
    box-shadow: 4px 0 20px rgba(211, 84, 0, 0.3);
}

[dir="rtl"] .cashback-close-btn {
    right: auto;
    left: 20px;
}

/* [dir="rtl"] .cashback-policy-box {
    text-align: right;
    border-left: none;
    border-right: 4px solid #e2e8f0;
} */

@media (max-width: 640px) {
    .cashback-modal {
        padding: 40px 24px 32px;
        margin: 0 16px;
    }
    .cashback-title {
        font-size: 1.75rem;
    }
    .cashback-percentage {
        font-size: 3.5rem;
    }
}
