/* =======================================
   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; }
}

/* ======================================================
   DRAPE AGAIN: FLOATING CART ICON
   ====================================================== */

.sx-floating-cart {
    position: fixed;
    right: 24px;
    top: 10%;
    bottom: auto;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1677e8;
    color: #ffffff !important;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    text-decoration: none !important;
    z-index: 99990;
    transition: transform 0.2s ease, background 0.2s ease;
}

.sx-floating-cart:hover {
    background: #075bb5;
    color: #ffffff !important;
    transform: scale(1.07);
}

.sx-floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 23px;
    height: 23px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e53935;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .sx-floating-cart {
        position: fixed;
        top: 20%;
        bottom: auto;
        right: 16px;
        left: auto;
        width: 54px;
        height: 54px;
        transform: translateY(-50%);
    }

    .sx-floating-cart:hover {
        transform: translateY(-50%) scale(1.07);
    }

    .sx-floating-cart svg {
        width: 26px;
        height: 26px;
    }
}

/* Constrain WooCommerce 'Pay for Order' page to a centered desktop card */
@media (min-width: 922px) {
    body.woocommerce-order-pay .site-main {
        display: flex;
        justify-content: center;
    }
    
    body.woocommerce-order-pay form#order_review {
        width: 100%;
        max-width: 650px;
        margin: 40px auto;
        padding: 35px;
        border: 1px solid var(--ast-border-color, #e2e8f0);
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    }
    
    /* Neaten up the payment methods box inside the card */
    body.woocommerce-order-pay #payment {
        background: #fcfcfc;
        border-radius: 8px;
    }
}

/* Drape Again - Asgaros Forum Policy Tables */
.post-wrapper .post-message table {
    width: 100% !important;
    max-width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
}

.post-wrapper .post-message table th,
.post-wrapper .post-message table td {
    border: 1px solid #e5d0f2;
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: break-word;
    word-break: normal;
}

.post-wrapper .post-message table th {
    font-weight: 600;
}

.post-wrapper .post-message table th:first-child,
.post-wrapper .post-message table td:first-child {
    width: 56px;
    white-space: nowrap;
}

.post-wrapper .post-message table th:nth-child(2),
.post-wrapper .post-message table td:nth-child(2) {
    width: 42%;
}

.post-wrapper .post-message table p {
    margin: 0;
}

@media (max-width: 600px) {
    .post-wrapper .post-message table {
        font-size: 14px;
    }
}

