/* SLU Toolkit — Cookie Consent */

/* ── Shared button styles ─────────────────────────────────────────────── */
#slu-cookie-banner button {
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background-color .2s, opacity .2s;
    white-space: nowrap;
    font-family: inherit;
}
#slu-cookie-banner button:hover { opacity: .88; }

#slu-cookie-policy {
    background: transparent !important;
    text-decoration: underline;
    padding: 8px 6px !important;
    font-size: 12px !important;
    opacity: .75;
}

/* ── Bottom Sheet layout (default) ───────────────────────────────────── */
#slu-cookie-banner.slu-layout-sheet,
#slu-cookie-banner.slu-layout-slim {
    bottom: 0px;
    top: auto;
}
#slu-cookie-banner.slu-layout-sheet {
    position: fixed;
    left: 0;
    right: 0;
    padding: 24px 32px 28px;
    border-radius: 0px;
    box-shadow: 0 -4px 32px rgba(0,0,0,.15);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: inherit;
}
#slu-cookie-banner.slu-layout-sheet p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 600px;
}
#slu-cookie-banner.slu-layout-sheet .slu-cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
#slu-cookie-banner.slu-layout-sheet .slu-cookie-buttons button {
    padding: 9px 22px;
}

/* ── Floating Card layout ─────────────────────────────────────────────── */
#slu-cookie-banner.slu-layout-floating {
    position: fixed;
    right: 20px;
    width: 280px;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    z-index: 99999;
    font-family: inherit;
}
#slu-cookie-banner.slu-layout-floating p {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.5;
}
#slu-cookie-banner.slu-layout-floating .slu-cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
#slu-cookie-banner.slu-layout-floating .slu-cookie-buttons button {
    padding: 9px 14px;
    width: 100%;
    text-align: center;
}

/* ── Modal layout ─────────────────────────────────────────────────────── */
#slu-cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99998;
}
#slu-cookie-banner.slu-layout-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    max-width: calc(100vw - 40px);
    padding: 28px 24px;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,.25);
    z-index: 99999;
    text-align: center;
    font-family: inherit;
}
.slu-cookie-modal-icon {
    font-size: 36px;
    margin-bottom: 10px;
}
#slu-cookie-banner.slu-layout-modal p {
    margin: 0 0 18px;
    font-size: 13.5px;
    line-height: 1.6;
}
#slu-cookie-banner.slu-layout-modal .slu-cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}
#slu-cookie-banner.slu-layout-modal .slu-cookie-buttons button {
    padding: 10px 20px;
    width: 100%;
}

/* ── Slim Bar layout ──────────────────────────────────────────────────── */
#slu-cookie-banner.slu-layout-slim {
    position: fixed;
    left: 0;
    right: 0;
    padding: 8px 20px;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: inherit;
}
#slu-cookie-banner.slu-layout-slim p {
    margin: 0;
    font-size: 12.5px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#slu-cookie-banner.slu-layout-slim .slu-cookie-buttons {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
}
#slu-cookie-banner.slu-layout-slim .slu-cookie-buttons button {
    padding: 5px 12px;
    font-size: 12px;
}

/* ── Manage Consent button ────────────────────────────────────────────── */
#slu-cookie-manage {
    position: fixed;
    bottom: 10px;
    right: 10px;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 99998;
    font-size: 13px;
    font-weight: 500;
    transition: background-color .2s;
    font-family: inherit;
}

/* ── Mobile ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    #slu-cookie-banner.slu-layout-sheet { padding: 20px 16px 24px; }
    #slu-cookie-banner.slu-layout-sheet .slu-cookie-buttons { flex-direction: column; width: 100%; }
    #slu-cookie-banner.slu-layout-sheet .slu-cookie-buttons button { width: 100%; }
    #slu-cookie-banner.slu-layout-floating { width: calc(100vw - 20px); right: 10px; }
    #slu-cookie-banner.slu-layout-slim p { display: none; }
}
