.qvm-menu-wrapper {
    width: 100%;
    margin: 0; /* avoid margin-collapsing with header/content */
    padding: 0; /* no internal padding; we control spacing via sibling rule below */
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

/* Ensure the first element after the menu starts at least 10px below it. */
.qvm-menu-wrapper + * {
    padding-top: 10px !important;
    margin-top: 0 !important;
}

.qvm-menu-inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1.6px solid var(--qvm-accent, #2fa341); /* ~10% thicker border */
    border-radius: 4px;
    background-color: #ffffff;
    color: var(--qvm-accent, #2fa341);
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.3;
}

.qvm-half {
    flex: 1 1 50%;
    position: relative;
    display: flex;
    align-items: center;
}

.qvm-divider {
    width: 1px;
    background-color: var(--qvm-accent, #2fa341);
}

.qvm-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    background: transparent;
    padding: 0.35rem 0.99rem 0.35rem 0.2rem;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    font-size: 0.85rem;
    color: inherit;
}

.qvm-select:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px var(--qvm-accent, #2fa341);
}

.qvm-chevron {
    position: absolute;
    right: 0.3rem;
    pointer-events: none;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;  /* ~20% larger */
    border-right: 5px solid transparent; /* ~20% larger */
    border-top: 6px solid var(--qvm-accent, #2fa341); /* ~20% larger */
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

@media (max-width: 640px) {
    /* On small screens, let the menu exactly match the parent container width. */
    .qvm-menu-wrapper {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    .qvm-menu-inner {
        font-size: 0.9rem;
    }

    .qvm-select {
        padding-left: 0.2rem;
    }
}

@media (max-width: 480px) {
    /* Keep the same left/right layout even on very small screens. */
    .qvm-menu-inner {
        flex-direction: row;
    }

    .qvm-divider {
        width: 1px;
        height: auto;
    }
}
