.cookie-popup {
    position: fixed;
    z-index: 9999;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 16px 20px;
    background-color: #fffef2;
    border: 1px solid #c5e5bf;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    text-align: left;
    opacity: 0;
    transform: translateY(calc(100% + 16px));
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.ltd.cookie-popup {
    left: 16px;
    right: 16px;
    border-radius: 12px;
    justify-content: space-between;
}

.cookie-popup--not-accepted {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ltd.cookie-popup--not-accepted {
    animation: none;
}

.cookie-popup--accepted {
    opacity: 0;
    transform: translateY(calc(100% + 16px));
    pointer-events: none;
}

.cookie-popup-text {
    flex: 1 1 240px;
    min-width: 0;
}

.cookie-popup-text > div {
    margin-bottom: 4px;
}

.cookie-popup-text a {
    color: black;
    font-weight: 600;
    text-decoration: underline;
}

.cookie-popup-text a:hover {
    color: blue;
}

.cookie-popup-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.cookie-popup-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 40px;
    padding: 0 20px;
    border: 1px solid #f1bf6a;
    border-radius: 8px;
    background-image: linear-gradient(to top, #f1d5a4 0%, #fde7b2 50%);
    color: #333;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.cookie-popup-actions button:hover {
    filter: brightness(1.04);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
}

.cookie-popup-actions button:active {
    filter: brightness(0.97);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 767px) {
    .cookie-popup,
    .ltd.cookie-popup {
        left: 0;
        right: 0;
        bottom: 0;
        max-width: none;
        border-radius: 12px 12px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
        gap: 12px;
        font-size: 13px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    }

    .cookie-popup--not-accepted,
    .cookie-popup--accepted {
        transform: translateY(100%);
    }

    .cookie-popup--not-accepted {
        transform: translateY(0);
    }

    .cookie-popup-text {
        flex: 1 1 100%;
    }

    .cookie-popup-actions {
        width: 100%;
    }

    .cookie-popup-actions button {
        width: 100%;
        min-width: 0;
        height: 44px;
        font-size: 14px;
    }
}
