/* ── TOGGLE TAB — fixed on right edge ── */
.qa-tab {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #002E45;
    color: #FFFFFF;
    padding: 16px 10px;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    transition: background 0.2s ease, padding 0.2s ease, box-shadow 0.2s ease;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
    user-select: none;
}

.qa-tab:hover {
    background: #3857F0;
    padding: 20px 10px;
    box-shadow: -6px 0 20px rgba(56, 87, 240, 0.3);
}

.qa-tab.active {
    background: #3857F0;
}

.qa-tab-icon {
    font-size: 14px;
    color: #FFFFFF;
}

.qa-tab-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 12px;
    color: #FFFFFF;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* ── OVERLAY ── */
.qa-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1041;
    backdrop-filter: blur(1px);
    transition: opacity 0.25s ease;
    opacity: 0;
}

.qa-overlay.active {
    display: block;
    opacity: 1;
}

/* ── SLIDE-IN PANEL ── */
.qa-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #f8fafc;
    border-left: 1px solid #e8edf2;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    z-index: 1042;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 12px 20px 12px;
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qa-panel.open {
    right: 0;
}

/* ── PANEL HEADER ── */
.qa-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 4px 14px 4px;
    border-bottom: 1px solid #e8edf2;
    margin-bottom: 4px;
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 1;
}

.qa-panel-title {
    font-size: 15px;
    color: #002E45;
}

.qa-close-btn {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #002E45;
    opacity: 0.5;
    font-size: 14px;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.qa-close-btn:hover {
    opacity: 1;
    background: #e8edf2;
}

/* ── REPORTS REMAINING PILL ── */
.qa-reports-pill {
    background: #002E45;
    color: #FFFFFF;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    text-align: center;
    letter-spacing: 0.02em;
}

/* ── CARDS ── */
.qa-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1.5px solid #e8edf2;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.qa-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.qa-card-header:hover {
    background: #f8fafc;
}

.qa-card-title {
    font-size: 13px;
    color: #002E45;
}

.qa-chevron {
    font-size: 11px;
    color: #002E45;
    opacity: 0.5;
}

/* ── CARD BODY ── */
.qa-card-body {
    padding: 4px 16px 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.25s ease, padding 0.25s ease;
}

.qa-card-body.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* ── QUICK ACTION LINKS ── */
.qa-action-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    font-size: 13px;
    color: #002E45;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

.qa-action-link:hover {
    color: #3857F0;
}

.qa-plus {
    font-size: 15px;
    font-weight: 600;
    color: #002E45;
    line-height: 1;
    flex-shrink: 0;
}

.qa-action-link:hover .qa-plus {
    color: #3857F0;
}

/* ── RECENT REPORT LINKS ── */
.qa-report-link {
    display: block;
    padding: 7px 0;
    font-size: 13px;
    color: #002E45;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.qa-report-link:hover {
    color: #3857F0;
}

/* ── SEE MORE ── */
.qa-see-more {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #002E45;
    opacity: 0.5;
    padding-top: 8px;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.qa-see-more:hover {
    opacity: 1;
    color: #3857F0;
}

/* ── EMPTY STATE ── */
.qa-empty {
    font-size: 13px;
    color: #6c757d;
    padding: 4px 0;
    margin: 0;
}





/* Right side (order.html) resized for the access cart panel */
/* Tighten spacing for Report Cart address list */
.access-cart-panel .order-cart-item {
    gap: 10px !important;
    padding: 12px 0 !important;
}

/* Make long addresses wrap cleanly */
.access-cart-panel .order-cart-item p {
    word-break: break-word;
}

/* Magnify and Bin icon styling */
.access-cart-panel .order-cart-magnify,
.access-cart-panel .order-cart-remove {
    height: 34px;
    width: 34px;
    min-width: 34px;
}

/* Confirm Order button styling */
.access-cart-confirm .btn {
    width: 100% !important;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #3857F0 !important;
    border-radius: 18px !important;
    background: #3857F0 !important;
    color: #FFFFFF !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

/* Lift button on hover */
.access-cart-confirm .btn:hover {
    background: #2645DD !important;
    border-color: #2645DD !important;
    color: #FFFFFF !important;
    box-shadow: 0 10px 22px rgba(56, 87, 240, 0.22);
    transform: translateY(-1px);
}



/* Access Cart shows on mobile */
@media (max-width: 768px) {
    .qa-tab,
    .qa-panel,
    .qa-overlay {
        display: flex !important;
    }

    .qa-overlay {
        display: none !important;
    }

    .qa-overlay.active {
        display: block !important;
    }

    .qa-panel {
        width: min(320px, 100vw) !important;
        right: calc(-1 * min(320px, 100vw)) !important;
    }

    .qa-panel.open {
        right: 0 !important;
    }
}
