/* ACC_SWITCH — أنماط الواجهة */

.alsaad-locale-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #1d2327;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
}

.alsaad-locale-trigger:hover { border-color: #2271b1; }
.alsaad-trigger-sep { color: #c3c4c7; }
.alsaad-trigger-symbol { color: #646970; margin-inline-start: 2px; }
.alsaad-trigger-chevron { font-size: 10px; }

/* Backdrop + Panel */
.alsaad-panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 99990;
}

.alsaad-panel {
    position: fixed;
    top: 50%;
    inset-inline-start: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, 92vw);
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
    z-index: 99991;
    padding: 16px;
}

/* RTL: عكس translate في الاتجاه */
.alsaad-panel--rtl { transform: translate(50%, -50%); }

.alsaad-panel-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 12px;
}

.alsaad-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #646970;
    border-bottom: 2px solid transparent;
}

.alsaad-tab--active {
    color: #2271b1;
    border-bottom-color: #2271b1;
    font-weight: 600;
}

.alsaad-country-search {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 10px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    box-sizing: border-box;
}

.alsaad-country-list,
.alsaad-lang-list,
.alsaad-currency-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.alsaad-country-item,
.alsaad-lang-item,
.alsaad-currency-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f6f7f7;
    cursor: pointer;
    font-size: 14px;
    text-align: start;
}

.alsaad-country-item:hover,
.alsaad-lang-item:hover,
.alsaad-currency-item:hover { background: #eef4fb; }

.alsaad-selected {
    border-color: #2271b1 !important;
    background: #eef4fb !important;
    font-weight: 600;
}

.alsaad-country-code,
.alsaad-currency-rate { margin-inline-start: auto; color: #646970; font-size: 12px; }

.alsaad-undo-btn {
    margin-top: 12px;
    width: 100%;
    padding: 10px;
    border: 1px solid #dba617;
    background: #fcf9e8;
    border-radius: 8px;
    cursor: pointer;
}

/* Geo Banner */
.alsaad-geo-banner {
    position: fixed;
    inset-block-end: 16px;
    inset-inline: 16px;
    margin-inline: auto;
    max-width: 560px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #1d2327;
    color: #f0f0f1;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
    z-index: 99989;
}

.alsaad-geo-flag { font-size: 22px; }
.alsaad-geo-text { flex: 1; font-size: 14px; }

.alsaad-geo-accept {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: #2271b1;
    color: #fff;
    cursor: pointer;
}

.alsaad-geo-reject {
    padding: 8px 12px;
    border: none;
    background: none;
    color: #c3c4c7;
    cursor: pointer;
    text-decoration: underline;
}

/* Footer locale */
.alsaad-footer-locale { text-align: center; padding: 16px 0; }
.alsaad-footer-locale-link {
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
    font-size: 14px;
}

/* Zero-Reload animation */
.alsaad-price-updating {
    transition: opacity .2s ease;
    opacity: .4;
}

@media (max-width: 600px) {
    .alsaad-hide-mobile { display: none; }
}
