/**
 * 2019-2026 MEG Venture
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 *
 *  @author    MEG Venture
 *  @copyright 2019-2026 MEG Venture
 *  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */

.eucookie-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1055;
    background: rgba(0, 0, 0, 0.5);
}

.eucookie {
    position: fixed;
    z-index: 1056;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-sizing: border-box;
    padding: 14px 16px;
    background: var(--eucookie-bg, #1d2b45);
    color: var(--eucookie-text, #ffffff);
    font-size: 0.9375rem;
    line-height: 1.4;
    text-align: center;
    animation: eucookie-in 0.4s ease-out;
}

@keyframes eucookie-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.eucookie a {
    color: inherit;
    text-decoration: underline;
}

.eucookie--bar {
    left: 0;
    right: 0;
}

.eucookie--top {
    top: 0;
}

.eucookie--bottom {
    bottom: 0;
}

.eucookie--card {
    max-width: 420px;
    width: calc(100% - 32px);
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.eucookie--topLeft {
    top: 16px;
    left: 16px;
}

.eucookie--topCenter {
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
}

.eucookie--topRight {
    top: 16px;
    right: 16px;
}

.eucookie--bottomLeft {
    bottom: 16px;
    left: 16px;
}

.eucookie--bottomCenter {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
}

.eucookie--bottomRight {
    bottom: 16px;
    right: 16px;
}

.eucookie--center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.eucookie__message p {
    display: inline;
    margin: 0;
}

.eucookie__more {
    margin-left: 6px;
    white-space: nowrap;
}

.eucookie__actions {
    display: flex;
    gap: 8px;
}

.eucookie__btn {
    border: 1px solid var(--eucookie-text, #ffffff);
    border-radius: 999px;
    padding: 6px 20px;
    font: inherit;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.eucookie__btn--accept {
    background: var(--eucookie-text, #ffffff);
    color: var(--eucookie-accent, #1d2b45);
}

.eucookie__btn--decline {
    background: none;
    color: inherit;
}

.eucookie__btn:hover {
    opacity: 0.85;
}

@media (max-width: 767px) {
    .eucookie--bar {
        padding: 10px 12px;
        font-size: 0.875rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eucookie {
        animation: none;
    }
}

@media print {

    .eucookie,
    .eucookie-overlay {
        display: none;
    }
}
