.envoy-cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 20px;
    z-index: 999999;
    font-family: 'Poppins', Arial, sans-serif;
    padding: 0 20px;
}

.envoy-cookie-banner {
    margin: 0 auto;
    max-width: 1180px;
    background: #fff;
    border: 1px solid #e5eaf2;
    box-shadow:
        0 8px 30px rgba(15, 34, 61, 0.18),
        0 2px 8px rgba(15, 34, 61, 0.08);
    border-radius: 18px;
    padding: 22px 26px;
}

.envoy-cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.envoy-cookie-copy { flex: 1 1 auto; }
.envoy-cookie-copy h2 {
    margin: 0 0 7px;
    color: #0b1f3a;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
}

.envoy-cookie-copy p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
}

#envoy-cookie-policy-link {
    display: inline-block;
    margin-top: 7px;
    color: #006eff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.envoy-cookie-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.envoy-cookie-btn {
    border: 1px solid #006eff;
    border-radius: 8px;
    padding: 12px 18px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.envoy-cookie-btn.primary { background: #006eff; color: #fff; }
.envoy-cookie-btn.secondary { background: #fff; color: #006eff; }
.envoy-cookie-preferences {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4,15,31,.58);
}

.envoy-cookie-preferences-box {
    width: min(650px,100%);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.24);
    padding: 26px;
}

.envoy-cookie-preferences-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.envoy-cookie-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #006eff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.envoy-cookie-preferences-header h2 {
    margin: 0;
    color: #0b1f3a;
    font-size: 24px;
}

.envoy-cookie-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f3f6fa;
    color: #0b1f3a;
    font-size: 24px;
    cursor: pointer;
}

.envoy-cookie-preferences-intro {
    margin: 12px 0 18px;
    color: #596579;
    font-size: 13px;
    line-height: 1.65;
}

.envoy-cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0;
    border-top: 1px solid #e8edf4;
}

.envoy-cookie-category h3 {
    margin: 0 0 4px;
    color: #0b1f3a;
    font-size: 15px;
}

.envoy-cookie-category p {
    margin: 0;
    color: #657083;
    font-size: 12px;
    line-height: 1.55;
}

.envoy-cookie-always-on {
    color: #1c7c4c;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.envoy-cookie-switch {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
}

.envoy-cookie-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.envoy-cookie-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd3df;
    cursor: pointer;
}

.envoy-cookie-switch span:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    transition: .2s ease;
}

.envoy-cookie-switch input:checked + span { background: #006eff; }
.envoy-cookie-switch input:checked + span:before { transform: translateX(20px); }
.envoy-cookie-preferences-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
}

.envoy-cookie-preferences-link {
    border: 0;
    background: transparent;
    color: #006eff;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
}

@media (max-width: 760px) {
    .envoy-cookie-banner {
        padding: 20px;
        border-radius: 16px;
    }

    .envoy-cookie-content {
        display: block;
    }

    .envoy-cookie-actions {
        margin-top: 16px;
        justify-content: flex-start;
    }

    .envoy-cookie-btn {
        flex: 1 1 auto;
        min-width: 130px;
    }
}
/* =========================================================
   ENVOY XTECH COOKIE CONSENT — BUTTON POLISH
   ========================================================= */

/* Base style for all cookie consent buttons */
.envoy-cookie-consent .envoy-cookie-btn {
    border: 1px solid #006eff !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease !important;
}

.envoy-cookie-consent .envoy-cookie-copy h2 {
    font-size: 23px !important;
}

