:root {
    --petbuy-orange: #e9782f;
    --petbuy-orange-soft: #f7c7aa;
    --petbuy-text: #1f1f1f;
    --petbuy-muted: #606060;
}

/* Petbuy Search UI */
#petbuy-search-suggestions {
    position: fixed;
    z-index: 99999999;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
    min-width: 260px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.18s ease;
    overflow: hidden;
}

#petbuy-search-suggestions.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#petbuy-search-suggestions ul {
    list-style: none;
    margin: 0;
    padding: 8px;
}

#petbuy-search-suggestions li + li {
    margin-top: 6px;
}

#petbuy-search-suggestions button {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    font-weight: 700;
    color: var(--petbuy-text);
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}

.petbuy-search-suggestion__icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff3ea;
    color: #d9662d;
}

.petbuy-search-suggestion__icon svg {
    width: 15px;
    height: 15px;
    display: block;
}

.petbuy-search-suggestion__label {
    min-width: 0;
    flex: 1 1 auto;
}

#petbuy-search-suggestions button[data-kind="history"] .petbuy-search-suggestion__icon {
    background: #f3f4f6;
    color: #6b7280;
}

#petbuy-search-suggestions button:hover,
#petbuy-search-suggestions button.is-active {
    background: #fff6f0;
    color: #d9662d;
}

.petbuy-search-page {
    padding-bottom: 24px;
}

.petbuy-search-header {
    padding: 0 12px;
    margin-top: 12px;
}

.petbuy-search__title {
    margin: 0;
    color: var(--petbuy-text);
    font-weight: 800;
    line-height: 1.15;
}

body.petbuy-search-shop-mode .petbuy-mode-switch,
body.petbuy-search-shop-mode .petbuy-slider-separator {
    display: none;
}

body.petbuy-search-shop-mode .petbuy-slider-label {
    width: auto;
    min-width: 9.5rem;
}

/* Rimuove la X nativa dai campi search per evitare sovrapposizioni con l'icona custom */
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 0;
    width: 0;
}
