

/* ===== RESET & BASE STYLES ===== */
.ufs_wrap * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* Screen reader only class */
.ufs_sr_only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* ===== SEARCH CONTAINER ===== */
.ufs_search_container {
    position: relative;
    width: 100%;
}
.ufs_search_input {
    width: 100%;
    padding: 12px 16px;
    padding-right: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
    min-height: 48px;
    color: #1e293b;
}
.ufs_search_input:focus {
    outline: none;
    border-color: #1b2a4a;
    box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.12);
}
.ufs_search_active .ufs_search_input {
    border-color: #1b2a4a;
}
/* ===== VOICE BUTTON - FIXED POSITION ===== */
.ufs_voice_btn {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #64748b;
    transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* min-width: 48px; */
    /* min-height: 48px; */
    opacity: 0;
    pointer-events: none;
}
.ufs_search_active .ufs_voice_btn {
    opacity: 1;
    pointer-events: auto;
    /* color: #1b2a4a;
    background: #f1f5f9; */
}
.ufs_search_active .ufs_voice_btn:hover {
    background: #e2e8f0;
    color: #283f63;
}
.ufs_voice_btn.ufs_listening {
    color: #f59e0b;
    background: #fef3c7;
    animation: ufs_pulse 1.5s infinite;
}
@keyframes ufs_pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}
/* ===== DROPDOWN ===== */
.ufs_dropdown {
    position: fixed;
    box-sizing: border-box;
    background: #fff;
    color: #1b2a4a;
    border-radius: 16px;
    box-shadow: 0 18px 55px rgba(27,42,74,.18);
    border: 1px solid #e8e2d9;
    max-height: min(620px, var(--ufs-available-height, 70vh));
    overflow: hidden;
    z-index: 99990;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
.ufs_dropdown *,
.ufs_dropdown *::before,
.ufs_dropdown *::after {
    box-sizing: border-box;
}
.ufs_dropdown:not(.ufs_hidden) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
/* Override generic ufs_hidden for dropdown to preserve transitions */
.ufs_dropdown.ufs_hidden {
    display: block !important;
}
.ufs_dropdown_content {
    max-height: min(620px, var(--ufs-available-height, 70vh));
    overflow-y: auto;
    overscroll-behavior: contain;
}
/* Custom scrollbar */
.ufs_dropdown_content::-webkit-scrollbar,
.ufs_sheet_content::-webkit-scrollbar {
    width: 6px;
}
.ufs_dropdown_content::-webkit-scrollbar-track,
.ufs_sheet_content::-webkit-scrollbar-track {
    background: #f8fafc;
}
.ufs_dropdown_content::-webkit-scrollbar-thumb,
.ufs_sheet_content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.ufs_dropdown_content::-webkit-scrollbar-thumb:hover,
.ufs_sheet_content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
/* ===== BOTTOM SHEET MODAL - IMPROVED ===== */
.ufs_bottom_sheet {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ufs_bottom_sheet.ufs_active {
    pointer-events: auto;
    opacity: 1;
}
.ufs_sheet_backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.ufs_sheet_container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    color: #1b2a4a;
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
    max-height: 90dvh;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -12px 50px rgba(27,42,74,.18);
    transform: translateY(100%);
    transition: transform .3s ease;
}
.ufs_bottom_sheet.ufs_active .ufs_sheet_container {
    transform: translateY(0);
}
.ufs_sheet_handle_wrapper {
    padding: 12px;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    /* FIX: Prevent text selection on drag */
}
.ufs_sheet_handle_wrapper:active {
    cursor: grabbing;
}
.ufs_sheet_handle {
    width: 36px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
    margin: 0 auto;
}
.ufs_sheet_header {
    padding: 8px 20px 20px;
    border-bottom: 1px solid #e8e2d9;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 14px 10px;
    align-items: center;
    background: #faf8f4;
}
.ufs_sheet_search_input {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    border: 1px solid #d8d3ca;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 16px;
    color: #1b2a4a;
    background: #fff;
    min-height: 48px;
    -webkit-appearance: none;
}
.ufs_sheet_search_input:focus {
    outline: none;
    border-color: #1b2a4a;
    background: white;
    box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.12);
}
.ufs_sheet_voice_btn,
.ufs_sheet_close_btn {
    background: #f1f5f9;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    /* FIX: Remove tap highlight on mobile */
}
.ufs_sheet_voice_btn:active,
.ufs_sheet_close_btn:active {
    transform: scale(0.95);
    /* FIX: Better touch feedback */
}
.ufs_sheet_voice_btn:hover,
.ufs_sheet_close_btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.ufs_sheet_voice_btn.ufs_listening {
    background: #fef3c7;
    color: #f59e0b;
    animation: ufs_pulse 1.5s infinite;
}
.ufs_sheet_content {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 8px 0 max(20px, env(safe-area-inset-bottom));
}
/* ===== LOADING STATE ===== */
.ufs_loading {
    padding: 30px 20px;
    text-align: center;
    color: #64748b;
}
.ufs_spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e2e8f0;
    border-top-color: #1b2a4a;
    border-radius: 50%;
    animation: ufs_spin 1s linear infinite;
    margin: 0 auto 12px;
}
@keyframes ufs_spin {
    to {
        transform: rotate(360deg);
    }
}
/* ===== RESULTS LIST ===== */
.ufs_results_list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ufs_result_item {
    display: block;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
    min-height: 48px;
}
.ufs_result_item:hover,
.ufs_result_item.ufs_selected {
    background: #f8fafc;
}
.ufs_result_item:hover::before,
.ufs_result_item.ufs_selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #1b2a4a;
}
.ufs_result_link {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 3px 16px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0ede7;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}
.ufs_result_image {
    grid-row: 1 / 3;
    width: 72px;
    height: 82px;
    background: #f7f5f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ufs_result_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ufs_result_placeholder {
    font-size: 20px;
}
.ufs_result_details {
    flex: 1;
    min-width: 0;
}
.ufs_result_title {
    font-weight: 600;
    color: #1b2a4a;
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ufs_result_excerpt {
    display: none; /* Search cards prioritise name, category, stock and price. */
}
.ufs_result_meta {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ufs_result_category {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #696760;
}
.ufs_out_of_stock {
    background: #f5eae5;
    color: #884934;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}
.ufs_result_price {
    grid-column: 2;
    color: #1b2a4a;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
/* ===== HIGHLIGHT MATCHES ===== */
.ufs_dropdown mark,
.ufs_bottom_sheet mark {
    background: #f1e7d4;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
    font-weight: inherit;
}
/* ===== POPULAR SEARCHES ===== */
.ufs_popular {
    padding: 24px 20px 28px;
    background: #faf8f4;
}
.ufs_popular_title {
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #686259;
    margin: 0 0 14px;
}
.ufs_popular_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ufs_popular_tag {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}
.ufs_popular_tag:hover {
    background: #1b2a4a;
    color: white;
    border-color: #1b2a4a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}
.ufs_popular_tag:active {
    transform: translateY(0);
}
/* ===== NO RESULTS ===== */
.ufs_no_results {
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
}
.ufs_no_results_icon {
    display: flex;
    justify-content: center;
    color: #776347;
    margin-bottom: 16px;
}
.ufs_no_results_title {
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
    font-size: 16px;
}
.ufs_no_results_subtitle {
    font-size: 14px;
    color: #696760;
}
/* ===== ERROR STATE ===== */
.ufs_error {
    padding: 20px;
    text-align: center;
    color: #ef4444;
    font-size: 14px;
}
/* ===== VOICE OVERLAY ===== */
.ufs_voice_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.ufs_voice_overlay.ufs_active {
    opacity: 1;
    visibility: visible;
}
/* ===== VOICE INSTRUCTIONS OVERLAY ===== */
.ufs_voice_instructions {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: ufs_fade_in 0.3s ease;
}
@keyframes ufs_fade_in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.ufs_voice_instructions_content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.ufs_voice_instructions_title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}
.ufs_voice_instructions_text {
    font-size: 16px;
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.5;
}
.ufs_voice_instructions_hint {
    font-size: 14px;
    color: #64748b;
    font-style: italic;
    margin-bottom: 16px;
}
.ufs_voice_instructions_steps {
    text-align: left;
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}
.ufs_voice_instructions_steps p {
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #334155;
}
.ufs_voice_instructions_steps ol {
    margin: 0;
    padding-left: 20px;
    color: #475569;
}
.ufs_voice_instructions_steps li {
    margin: 4px 0;
    font-size: 14px;
}
.ufs_voice_instructions_close {
    background: #1b2a4a;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ufs_voice_instructions_close:hover {
    background: #283f63;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.ufs_voice_instructions_close:active {
    transform: translateY(0);
}
.ufs_voice_content {
    background: white;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    margin: 20px;
    position: relative;
}
.ufs_voice_cancel_btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    font-size: 18px;
    transition: all 0.2s ease;
}
.ufs_voice_cancel_btn:hover {
    background: #e2e8f0;
    color: #ef4444;
}
.ufs_voice_animation {
    width: 120px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
}
.ufs_voice_animation span {
    display: inline-block;
    width: 4px;
    height: 100%;
    background: #1b2a4a;
    border-radius: 2px;
    animation: ufs_wave 1.2s ease-in-out infinite;
}
.ufs_voice_animation span:nth-child(1) {
    animation-delay: 0s;
}
.ufs_voice_animation span:nth-child(2) {
    animation-delay: 0.1s;
}
.ufs_voice_animation span:nth-child(3) {
    animation-delay: 0.2s;
}
.ufs_voice_animation span:nth-child(4) {
    animation-delay: 0.3s;
}
.ufs_voice_animation span:nth-child(5) {
    animation-delay: 0.4s;
}
.ufs_voice_animation span:nth-child(6) {
    animation-delay: 0.5s;
}
.ufs_voice_animation span:nth-child(7) {
    animation-delay: 0.6s;
}
@keyframes ufs_wave {
    0%,
    100% {
        transform: scaleY(0.2);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}
.ufs_voice_text {
    font-size: 18px;
    color: #1e293b;
    margin-top: 20px;
    min-height: 50px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}
.ufs_voice_hint {
    font-size: 14px;
    color: #64748b;
    margin-top: 12px;
}
/* ===== UTILITY CLASSES ===== */
.ufs_hidden {
    display: none !important;
}
/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    .ufs_dropdown {
        left: 10px !important;
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px);
    }
    .ufs_search_input {
        font-size: 16px;
        /* Prevents iOS zoom */
    }
    .ufs_result_link {
        padding: 14px 20px;
        grid-template-columns: 64px minmax(0, 1fr);
        column-gap: 14px;
    }
    .ufs_result_image {
        width: 64px;
        height: 76px;
    }
    .ufs_result_title {
        font-size: 14px;
    }
    .ufs_result_price {
        font-size: 14px;
    }
    .ufs_popular_tag {
        min-height: 48px;
        padding: 12px 16px;
    }
}
@media (max-width: 480px) {
    .ufs_voice_content {
        padding: 30px 20px;
    }
}
/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .ufs_search_input {
        border-width: 3px;
    }
    .ufs_dropdown,
    .ufs_sheet_container {
        border: 2px solid currentColor;
    }
    .ufs_result_item:hover::before,
    .ufs_result_item.ufs_selected::before {
        width: 5px;
    }
}
/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .ufs_dropdown,
    .ufs_bottom_sheet,
    .ufs_sheet_container,
    .ufs_voice_overlay,
    .ufs_popular_tag,
    .ufs_dropdown *,
    .ufs_bottom_sheet *,
    .ufs_voice_overlay * {
        animation: none !important;
        transition: none !important;
    }
}
/* ===== PRINT STYLES ===== */
@media print {
    .ufs_dropdown,
    .ufs_bottom_sheet,
    .ufs_voice_overlay,
    .ufs_voice_btn,
    .ufs_sheet_voice_btn {
        display: none !important;
    }
}
/* ===== MICROPHONE ACTIVE INDICATOR ===== */
body.ufs_mic_active::before {
    content: '';
    position: fixed;
    top: 20px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 1);
    animation: ufs_mic_pulse 1.5s infinite;
    z-index: 100001;
}
@keyframes ufs_mic_pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}
/* ===== ANDROID SPECIFIC FIXES ===== */
@supports (-webkit-appearance: none) and (not (-ms-ime-align: auto)) {
    /* Android Chrome specific fixes */
    .ufs_sheet_search_input {
        /* Prevent keyboard layout issues */
        font-size: 16px !important;
    }
    .ufs_sheet_container {
        /* Smoother transitions on Android */
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
    }
    .ufs_bottom_sheet.ufs_active .ufs_sheet_container {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}
/* ===== CATEGORY SUGGESTION ===== */
.ufs_category_suggestion {
    display: block;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #fefcf9 0%, #faf7f2 100%);
}
.ufs_category_link {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    gap: 12px;
    transition: background 0.2s ease;
}
.ufs_category_suggestion:hover {
    background: linear-gradient(135deg, #faf7f2 0%, #f5ede3 100%);
}
.ufs_category_suggestion:hover .ufs_cat_arrow svg {
    transform: translateX(3px);
}
.ufs_cat_icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #1B2A4A;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ufs_cat_icon svg {
    width: 20px;
    height: 20px;
    stroke: #C8956C;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ufs_cat_info {
    flex: 1;
    min-width: 0;
}
.ufs_cat_name {
    font-weight: 600;
    color: #1B2A4A;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 2px;
}
.ufs_cat_desc {
    font-size: 12px;
    color: #6B6560;
    line-height: 1.3;
}
.ufs_cat_count {
    font-size: 11px;
    color: #765235;
    background: #f2e9dd;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
    font-weight: 500;
}
.ufs_cat_arrow {
    color: #C8956C;
    flex-shrink: 0;
}
.ufs_cat_arrow svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform 0.2s ease;
}
/* Dialog heading and controls stay outside the scrolling results. */
.ufs_sheet_container, .ufs_sheet_container * { box-sizing: border-box; }
.ufs_sheet_heading { grid-column: 1; grid-row: 1; min-width: 0; }
.ufs_sheet_eyebrow { margin: 0 0 4px; color: #776347; font-size: 10px; letter-spacing: .12em; }
.ufs_sheet_title { margin: 0; color: #1b2a4a; font-size: 23px; font-weight: 500; line-height: 1.4; }
.ufs_sheet_close_btn { grid-column: 2; grid-row: 1; width: 44px; height: 44px; padding: 0; font-size: 26px; background: transparent; color: #1b2a4a; }
.ufs_sheet_voice_btn { grid-column: 2; grid-row: 2; width: 44px; height: 48px; padding: 0; border-radius: 10px; background: #eee9e0; color: #1b2a4a; }
.ufs_sheet_header:not(:has(.ufs_sheet_voice_btn)) .ufs_sheet_search_input { grid-column: 1 / -1; }
.ufs_dropdown a:focus-visible, .ufs_bottom_sheet a:focus-visible,
.ufs_dropdown button:focus-visible, .ufs_bottom_sheet button:focus-visible {
    outline: 2px solid #1b2a4a; outline-offset: -3px;
}
.ufs_result_item:last-child .ufs_result_link { border-bottom: 0; }
.ufs_category_link { padding: 16px 20px; }
.ufs_cat_count { flex-shrink: 0; }
@media (max-width: 359px) {
    .ufs_cat_count { display: none; }
    .ufs_sheet_header { padding-inline: 16px; }
    .ufs_result_link, .ufs_category_link { padding-inline: 16px; }
}
/* Compact UrbanFlowers previews. The same plugin supplies search and full results. */
html body .ufs_dropdown.ufs_curated {
    border: 1px solid #e0e3e1;
    border-radius: 7px;
    background: #fff;
    color: #03213f;
    box-shadow: 0 12px 32px rgba(3,33,63,.12);
    font-family: inherit;
}
html body .ufs_curated:is(.ufs_dropdown,.ufs_bottom_sheet) .ufs_result_link {
    grid-template-columns: 56px minmax(0,1fr);
    gap: 14px;
    padding: 10px 20px;
    min-height: 94px;
    border-bottom: 1px solid #eef0ed;
}
html body .ufs_curated:is(.ufs_dropdown,.ufs_bottom_sheet) .ufs_result_image {
    grid-row: auto;
    width: 56px;
    height: 74px;
    border-radius: 3px;
    background: #f6f6f3;
}
html body .ufs_curated:is(.ufs_dropdown,.ufs_bottom_sheet) .ufs_result_details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
html body .ufs_curated:is(.ufs_dropdown,.ufs_bottom_sheet) .ufs_result_title {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #03213f;
}
html body .ufs_curated:is(.ufs_dropdown,.ufs_bottom_sheet) .ufs_result_price {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #324d61;
}
html body .ufs_curated:is(.ufs_dropdown,.ufs_bottom_sheet) mark {
    padding: 0;
    border-radius: 0;
    color: inherit;
    background: transparent;
    font-weight: 600;
}
html body .ufs_curated:is(.ufs_dropdown,.ufs_bottom_sheet) .ufs_result_item::before {
    content: none;
}
html body .ufs_curated:is(.ufs_dropdown,.ufs_bottom_sheet) .ufs_search_option:hover,
html body .ufs_curated:is(.ufs_dropdown,.ufs_bottom_sheet) .ufs_search_option.ufs_selected {
    background: #f3f6f6;
}
html body .ufs_curated:is(.ufs_dropdown,.ufs_bottom_sheet) .ufs_category_suggestion {
    background: #fafaf7;
    border-bottom: 1px solid #e9ece8;
}
html body .ufs_curated:is(.ufs_dropdown,.ufs_bottom_sheet) .ufs_category_link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 54px;
    padding: 14px 20px;
}
html body .ufs_curated:is(.ufs_dropdown,.ufs_bottom_sheet) .ufs_cat_name {
    margin: 0;
    color: #03213f;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}
.ufs_curated .ufs_category_link > svg,
.ufs_curated .ufs_all_results_link > svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ufs_curated .ufs_all_results {
    position: sticky;
    bottom: 0;
    z-index: 1;
    background: #fafaf7;
    border-top: 1px solid #e4e8e3;
}
.ufs_curated .ufs_all_results_link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 54px;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    color: #03213f;
    text-decoration: none;
    overflow-wrap: anywhere;
}
html body .ufs_curated:is(.ufs_dropdown,.ufs_bottom_sheet) .ufs_popular {
    padding: 18px 20px 20px;
    background: #fff;
}
html body .ufs_curated:is(.ufs_dropdown,.ufs_bottom_sheet) .ufs_popular_title {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .02em;
    color: #627079;
}
html body .ufs_curated:is(.ufs_dropdown,.ufs_bottom_sheet) .ufs_popular_tags {
    gap: 7px;
}
html body .ufs_curated:is(.ufs_dropdown,.ufs_bottom_sheet) .ufs_popular_tag {
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid #e2e5e0;
    border-radius: 4px;
    background: #fafaf7;
    color: #03213f;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    box-shadow: none;
    transform: none;
}
html body .ufs_curated:is(.ufs_dropdown,.ufs_bottom_sheet) .ufs_popular_tag:hover {
    border-color: #8d9da3;
    background: #f0f4f4;
    color: #03213f;
    box-shadow: none;
    transform: none;
}
html body .ufs_curated:is(.ufs_dropdown,.ufs_bottom_sheet) .ufs_out_of_stock {
    padding: 0;
    background: transparent;
    font-size: 11px;
    font-weight: 400;
    color: #85614e;
}
@media (max-width: 1050px) {
    html body .ufs_curated:is(.ufs_dropdown,.ufs_bottom_sheet) .ufs_popular_tag {
        min-height: 44px;
    }
    html body .ufs_curated.uf-mobile-search-results {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    html body .ufs_curated.uf-mobile-search-results .ufs_result_link {
        padding-inline: 8px;
    }
    html body .ufs_curated.uf-mobile-search-results .ufs_popular {
        padding: 12px 0;
    }
    html body .ufs_curated.uf-mobile-search-results .ufs_category_link,
    html body .ufs_curated.uf-mobile-search-results .ufs_all_results_link {
        padding-inline: 12px;
    }
}
