/* All search fields use the application's own clear button. */
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.registry-search-input {
    position: relative;
    display: block;
    min-width: 0;
    width: 100%;
}

.registry-search-input > input[type="search"] {
    width: 100%;
    min-width: 0;
    padding-right: 42px;
}

.registry-search-input > button.registry-search-clear {
    position: absolute;
    inset: 50% 4px auto auto;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8b7f76;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
}

.registry-search-input > button.registry-search-clear:hover {
    color: var(--club-burgundy);
    background: #f7ece9;
}

.registry-search-input > button.registry-search-clear:focus-visible {
    outline: 2px solid var(--club-burgundy);
    outline-offset: 1px;
}

.home-search-field > .registry-search-input {
    flex: 1 1 auto;
}

@media (max-width: 768px) {
    .registry-search-input > input[type="search"] { padding-right: 44px; }
    .registry-search-input > button.registry-search-clear {
        right: 0;
        width: 44px;
        height: 44px;
    }
}
