.malibu_cc-theme {
    --malibu_cc-color-primary: #006039;
    --malibu_cc-color-bg: #ffffff;
    --malibu_cc-color-text: #1f2937;
    --malibu_cc-color-muted: #6b7280;
}

#malibu_cc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(4px);
    z-index: 999997;
}

#malibu_cc-panel {
    display: none;
    position: fixed;
    z-index: 999998;
    width: min(440px, calc(100vw - 32px));
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#malibu_cc-panel.malibu_cc-bottom_right { right: 22px; bottom: 86px; }
#malibu_cc-panel.malibu_cc-bottom_left { left: 22px; bottom: 86px; }
#malibu_cc-panel.malibu_cc-bottom_center { left: 50%; bottom: 86px; transform: translateX(-50%); }

#malibu_cc-panel.malibu_cc-open {
    display: block;
    animation: malibu_ccSlideUp .28s ease-out;
}

#malibu_cc-overlay.malibu_cc-open { display: block; }

.malibu_cc-card {
    background: var(--malibu_cc-color-bg);
    color: var(--malibu_cc-color-text);
    border-radius: 22px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(148, 163, 184, .25);
    padding: 22px;
    overflow: hidden;
}

.malibu_cc-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

#malibu_cc-title {
    margin: 0 0 7px;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 750;
    color: var(--malibu_cc-color-text);
}

.malibu_cc-header p {
    margin: 0;
    color: var(--malibu_cc-color-muted);
    font-size: 14px;
    line-height: 1.55;
}

.malibu_cc-option {
    display: block;
    gap: 0;
    padding: 14px;
    border-radius: 16px;
    background: rgba(148, 163, 184, .10);
    margin: 10px 0;
}

.malibu_cc-option-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.malibu_cc-option-text {
    flex: 1 1 auto;
    min-width: 0;
}

.malibu_cc-option strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

.malibu_cc-option span {
    display: block;
    color: var(--malibu_cc-color-muted);
    font-size: 12.5px;
    line-height: 1.4;
}

.malibu_cc-view-more {
    margin-top: 8px;
    border: 0;
    background: transparent;
    color: #000000;
    font-size: 12.5px;
    font-weight: 650;
    padding: 0;
    cursor: pointer;
}

.malibu_cc-view-more:hover { text-decoration: underline; }

.malibu_cc-switch {
    position: relative;
    width: 62px;
    height: 28px;
    flex: 0 0 auto;
}

.malibu_cc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.malibu_cc-switch > span {
    position: absolute;
    cursor: default;
    inset: 0;
    background: #cbd5e1;
    border-radius: 999px;
    transition: .2s;
}

.malibu_cc-switch > span::after {
    content: "Aus";
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    color: #1f2937;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.malibu_cc-switch > span:before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.malibu_cc-switch input:checked + span {
    background: var(--malibu_cc-color-primary);
}

.malibu_cc-switch input:checked + span::after {
    content: "An";
    left: 8px;
    right: auto;
    color: #ffffff;
}

.malibu_cc-switch input:checked + span:before {
    transform: translateX(34px);
}

.malibu_cc-privacy {
    display: inline-block;
    margin: 8px 0 16px;
    color: #000000;
    font-size: 13px;
    text-decoration: none;
    font-weight: 650;
}

.malibu_cc-privacy:hover { text-decoration: underline; }

.malibu_cc-cookie-details {
    display: none;
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, .28);
    background: rgba(148, 163, 184, .08);
    font-size: 12.5px;
    color: var(--malibu_cc-color-muted);
    line-height: 1.45;
}

.malibu_cc-cookie-details.malibu_cc-open {
    display: block;
}

.malibu_cc-cookie-details strong {
    display: block;
    color: var(--malibu_cc-color-text);
    font-size: 13px;
    margin-bottom: 6px;
}

.malibu_cc-cookie-details p {
    margin: 0 0 4px;
}

.malibu_cc-cookie-details p:last-child {
    margin-bottom: 0;
}

.malibu_cc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.malibu_cc-actions button {
    border: 0;
    cursor: pointer;
    border-radius: 20px;
    height: 40px;
    padding: 0 30px;
    font-weight: 750;
    font-size: 14px;
    background: var(--malibu_cc-color-primary);
    color: #ffffff;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.malibu_cc-actions button:hover { transform: translateY(-1px); }

#malibu_cc-deny {
    background: rgba(212, 212, 212, 0.3);
    color: #000000;
    border: 0;
}

#malibu_cc-floating-button {
    position: fixed;
    left: 22px;
    bottom: 22px;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 0;
    background: var(--malibu_cc-color-primary);
    color: white;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .25);
    cursor: pointer;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease, box-shadow .18s ease;
}

#malibu_cc-floating-button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .30);
}

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

#malibu_cc-panel.malibu_cc-bottom_center.malibu_cc-open { animation: malibu_ccSlideUpCenter .28s ease-out; }

@keyframes malibu_ccSlideUpCenter {
    from { opacity: 0; transform: translateX(-50%) translateY(14px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 520px) {
    #malibu_cc-panel,
    #malibu_cc-panel.malibu_cc-bottom_right,
    #malibu_cc-panel.malibu_cc-bottom_left,
    #malibu_cc-panel.malibu_cc-bottom_center {
        left: 16px;
        right: 16px;
        bottom: 84px;
        width: auto;
        transform: none;
    }

    .malibu_cc-card {
        padding: 18px;
        border-radius: 18px;
    }

    .malibu_cc-actions {
        grid-template-columns: 1fr 1fr;
    }
}
