.cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: 5.2rem;
    width: min(430px, calc(100% - 2rem));
    z-index: 1100;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(15, 118, 106, 0.2);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.2);
    padding: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cookie-banner-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(15, 23, 42, 0.82);
    line-height: 1.4;
}

.cookie-banner a {
    color: #0f766a;
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cookie-fab {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(15, 118, 106, 0.3);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1150;
}

.cookie-fab:focus,
.cookie-fab:focus-visible,
.cookie-btn:focus,
.cookie-btn:focus-visible,
.cookie-toggle:focus,
.cookie-toggle:focus-visible,
.cookie-close:focus,
.cookie-close:focus-visible {
    outline: none;
}

.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 1190;
}

.cookie-panel {
    position: fixed;
    right: 1rem;
    bottom: 5rem;
    width: min(470px, calc(100% - 2rem));
    max-height: min(86vh, 720px);
    overflow: auto;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(15, 118, 106, 0.2);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.26);
    padding: 1rem;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cookie-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.cookie-panel-head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.cookie-close {
    border: none;
    background: rgba(15, 118, 106, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1rem;
    color: #0f172a;
}

.cookie-muted {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.65);
}

.cookie-option {
    border: 1px solid rgba(15, 118, 106, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.cookie-option strong {
    display: block;
    margin-bottom: 0.15rem;
}

.cookie-option p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(15, 23, 42, 0.76);
    line-height: 1.35;
}

.cookie-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 118, 106, 0.16);
    color: #0b5e53;
    white-space: nowrap;
}

.cookie-toggle {
    min-width: 60px;
    border: 1px solid rgba(15, 118, 106, 0.26);
    border-radius: 999px;
    padding: 0.36rem 0.7rem;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-weight: 700;
    color: #0f172a;
}

.cookie-toggle.is-on {
    background: rgba(15, 118, 106, 0.16);
    border-color: rgba(15, 118, 106, 0.4);
    color: #0b5e53;
}

.cookie-hint {
    margin: 0;
    font-size: 0.84rem;
    color: rgba(15, 23, 42, 0.72);
}

.cookie-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cookie-btn {
    border-radius: 10px;
    border: 1px solid rgba(15, 118, 106, 0.2);
    padding: 0.5rem 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.cookie-btn.cookie-btn-ghost {
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
}

.cookie-btn.cookie-btn-primary {
    background: #0f766a;
    border-color: #0f766a;
    color: #ffffff;
}

@media (min-width: 768px) {
    .cookie-banner {
        right: 1.2rem;
        bottom: 5.5rem;
    }

    .cookie-fab {
        right: 1.2rem;
        bottom: 1.2rem;
    }

    .cookie-panel {
        right: 1.2rem;
        bottom: 5.2rem;
    }
}
