/* AtWeb Tag 1.0.1 - consent banner */
.awt-root {
    --awt-primary: #1d4ed8;
    --awt-bg: #ffffff;
    --awt-text: #1f2937;
    --awt-muted: #4b5563;
    --awt-border: #e5e7eb;
    --awt-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: var(--awt-text);
}

.awt-root *, .awt-root *::before, .awt-root *::after { box-sizing: border-box; }
.awt-root [hidden] { display: none !important; }

.awt-backdrop {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483000;
    background: rgba(17, 24, 39, .45);
}

/* Banner */
.awt-banner {
    position: fixed; z-index: 2147483001;
    background: var(--awt-bg); color: var(--awt-text);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
    border: 1px solid var(--awt-border);
    display: flex; gap: 16px;
}
.awt-layout-box { flex-direction: column; width: 400px; max-width: calc(100vw - 32px); padding: 20px; border-radius: var(--awt-radius); }
.awt-layout-box.awt-pos-bottom-left { left: 16px; bottom: 16px; }
.awt-layout-box.awt-pos-bottom-right { right: 16px; bottom: 16px; }
.awt-layout-box.awt-pos-bottom { left: 50%; bottom: 16px; transform: translateX(-50%); }
.awt-layout-box.awt-pos-center { left: 50%; top: 50%; transform: translate(-50%, -50%); }

.awt-layout-bar { left: 0; right: 0; bottom: 0; padding: 16px 24px; align-items: center; border-width: 1px 0 0; border-radius: 0; }
.awt-layout-bar .awt-text { flex: 1 1 auto; }
.awt-layout-bar .awt-actions { flex: 0 0 auto; }

.awt-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--awt-text); }
.awt-desc { margin: 0; color: var(--awt-muted); }
.awt-desc p { margin: 0 0 6px; }
.awt-link, .awt-desc a { color: var(--awt-primary); text-decoration: underline; }

.awt-actions, .awt-foot { display: flex; flex-wrap: wrap; gap: 8px; }
.awt-layout-box .awt-actions .awt-btn { flex: 1 1 30%; }

.awt-btn {
    appearance: none; -webkit-appearance: none;
    font: inherit; font-weight: 600; font-size: 14px; line-height: 1.2;
    padding: 10px 16px; min-height: 42px;
    border-radius: 8px; cursor: pointer;
    border: 1px solid var(--awt-primary);
    background: transparent; color: var(--awt-primary);
    text-transform: none; letter-spacing: normal; box-shadow: none; margin: 0;
}
.awt-btn:hover { filter: brightness(.95); }
.awt-btn:focus-visible, .awt-close:focus-visible, .awt-badge:focus-visible { outline: 3px solid var(--awt-primary); outline-offset: 2px; }
.awt-btn-primary { background: var(--awt-primary); color: #fff; }

/* Preferences */
.awt-modal {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483002;
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.awt-dialog {
    background: var(--awt-bg); color: var(--awt-text);
    width: 560px; max-width: 100%; max-height: calc(100vh - 32px);
    display: flex; flex-direction: column;
    border-radius: var(--awt-radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.awt-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--awt-border); }
.awt-head .awt-title { margin: 0; }
.awt-close { appearance: none; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--awt-muted); padding: 4px 8px; }
.awt-body { padding: 16px 20px; overflow-y: auto; }
.awt-foot { padding: 16px 20px; border-top: 1px solid var(--awt-border); }
.awt-foot .awt-btn { flex: 1 1 30%; }

.awt-cat { border: 1px solid var(--awt-border); border-radius: 8px; padding: 12px 14px; margin-top: 12px; }
.awt-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.awt-cat p { margin: 6px 0 0; color: var(--awt-muted); font-size: 13px; }

.awt-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 auto; margin: 0; }
.awt-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.awt-slider { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #cbd5e1; border-radius: 24px; transition: background .2s; }
.awt-slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.awt-switch input:checked + .awt-slider { background: var(--awt-primary); }
.awt-switch input:checked + .awt-slider::before { transform: translateX(20px); }
.awt-switch input:disabled + .awt-slider { opacity: .6; }
.awt-switch input:focus-visible + .awt-slider { outline: 3px solid var(--awt-primary); outline-offset: 2px; }

/* Badge */
.awt-badge {
    position: fixed; bottom: 16px; z-index: 2147482999;
    width: 44px; height: 44px; border-radius: 50%;
    border: 0; cursor: pointer; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--awt-primary); color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}
.awt-badge-left { left: 16px; }
.awt-badge-right { right: 16px; }

@media (max-width: 640px) {
    .awt-layout-box, .awt-layout-box.awt-pos-bottom, .awt-layout-box.awt-pos-center, .awt-layout-box.awt-pos-bottom-right {
        left: 8px; right: 8px; bottom: 8px; top: auto; width: auto; max-width: none; transform: none;
    }
    .awt-layout-bar { flex-direction: column; align-items: stretch; padding: 16px; }
    .awt-actions .awt-btn, .awt-foot .awt-btn { flex: 1 1 100%; }
}