.envoy-cookie-consent .envoy-cookie-copy p {
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* ---------------------------------------------------------
   REJECT + MANAGE PREFERENCES
   Normal state
   --------------------------------------------------------- */

.envoy-cookie-consent .envoy-cookie-btn.secondary {
    background: #ffffff !important;
    color: #006eff !important;
    border-color: #006eff !important;
    box-shadow: none !important;
}

/* Reject + Manage — hover */
.envoy-cookie-consent .envoy-cookie-btn.secondary:hover {
    background: #006eff !important;
    color: #ffffff !important;
    border-color: #006eff !important;
    box-shadow:
        0 0 8px rgba(0, 110, 255, 0.45),
        0 0 18px rgba(0, 110, 255, 0.30) !important;
    transform: translateY(-1px) !important;
}

/* Reject + Manage — keyboard focus */
.envoy-cookie-consent .envoy-cookie-btn.secondary:focus-visible {
    background: #006eff !important;
    color: #ffffff !important;
    border-color: #006eff !important;
    outline: none !important;
    box-shadow:
        0 0 0 3px rgba(0, 110, 255, 0.18),
        0 0 14px rgba(0, 110, 255, 0.45) !important;
}

/* ---------------------------------------------------------
   ACCEPT ALL
   Normal state
   --------------------------------------------------------- */

.envoy-cookie-consent .envoy-cookie-btn.primary {
    background: #006eff !important;
    color: #ffffff !important;
    border-color: #006eff !important;
    box-shadow: none !important;
}

/* Accept All — hover */
.envoy-cookie-consent .envoy-cookie-btn.primary:hover {
    background: #006eff !important;
    color: #ffffff !important;
    border-color: #006eff !important;
    box-shadow:
        0 0 8px rgba(0, 110, 255, 0.55),
        0 0 18px rgba(0, 110, 255, 0.40),
        0 0 32px rgba(0, 110, 255, 0.25) !important;
    transform: translateY(-1px) !important;
}

/* Accept All — keyboard focus */
.envoy-cookie-consent .envoy-cookie-btn.primary:focus-visible {
    background: #006eff !important;
    color: #ffffff !important;
    border-color: #006eff !important;
    outline: none !important;
    box-shadow:
        0 0 0 3px rgba(0, 110, 255, 0.18),
        0 0 14px rgba(0, 110, 255, 0.50),
        0 0 28px rgba(0, 110, 255, 0.30) !important;
}

/* Prevent pink/purple active state */
.envoy-cookie-consent .envoy-cookie-btn:active {
    background: #006eff !important;
    color: #ffffff !important;
    border-color: #006eff !important;
    box-shadow:
        0 0 8px rgba(0, 110, 255, 0.45) !important;
    transform: translateY(0) !important;
}


/* =========================================================
   ENVOY COOKIE PREFERENCES — READ MORE + TABLE + POPPINS
   Add this at the VERY BOTTOM of cookie-consent.css
   ========================================================= */

/* Apply Poppins consistently throughout the cookie interface */
#envoy-cookie-consent,
#envoy-cookie-consent * {
    font-family: 'Poppins', Arial, sans-serif !important;
}

/* Read more / Read less — clean inline blue text link */
#envoy-cookie-consent .envoy-cookie-read-more {
    display: inline;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 5px 0 0;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    color: #006eff !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    text-align: left;
    text-decoration: none !important;

    cursor: pointer;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

/* Hover: blue underline, without a button background */
#envoy-cookie-consent .envoy-cookie-read-more:hover,
#envoy-cookie-consent .envoy-cookie-read-more:focus-visible {
    color: #004db8 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-decoration: underline !important;
    outline: none;
}

/* Keep the expanded details neatly separated */
#envoy-cookie-consent .envoy-cookie-details {
    width: 100%;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e8edf4;
}

/* Smaller, more readable explanatory text */
#envoy-cookie-consent .envoy-cookie-details-intro,
#envoy-cookie-consent .envoy-cookie-details-note {
    margin: 0 0 10px;
    color: #657083;
    font-size: 11px !important;
    line-height: 1.55 !important;
    font-weight: 400;
}

/* Allow horizontal scrolling if the table is wider than the modal */
#envoy-cookie-consent .envoy-cookie-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e5eaf2;
    border-radius: 8px;
}

/* Compact table styling */
#envoy-cookie-consent .envoy-cookie-table {
    width: 100%;
    min-width: 480px;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 10px !important;
    line-height: 1.45 !important;
}

/* Table headings */
#envoy-cookie-consent .envoy-cookie-table th {
    padding: 9px 8px !important;
    background: #f4f7fb !important;
    color: #0b1f3a !important;
    border: 1px solid #e5eaf2 !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: left;
    vertical-align: top;
}

/* Table contents */
#envoy-cookie-consent .envoy-cookie-table td {
    padding: 8px !important;
    color: #4b5563 !important;
    border: 1px solid #e5eaf2 !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Cookie names */
#envoy-cookie-consent .envoy-cookie-table td code {
    color: #0b1f3a !important;
    background: #f4f7fb !important;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    overflow-wrap: anywhere;
}

/* Prevent theme styles from adding oversized spacing */
#envoy-cookie-consent .envoy-cookie-table p {
    margin: 0;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Keep the expanded content from pushing outside the preferences panel */
#envoy-cookie-consent .envoy-cookie-preferences-box {
    box-sizing: border-box;
}

#envoy-cookie-consent .envoy-cookie-preferences-box * {
    box-sizing: border-box;
}


