

.floating-ui {
    position: fixed;
    inset: 0;
    pointer-events: none; 
    z-index: 99999;
}


.floating-circle-btn {
    background: rgba(14, 14, 16, 0.94) !important; 
    border: 1px solid rgba(255, 154, 61, 0.55) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45) !important;
    pointer-events: auto; 
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #FF9A3D !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}


.build-package-btn {
    background: #FF9A3D !important; 
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 14px rgba(255, 154, 61, 0.18) !important;
    color: #000000 !important;
    padding: 10px 17px !important;
    border-radius: 50px !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}


.floating-circle-btn:hover, .floating-circle-btn:focus-visible {
    background: #FF9A3D !important;
    border-color: #FF9A3D !important;
    color: #000000 !important;
    transform: translateY(-3px);
}
.build-package-btn:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 26px 0 rgba(0, 0, 0, 0.5) !important;
}


.left-action-stack {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.right-action-stack {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}


.scroll-top-btn { font-size: 1.05rem; font-weight: 300; }
.build-package-btn svg { stroke: #000000 !important; width: 14px; height: 14px; }
.floating-circle-btn svg { width: 18px; height: 18px; }

.left-action-stack, .right-action-stack { gap: 10px !important; }


@media (max-width: 768px) {
    .left-action-stack { bottom: 20px; left: 20px; }
    .right-action-stack { bottom: 20px; right: 20px; }
    .floating-circle-btn { width: 40px; height: 40px; }
    .build-package-btn { padding: 9px 14px !important; font-size: 0.6rem !important; }
}


#cookie-consent-banner {
    position: fixed;
    bottom: 30px;
    left: 40px;
    width: 400px;
    background: rgba(18, 18, 22, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    z-index: 9999999;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}


#cookie-consent-banner.hidden {
    opacity: 0;
    transform: translateY(50px);
    pointer-events: none;
}

.cookie-title {
    margin-top: 0;
    line-height: 1.2;
    font-family: 'League Spartan', sans-serif;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.cookie-text {
    font-family: 'Inter', sans-serif;
    color: #9ea0a8;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

.cookie-link {
    color: #FF9A3D;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}
.cookie-link:hover {
    border-color: #FF9A3D;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.btn-cookie {
    flex: 1;
    padding: 12px 0;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cookie-primary {
    background: #FF9A3D;
    color: #000;
    border: none;
}
.btn-cookie-primary:hover {
    background: #fff;
    transform: translateY(-2px);
}

.btn-cookie-secondary {
    background: transparent;
    color: #e6e6e6;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-cookie-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #e6e6e6;
}


@media (max-width: 768px) {
    /* Compact bottom bar on phones so the banner no longer covers half the screen */
    #cookie-consent-banner {
        bottom: 0;
        left: 0;
        width: 100%;
        border-radius: 14px 14px 0 0;
        border-left: 0; border-right: 0; border-bottom: 0;
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
        gap: 10px;
    }
    .cookie-title { font-size: 0.8rem; margin-bottom: 4px; }
    .cookie-text { font-size: 0.72rem; line-height: 1.45; }
    .btn-cookie { padding: 9px 0; font-size: 0.72rem; }
}

/* Phones: keep the floating buttons off the first screen (they covered the hero buttons),
   show them once the visitor scrolls past it, and tuck them into the corners */
@media (max-width: 768px) {
    .floating-ui .left-action-stack { bottom: calc(14px + env(safe-area-inset-bottom)) !important; left: 14px !important; gap: 10px !important; }
    .floating-ui .right-action-stack { bottom: calc(14px + env(safe-area-inset-bottom)) !important; right: 14px !important; }
    .floating-ui .left-action-stack, .floating-ui .right-action-stack { transition: opacity 0.3s ease, transform 0.3s ease; }
    html:not(.fab-visible) .floating-ui .left-action-stack, html:not(.fab-visible) .floating-ui .right-action-stack { opacity: 0; transform: translateY(16px); pointer-events: none !important; visibility: hidden; }
}

/* While the cookie banner is open, the floating buttons step aside; they return once the visitor chooses */
body:has(#cookie-consent-banner:not(.hidden)) .left-action-stack,
body:has(#cookie-consent-banner:not(.hidden)) .right-action-stack {
    opacity: 0; visibility: hidden; pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.left-action-stack, .right-action-stack { transition: opacity 0.4s ease 0.2s, visibility 0s; }
/* Phones: solid banner, text at least 12 px */
@media (max-width: 768px) {
    #cookie-consent-banner { background: rgba(18, 18, 22, 0.98); }
    .cookie-text { font-size: 0.78rem; }
    .btn-cookie { font-size: 0.75rem; }
}
/* Touch screens: the cookie bar sits over scrolling content; a solid background avoids re-blurring every frame */
@media (hover: none) and (pointer: coarse) {
    #cookie-consent-banner { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(18, 18, 22, 0.97); }
}
