@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* NOTE: @tailwind base (Preflight) is intentionally excluded here.
   It resets global browser styles and bleeds into the theme's design.
   Only utilities and components are used to avoid CSS conflicts. */
@tailwind components;
@tailwind utilities;

#wise-banner-v2-app {
    --wise-purple: 139, 92, 246;
    --wise-dark: 30, 27, 75;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scoped Reset to replace missing Tailwind Preflight without bleeding
   Using :where() to keep specificity low so Tailwind utilities can override these defaults */
:where(#wise-banner-v2-app) *,
:where(#wise-banner-v2-app) *::before,
:where(#wise-banner-v2-app) *::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

:where(#wise-banner-v2-app) button,
:where(#wise-banner-v2-app) [type='button'],
:where(#wise-banner-v2-app) [type='reset'],
:where(#wise-banner-v2-app) [type='submit'] {
    background-color: transparent;
    background-image: none;
    cursor: pointer;
    text-transform: none;
    -webkit-appearance: button;
}

:where(#wise-banner-v2-app) input,
:where(#wise-banner-v2-app) select,
:where(#wise-banner-v2-app) textarea {
    font-family: inherit;
    font-size: 100%;
    margin: 0;
    padding: 0;
    line-height: inherit;
}

/* Custom scrollbar scoped to banner widget */
#wise-banner-v2-app ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

#wise-banner-v2-app ::-webkit-scrollbar-track {
    background: transparent;
}

#wise-banner-v2-app ::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

#wise-banner-v2-app ::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes bounce-subtle {

    0%,
    100% {
        transform: translateY(0) rotate(-12deg);
    }

    50% {
        transform: translateY(-4px) rotate(-12deg);
    }
}

.animate-bounce-subtle {
    animation: bounce-subtle 3s ease-in-out infinite;
}