/* =========================================
   COOKIE PREFERENCES — CLOSE BUTTON
   ========================================= */

/* Normal state: blue border and blue cross */
.envoy-cookie-consent .envoy-cookie-close {
    background: #ffffff !important;
    color: #006eff !important;
    border: 1px solid #006eff !important;
    border-radius: 6px !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}

/* Hover state: blue background and white cross */
.envoy-cookie-consent .envoy-cookie-close:hover {
    background: #006eff !important;
    color: #ffffff !important;
    border-color: #006eff !important;
    box-shadow: 0 0 12px rgba(0, 110, 255, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* Keyboard focus */
.envoy-cookie-consent .envoy-cookie-close:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 110, 255, 0.2) !important;
}

/* =====================================================
   ENVOY COOKIE PREFERENCES — CLOSE BUTTON
   ===================================================== */

.envoy-cookie-consent .envoy-cookie-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;

    background: #ffffff !important;
    color: #006eff !important;
    border: 1px solid #006eff !important;
    border-radius: 6px !important;

    font-family: Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-align: center !important;

    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: none !important;
}

/* Hover: blue background, white cross */
.envoy-cookie-consent .envoy-cookie-close:hover {
    background: #006eff !important;
    color: #ffffff !important;
    border-color: #006eff !important;
    box-shadow: 0 0 12px rgba(0, 110, 255, 0.35) !important;
}

/* Keyboard focus */
.envoy-cookie-consent .envoy-cookie-close:focus-visible {
    outline: 2px solid rgba(0, 110, 255, 0.4) !important;
    outline-offset: 3px !important;
}

/* =========================================
   ENVOY FOOTER – COOKIE LINKS
========================================= */

.elementor-shortcode button.envoy-cookie-preferences-link,
.elementor-shortcode a.envoy-cookie-policy-footer-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;

    margin-top: 12px !important;
    padding: 12px 18px !important;

    min-height: 40px !important;
    border: 1px solid #ffffff !important;
    border-radius: 4px !important;

    background: transparent !important;
    color: #ffffff !important;

    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;

    cursor: pointer !important;
    box-shadow: none !important;
    outline: none !important;
    transition: background-color 0.25s ease,
                color 0.25s ease,
                border-color 0.25s ease !important;
}

/* Hover – white background, blue text, no glow */
.elementor-shortcode button.envoy-cookie-preferences-link:hover,
.elementor-shortcode a.envoy-cookie-policy-footer-link:hover {
    background: #ffffff !important;
    color: #006eff !important;
    border-color: #ffffff !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* =========================================
   COOKIE PREFERENCES — CATEGORY CARDS
   ========================================= */

#envoy-cookie-consent .envoy-cookie-category {
    box-sizing: border-box !important;
    margin: 0 0 12px !important;
    padding: 16px !important;

    background: #ffffff !important;
    border: 1px solid #e5eaf2 !important;
    border-top: 1px solid #e5eaf2 !important;
    border-radius: 12px !important;

    box-shadow:
        0 3px 10px rgba(15, 34, 61, 0.06),
        0 1px 3px rgba(15, 34, 61, 0.04) !important;

    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease !important;
}

/* Subtle hover elevation */
#envoy-cookie-consent .envoy-cookie-category:hover {
    border-color: #d5e3f5 !important;
    box-shadow:
        0 5px 14px rgba(15, 34, 61, 0.09),
        0 2px 5px rgba(15, 34, 61, 0.04) !important;
    transform: translateY(-1px);
}

/* Keep the category text and controls above the card background */
#envoy-cookie-consent .envoy-cookie-category h3,
#envoy-cookie-consent .envoy-cookie-category p {
    position: relative;
}


/* Necessary Cookie Toggle - Always On, Soft Blue */
.envoy-cookie-switch-locked {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    opacity: 0.75 !important;
    cursor: not-allowed !important;
}

/* Soft blue toggle track */
.envoy-cookie-switch-locked input:checked + span {
    background: #e6f0ff !important;
    border-color: #c5dcff !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
}

/* Blue toggle knob */
.envoy-cookie-switch-locked input:checked + span::before {
    background: #0066ff !important;
    box-shadow: 0 1px 3px rgba(0, 102, 255, 0.18) !important;
}

/* Keep disabled toggle clearly visible */
.envoy-cookie-switch-locked input:disabled + span {
    opacity: 1 !important;
    cursor: not-allowed !important;
}

/* No hover colour changes */
.envoy-cookie-switch-locked:hover input:checked + span {
    background: #e6f0ff !important;
    border-color: #c5dcff !important;
}