/* ================================================================
   Cookie Consent Banner & Modal — Flyservice Design System

   Colors:   #07120F (dark)  #13322B (deep green)  #00534A (footer)
             #71CC98 (primary)  #EAF7F0 (light)  #F5F5F5 (grey)
   Fonts:    Poppins (body)  Montserrat Bold (buttons)
   Radius:   36px (buttons/pill)  16px (containers)
   ================================================================ */

/* Banner */
.aioa-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    background: #07120f;
    color: #eaf7f0;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    box-shadow: 0 -4px 30px rgba(7, 18, 15, 0.5);
    animation: aioaCookieSlideIn 0.4s ease-out;
}

.aioa-cookie-banner--bottom { bottom: 0; }
.aioa-cookie-banner--top    { top: 0; }

@keyframes aioaCookieSlideIn {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.aioa-cookie-banner--top {
    animation-name: aioaCookieSlideInTop;
}
@keyframes aioaCookieSlideInTop {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.aioa-cookie-banner__inner {
    max-width: 1680px;
    margin: 0 auto;
    padding: 28px 48px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.aioa-cookie-banner__text {
    flex: 1;
}

.aioa-cookie-banner__text strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #71cc98;
    line-height: 1.2;
}

.aioa-cookie-banner__text p {
    margin: 0 0 8px;
    color: #eaf7f0;
    font-size: 15px;
    line-height: 1.4;
}

.aioa-cookie-banner__links a {
    color: #71cc98;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    border-bottom: 1px solid rgba(113, 204, 152, 0.3);
    transition: border-color 0.2s;
}

.aioa-cookie-banner__links a:hover {
    border-color: #71cc98;
}

.aioa-cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Buttons — matching Elementor .elementor-button site style */
.aioa-cookie-btn {
    padding: 20px 20px !important;
    border: 1px solid #71cc98 !important;
    border-radius: 30px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    white-space: nowrap !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) !important;
}

/* Primary: green bg, black text (site default) */
.aioa-cookie-btn--accept {
    background-color: #71cc98 !important;
    color: #000000 !important;
    border-color: #71cc98 !important;
}
.aioa-cookie-btn--accept:hover {
    background-color: transparent !important;
    color: #71cc98 !important;
}

/* Reject: transparent, green border (outline variant) */
.aioa-cookie-btn--reject {
    background-color: transparent !important;
    color: #71cc98 !important;
    border-color: #71cc98 !important;
}
.aioa-cookie-btn--reject:hover {
    background-color: #71cc98 !important;
    color: #000000 !important;
}

/* Customize: transparent, green border (same as reject) */
.aioa-cookie-btn--customize {
    background-color: transparent !important;
    color: #71cc98 !important;
    border-color: #71cc98 !important;
}
.aioa-cookie-btn--customize:hover {
    background-color: #71cc98 !important;
    color: #000000 !important;
}

/* Save: green bg (same as accept) */
.aioa-cookie-btn--save {
    background-color: #71cc98 !important;
    color: #000000 !important;
    border-color: #71cc98 !important;
}
.aioa-cookie-btn--save:hover {
    background-color: transparent !important;
    color: #71cc98 !important;
}

/* ================================================================
   Modal
   ================================================================ */
.aioa-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    animation: aioaFadeIn 0.25s ease;
}

@keyframes aioaFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.aioa-cookie-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 18, 15, 0.7);
    cursor: pointer;
}

.aioa-cookie-modal__content {
    position: relative;
    background: #f5f5f5;
    border-radius: 16px;
    max-width: 580px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 36px;
    box-shadow: 0 16px 48px rgba(7, 18, 15, 0.4);
    color: #07120f;
    font-size: 15px;
    line-height: 1.2;
}

.aioa-cookie-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #07120f;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.4;
    transition: opacity 0.2s;
}
.aioa-cookie-modal__close:hover {
    opacity: 1;
}

.aioa-cookie-modal__content h2 {
    margin: 0 0 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 23px;
    font-weight: 400;
    color: #07120f;
    line-height: 1.2;
}

/* Category rows — inspired by the FAQ accordion lines */
.aioa-cookie-category {
    border-bottom: 1px solid rgba(7, 18, 15, 0.12);
    padding: 18px 0;
}

.aioa-cookie-category:first-of-type {
    border-top: 1px solid rgba(7, 18, 15, 0.12);
}

.aioa-cookie-category:last-of-type {
    border-bottom: 1px solid rgba(7, 18, 15, 0.12);
}

.aioa-cookie-category label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    color: #07120f;
}

.aioa-cookie-category label strong {
    font-weight: 500;
}

.aioa-cookie-category label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #71cc98;
    cursor: pointer;
    flex-shrink: 0;
}

.aioa-cookie-badge {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    background: #eaf7f0;
    color: #00534a;
    padding: 3px 10px;
    border-radius: 36px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.aioa-cookie-category p {
    margin: 8px 0 0 32px;
    font-size: 14px;
    color: rgba(7, 18, 15, 0.55);
    line-height: 1.4;
}

.aioa-cookie-modal__actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ================================================================
   Re-open button (floating cookie icon)
   ================================================================ */
.aioa-cookie-reopen {
    position: fixed !important;
    bottom: 24px !important;
    left: 24px !important;
    z-index: 99999 !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: #07120f !important;
    color: #71cc98 !important;
    border: 2px solid #71cc98 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 16px rgba(7, 18, 15, 0.4) !important;
    transition: all 0.25s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    line-height: 1 !important;
}

.aioa-cookie-reopen svg {
    color: #71cc98 !important;
    stroke: #71cc98 !important;
    fill: none !important;
}

.aioa-cookie-reopen svg path[fill="currentColor"],
.aioa-cookie-reopen svg circle[fill="currentColor"] {
    fill: #71cc98 !important;
}

.aioa-cookie-reopen:hover {
    background: #71cc98 !important;
    color: #07120f !important;
    transform: scale(1.08);
}

.aioa-cookie-reopen:hover svg {
    color: #07120f !important;
    stroke: #07120f !important;
}

.aioa-cookie-reopen:hover svg path[fill="currentColor"],
.aioa-cookie-reopen:hover svg circle[fill="currentColor"] {
    fill: #07120f !important;
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 768px) {
    .aioa-cookie-banner__inner {
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
    }

    .aioa-cookie-banner__text strong {
        font-size: 16px;
    }

    .aioa-cookie-banner__text p {
        font-size: 14px;
    }

    .aioa-cookie-banner__actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .aioa-cookie-btn {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }

    .aioa-cookie-modal__content {
        padding: 24px;
        border-radius: 12px;
    }

    .aioa-cookie-modal__content h2 {
        font-size: 20px;
    }

    .aioa-cookie-modal__actions {
        flex-direction: column;
    }

    .aioa-cookie-modal__actions .aioa-cookie-btn {
        width: 100%;
        text-align: center;
    }
}
