
/* =========================================
   GLOBAL ROYAL LOGISTICS COOKIE CONSENT
========================================= */

.grl-cookie-banner[hidden] {
    display: none !important;
}

.grl-cookie-banner {
    position: fixed;
    z-index: 99990;
    right: clamp(0.75rem, 2.5vw, 2rem);
    bottom: clamp(0.75rem, 2.5vw, 2rem);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    width: min(39rem, calc(100% - 1.5rem));
    max-height: min(85dvh, 32rem);
    overflow-y: auto;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid rgba(255, 139, 54, 0.4);
    border-radius: 1rem;
    background: #ffffff;
    color: #071a35;
    box-shadow: 0 1.25rem 4rem rgba(7, 26, 53, 0.2);
    opacity: 0;
    transform: translateY(1rem);
    animation: grlCookieAppear 350ms ease forwards;
}

.grl-cookie-icon {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    flex-shrink: 0;
    place-items: center;
    border-radius: 0.75rem;
    background: #071a35;
    color: #ff8b36;
    font-size: 1.35rem;
}

.grl-cookie-content {
    min-width: 0;
}

.grl-cookie-content h2 {
    margin: 0 0 0.55rem;
    color: #071a35;
    font-family: "Manrope", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
}

.grl-cookie-content p {
    margin: 0;
    color: #536176;
    font-size: 0.85rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.grl-cookie-policy {
    display: inline-block;
    margin-top: 0.65rem;
    color: #071a35;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration-color: #ff8b36;
    text-underline-offset: 0.2rem;
}

.grl-cookie-policy:hover {
    color: #b9520c;
}

.grl-cookie-actions {
    display: flex;
    grid-column: 2;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.grl-cookie-button {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.55rem;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 180ms ease,
        color 180ms ease,
        border-color 180ms ease;
}

.grl-cookie-accept {
    border-color: #ff8b36;
    background: #ff8b36;
    color: #071a35;
}

.grl-cookie-accept:hover {
    border-color: #071a35;
    background: #071a35;
    color: #ffffff;
}

.grl-cookie-reject {
    border-color: #dce2eb;
    background: #ffffff;
    color: #071a35;
}

.grl-cookie-reject:hover {
    border-color: #071a35;
    background: #f2f5f9;
}

.grl-cookie-button:focus-visible,
.grl-cookie-policy:focus-visible {
    outline: 3px solid #ff8b36;
    outline-offset: 3px;
}

@keyframes grlCookieAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .grl-cookie-banner {
        right: 0.5rem;
        bottom: 0.5rem;
        width: calc(100% - 1rem);
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.75rem;
        padding: 1rem;
        border-radius: 0.85rem;
    }

    .grl-cookie-icon {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 1.1rem;
    }

    .grl-cookie-content h2 {
        font-size: 0.95rem;
    }

    .grl-cookie-content p {
        font-size: 0.8rem;
    }

    .grl-cookie-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .grl-cookie-button {
        padding-inline: 0.5rem;
        font-size: 0.74rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .grl-cookie-banner {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .grl-cookie-button {
        transition: none;
    }
}
