/* Esco Cookie Consent - Frontend Stiller */
:root {
    --ecc-primary: #2563eb;
    --ecc-bg: #ffffff;
    --ecc-text: #1f2937;
}

#esco-cookie-consent-root *,
#esco-cookie-consent-root *::before,
#esco-cookie-consent-root *::after {
    box-sizing: border-box;
}

.ecc-banner,
.ecc-modal,
.ecc-fab {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
}

/* Banner */
.ecc-banner {
    position: fixed;
    z-index: 2147483600;
    background: var(--ecc-bg);
    color: var(--ecc-text);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    border-radius: 16px;
    padding: 22px 24px;
    width: 420px;
    max-width: calc(100vw - 32px);
    animation: ecc-fade-up .35s ease;
}

.ecc-banner.ecc-pos-bottom-left { left: 16px; bottom: 16px; }
.ecc-banner.ecc-pos-bottom-right { right: 16px; bottom: 16px; }
.ecc-banner.ecc-pos-bottom { left: 50%; bottom: 16px; transform: translateX(-50%); }
.ecc-banner.ecc-pos-top { left: 50%; top: 16px; transform: translateX(-50%); }

.ecc-banner.ecc-layout-bar {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    transform: none;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.ecc-banner.ecc-layout-bar .ecc-body { flex: 1 1 340px; }
.ecc-banner.ecc-layout-bar .ecc-actions { flex-wrap: nowrap; }

.ecc-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
}

.ecc-message {
    font-size: 13.5px;
    margin: 0 0 16px;
    color: var(--ecc-text);
    opacity: .85;
}

.ecc-message a { color: var(--ecc-primary); text-decoration: underline; }

.ecc-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ecc-btn {
    cursor: pointer;
    border: 0;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 13.5px;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    flex: 1 1 auto;
    white-space: nowrap;
}
.ecc-btn:hover { transform: translateY(-1px); }

.ecc-btn-primary { background: var(--ecc-primary); color: #fff; }
.ecc-btn-secondary { background: rgba(0,0,0,.06); color: var(--ecc-text); }
.ecc-btn-ghost { background: transparent; color: var(--ecc-text); border: 1px solid rgba(0,0,0,.15); }

/* Modal */
.ecc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    z-index: 2147483640;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: ecc-fade .25s ease;
}

.ecc-modal {
    background: var(--ecc-bg);
    color: var(--ecc-text);
    border-radius: 18px;
    width: 640px;
    max-width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
    animation: ecc-fade-up .3s ease;
}

.ecc-modal-head {
    padding: 22px 24px 14px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.ecc-modal-head h2 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.ecc-modal-head p { margin: 0; font-size: 13px; opacity: .75; }

.ecc-close {
    background: rgba(0,0,0,.05);
    border: 0;
    width: 34px; height: 34px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: var(--ecc-text);
    flex-shrink: 0;
}

.ecc-modal-body {
    padding: 8px 24px;
    overflow-y: auto;
}

.ecc-cat {
    border: 1px solid rgba(0,0,0,.09);
    border-radius: 12px;
    margin: 14px 0;
    overflow: hidden;
}

.ecc-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
}
.ecc-cat-title { font-size: 14.5px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.ecc-cat-desc { font-size: 12.5px; opacity: .75; margin: 6px 0 0; }
.ecc-cat-left { flex: 1; }

.ecc-cat-toggle-wrap { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ecc-always { font-size: 11.5px; font-weight: 600; color: #16a34a; }

/* Switch */
.ecc-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.ecc-switch input { opacity: 0; width: 0; height: 0; }
.ecc-slider {
    position: absolute; inset: 0;
    background: #cbd5e1;
    border-radius: 999px;
    transition: .25s;
    cursor: pointer;
}
.ecc-slider::before {
    content: "";
    position: absolute;
    height: 18px; width: 18px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .25s;
}
.ecc-switch input:checked + .ecc-slider { background: var(--ecc-primary); }
.ecc-switch input:checked + .ecc-slider::before { transform: translateX(20px); }
.ecc-switch input:disabled + .ecc-slider { opacity: .55; cursor: not-allowed; }

.ecc-cat-detail {
    padding: 0 16px 14px;
    display: none;
}
.ecc-cat.ecc-open .ecc-cat-detail { display: block; }

.ecc-service { font-size: 12.5px; padding: 8px 0; border-top: 1px dashed rgba(0,0,0,.08); }
.ecc-service-name { font-weight: 600; }
.ecc-service-provider { opacity: .7; }
.ecc-cookie-table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 11.5px; }
.ecc-cookie-table th, .ecc-cookie-table td { text-align: left; padding: 4px 6px; border: 1px solid rgba(0,0,0,.08); }
.ecc-cookie-table th { background: rgba(0,0,0,.03); font-weight: 600; }

.ecc-modal-foot {
    padding: 16px 24px;
    border-top: 1px solid rgba(0,0,0,.08);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Floating button */
.ecc-fab {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 2147483500;
    background: var(--ecc-primary);
    color: #fff;
    border: 0;
    width: 46px; height: 46px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform .2s ease;
}
.ecc-fab:hover { transform: scale(1.08); }

/* RTL */
[dir="rtl"] .ecc-banner.ecc-pos-bottom-left { left: auto; right: 16px; }
[dir="rtl"] .ecc-fab { left: auto; right: 16px; }

@keyframes ecc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ecc-fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 520px) {
    .ecc-banner { width: calc(100vw - 24px); left: 12px; right: 12px; bottom: 12px; }
    .ecc-banner.ecc-pos-bottom, .ecc-banner.ecc-pos-top { transform: none; left: 12px; }
    .ecc-actions { flex-direction: column; }
    .ecc-btn { width: 100%; }
}
