/**
 * Cookie Consent Styles - Pixels App (Flatsome Child)
 * Bottom horizontal bar layout matching Isuzu Vietnam style
 */

:root {
    --cc-primary: #b70002;
    --cc-primary-hover: #920002;
    --cc-text-color: #333333;
    --cc-bg: #ffffff;
    --cc-radius: 12px;
    --cc-shadow: 0 10px 35px rgba(0, 0, 0, 0.16), 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Cookie Bottom Bar / Banner
   ========================================================================== */
.pixels-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 24px;
    right: 24px;
    max-width: 1280px;
    margin: 0 auto;
    background: var(--cc-bg);
    border-radius: var(--cc-radius);
    box-shadow: var(--cc-shadow);
    padding: 18px 24px;
    z-index: 999999;
    font-family: 'Be Vietnam Pro', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(25px);
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
    box-sizing: border-box;
}

.pixels-cookie-banner * {
    box-sizing: border-box;
}

.pixels-cookie-banner.pixels-cookie-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Banner Content */
.pixels-cookie-content {
    flex: 1 1 auto;
    font-size: 13.5px;
    color: #444444;
    line-height: 1.55;
    margin: 0;
}

.pixels-cookie-content a {
    color: var(--cc-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.pixels-cookie-content a:hover {
    color: var(--cc-primary-hover);
    text-decoration: underline;
}

/* Action Buttons */
.pixels-cookie-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pixels-cookie-btn {
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    margin: 0;
}

.pixels-cookie-btn-accept,
.pixels-cookie-btn-cancel {
    background-color: var(--cc-primary);
    color: #ffffff;
}

.pixels-cookie-btn-accept:hover,
.pixels-cookie-btn-cancel:hover {
    background-color: var(--cc-primary-hover);
    box-shadow: 0 4px 10px rgba(183, 0, 2, 0.3);
    transform: translateY(-1px);
}

.pixels-cookie-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   Floating Trigger Badge (Re-open Cookie Preferences)
   ========================================================================== */
.pixels-cookie-trigger-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.06);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999998;
    color: var(--cc-primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.85;
    padding: 0;
}

.pixels-cookie-trigger-btn:hover {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(183, 0, 2, 0.25), 0 0 0 1px rgba(183, 0, 2, 0.15);
}

.pixels-cookie-trigger-btn svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* Tooltip for Trigger */
.pixels-cookie-trigger-btn::after {
    content: "Cài đặt Cookie";
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
    background: #1e293b;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: 'Be Vietnam Pro', sans-serif;
}

.pixels-cookie-trigger-btn:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 900px) {
    .pixels-cookie-banner {
        bottom: 12px;
        left: 12px;
        right: 12px;
        padding: 14px 18px;
        border-radius: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .pixels-cookie-content {
        font-size: 13px;
        line-height: 1.5;
    }

    .pixels-cookie-actions {
        justify-content: flex-end;
    }

    .pixels-cookie-trigger-btn {
        bottom: 14px;
        left: 14px;
        width: 38px;
        height: 38px;
    }

    .pixels-cookie-trigger-btn::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .pixels-cookie-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .pixels-cookie-btn {
        flex: 1 1 50%;
        padding: 9px 12px;
    }
}