/* LaunchFlow Cookie Banner */
.lfcb-banner {
    position: fixed;
    z-index: 999999;
    background: var(--lfcb-bg, #0f172a);
    color: var(--lfcb-text, #ffffff);
    font-size: var(--lfcb-font-size, 14px);
    line-height: 1.5;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

.lfcb-banner *,
.lfcb-banner *::before,
.lfcb-banner *::after { box-sizing: border-box; }

.lfcb-inner {
    padding: var(--lfcb-padding, 20px);
    max-width: var(--lfcb-max-width, 1200px);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.lfcb-title {
    margin: 0;
    font-size: calc(var(--lfcb-font-size, 14px) + 2px);
    font-weight: 700;
    color: var(--lfcb-text, #ffffff);
    flex: 0 0 100%;
}

.lfcb-message {
    flex: 1 1 300px;
    margin: 0;
}

.lfcb-message p { margin: 0 0 6px; }
.lfcb-message p:last-child { margin-bottom: 0; }

.lfcb-policy {
    color: var(--lfcb-accent, #f97316);
    text-decoration: underline;
    margin-left: 6px;
}

.lfcb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.lfcb-btn {
    cursor: pointer;
    border: none;
    padding: 10px 20px;
    border-radius: calc(var(--lfcb-radius, 12px) / 2);
    font-size: var(--lfcb-font-size, 14px);
    font-weight: 600;
    font-family: inherit;
    transition: opacity 0.2s ease, transform 0.2s ease;
    line-height: 1.2;
}

.lfcb-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.lfcb-btn:focus { outline: 2px solid var(--lfcb-accent); outline-offset: 2px; }

.lfcb-btn-accept {
    background: var(--lfcb-accent, #f97316);
    color: var(--lfcb-accent-text, #ffffff);
}

.lfcb-btn-reject {
    background: var(--lfcb-reject-bg, transparent);
    color: var(--lfcb-reject-text, #ffffff);
    border: 1px solid currentColor;
}

.lfcb-btn-settings {
    background: transparent;
    color: var(--lfcb-text, #ffffff);
    text-decoration: underline;
    padding: 10px 8px;
}

/* Layouts */
.lfcb-layout-bar {
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
}

.lfcb-layout-box {
    max-width: var(--lfcb-max-width, 480px);
    width: calc(100% - 40px);
    border-radius: var(--lfcb-radius, 12px);
}
.lfcb-layout-box .lfcb-inner { flex-direction: column; align-items: flex-start; }
.lfcb-layout-box .lfcb-actions { width: 100%; justify-content: flex-end; }

.lfcb-layout-modal {
    max-width: 520px;
    width: calc(100% - 40px);
    border-radius: var(--lfcb-radius, 12px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.lfcb-layout-modal .lfcb-inner { flex-direction: column; align-items: flex-start; }
.lfcb-layout-modal .lfcb-actions { width: 100%; justify-content: flex-end; }

/* Positions */
.lfcb-pos-bottom { bottom: 0; left: 0; right: 0; }
.lfcb-pos-top { top: 0; left: 0; right: 0; }
.lfcb-pos-bottom-left { bottom: 20px; left: 20px; }
.lfcb-pos-bottom-right { bottom: 20px; right: 20px; }
.lfcb-pos-top-left { top: 20px; left: 20px; }
.lfcb-pos-top-right { top: 20px; right: 20px; }

/* Inline (shortcode) */
.lfcb-banner.lfcb-inline {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    margin: 20px auto;
    width: 100%;
    max-width: var(--lfcb-max-width, 1200px);
    border-radius: var(--lfcb-radius, 12px);
}

/* Overlay */
.lfcb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
}

/* Animations */
.lfcb-anim-slide.lfcb-pos-bottom,
.lfcb-anim-slide.lfcb-pos-bottom-left,
.lfcb-anim-slide.lfcb-pos-bottom-right { animation: lfcbSlideUp 0.4s ease forwards; }
.lfcb-anim-slide.lfcb-pos-top,
.lfcb-anim-slide.lfcb-pos-top-left,
.lfcb-anim-slide.lfcb-pos-top-right { animation: lfcbSlideDown 0.4s ease forwards; }
.lfcb-anim-fade { animation: lfcbFade 0.4s ease forwards; }

@keyframes lfcbSlideUp { from { transform: translateY(120%); } to { transform: translateY(0); } }
@keyframes lfcbSlideDown { from { transform: translateY(-120%); } to { transform: translateY(0); } }
@keyframes lfcbFade { from { opacity: 0; } to { opacity: 1; } }

.lfcb-anim-slide.lfcb-layout-modal { animation: lfcbFade 0.4s ease forwards; }

/* Reopen button (settings shortcode) */
.lfcb-reopen {
    cursor: pointer;
    background: transparent;
    border: 1px solid currentColor;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

/* Mobile */
@media (max-width: 640px) {
    .lfcb-inner { flex-direction: column; align-items: flex-start; }
    .lfcb-actions { width: 100%; justify-content: stretch; }
    .lfcb-actions .lfcb-btn { flex: 1; }
    .lfcb-layout-box,
    .lfcb-pos-bottom-left,
    .lfcb-pos-bottom-right,
    .lfcb-pos-top-left,
    .lfcb-pos-top-right {
        left: 10px !important;
        right: 10px !important;
        width: calc(100% - 20px) !important;
        max-width: none !important;
    }
}
