/* Accessibility Popup Styles */
.accessibility-popup {
    position: fixed;
    right: 24px;
    top: 84px;
    z-index: 50;
    width: 320px;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--popover));
    padding: 1rem;
    color: hsl(var(--popover-foreground));
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    outline: none;
    animation: fadeIn 0.2s ease-in-out, zoomIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1);
    }
}

/* Animation for offer popup */
.animate-scale-in {
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.accessibility-popup .space-y-4 > * + * {
    margin-top: 1rem;
}

.accessibility-popup .space-y-2 > * + * {
    margin-top: 0.5rem;
}

.accessibility-popup .mb-3 {
    margin-bottom: 0.75rem;
}

.accessibility-popup .pt-2 {
    padding-top: 0.5rem;
}

.accessibility-popup .border-t {
    border-top: 1px solid hsl(var(--border));
}

.accessibility-popup .gap-2 {
    gap: 0.5rem;
}

/* High Contrast Mode */
body.high-contrast {
    filter: contrast(1.5) saturate(1.2);
}

body.high-contrast * {
    border-color: #000 !important;
}

body.high-contrast a {
    text-decoration: underline !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .accessibility-popup {
        right: 16px;
        top: 76px;
        width: calc(100vw - 32px);
        max-width: 320px;
    }
}
