#azimut-cookie-notice[hidden] { display: none; }
#azimut-cookie-notice {
    position: fixed;
    z-index: 1039;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    margin: auto;
    max-width: 760px;
    padding: 1rem 1.25rem;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    box-shadow: 0 3px 16px #0003;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
#azimut-cookie-notice a { text-decoration: underline; }
#azimut-cookie-notice .btn {
    flex: none;
    color: #fff;
    background: #333399;
    border-color: #333399;
}
#azimut-cookie-notice .btn:hover,
#azimut-cookie-notice .btn:focus,
#azimut-cookie-notice .btn:active {
    color: #fff;
    background: #29298f;
    border-color: #29298f;
}
#azimut-cookie-notice .btn:focus-visible {
    outline: 2px solid #333399;
    outline-offset: 3px;
}

.politics:has([name="pd_consent"]) {
    color: #333;
    text-align: left;
    text-transform: none;
}
.politics:has([name="pd_consent"]) label,
.politics:has([name="pd_consent"]) label span {
    color: inherit;
    text-transform: none;
}
.politics:has([name="pd_consent"]) a {
    color: #336699;
    text-transform: none;
    text-decoration: underline;
}

/* Keep the consent and submit controls reachable on short screens. */
.modal:has([name="pd_consent"]) {
    overflow-y: auto;
}
.modal:has([name="pd_consent"]) .modal-dialog {
    margin-block: 10px;
}
.modal:has([name="pd_consent"]) .modal-content {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
}
@media (max-width: 480px) {
    #azimut-cookie-notice { align-items: flex-start; flex-direction: column; }
}
