.cookie-consent[hidden],
.cookie-consent-open[hidden],
.map-consent-placeholder[hidden] {
    display: none !important;
}

.cookie-consent {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 99990;
    width: calc(100% - 40px);
    max-width: 460px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid #e4e7ef;
    border-radius: 18px;
    background: #ffffff;
    color: #212639;
    box-shadow: 0 12px 45px rgba(15, 25, 37, .18);
    font-size: 14px;
    line-height: 1.6;
}

.cookie-consent h2 {
    margin-bottom: 12px;
    color: #212639;
    font-size: 20px;
    line-height: 1.35;
}

.cookie-consent p {
    margin-bottom: 12px;
    color: #454b60;
}

.cookie-consent a {
    color: #126b91;
    text-decoration: underline;
}

.cookie-consent details {
    margin-top: 14px;
}

.cookie-consent summary {
    min-height: 44px;
    padding: 10px 0;
    cursor: pointer;
    font-weight: 600;
}

.cookie-consent-settings {
    padding-top: 10px;
}

.cookie-consent-settings label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-weight: 600;
    cursor: pointer;
}

.cookie-consent-settings input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: #147ba9;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
}

.cookie-consent button,
.map-consent-placeholder button {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #147ba9;
    border-radius: 8px;
    background: #147ba9;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.cookie-consent-actions button {
    flex: 1;
}

.cookie-consent button:hover,
.map-consent-placeholder button:hover {
    background: #105e81;
}

.cookie-consent-open {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 9990;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid #dfe3ec;
    border-radius: 24px;
    background: #ffffff;
    color: #212639;
    box-shadow: 0 3px 12px rgba(15, 25, 37, .12);
    font-size: 12px;
    cursor: pointer;
}

body.registration-open .cookie-consent,
body.registration-open .cookie-consent-open {
    display: none !important;
}

.map-consent-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 435px;
    padding: 30px;
    border-radius: 16px;
    background: #f4f6fa;
    color: #212639;
    text-align: center;
}

.map-consent-placeholder p {
    margin: 0;
}

.map-consent-placeholder a {
    color: #126b91;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .cookie-consent {
        left: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        padding: 18px;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }
}
