/* ==========================================================================
   COOKIE BANNER COMPONENT STYLE
   ========================================================================== */

.vfw-cookie-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: var(--vfw-z-modal, 200);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    font-family: var(--vfw-font-family, 'Inter', system-ui, sans-serif);
    pointer-events: none;
}

/* Cookie Banner Card */
.vfw-cookie-banner {
    background-color: var(--vfw-color-background, #ffffff);
    border: 1px solid var(--vfw-color-border, #e2e8f0);
    border-radius: 12px;
    padding: 24px;
    width: 340px;
    box-shadow: var(--vfw-shadow-bottom-lg, 0 10px 25px rgba(0, 0, 0, 0.08));
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
    transition: opacity var(--vfw-transition-normal, 0.3s ease),
                transform var(--vfw-transition-normal, 0.3s ease);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: auto;
}

.vfw-cookie-banner-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Header & Text */
.vfw-cookie-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--vfw-color-text, #0f172a);
    margin: 0;
}

.vfw-cookie-description {
    font-size: 13px;
    line-height: 1.5;
    color: var(--vfw-color-text-muted, #475569);
    margin: 0;
}

.vfw-cookie-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--vfw-color-text, #0f172a);
    text-decoration: underline;
    align-self: flex-start;
    cursor: pointer;
    transition: color var(--vfw-transition-fast, 0.15s ease);
}

.vfw-cookie-link:hover {
    color: var(--vfw-color-primary, #4f46e5);
}

/* Actions Row */
.vfw-cookie-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.vfw-cookie-button {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--vfw-border-radius, 6px);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    transition: all var(--vfw-transition-fast, 0.15s ease);
    border: 1px solid transparent;
}

.vfw-cookie-button-primary {
    background-color: var(--vfw-color-primary, #4f46e5);
    color: var(--vfw-color-text-on-primary, #ffffff);
}

.vfw-cookie-button-primary:hover {
    background-color: var(--vfw-color-primary-hover, #271fa9);
}

.vfw-cookie-button-secondary {
    background-color: transparent;
    border: 1px solid var(--vfw-color-text, #0f172a);
    color: var(--vfw-color-text, #0f172a);
}

.vfw-cookie-button-secondary:hover {
    background-color: var(--vfw-color-surface, #f8f8fc);
}

/* Floating Lock Toggle Button */
.vfw-cookie-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--vfw-color-text, #030217);
    color: var(--vfw-color-background, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: var(--vfw-shadow-bottom-sm, 0 4px 12px rgba(3, 2, 23, 0.15));
    transition: transform var(--vfw-transition-fast, 0.15s ease),
                background-color var(--vfw-transition-fast, 0.15s ease);
    pointer-events: auto;
}

.vfw-cookie-toggle:hover {
    transform: scale(1.08);
}

.vfw-cookie-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ==========================================================================
   MOBILE LAYOUT RULES (DOCKING AT BOTTOM)
   ========================================================================== */

.vfw-cookie-banner-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    border-radius: 12px 12px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    transform: translateY(100%);
    box-shadow: var(--vfw-shadow-top-lg, 0 -10px 25px rgba(0, 0, 0, 0.08));
}

.vfw-cookie-banner-mobile.vfw-cookie-banner-visible {
    transform: translateY(0);
}

/* When embedded directly for static mockup validation */
.vfw-cookie-banner-static {
    position: relative;
    bottom: auto;
    right: auto;
    left: auto;
    opacity: 1;
    transform: none;
    width: 100%;
}

.vfw-cookie-banner-static-mobile {
    position: relative;
    border-radius: 12px 12px 0 0;
    opacity: 1;
    transform: none;
    width: 100%;
}
