/**
 * Main CSS for Tire Fitment Application
 * Additional styles beyond Tailwind CSS
 */

/* Alpine.js: hide elements until initialized */
[x-cloak] {
    display: none !important;
}

/* When embedded in iframe: hide scrollbar (scrolling still works via wheel/touch) */
html.tire-finder-embedded,
body.tire-finder-embedded {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
body.tire-finder-embedded::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
html.tire-finder-embedded ::-webkit-scrollbar,
body.tire-finder-embedded ::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}
