.vynx-custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2147483647;
    width: 36px;
    height: 36px;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-80px, -80px, 0);
    transition: opacity 120ms ease, filter 120ms ease;
    will-change: transform;
    contain: layout paint style;
}

.vynx-custom-cursor.is-visible {
    opacity: 1;
}

.vynx-custom-cursor.is-link {
    filter: drop-shadow(0 6px 14px rgba(225, 29, 72, 0.22));
}

.vynx-custom-cursor img {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
    image-rendering: auto;
}

/* Native select popups are rendered by Windows outside the page, so they cannot
   display the site's animated cursor. Keep the real select for forms and expose
   an equivalent DOM listbox on desktop. */
.vynx-select__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.vynx-select {
    position: relative;
    display: inline-flex;
    width: var(--vynx-select-measured-width, 100%);
    max-width: 100%;
    min-width: 0;
    vertical-align: middle;
}

.vynx-select.is-auto-width {
    width: auto;
    min-width: var(--vynx-select-measured-width, 0);
    flex: 0 0 auto;
}

.vynx-select.is-auto-width .vynx-select__trigger {
    width: auto;
}

.vynx-select.is-auto-width .vynx-select__value {
    overflow: visible;
    text-overflow: clip;
}

.vynx-select__trigger {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: var(--vynx-select-measured-height, 38px);
    align-items: center;
    padding: 0.5rem 2.25rem 0.5rem 0.75rem;
    color: var(--foreground, #1f2937);
    font-family: inherit;
    font-size: var(--vynx-select-font-size, 0.875rem);
    font-weight: var(--vynx-select-font-weight, 400);
    line-height: 1.35;
    text-align: left;
    background: var(--surface, var(--card, #ffffff));
    border: 1px solid var(--border, #d8dee9);
    border-radius: var(--vynx-select-radius, 8px);
    box-shadow: none;
    transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.vynx-select__trigger::after {
    position: absolute;
    top: 50%;
    right: 0.8rem;
    width: 0.48rem;
    height: 0.48rem;
    content: "";
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    opacity: 0.72;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 140ms ease;
}

.vynx-select__value {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vynx-select__trigger:hover:not(:disabled) {
    background: var(--surface-hover, var(--accent, #f3f4f6));
    border-color: color-mix(in srgb, var(--primary, #e11d48) 35%, var(--border, #d8dee9));
}

.vynx-select__trigger:focus-visible {
    outline: none;
    border-color: var(--primary, #e11d48);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring, var(--primary, #e11d48)) 20%, transparent);
}

.vynx-select.is-open .vynx-select__trigger {
    border-color: var(--primary, #e11d48);
}

.vynx-select.is-open .vynx-select__trigger::after {
    transform: translateY(-25%) rotate(225deg);
}

.vynx-select__trigger:disabled {
    color: var(--muted-foreground, #7b8493);
    background: var(--muted, #eef0f3);
    opacity: 0.65;
}

.vynx-select.is-small .vynx-select__trigger {
    min-height: var(--vynx-select-measured-height, 31px);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: var(--vynx-select-font-size, 0.78rem);
}

.vynx-select__menu {
    position: fixed;
    z-index: 2147483600;
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 5px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: var(--popover-foreground, var(--foreground, #1f2937));
    font-family: inherit;
    background: var(--popover, var(--card, #ffffff));
    border: 1px solid var(--border, #d8dee9);
    border-radius: var(--radius, 8px);
    box-shadow: 0 12px 30px rgb(0 0 0 / 18%);
    box-sizing: border-box;
}

.vynx-select__menu[hidden] {
    display: none !important;
}

.vynx-select__group {
    padding: 0.45rem 0.6rem 0.25rem;
    color: var(--muted-foreground, #7b8493);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vynx-select__option {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 34px;
    align-items: center;
    padding: 0.45rem 2rem 0.45rem 0.65rem;
    color: inherit;
    font: inherit;
    line-height: 1.3;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: calc(var(--radius, 8px) - 3px);
}

.vynx-select__option:hover:not(:disabled),
.vynx-select__option:focus-visible {
    color: var(--accent-foreground, var(--foreground, #1f2937));
    background: var(--accent, #f3f4f6);
    outline: none;
}

.vynx-select__option[aria-selected="true"] {
    color: var(--primary, #e11d48);
    font-weight: 650;
    background: color-mix(in srgb, var(--primary, #e11d48) 10%, transparent);
}

.vynx-select__option[aria-selected="true"]::after {
    position: absolute;
    right: 0.65rem;
    content: "✓";
    font-weight: 800;
}

.vynx-select__option:disabled {
    color: var(--muted-foreground, #7b8493);
    opacity: 0.52;
}

.input-group > .vynx-select {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.input-group > .vynx-select:not(:first-child) .vynx-select__trigger {
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group > .vynx-select:not(:last-child) .vynx-select__trigger {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

select:invalid + .vynx-select .vynx-select__trigger,
select.is-invalid + .vynx-select .vynx-select__trigger {
    border-color: var(--destructive, #dc2626);
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    html.vynx-custom-cursor-enabled body,
    html.vynx-custom-cursor-enabled body * {
        cursor: none !important;
    }
}

@media (max-width: 767.98px), (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
    .vynx-custom-cursor {
        display: none !important;
    }

    .vynx-select {
        display: none !important;
    }

    .vynx-select__native {
        position: static !important;
        width: auto !important;
        height: auto !important;
        padding: revert !important;
        overflow: visible !important;
        clip: auto !important;
        clip-path: none !important;
        white-space: normal !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}
