﻿/* Desktop only */
@media (min-width: 992px) {
    .navbar-area {
        position: relative;
        overflow: visible;
        z-index: 20;
    }

    /* Anchor the logo to the TOP of the navbar so it can't climb into the top bar */
    .header-float-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%); /* horizontal centering only */
        top: 0; /* <- was bottom:-36px */
        z-index: 25;
        line-height: 0;
        pointer-events: auto;
    }

    /* Control how far it dips into the banner by making the logo taller than the navbar */
    :root {
        --header-h: 120px; /* your navbar's visual height */
        --overlap: 68px; /* how much you want it to overlap into the banner */
    }

    .main-two-nav .navbar {
        min-height: var(--header-h);
    }

    .header-float-logo img {
        height: calc(var(--header-h) + var(--overlap));
        width: auto;
        display: block;
    }
}

/* Hide the floating logo on mobile (you already have a mobile logo) */
@media (max-width: 991.98px) {
    .header-float-logo {
        display: none;
    }
}

/* MOBILE LOGO SIZE */
@media (max-width: 991.98px) {
    .mobile-nav .logo img {
        max-height: 50px; /* adjust this to taste: 40–70px is common */
        width: auto;
        height: auto;
        display: block;
    }

    .mobile-nav .logo a {
        display: flex;
        align-items: center;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

/* Account Navigation */
.account-nav {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 10px;
    padding: 18px;
    background: #fff;
}

.account-nav-title {
    margin: 0 0 12px 0;
    font-size: 18px;
}

.account-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}

    .account-nav-link:hover {
        background: rgba(0,0,0,.04);
    }

    .account-nav-link.is-active {
        background: rgba(0,0,0,.07);
        font-weight: 600;
    }

/* Mobile: turn into a horizontal nav */
@media (max-width: 991px) {
    .account-nav {
        padding: 12px;
        margin-bottom: 18px;
    }

    .account-nav-title {
        display: none;
    }

    .account-nav-list {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .account-nav-link {
        white-space: nowrap;
        border: 1px solid rgba(0,0,0,.08);
        background: #fff;
    }

        .account-nav-link.is-active {
            border-color: rgba(0,0,0,.18);
        }
}
.table td:last-child,
.table th:last-child {
    white-space: nowrap;
}
/* Fix admin users table being clipped on the right by theme overflow rules */
.admin-users-table-wrap {
    width: 100%;
    overflow-x: auto !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}
/* Admin users table wrapper – prevents clipping by theme */
.admin-users-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Fixed-layout table so column widths are respected */
.admin-users-table {
    width: 100%;
    table-layout: fixed;
}

    /* Column sizing */
    .admin-users-table .col-email {
        width: 45%;
    }

    .admin-users-table .col-customer {
        width: 30%;
    }

    .admin-users-table .col-edit {
        width: 25%;
        white-space: nowrap;
    }

    /* Prevent content from forcing table wider */
    .admin-users-table th,
    .admin-users-table td {
        overflow: hidden;
        vertical-align: middle;
    }

    /* Truncate long text cleanly */
    .admin-users-table .text-truncate {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

input[readonly] {
    background-color: #f1f1f1;
    color: #6c757d;
    cursor: not-allowed;
}
/* Ensure modals appear above fixed headers */
.modal {
    z-index: 20000 !important;
}

.modal-backdrop {
    z-index: 1990 !important;
}
body.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}


/* Cookie banner */
.cookie-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 1.5rem;
    margin-inline: auto;
    max-width: 640px;
    width: calc(100% - 2rem);
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    background: #798D7A; /* new background */
    color: #fff;
    /*color: #e5e7eb;*/ /* gray-200 */
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.65);
    z-index: 9999;
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.cookie-hidden {
    display: none !important;
}

.cookie-content {
    flex: 1 1 auto;
    min-width: 0;
}

.cookie-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.cookie-text {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #f0f4f1; /* gray-300 */
}

.cookie-link {
    font-size: 0.8rem;
    text-decoration: underline;
    color: #E4F2E9; /* blue-300 */
}

.cookie-actions {
    display: flex;
    flex-direction: column;
    justify-content: center; /* centers buttons vertically */
    align-items: stretch;
    gap: 0.6rem; /* increases spacing between buttons */
    flex: 0 0 auto;
}

.cookie-btn {
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}

.cookie-btn-primary {
    background: #0F5A3A; /* forest green */
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
    box-shadow: 0 8px 20px rgba(15, 90, 58, 0.45); /* green-tinted shadow */
}

    .cookie-btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 26px rgba(15, 90, 58, 0.55);
    }

.cookie-btn-secondary {
    background: transparent;
    color: #f5f5f5;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: background 0.08s ease, color 0.08s ease, border-color 0.08s ease;
}

    .cookie-btn-secondary:hover {
        background: rgba(15, 90, 58, 0.12); /* faint green tint */
        border-color: rgba(255, 255, 255, 0.9);
    }

.cookie-close {
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: 0.25rem;
    flex: 0 0 auto;
    padding: 0.1rem;
}

    .cookie-close:hover {
        color: #e5e7eb;
    }

/* Make it stack nicely on small screens */
@media (max-width: 640px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions {
        flex-direction: row;
        justify-content: flex-end;
    }

    .cookie-btn {
        flex: 1 0 auto;
        text-align: center;
    }

    .cookie-close {
        position: absolute;
        top: 0.4rem;
        right: 0.7rem;
    }
}
/*PAYMENT OVERLAY*/
.payment-overlay {
    position: fixed;
    inset: 0;
    display: none; /* hidden by default */
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45); /* fades page behind */
    z-index: 9999; /* above everything */
    backdrop-filter: blur(2px);
}

    .payment-overlay.is-open {
        display: flex;
    }

.payment-overlay__dialog {
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px;
    width: min(420px, calc(100% - 32px));
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    text-align: center;
}

.payment-overlay__spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 4px solid rgba(0,0,0,.15);
    border-top-color: rgba(0,0,0,.65);
    animation: paymentSpin .9s linear infinite;
}

.payment-overlay__title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
}

.payment-overlay__sub {
    font-size: 14px;
    color: #555;
    line-height: 1.35;
}

@keyframes paymentSpin {
    to {
        transform: rotate(360deg);
    }
}
