/* Hide Zoho SalesIQ auto-generated cookie / GDPR banner */
#zsiq_cookielaw,
.zsiq-cookiebanner,
.zsiq_cookiebanner,
.zsiq_gdpr_banner,
[id*="zsiq"][id*="cookie"],
[class*="zsiq"][class*="cookie"],
[class*="zsiq"][class*="gdpr"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* AimDrive custom cookie consent banner */
#aimdrive-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99990;
    background: #ffffff;
    border-top: 1px solid #d9d9d9;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    font-family: 'Roboto', sans-serif;
    display: none;
}

#aimdrive-cookie-banner.is-visible {
    display: block;
}

.aimdrive-cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 100%;
    min-height: 150px;
    padding: 28px 5%;
    box-sizing: border-box;
}

.aimdrive-cookie-banner__text {
    flex: 1;
    margin: 0;
    font-size: 20px;
    line-height: 1.5;
    color: #4a4a4a;
    font-weight: 400;
}

.aimdrive-cookie-banner__text .aimdrive-cookie-inline-accept {
    color: #005f9c;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.aimdrive-cookie-banner__text .aimdrive-cookie-inline-accept:hover {
    text-decoration: underline;
}

.aimdrive-cookie-banner__text a.aimdrive-cookie-learn-more {
    color: #4a4a4a;
    text-decoration: underline;
}

.aimdrive-cookie-banner__actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 12px;
}

.aimdrive-cookie-btn {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background-color 0.2s, border-color 0.2s;
}

.aimdrive-cookie-btn--primary {
    background-color: #005f9c;
    color: #ffffff;
    border-color: #005f9c;
}

.aimdrive-cookie-btn--primary:hover {
    background-color: #004a7c;
    border-color: #004a7c;
}

.aimdrive-cookie-btn--secondary {
    background-color: #ffffff;
    color: #333333;
    border-color: #cccccc;
}

.aimdrive-cookie-btn--secondary:hover {
    background-color: #f5f5f5;
}

.aimdrive-cookie-btn--link {
    background: none;
    border: none;
    color: #888888;
    font-size: 14px;
    font-weight: 400;
    padding: 12px 8px;
}

.aimdrive-cookie-btn--link:hover {
    color: #555555;
    text-decoration: underline;
}

/* Preferences modal */
#aimdrive-cookie-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

#aimdrive-cookie-modal.is-open {
    display: flex;
}

.aimdrive-cookie-modal__panel {
    background: #ffffff;
    border-radius: 8px;
    max-width: 520px;
    width: 100%;
    padding: 28px 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    font-family: 'Roboto', sans-serif;
}

.aimdrive-cookie-modal__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #333333;
}

.aimdrive-cookie-modal__desc {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #666666;
}

.aimdrive-cookie-pref-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #eeeeee;
    font-size: 15px;
    color: #333333;
}

.aimdrive-cookie-pref-row:last-of-type {
    border-bottom: none;
}

.aimdrive-cookie-pref-row label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.aimdrive-cookie-pref-row small {
    font-size: 13px;
    color: #888888;
    font-weight: 400;
}

.aimdrive-cookie-pref-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #005f9c;
    cursor: pointer;
}

.aimdrive-cookie-pref-row input:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.aimdrive-cookie-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

@media (max-width: 900px) {
    .aimdrive-cookie-banner__inner {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        padding: 24px 20px;
    }

    .aimdrive-cookie-banner__actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .aimdrive-cookie-btn--primary,
    .aimdrive-cookie-btn--secondary {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}
