#hazof-consent-banner[hidden],
#hazof-consent-modal[hidden] { display: none !important; }

.hazof-consent-banner {
    position: fixed;
    z-index: 999990;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 920px;
    margin: 0 auto;
    padding: 18px 20px;
    background: #fff;
    color: #292929;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 5px 28px rgba(0,0,0,.2);
    direction: rtl;
    font-family: inherit;
    box-sizing: border-box;
}
.hazof-consent-inner { display: flex; align-items: center; gap: 22px; justify-content: space-between; }
.hazof-consent-copy { flex: 1; min-width: 0; font-size: 14px; line-height: 1.65; }
.hazof-consent-copy p { margin: 5px 0 0; }
.hazof-consent-banner a, .hazof-consent-modal a { color: #185abc; text-decoration: underline; }
.hazof-consent-actions, .hazof-modal-actions { display: flex; gap: 9px; flex-shrink: 0; }
.hazof-btn {
    border: 1px solid #185abc;
    border-radius: 6px;
    padding: 10px 22px;
    min-width: 108px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.hazof-btn-primary { background: #185abc; color: #fff; }
.hazof-btn-secondary { background: #fff; color: #185abc; }
.hazof-btn:focus, .hazof-modal-close:focus { outline: 2px solid #111; outline-offset: 2px; }

.hazof-consent-overlay {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0,0,0,.55);
    direction: rtl;
    box-sizing: border-box;
}
.hazof-consent-modal {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 26px;
    border-radius: 12px;
    background: #fff;
    color: #292929;
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
    font-family: inherit;
    box-sizing: border-box;
}
.hazof-consent-modal h2 { margin: 0 0 12px; font-size: 22px; }
.hazof-consent-modal p { font-size: 14px; line-height: 1.6; }
.hazof-modal-close {
    position: absolute;
    top: 10px;
    left: 12px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #444;
}
.hazof-consent-category {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid #e5e5e5;
}
.hazof-consent-category strong { display: block; margin-bottom: 4px; }
.hazof-consent-category p { margin: 0; color: #555; }
.hazof-toggle-label { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; }
.hazof-toggle-label input { width: 18px; height: 18px; }
.hazof-modal-privacy { margin: 8px 0 16px; }
.hazof-modal-actions { justify-content: flex-start; }
.hazof-privacy-settings { display: inline-block; margin: 8px; font-size: 13px; text-decoration: underline; cursor: pointer; }

@media (max-width: 640px) {
    .hazof-consent-banner { left: 8px; right: 8px; bottom: 8px; padding: 15px; }
    .hazof-consent-inner { display: block; }
    .hazof-consent-actions { margin-top: 13px; }
    .hazof-consent-actions .hazof-btn { flex: 1; min-width: 0; }
    .hazof-consent-modal { padding: 24px 18px 18px; }
    .hazof-consent-category { display: block; }
    .hazof-toggle-label { margin-top: 10px; }
}
