/* =======================================
   SX Site Custom
   ======================================= */
   
 /* === SareeXchange Filter Tabs – Theme Override === */

.sx-filter-bar {
    margin: 0 0 20px;
}

.sx-filter-label {
    font-weight: 600;
    margin-right: 10px;
    color: #222;
}

.sx-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Inactive tab */
.sx-filter-tab {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #ccc;
    background: #f5f5f5 !important;
    color: #222 !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

/* Active tab */
.sx-filter-tab.active {
    background: #222222 !important;
    color: #fff !important;
    border-color: #222222 !important;
}

/* Hover */
.sx-filter-tab:hover {
    background: #eaeaea;
}

/* Mobile scroll */
@media (max-width: 768px) {
    .sx-filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

.aps-status {
    max-width: 700px;
    margin: 40px auto;
    padding: 24px;
    border-radius: 8px;
    background: #fafafa;
}

.aps-pending {
    border-left: 5px solid #27ae60;   /* green */
    background: #eefaf3;             /* light green */
}


.aps-action {
    border-left: 5px solid #e74c3c;
    background: #fff3f3;
}

.aps-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 18px;
    background: #9335B6;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}

.aps-warning {
    border-left: 5px solid #f39c12;
    background: #fff8e6;
}

.aps-btn-secondary {
    background: #f39c12;
}

.aps-btn,
.aps-btn:visited {
    color: #ffffff !important;
}

.aps-btn:hover,
.aps-btn:focus {
    color: #ffffff !important;
    text-decoration: none;
}

@media (max-width: 768px) {
    .sx-filter-tab {
        padding: 4px 10px !important;  /* ↓ height & width */
        font-size: 12px !important;    /* ↓ text size */
        line-height: 1.2;
    }
	
}


/* =======================================
   Drape Again - Mobile Bottom Navigation
   ======================================= */

.sx-mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .sx-mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99999;
        display: flex;
        align-items: center;
        justify-content: space-around;
        gap: 4px;
        padding: 8px 5px calc(8px + env(safe-area-inset-bottom));
        background: #ffffff;
        border-top: 1px solid #eeeeee;
        box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.06);
    }

    .sx-mobile-bottom-nav a {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 3px 1px;
        color: #555555;
        font-size: 10px;
        line-height: 1.2;
        font-weight: 500;
        text-align: center;
        text-decoration: none;
    }

    .sx-mobile-bottom-nav a:hover,
    .sx-mobile-bottom-nav a:focus {
        color: #9335B6;
        text-decoration: none;
    }

    .sx-mobile-bottom-nav .sx-nav-icon {
        font-size: 22px;
        line-height: 1;
    }

    body {
        padding-bottom: 70px;
    }
}

/* Filter & Sort panel */
.sx-filter-bar { margin: 0 0 20px; }
.sx-filter-open { display:inline-flex; align-items:center; gap:9px; padding:10px 16px; border:1px solid #ddd; border-radius:8px; background:#fff; color:#222; font-size:14px; font-weight:600; cursor:pointer; }
.sx-filter-open-icon { font-size:18px; line-height:1; }
.sx-filter-count { color:#9335B6; }
.sx-filter-overlay[hidden], .sx-filter-panel[hidden] { display:none !important; }
.sx-filter-overlay { position:fixed; inset:0; z-index:100000; background:rgba(0,0,0,.48); }
.sx-filter-panel { position:fixed; z-index:100001; top:50%; left:50%; transform:translate(-50%,-50%); width:min(520px, calc(100vw - 32px)); max-height:min(80vh, 720px); display:flex; flex-direction:column; background:#fff; color:#222; border-radius:14px; box-shadow:0 12px 40px rgba(0,0,0,.22); overflow:hidden; }
.sx-filter-panel-header,.sx-filter-panel-footer { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; }
.sx-filter-panel-header { border-bottom:1px solid #eee; }
.sx-filter-panel-header h3 { margin:0; font-size:20px; }
.sx-filter-close { border:0; background:transparent; color:#333; font-size:28px; line-height:1; cursor:pointer; }
.sx-filter-panel-body { padding:6px 20px 18px; overflow-y:auto; }
.sx-filter-group { padding:14px 0; border-bottom:1px solid #eee; }
.sx-filter-group h4 { margin:0 0 10px; font-size:14px; font-weight:700; }
.sx-filter-options { display:flex; flex-wrap:wrap; gap:8px; }
.sx-filter-tab { padding:8px 14px; border:1px solid #ccc; border-radius:20px; background:#f7f7f7 !important; color:#222 !important; font-size:13px; font-weight:500; cursor:pointer; }
.sx-filter-tab.active { background:#222 !important; border-color:#222 !important; color:#fff !important; }
.sx-filter-panel-footer { justify-content:flex-end; gap:10px; border-top:1px solid #eee; }
.sx-filter-reset,.sx-filter-search { padding:10px 18px; border-radius:7px; font-weight:600; cursor:pointer; }
.sx-filter-reset { border:1px solid #ccc; background:#fff; color:#333; }
.sx-filter-search { border:1px solid #9335B6; background:#9335B6; color:#fff; }
body.sx-filter-opened { overflow:hidden; }
@media(max-width:768px) {
 .sx-filter-panel { top:auto; bottom:0; left:0; transform:none; width:100%; max-width:none; max-height:88vh; border-radius:16px 16px 0 0; padding-bottom:env(safe-area-inset-bottom); }
 .sx-filter-panel-header,.sx-filter-panel-footer { padding:14px 18px; }
 .sx-filter-panel-body { padding:4px 18px 14px; }
 .sx-filter-tab { padding:8px 13px !important; font-size:13px !important; }
 .sx-filter-open { width:100%; justify-content:center; }
}
