/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    color: white;
    padding: 15px 20px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    font-size: 14px;
}
.cookie-consent__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.cookie-consent__copy { flex: 1 1 520px; }
.cookie-consent__copy strong { display: block; margin-bottom: 4px; font-size: 16px; }
.cookie-consent__content p {
    margin: 0;
    flex: 1;
    line-height: 1.4;
}
.cookie-consent__content a {
    color: var(--color-yellow);
    text-decoration: underline;
}
.cookie-consent__buttons {
    display: flex;
    gap: 12px;
}

/* Сбрасываем глобальные стили для всех кнопок внутри баннера */
#cookie-consent-banner .btn--sm {
    all: unset;
    display: inline-block;
    padding: 8px 24px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    border-radius: var(--border-radius-plaque); /* единый стиль скругления */
    transition: all 0.2s ease;
    width: auto;
    box-sizing: border-box;
    font-weight: normal;
}

/* Кнопка "Согласен" – яркая, жёлтая */
#cookie-consent-banner .cookie-btn--accept {
    background-color: #ffcc00 !important;
    color: #015219 !important;
    font-weight: bold !important;
    border: none !important;
}
#cookie-consent-banner .cookie-btn--accept:hover {
    background-color: #e6b800 !important;
    transform: scale(1.02);
}

/* Кнопка "Отказаться" – бледная, полупрозрачная */
#cookie-consent-banner .cookie-btn--decline {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: white !important;
}
#cookie-consent-banner .cookie-btn--decline:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: white !important;
}
#cookie-consent-banner .cookie-btn--revoke,
#cookie-consent-banner .cookie-btn--close {
    background: rgba(255,255,255,.12) !important;
    border: 1px solid rgba(255,255,255,.65) !important;
    color: #fff !important;
}
#cookie-consent-banner button:focus-visible,
#cookie-settings-button:focus-visible { outline: 3px solid #ffcc00; outline-offset: 3px; }
#cookie-settings-button {
    position: fixed; left: 12px; bottom: 12px; z-index: 9000;
    border: 1px solid rgba(255,255,255,.8); border-radius: 18px; padding: 7px 12px;
    background: #015219; color: #fff; font: inherit; font-size: 12px; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.consent-map-host { position: relative; min-height: 400px; overflow: hidden; }
.consent-map-host > iframe[hidden],
.consent-map-preview[hidden] { display: none !important; }
.consent-map-preview {
    min-height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; padding: 32px; text-align: center; color: #173c24; background-color: #e8efe9;
    background-image: linear-gradient(28deg, transparent 46%, rgba(255,255,255,.9) 47%, rgba(255,255,255,.9) 53%, transparent 54%), linear-gradient(118deg, transparent 44%, rgba(255,255,255,.75) 45%, rgba(255,255,255,.75) 51%, transparent 52%);
    background-size: 150px 120px, 210px 170px;
}
.consent-map-preview__pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; color: #ffcc00; background: #015219; font-size: 0; box-shadow: 0 3px 9px rgba(0,0,0,.25); }
.consent-map-preview__pin::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #ffcc00; }
.consent-map-preview small { max-width: 520px; }

@media (max-width: 768px) {
    .cookie-consent__copy { flex-basis: auto; }
    .cookie-consent__content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-consent__buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    #cookie-consent-banner { max-height: 55vh; overflow: auto; }
    .map-container.consent-map-host { min-height: 300px; }
    .map-container .consent-map-preview { min-height: 300px; height: 300px; }
}
