/* Cookie Banner Styles */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1f2937; /* bg-gray-900 */
    color: white;
    z-index: 50;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

#cookie-banner.hidden {
    transform: translateY(100%);
}

#cookie-banner .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0.75rem;
}

@media (min-width: 640px) {
    #cookie-banner .container {
        padding: 0.75rem 1rem;
    }
}

#cookie-banner .content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    #cookie-banner .content {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
}

#cookie-banner .text-content {
    flex: 1;
    width: 90%;
    min-width: 0; /* Предотвращает переполнение */
    word-wrap: normal;
}

@media (min-width: 640px) {
    #cookie-banner .text-content {
        width: auto;
        min-width: auto;
    }
}

#cookie-banner .title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    line-height: 1.25;
}

#cookie-banner .description {
    font-size: 0.75rem;
    color: #d1d5db; /* text-gray-300 */
    line-height: 1.4;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

#cookie-banner .privacy-link {
    color: #fbbf24; /* text-yellow-400 */
    text-decoration: underline;
    word-break: break-all;
    white-space: pre;
}

#cookie-banner .privacy-link:hover {
    color: #fcd34d; /* text-yellow-300 */
}

#cookie-banner .accept-button {
    width: 100%;
    background-color: #f59e0b; /* bg-yellow-500 */
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.125rem;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    min-height: 44px; /* Минимальная высота для удобного нажатия на мобильных */
}

#cookie-banner .accept-button:hover {
    background-color: #d97706; /* bg-yellow-600 */
}

@media (min-width: 640px) {
    #cookie-banner .accept-button {
        width: auto;
        padding: 0.5rem 1.25rem;
        min-height: auto;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 375px) {
    #cookie-banner .container {
        padding: 0.75rem 0.5rem;
    }
    
    #cookie-banner .title {
        font-size: 0.8125rem;
        overflow-wrap: break-word;
    }
    
    #cookie-banner .description {
        font-size: 0.6875rem;
        line-height: 1.3;
        overflow-wrap: break-word;
        word-wrap: revert;
        white-space: pre-wrap;
    }
    
    #cookie-banner .accept-button {
        font-size: 0.8125rem;
        padding: 0.625rem 0.875rem;
    }
}
