/* ==========================================================================
   Cookie Consent Banner — Osmova RGPD
   Design v4 — Light mode only
   ========================================================================== */

/* ---- Banner Container ---- */
.occ-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 999999;
    max-width: 320px;
    width: calc(100% - 32px);
    background: #ffffff;
    border: 1.5px solid #E8E8E8;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    animation: occSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    overflow: hidden;
}

/* Accent bar top */
.occ-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2.5px;
    background: #0064FF;
    border-radius: 0 0 3px 3px;
}

@keyframes occSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.occ-banner__inner {
    padding: 22px 20px 18px;
}

/* ---- Robot Visual ---- */
.occ-banner__visual {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.occ-banner__visual svg {
    width: 100px;
    height: 84px;
}

/* ---- Robot Animations ---- */
@keyframes occBodyBreathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes occWaveArm {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(-28deg); }
    30% { transform: rotate(-10deg); }
    45% { transform: rotate(-28deg); }
    60% { transform: rotate(-10deg); }
    75% { transform: rotate(-28deg); }
    90% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

@keyframes occPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

@keyframes occBlink {
    0%, 85%, 100% { transform: scaleY(1); }
    90%, 95% { transform: scaleY(0); }
}

@keyframes occAntennaWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(6deg); }
    75% { transform: rotate(-6deg); }
}

#occ-robot-wrap {
    animation: occBodyBreathe 3s ease-in-out infinite;
    transform-origin: center bottom;
}

#occ-arm-right {
    transform-origin: 88px 57px;
    animation: occWaveArm 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
    will-change: transform;
}

#occ-chest-dot {
    transform-origin: 60px 66px;
    animation: occPulse 2s ease-in-out infinite;
}

#occ-eye-left {
    transform-origin: 44px 30px;
    animation: occBlink 4s linear infinite;
    animation-delay: 0.8s;
    will-change: transform;
}

#occ-eye-right {
    transform-origin: 76px 30px;
    animation: occBlink 4s linear infinite;
    animation-delay: 0.8s;
    will-change: transform;
}

#occ-antenna {
    transform-origin: 60px 16px;
    animation: occAntennaWiggle 3.5s ease-in-out infinite;
    animation-delay: 0.2s;
}

/* ---- Body Text ---- */
.occ-banner__body {
    text-align: center;
    margin-bottom: 16px;
}

.occ-banner__title {
    font-size: 14px;
    font-weight: 800;
    color: #0D0D0D;
    letter-spacing: -0.025em;
    margin-bottom: 6px;
    line-height: 1.3;
}

.occ-banner__text {
    font-size: 12px;
    color: #6B6B6B;
    line-height: 1.6;
    max-width: 260px;
    margin: 0 auto;
}

.occ-banner__text strong {
    color: #0D0D0D;
    font-weight: 700;
}

/* ---- Buttons ---- */
.occ-banner__actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.occ-btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: 9px;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: -0.01em;
    border: none;
    line-height: 1;
}

.occ-btn--accept {
    background: #0064FF;
    color: #ffffff;
}

.occ-btn--accept:hover {
    background: #0052D4;
    transform: translateY(-1px);
}

.occ-btn--refuse {
    background: transparent;
    color: #0D0D0D;
    box-shadow: inset 0 0 0 1.5px #E8E8E8;
}

.occ-btn--refuse:hover {
    box-shadow: inset 0 0 0 1.5px #0D0D0D;
    transform: translateY(-1px);
}

/* ---- Customize Link ---- */
.occ-banner__customize {
    text-align: center;
    margin-bottom: 10px;
}

.occ-btn--customize {
    background: none;
    border: none;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #0064FF;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 2px 6px;
    transition: color 0.15s ease;
}

.occ-btn--customize:hover {
    color: #0052D4;
}

/* ---- Footer Links ---- */
.occ-banner__footer {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-top: 10px;
    border-top: 1px solid #F2F2F2;
}

.occ-banner__footer a {
    font-size: 10px;
    font-weight: 600;
    color: #C0C0C0;
    text-decoration: none;
    transition: color 0.15s ease;
}

.occ-banner__footer a:hover {
    color: #0D0D0D;
}

/* ---- Preferences Panel ---- */
.occ-prefs {
    padding: 16px 20px 20px;
    border-top: 1px solid #F2F2F2;
    animation: occFadeIn 0.25s ease both;
}

@keyframes occFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.occ-prefs__title {
    font-size: 13px;
    font-weight: 800;
    color: #0D0D0D;
    letter-spacing: -0.025em;
    margin-bottom: 4px;
}

.occ-prefs__desc {
    font-size: 11px;
    color: #6B6B6B;
    margin-bottom: 16px;
    line-height: 1.55;
}

/* ---- Preference Item ---- */
.occ-pref-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #F2F2F2;
}

.occ-pref-item:last-of-type {
    border-bottom: none;
}

.occ-pref-item__name {
    font-size: 12px;
    font-weight: 700;
    color: #0D0D0D;
    margin-bottom: 1px;
}

.occ-pref-item__desc {
    font-size: 10px;
    color: #6B6B6B;
    line-height: 1.45;
}

/* ---- Toggle Switch ---- */
.occ-toggle {
    flex-shrink: 0;
}

.occ-toggle input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 38px;
    height: 20px;
    background: #E8E8E8;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background 0.25s ease;
    outline: none;
    border: none;
    vertical-align: middle;
}

.occ-toggle input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.occ-toggle input[type="checkbox"]:checked {
    background: #0064FF;
}

.occ-toggle input[type="checkbox"]:checked::after {
    transform: translateX(18px);
}

.occ-toggle input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.occ-toggle label {
    display: none;
}

.occ-toggle--locked input[type="checkbox"] {
    background: #03DC97;
}

/* ---- Preferences Actions ---- */
.occ-prefs__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.occ-prefs__actions .occ-btn--accept {
    flex: none;
}

/* ---- Reopen Button ---- */
.occ-reopen {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 999998;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #E8E8E8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    animation: occFadeIn 0.3s ease both 0.4s;
}

.occ-reopen:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ---- Responsive Mobile ---- */
@media (max-width: 480px) {
    .occ-banner {
        bottom: 10px;
        left: 10px;
        width: calc(100% - 20px);
        max-width: none;
        border-radius: 14px;
    }

    .occ-banner__inner {
        padding: 18px 16px 14px;
    }

    .occ-banner__visual svg {
        width: 86px;
        height: 72px;
    }

    .occ-prefs {
        padding: 14px 16px 16px;
    }

    .occ-prefs__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .occ-prefs__actions .occ-btn--accept {
        width: 100%;
        text-align: center;
    }

    .occ-prefs__actions .occ-btn--customize {
        text-align: center;
    }

    .occ-reopen {
        bottom: 12px;
        left: 12px;
    }
}
