.saec-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99999;
    background: var(--saec-consent-bg, #020617);
    color: var(--saec-consent-text, #f9fafb);
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 -4px 18px rgba(15,23,42,.5);
    display: none;
}
.saec-consent-pos-bottom { bottom: 0; }
.saec-consent-pos-top { top: 0; }
.saec-consent-pos-center {
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,23,42,.65);
}
.saec-consent-layout-bar .saec-consent-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}
.saec-consent-layout-box .saec-consent-inner {
    margin: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(15,23,42,.98);
    box-shadow: 0 20px 45px rgba(15,23,42,.8);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.saec-consent-text {
    flex: 1 1 260px;
}
.saec-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.saec-consent-main {
    margin: 0 0 4px 0;
    font-weight: 600;
}
.saec-consent-secondary {
    margin: 0 0 6px 0;
    opacity: .85;
}
.saec-consent-btn {
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, transform .05s ease;
}
.saec-consent-btn-primary {
    background: var(--saec-consent-primary, #2563eb);
    color: var(--saec-consent-btn-text, #ffffff);
    border-color: rgba(15,23,42,.4);
}
.saec-consent-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15,23,42,.35);
}
.saec-consent-btn-secondary {
    background: var(--saec-consent-secondary, #0f172a);
    color: var(--saec-consent-text, #f9fafb);
    border-color: rgba(148,163,184,.5);
}
.saec-consent-settings-link {
    border: none;
    background: transparent;
    padding: 0;
    color: var(--saec-consent-primary, #60a5fa);
    cursor: pointer;
    text-decoration: underline;
    font-size: 13px;
}

/* Modal */
.saec-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}
.saec-consent-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.7);
}
.saec-consent-modal-panel {
    position: relative;
    max-width: 640px;
    width: 100%;
    margin: 16px;
    background: #020617;
    color: #e5e7eb;
    border-radius: 16px;
    padding: 20px 22px 18px;
    box-shadow: 0 22px 45px rgba(15,23,42,.85);
    z-index: 1;
}
.saec-consent-modal h2 {
    margin-top: 0;
}
.saec-consent-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 22px;
    cursor: pointer;
}
.saec-consent-categories {
    margin-top: 12px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}
.saec-consent-category {
    border-bottom: 1px solid rgba(31,41,55,.6);
    padding: 8px 0 10px;
}
.saec-consent-category:last-child {
    border-bottom: none;
}
.saec-consent-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.saec-consent-category-desc {
    font-size: 13px;
    color: #9ca3af;
    margin: 4px 0 0;
}
.saec-consent-required {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #22c55e;
    margin-top: 4px;
}
.saec-consent-modal-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Switch */
.saec-consent-switch {
    position: relative;
    display: inline-block;
    width: 37px;
    height: 20px;
}
.saec-consent-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.saec-consent-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4b5563;
    transition: .2s;
    border-radius: 999px;
}
.saec-consent-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #f9fafb;
    transition: .2s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(15,23,42,.4);
}
.saec-consent-switch input:checked + .saec-consent-slider {
    background-color: #22c55e;
}
.saec-consent-switch input:checked + .saec-consent-slider:before {
    transform: translateX(17px);
}
.saec-consent-switch input:disabled + .saec-consent-slider {
    background-color: #16a34a;
    opacity: .8;
}

@media (max-width: 640px) {
    .saec-consent-layout-bar .saec-consent-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .saec-consent-actions {
        width: 100%;
        justify-content: flex-start;
    }
}


/* Inline preferences panel (shortcode) */
.saec-consent-inline-panel{
    border: 1px solid rgba(148,163,184,.35);
    border-radius: 14px;
    padding: 16px;
    background: rgba(2,6,23,.04);
    max-width: 820px;
}
.saec-consent-inline-head h3{ margin: 0 0 6px; font-size: 18px; }
.saec-consent-inline-head p{ margin: 0 0 14px; opacity: .85; }
.saec-consent-inline-cat{ padding: 10px 0; border-top: 1px solid rgba(148,163,184,.22); }
.saec-consent-inline-cat:first-child{ border-top: 0; }
.saec-consent-inline-row{ display:flex; justify-content:space-between; gap: 16px; align-items:center; }
.saec-consent-inline-desc{ font-size: 13px; opacity: .85; margin-top: 4px; }
.saec-consent-inline-actions{ display:flex; gap: 10px; flex-wrap:wrap; margin-top: 14px; }


/* Legal documents */
.saec-consent-document{
    max-width: 920px;
    line-height: 1.6;
}
.saec-consent-document h2{
    font-size: 28px;
    margin: 0 0 14px;
}
.saec-consent-document h3{
    font-size: 18px;
    margin: 18px 0 8px;
}
.saec-consent-document p{
    margin: 0 0 10px;
}
.saec-consent-document ul{
    margin: 0 0 10px 18px;
}


/* Persistent "Privacy settings" button */
.saec-consent-fab{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:999999;
  border:0;
  cursor:pointer;
  border-radius:999px;
  padding:10px 14px;
  font:inherit;
  font-weight:700;
  background:rgba(2,6,23,.88);
  color:#fff;
  box-shadow:0 12px 30px rgba(0,0,0,.30);
  backdrop-filter: blur(10px);
}
.saec-consent-fab:focus{
  outline:2px solid rgba(37,99,235,.9);
  outline-offset:2px;
}
