/* Screen-reader only — визуально скрыто, но доступно для экранных читалок */
.cookie-consent-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Cookie Consent Wrapper - статичный якорь */
.cookie-consent-wrapper {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: visible;
    z-index: 9999999;
}

/* Скрытие обертки когда куки скрыты */
.cookie-consent-wrapper.hidden {
    display: none;
    height: 0;
}

/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    background: #000000;
    color: #ffffff;
    padding: 15px 0;
    font-family: Steinbeck;
    font-weight: 400;
    font-size: 11px;
    line-height: 1.4;
    margin: 0 auto;
    transform: translateY(100%);
    max-width: 1100px;
    width: 100%;
    z-index: 9999999;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Fixed position when not scrolled to banner position */
.cookie-consent-banner.fixed {
    position: fixed;
    bottom: 16px;
    left: 0;
    right: 0;
    z-index: 9999999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Static position when scrolled to banner position */
.cookie-consent-banner.static {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    transform: translateY(0) !important;
    box-shadow: none;
    z-index: 9999999;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Show animation */
.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    margin: 0;
    min-width: 300px;
}

.cookie-consent-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
    flex-direction: row;
    justify-content: space-between;
}

.cookie-btn {
    background: #000000;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 11px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
}

.cookie-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

.cookie-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: none;
    text-decoration: underline;
}

.cookie-btn-secondary:hover {
    background-color: #333333;
    color: #ffffff;
}

/* Responsive adjustments for tablets */
@media (max-width: 1150px) {
    .cookie-consent-banner {
        max-width: calc(100% - 40px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie-consent-container {
        padding: 0 15px;
    }
    .cookie-consent-banner{
        max-width: calc(100% - 30px);
    }

    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .cookie-consent-buttons {
        width: 100%;
        gap: 10px;
    }

    .cookie-consent-text {
        min-width: 100%;
        text-align: left;
    }
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}