/* Panorama analytics-cookie consent banner. Kept intentionally small and self-contained so it
   doesn't depend on the bundled app.min.css build step. Colors reuse the existing Panorama accent
   green (see fastighet.css) for visual consistency. */
#panorama-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background-color: #2f2f2f;
    color: #ffffff;
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.25);
    font-size: 13px;
    line-height: 1.4;
}

#panorama-consent-banner .panorama-consent-text {
    flex: 1 1 320px;
    max-width: 780px;
}

#panorama-consent-banner .panorama-consent-actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

#panorama-consent-banner .panorama-consent-btn {
    min-width: 110px;
    padding: 8px 18px;
    border-radius: 3px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

/* "Acceptera" and "Avvisa" are the same size/shape - only color differs - so neither choice is
   visually favored. */
#panorama-consent-banner .panorama-consent-btn-primary {
    background-color: #43a041;
    color: #ffffff;
}

#panorama-consent-banner .panorama-consent-btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

#panorama-consent-banner .panorama-consent-btn:hover {
    opacity: 0.9;
}

/* Explicit, always-visible focus ring for keyboard users - some global stylesheets reset the
   default browser outline, so the consent controls provide their own. */
#panorama-consent-banner .panorama-consent-btn:focus,
#panorama-consent-settings-link:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

#panorama-consent-settings-link {
    cursor: pointer;
    text-decoration: underline;
}

@media (max-width: 480px) {
    #panorama-consent-banner {
        flex-direction: column;
        align-items: stretch;
    }

    #panorama-consent-banner .panorama-consent-actions {
        justify-content: stretch;
    }

    #panorama-consent-banner .panorama-consent-btn {
        flex: 1 1 0;
    }
}
