/* =========================================================
   GRETA COOKIE CONSENT
========================================================= */

.greta-cookie-banner {
    position: fixed;
    z-index: 9999;

    right: 24px;
    bottom: 24px;
    left: 24px;

    display: none;

    max-width: 1180px;
    margin: 0 auto;

    border: 1px solid rgba(15, 46, 58, 0.10);
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.97);

    box-shadow:
        0 25px 70px rgba(15, 46, 58, 0.20),
        0 8px 25px rgba(15, 46, 58, 0.08);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.greta-cookie-banner.is-visible {
    display: block;
    animation: gretaCookieShow 0.45s ease forwards;
}

@keyframes gretaCookieShow {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.greta-cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 35px;

    padding: 22px 24px;
}

/* Content */

.greta-cookie-content {
    display: flex;
    align-items: flex-start;

    max-width: 750px;

    gap: 18px;
}

.greta-cookie-icon {
    display: flex;
    flex: 0 0 48px;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    color: #1a8cb4;

    border-radius: 14px;

    background: rgba(26, 140, 180, 0.10);
}

.greta-cookie-content h5 {
    margin: 0 0 7px;

    color: #183946;

    font-size: 1rem;
    font-weight: 700;
}

.greta-cookie-content p {
    margin: 0 0 8px;

    color: #66777e;

    font-size: 0.86rem;
    line-height: 1.55;
}

.greta-cookie-policy-link {
    margin-right: 15px;
    padding: 0;

    color: #1a8cb4;

    font-size: 0.80rem;
    font-weight: 600;

    text-decoration: none;

    border: 0;
    background: transparent;
}

.greta-cookie-policy-link:hover {
    color: #116c8d;
    text-decoration: underline;
}

/* Buttons */

.greta-cookie-actions {
    display: flex;
    flex-shrink: 0;

    align-items: center;

    gap: 9px;
}

.greta-cookie-btn {
    min-height: 43px;

    padding: 0 18px;

    font-size: 0.84rem;
    font-weight: 600;

    border-radius: 10px;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.greta-cookie-btn:hover {
    transform: translateY(-1px);
}

.greta-cookie-btn-primary {
    color: #ffffff;

    border: 1px solid #1a8cb4;

    background: #1a8cb4;
}

.greta-cookie-btn-primary:hover {
    color: #ffffff;
    background: #137a9e;
}

.greta-cookie-btn-secondary {
    color: #29444e;

    border: 1px solid rgba(29, 59, 70, 0.20);

    background: #ffffff;
}

.greta-cookie-btn-secondary:hover {
    border-color: #1a8cb4;

    color: #1a8cb4;

    background: #f6fbfd;
}

/* =========================================================
   COOKIE SETTINGS MODAL
========================================================= */

.greta-cookie-modal {
    overflow: hidden;

    border: 0;
    border-radius: 20px;

    box-shadow: 0 30px 90px rgba(16, 46, 58, 0.20);
}

.greta-cookie-modal .modal-header {
    padding: 24px 26px;

    border-bottom: 1px solid rgba(16, 46, 58, 0.08);
}

.greta-cookie-modal-label {
    display: block;

    margin-bottom: 4px;

    color: #1a8cb4;

    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.10em;

    text-transform: uppercase;
}

.greta-cookie-modal .modal-title {
    color: #183946;

    font-size: 1.35rem;
    font-weight: 700;
}

.greta-cookie-modal .modal-body {
    padding: 25px 26px;
}

.greta-cookie-modal-intro {
    margin-bottom: 24px;

    color: #6a7a80;

    font-size: 0.9rem;
    line-height: 1.6;
}

/* Categories */

.greta-cookie-category {
    padding: 18px 0;

    border-top: 1px solid rgba(16, 46, 58, 0.08);
}

.greta-cookie-category:last-child {
    padding-bottom: 0;
}

.greta-cookie-category-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.greta-cookie-category-header strong {
    display: block;

    color: #183946;

    font-size: 0.95rem;
}

.greta-cookie-category-header span {
    display: block;

    margin-top: 2px;

    color: #829096;

    font-size: 0.72rem;
}

.greta-cookie-category p {
    max-width: 430px;

    margin: 8px 0 0;

    color: #738288;

    font-size: 0.82rem;
    line-height: 1.55;
}

/* Bootstrap switch */

.greta-cookie-category .form-check-input {
    width: 42px;
    height: 22px;

    cursor: pointer;

    box-shadow: none;
}

.greta-cookie-category .form-check-input:checked {
    border-color: #1a8cb4;
    background-color: #1a8cb4;
}

.greta-cookie-modal-footer {
    display: flex;

    justify-content: flex-end;

    padding: 18px 26px;

    border-top: 1px solid rgba(16, 46, 58, 0.08);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991.98px) {

    .greta-cookie-banner-inner {
        align-items: stretch;
        flex-direction: column;

        gap: 18px;
    }

    .greta-cookie-actions {
        width: 100%;
    }

    .greta-cookie-actions .greta-cookie-btn {
        flex: 1;
    }
}

@media (max-width: 575.98px) {

    .greta-cookie-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;

        border-radius: 16px;
    }

    .greta-cookie-banner-inner {
        padding: 18px;
    }

    .greta-cookie-content {
        gap: 12px;
    }

    .greta-cookie-icon {
        display: none;
    }

    .greta-cookie-actions {
        flex-direction: column;
    }

    .greta-cookie-actions .greta-cookie-btn {
        width: 100%;
    }

    .greta-cookie-modal .modal-header,
    .greta-cookie-modal .modal-body,
    .greta-cookie-modal-footer {
        padding-right: 20px;
        padding-left: 20px;
    }

    .greta-cookie-modal-footer {
        flex-direction: column;
    }

    .greta-cookie-modal-footer .greta-cookie-btn {
        width: 100%;
    }
}