/* Privacy / Cookie policy links inside the notice bar. */
.en-nlink {
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.en-nlink:hover {
    text-decoration: none;
}

/* Notice bar (по-рано .cookie-banner — преименувано 2026-07-22, за да не го крият
   Brave Shields / adblock cookie-листи). */
.en-notice-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px; /* Padding за текста и бутоните */
    font-family: Arial, sans-serif;
    font-size: 14px;
    /* Показва се директно от CSS (сървърът вече решава дали да рендира банера през @@if showBanner).
       Преди беше display:none + JS го показваше → при nonce/timing race банерът мигваше и изчезваше. */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.en-notice-bar p {
    margin: 0 0 10px 0;
    flex: 1;
    text-align: justify; /* Подравнен текст */
    padding-right: 20px;
}

.en-notice-actions {
    display: flex;
    gap: 10px;
}

/* Button Styles */
.en-nbtn {
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.en-nbtn-solid {
    background-color: #1a1a1a; /* брандово черно; бял текст ~17:1 (WCAG AA) */
    color: #fff;
    border: 1px solid #1a1a1a;
}

.en-nbtn-solid:hover {
    background-color: #000;
    border-color: #000;
}

.en-nbtn-outline {
    background-color: transparent; /* елегантен контур, светъл текст върху тъмния банер */
    color: #ecf0f1;
    border: 1px solid rgba(236, 240, 241, 0.6);
}

.en-nbtn-outline:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

/* Responsive Styles for Screens Below 768px */
@media (max-width: 768px) {
    .en-notice-bar {
        flex-direction: column; /* Подрежда текста и бутоните вертикално */
        align-items: flex-start; /* Подравнява към ляво */
    }

    .en-notice-actions {
        flex-direction: column; /* Бутоните един под друг */
        width: 100%;
        gap: 10px; /* Разстояние между бутоните */
    }

    .en-nbtn {
        font-size: 12px;
        padding: 10px;
        width: 100%; /* Бутоните заемат цялата ширина */
    }

    .en-notice-bar p {
        text-align: left; /* Текстът остава подравнен отляво */
        padding: 0px;
    }
}

/* Modal Styles */
.en-notice-modal {
    display: none; /* Скрито по подразбиране */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.en-notice-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 90%;
    max-width: 500px;
}

.en-notice-modal h2 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #2c3e50;
}

.en-notice-modal p {
    margin: 10px 0;
    font-size: 14px;
    color: #34495e;
}

.en-notice-options label {
    font-size: 14px;
    color: #34495e;
}

.en-notice-modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
