.combobox-list {
    position: relative;
}

.combobox .group {
    display: inline-flex;
    cursor: pointer;
    width: 100%;
}

.combobox {
    --size: calc(var(--size-field, .25rem) * 10);
    --width: clamp(3rem,20rem,100%);
    --input-color: color-mix(in oklab, var(--color-base-content) 20%, #0000);
    --radius-field: .25rem;

    width: var(--width);
    border: 1px solid var(--input-color);
    border-start-start-radius: var(--join-ss,var(--radius-field));
    border-start-end-radius: var(--join-se,var(--radius-field));
    border-end-end-radius: var(--join-ee,var(--radius-field));
    border-end-start-radius: var(--join-es,var(--radius-field));

    /** this is the arrow icon **/
    background-color: oklch(100% 0 0);
    background-image: linear-gradient(45deg,#0000 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,#0000 50%);
    background-position: calc(100% - 20px) calc(1px + 50%),calc(100% - 16.1px) calc(1px + 50%);
    background-repeat: no-repeat;
    background-size: 4px 4px,4px 4px;
}

.combobox input {
    color: black;
    box-sizing: border-box;
    height: var(--size);
    padding: 0;
    margin: 0;
    vertical-align: bottom;
    position: relative;
    cursor: pointer;
}

.combobox input {
    padding-inline: .75rem 1.75rem;
    width: 100%;
    height: var(--size);
    border-right: none;
    outline: none;
    font-size: 87.5%;
}

/* daqui pra baixo foi o kagi que estilizou, tentando dar match no daisy */

.combobox ul[role="listbox"] {
    z-index: 1;
    margin: 0;
    padding: 0;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    list-style: none;
    background-color: var(--color-base-100);
    display: none;
    box-sizing: border-box;

    /* same border/radius language as the box, daisyUI tokens */
    border: var(--border, 1px) solid var(--input-color);
    border-radius: var(--radius-field);

    /* daisyUI dropdown-like depth instead of a hard outline */
    box-shadow: 0 calc(1px * var(--depth, 1)) 3px 0 oklch(0% 0 0 / .1),
                0 calc(1px * var(--depth, 1) * 2) 8px -2px oklch(0% 0 0 / .1);

    max-height: 250px;
    width: var(--width);
    overflow-y: auto;
    overflow-x: hidden;
    font-size: .875rem;          /* daisyUI .select font-size, matches your 87.5% */
    color: var(--color-base-content);
    cursor: pointer;
}

.combobox ul[role="listbox"] li[role="option"] {
    margin: 0;
    display: block;
    white-space: normal;                       /* daisyUI option: allows wrapping */
    border-radius: var(--radius-field);        /* daisyUI option radius */
    padding-block: .375rem;                    /* daisyUI option padding */
    padding-inline: .75rem;                    /* aligns with input's left padding */
    transition-property: color, background-color;
    transition-duration: .2s;
    transition-timing-function: cubic-bezier(0, 0, .2, 1);
}

/* focus and hover styling — daisyUI-style soft highlight */
[role="listbox"].focus [role="option"][aria-selected="true"],
[role="listbox"] [role="option"]:hover {
    background-color: color-mix(in oklab, var(--color-base-content) 8%, #0000);
}

[role="listbox"] [role="option"][aria-selected="true"] {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium, 500);
}
