/*
 * SmartInventory — cookie consent banner styles.
 * Loaded on every page that ships analytics / error reporting; paired with
 * web/public/web/js/util/cookie-consent.js. Uses brand tokens via design-tokens.css.
 */

@import url('design-tokens.css');

.si-cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    max-width: 720px;
    margin: 0 auto;
    background: rgba(10, 22, 40, 0.96);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    font-family: var(--font-sans, 'DM Sans', sans-serif);
    font-size: 13.5px;
    line-height: 1.55;
}
.si-cookie-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 22px;
}
.si-cookie-body {
    color: rgba(255, 255, 255, 0.82);
}
.si-cookie-body strong {
    color: #fff;
    font-weight: 700;
}
.si-cookie-body a {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.si-cookie-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.si-cookie-btn {
    cursor: pointer;
    border: 0;
    border-radius: 9px;
    padding: 9px 16px;
    font: inherit;
    font-weight: 600;
    transition: transform 0.15s ease, background 0.15s ease;
}
.si-cookie-btn--primary {
    background: var(--accent-gradient, linear-gradient(135deg, #1E5FE6, #E53935));
    color: #fff;
    box-shadow: 0 4px 14px rgba(30, 95, 230, 0.35);
}
.si-cookie-btn--primary:hover { transform: translateY(-1px); }
.si-cookie-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.si-cookie-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

@media (min-width: 640px) {
    .si-cookie-inner {
        flex-direction: row;
        align-items: center;
        gap: 22px;
    }
    .si-cookie-body { flex: 1; }
    .si-cookie-actions { flex-shrink: 0; }
}
