/* رِکس دکمه‌های فوتر - استایل سمت سایت */

.rexqa-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    direction: rtl;
}

.site-footer .footer-columns .sidebox .side-content .rexqa-buttons {
    margin: 0;
    padding: 0;
}

.rexqa-buttons .rexqa-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.rexqa-buttons .rexqa-btn::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--rexqa-color, #ff9800);
    opacity: .85;
    transition: width .25s ease;
}

.rexqa-buttons .rexqa-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--rexqa-color, #ff9800);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.rexqa-buttons .rexqa-btn:hover {
    transform: translateY(-2px);
    border-color: var(--rexqa-color, #ff9800);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

.rexqa-buttons .rexqa-btn:hover::after {
    opacity: .07;
}

.rexqa-buttons .rexqa-btn:hover::before {
    width: 5px;
}

.rexqa-buttons .rexqa-icon {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--rexqa-color, #ff9800) 16%, transparent);
    color: var(--rexqa-color, #ff9800);
    font-size: 20px;
    line-height: 1;
    transition: transform .25s ease, background .25s ease;
}

@supports not (background: color-mix(in srgb, red 10%, transparent)) {
    .rexqa-buttons .rexqa-icon {
        background: rgba(255, 255, 255, .08);
    }
}

.rexqa-buttons .rexqa-btn:hover .rexqa-icon {
    transform: scale(1.06);
}

.rexqa-buttons .rexqa-icon i {
    color: var(--rexqa-color, #ff9800);
}

.rexqa-buttons .rexqa-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1 1 auto;
    min-width: 0;
}

.rexqa-buttons .rexqa-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--rexqa-color, #ff9800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rexqa-buttons .rexqa-sub {
    font-size: 11px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rexqa-buttons .rexqa-arrow {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, .35);
    transition: transform .25s ease, color .25s ease;
}

.rexqa-buttons .rexqa-btn:hover .rexqa-arrow {
    color: var(--rexqa-color, #ff9800);
    transform: translateX(4px);
}

/* حالت روشن سایت */
body:not(.dark) .rexqa-buttons .rexqa-btn {
    background: #fff;
    border-color: rgba(0, 0, 0, .06);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

body:not(.dark) .rexqa-buttons .rexqa-sub {
    color: rgba(0, 0, 0, .5);
}

body:not(.dark) .rexqa-buttons .rexqa-arrow {
    color: rgba(0, 0, 0, .3);
}

/* بسته‌ی دکمه‌ها هرگز بیرون از فوتر نمایش داده نمی‌شود */
#rexqa-pending {
    display: none !important;
}

@media (max-width: 991px) {
    .rexqa-buttons .rexqa-btn {
        padding: 11px 12px;
    }

    .rexqa-buttons .rexqa-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .rexqa-buttons .rexqa-title {
        font-size: 13px;
    }
}
