/**
 * Food Discovery Styles - Google Search Style
 * 
 * Clean, minimal design inspired by Google search results
 * Mobile-first responsive design with accessibility features
 * 
 * @package RestaurantWalkInManager
 * @since 1.0.0
 */

/* Load brand fonts (Outfit and Inter) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&family=Outfit:wght@300;400;600;700;800&display=swap');

/* ============================================
   ROOT VARIABLES
   ============================================ */

:root {
    /* Brand colors provided by user: #38C172 (green), #0A4834 (dark green), #F7941D (orange) */
    --rwm-bg-primary: transparent;
    --rwm-bg-secondary: rgba(10, 72, 52, 0.9);
    /* dark green */
    --rwm-bg-tertiary: rgba(10, 72, 52, 0.75);
    --rwm-text-primary: #0A4834;
    /* dark green for primary text */
    --rwm-text-secondary: rgba(10, 72, 52, 0.6);
    /* lighter brand green for secondary text */
    --rwm-text-tertiary: #F7941D;
    /* orange accent for tertiary text/highlights */
    --rwm-gradient-primary: linear-gradient(135deg, rgba(10, 72, 52, 0.8) 30%, #0A4834 50%, #F7941D 100%);
    --rwm-gradient-secondary: linear-gradient(135deg, #F7941D 0%, rgba(10, 72, 52, 0.6) 100%);
    --rwm-accent-primary: rgba(10, 72, 52, 0.6);
    --rwm-accent-secondary: #F7941D;
    --rwm-accent-blue: #0A4834;
    --rwm-border-color: rgba(10, 72, 52, 0.6);
    --rwm-hover-bg: rgba(56, 193, 114, 0.08);
    --rwm-success: rgba(10, 72, 52, 0.6);
    --rwm-warning: #F7941D;
    --rwm-error: #F7941D;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */


.rwm-food-discovery-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    /* Enforce brand fonts only */
    font-family: 'Outfit', 'Inter', sans-serif !important;
    background: transparent;
    /* Main change: transparent to show theme background */
    min-height: 100vh;
    color: var(--rwm-text-primary);
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Make the main container a column flex layout so the results area can grow
   and center its content when empty. This ensures the empty-state is vertically
   centered in the viewport while the search hero stays at the top. */
.rwm-food-discovery-container {
    display: flex;
    flex-direction: column;
}

/* Ensure the main grid (results + optional sidebar) expands to fill the
   remaining vertical space so the results column can center empty/loading
   states. Some templates set inline styles on .rwm-main-grid; use
   !important for align-items to override that safely here. */
.rwm-main-grid {
    flex: 1 1 auto;
    min-height: 0;
    /* allow children to scroll/clip inside flex */
    align-items: stretch !important;
}

/* Make the results column a column flex container so its child
   .rwm-results-container (already flex:1) can grow and center content. */
.rwm-results-column {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* ============================================
   HERO SEARCH SECTION
   ============================================ */

.rwm-search-section {
    text-align: center;
    padding: 30px 20px 16px;
    background: linear-gradient(180deg, #1a1a2e 0%, transparent 100%);
    /* Adjusted to fade to transparent */
    /* Hide dividing line by default (will be shown only when results exist) */
    border-bottom: none;
    position: relative;
}

/* Show border when results are visible */
.rwm-search-section.rwm-has-border {
    /* Remove visual dividing border when results are shown as requested */
    border-bottom: none !important;
}

.rwm-search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(ellipse at top, rgba(56, 197, 114, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.rwm-hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--rwm-text-primary);
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
}

.rwm-hero-gradient {
    background: linear-gradient(135deg, #38C172 0%, #0A4834 50%, #F7941D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.rwm-hero-subtitle {
    font-size: 15px;
    color: var(--rwm-text-secondary);
    margin-bottom: 16px;
    font-weight: 400;
}

.rwm-search-bar-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto 12px;
    display: block;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.rwm-search-bar {
    position: relative;
    background: var(--rwm-bg-secondary);
    border: 1px solid var(--rwm-accent-primary);
    border-radius: 30px;
    padding: 6px 6px 6px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 28px rgba(56, 197, 114, 0.4);
    z-index: 1;
}

.rwm-location-button {
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.rwm-location-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--rwm-text-secondary);
    transition: color 0.2s ease;
}

.rwm-location-button:hover .dashicons {
    color: var(--rwm-accent-primary);
}

.rwm-location-button.rwm-location-active {
    background: rgba(56, 197, 114, 0.15);
}

.rwm-location-button.rwm-location-active .dashicons {
    color: var(--rwm-accent-primary);
}

.rwm-location-button.rwm-location-loading .dashicons {
    animation: pulse 1.5s ease-in-out infinite;
    color: var(--rwm-accent-primary);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

.rwm-search-bar:hover {
    box-shadow: 0 4px 32px rgba(56, 197, 114, 0.5);
    border-color: var(--rwm-accent-primary);
}

.rwm-search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    border: none !important;
    background: transparent !important;
    background-image: none !important;
    color: var(--rwm-text-primary);
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    min-width: 0;
}

/* Ensure no border in any state */
.rwm-search-input:focus,
.rwm-search-input:active,
.rwm-search-input:hover,
.rwm-search-input:focus-visible,
.rwm-search-input:focus-within {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove any background images or icons */
.rwm-search-input::-webkit-calendar-picker-indicator {
    display: none !important;
    -webkit-appearance: none !important;
}

.rwm-search-input::-webkit-inner-spin-button,
.rwm-search-input::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Remove browser default search input decorations - ALL STATES */
.rwm-search-input::-webkit-search-decoration,
.rwm-search-input::-webkit-search-cancel-button,
.rwm-search-input::-webkit-search-results-button,
.rwm-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Remove IE clear button */
.rwm-search-input::-ms-clear,
.rwm-search-input::-ms-reveal {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Firefox search clear button */
.rwm-search-input::-moz-clear {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.rwm-search-input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.rwm-search-input::placeholder {
    color: var(--rwm-text-secondary);
}

/* Remove any pseudo-elements that might be added */
.rwm-search-input::before,
.rwm-search-input::after {
    display: none !important;
    content: none !important;
}

/* Ensure no content property is set */
.rwm-search-bar::before,
.rwm-search-bar::after {
    content: none !important;
}

.rwm-search-button {
    padding: 12px 28px;
    background: var(--rwm-gradient-primary);
    color: white;
    border: none;
    border-radius: 26px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 110px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(56, 197, 114, 0.3);
}

.rwm-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 197, 114, 0.5);
}

.rwm-search-button:active {
    transform: scale(0.98);
}

.rwm-search-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.rwm-search-button-text {
    font-size: 13px;
    line-height: 1;
}

/* ============================================
   AUTOCOMPLETE
   ============================================ */

.rwm-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--rwm-bg-secondary);
    border: 1px solid var(--rwm-border-color);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.rwm-autocomplete-list {
    list-style: none;
    margin: 0;
    padding: 4px;
}

.rwm-autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
    border-radius: 4px;
    color: var(--rwm-text-primary);
}

.rwm-autocomplete-item:hover {
    background: var(--rwm-hover-bg);
}

.rwm-autocomplete-item .dashicons {
    color: var(--rwm-accent-primary);
    font-size: 16px;
}

.rwm-autocomplete-text {
    flex: 1;
    font-size: 13px;
}

/* ============================================
   LOCATION PROMPT & STATUS
   ============================================ */

.rwm-location-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 700px;
    margin: 16px auto 0;
    padding: 10px 16px;
    background: rgba(56, 197, 114, 0.05);
    border: 1px solid rgba(56, 197, 114, 0.2);
    border-radius: 12px;
    animation: slideDown 0.3s ease;
    box-sizing: border-box;
    flex-wrap: wrap;
    transition: all 0.3s ease;
    position: relative;
}

.rwm-location-prompt[data-expanded="false"] {
    padding: 6px 12px;
    max-width: fit-content;
}

.rwm-location-prompt[data-expanded="false"] .rwm-location-privacy-text {
    display: none;
}

.rwm-location-prompt[data-expanded="false"] .rwm-location-collapse .dashicons {
    transform: rotate(180deg);
}

.rwm-location-prompt .rwm-location-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: transparent;
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.rwm-location-prompt .rwm-location-button:hover {
    background: var(--rwm-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 197, 114, 0.3);
}

.rwm-location-prompt .rwm-location-button .dashicons {
    color: white;
    margin-right: 8px;
}

.rwm-location-button-text {
    color: white;
}

.rwm-location-privacy-text {
    margin: 0;
    font-size: 13px;
    color: white;
    line-height: 1.5;
}

.rwm-location-collapse {
    padding: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-left: auto;
    outline: none !important;
    box-shadow: none !important;
}

.rwm-location-collapse:hover {
    background: rgba(56, 197, 114, 0.2);
}

.rwm-location-collapse:focus,
.rwm-location-collapse:active {
    outline: none !important;
    box-shadow: none !important;
    background: rgba(56, 197, 114, 0.2);
}

.rwm-location-collapse:focus .dashicons,
.rwm-location-collapse:active .dashicons {
    color: white !important;
}

.rwm-location-collapse .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: white !important;
    transition: transform 0.3s ease;
}

.rwm-location-collapse:hover .dashicons {
    color: var(--rwm-accent-primary) !important;
}

/* Mobile responsive for location prompt */
@media (max-width: 768px) {
    .rwm-location-prompt {
        padding: 10px 16px;
        margin: 12px auto 0;
        max-width: 90%;
        flex-direction: column;
        gap: 8px;
    }

    .rwm-location-prompt .rwm-location-button {
        padding: 8px 16px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .rwm-location-privacy-text {
        font-size: 12px;
        text-align: center;
        width: 100%;
    }

    .rwm-location-collapse {
        position: absolute;
        top: 8px;
        right: 8px;
        margin: 0;
    }
}

.rwm-location-status {
    display: flex;
    max-width: 700px;
    margin: 8px auto 0;
    padding: 6px 14px;
    background: rgba(56, 197, 114, 0.1);
    border: 1px solid rgba(56, 197, 114, 0.3);
    border-radius: 20px;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--rwm-text-primary);
    animation: slideDown 0.3s ease;
    box-sizing: border-box;
}

.rwm-location-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.rwm-location-status .dashicons {
    color: var(--rwm-accent-primary);
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.rwm-location-text {
    flex: 1;
    font-weight: 500;
    color: white;
}

.rwm-location-clear {
    padding: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.rwm-location-clear:hover {
    background: rgba(56, 197, 114, 0.2);
}

.rwm-location-clear .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--rwm-text-secondary);
}

.rwm-location-clear:hover .dashicons {
    color: var(--rwm-accent-primary);
}

/* ============================================
   QUICK FILTERS
   ============================================ */

.rwm-quick-filters {
    display: none;
    /* Hidden by default */
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rwm-quick-filters.visible {
    display: flex;
    opacity: 1;
}

.rwm-quick-filter {
    padding: 8px 18px;
    background: var(--rwm-bg-secondary);
    border: 1px solid var(--rwm-border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--rwm-text-secondary);
}

.rwm-quick-filter .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.rwm-quick-filter:hover {
    background: var(--rwm-hover-bg);
    border-color: var(--rwm-accent-primary);
    color: var(--rwm-text-primary);
    transform: translateY(-2px);
}

.rwm-quick-filter.active {
    background: var(--rwm-gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(56, 197, 114, 0.3);
}

/* ============================================
   FILTERS SECTION
   ============================================ */

.rwm-filters-section {
    padding: 16px 20px;
    background: var(--rwm-bg-primary);
    border-bottom: 1px solid var(--rwm-border-color);
}

.rwm-filters-section>* {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.rwm-filters-toggle {
    padding: 8px 16px;
    background: var(--rwm-bg-secondary);
    border: 1px solid var(--rwm-border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    color: var(--rwm-text-primary);
}

.rwm-filters-toggle:hover {
    border-color: var(--rwm-accent-primary);
    background: var(--rwm-hover-bg);
}

.rwm-filters-toggle .dashicons {
    font-size: 16px;
}

.rwm-filters-panel {
    margin-top: 16px;
    padding: 20px;
    background: var(--rwm-bg-secondary);
    border: 1px solid var(--rwm-border-color);
    border-radius: 8px;
    display: none;
}

.rwm-filter-group {
    margin-bottom: 20px;
}

.rwm-filter-group:last-child {
    margin-bottom: 0;
}

.rwm-filter-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--rwm-text-primary);
}

.rwm-filter-checkbox,
.rwm-filter-radio,
.rwm-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 13px;
    color: var(--rwm-text-secondary);
    transition: color 0.2s;
}

.rwm-filter-checkbox:hover,
.rwm-filter-radio:hover,
.rwm-filter-toggle:hover {
    color: var(--rwm-text-primary);
}

.rwm-filter-checkbox input,
.rwm-filter-radio input,
.rwm-filter-toggle input {
    cursor: pointer;
    accent-color: var(--rwm-accent-primary);
}

.rwm-filter-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--rwm-border-color);
}

.rwm-clear-filters {
    padding: 8px 16px;
    background: var(--rwm-hover-bg);
    border: 1px solid var(--rwm-border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    color: var(--rwm-text-primary);
}

.rwm-clear-filters:hover {
    background: var(--rwm-bg-secondary);
    border-color: var(--rwm-accent-primary);
}

/* ============================================
   SEARCH HISTORY PANEL
   ============================================ */

.rwm-search-history-panel {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: var(--rwm-bg-secondary);
    border: 1px solid var(--rwm-border-color);
    border-radius: 12px;
    animation: slideDown 0.3s ease;
}

.rwm-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rwm-border-color);
}

.rwm-history-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--rwm-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rwm-history-clear {
    padding: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.rwm-history-clear:hover {
    background: rgba(239, 68, 68, 0.1);
}

.rwm-history-clear .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--rwm-text-secondary);
}

.rwm-history-clear:hover .dashicons {
    color: var(--rwm-error);
}

.rwm-history-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rwm-history-item {
    padding: 12px;
    background: var(--rwm-bg-tertiary);
    border: 1px solid var(--rwm-border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rwm-history-item:hover {
    background: var(--rwm-hover-bg);
    border-color: var(--rwm-accent-primary);
    transform: translateX(4px);
}

.rwm-history-query {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.rwm-history-query .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--rwm-accent-primary);
    flex-shrink: 0;
}

.rwm-history-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--rwm-text-primary);
    flex: 1;
}

.rwm-history-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--rwm-text-secondary);
    padding-left: 22px;
}

.rwm-history-time,
.rwm-history-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .rwm-search-history-panel {
        margin: 16px;
        padding: 16px;
    }

    .rwm-history-header h4 {
        font-size: 13px;
    }

    .rwm-history-item {
        padding: 10px;
    }

    .rwm-history-text {
        font-size: 13px;
    }

    .rwm-history-meta {
        font-size: 11px;
        padding-left: 18px;
    }
}

/* ============================================
   CONTEXT INDICATOR
   ============================================ */

.rwm-context-indicator {
    max-width: 900px;
    margin: 0 auto 16px;
    background: rgba(56, 197, 114, 0.1);
    border: 1px solid rgba(56, 197, 114, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
    animation: slideDown 0.3s ease;
}

.rwm-context-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rwm-context-content .dashicons {
    color: var(--rwm-accent-primary);
    font-size: 18px;
    flex-shrink: 0;
}

.rwm-context-message {
    flex: 1;
    font-size: 14px;
    color: var(--rwm-text-primary);
    line-height: 1.5;
}

.rwm-context-clear {
    padding: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.rwm-context-clear:hover {
    background: rgba(56, 197, 114, 0.2);
}

.rwm-context-clear .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--rwm-text-secondary);
}

.rwm-context-clear:hover .dashicons {
    color: var(--rwm-accent-primary);
}


/* Mobile responsive */
@media (max-width: 768px) {
    .rwm-context-indicator {
        margin: 0 16px 12px;
        padding: 12px 14px;
    }

    .rwm-context-content {
        gap: 10px;
    }

    .rwm-context-message {
        font-size: 12px;
    }

    .rwm-context-clear {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* ============================================
   RESULTS CONTAINER - GOOGLE STYLE LIST
   ============================================ */

.rwm-results-container {
    /* Allow the results area to expand to fill remaining space so
       empty / loading states can be vertically centered. */
    flex: 1 1 auto;
    min-height: 0;
    /* allow flex children to determine height on small viewports */
    position: relative;
    padding: 0 20px;
    background: var(--rwm-bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* align to top instead of center */
    align-items: center;
    /* horizontal centering */
}

.rwm-results-grid {
    display: block;
    margin-bottom: 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* ============================================
   RESULTS DIVIDER
   ============================================ */

.rwm-results-divider {
    max-width: 900px;
    margin: 32px auto 24px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.rwm-results-divider::before,
.rwm-results-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rwm-border-color), transparent);
}

.rwm-divider-text {
    padding: 0 20px;
    font-size: 13px;
    font-weight: 600;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .rwm-results-divider {
        margin: 24px auto 16px;
        padding: 0 16px;
    }

    .rwm-divider-text {
        padding: 0 12px;
        font-size: 12px;
    }
}

/* ============================================
   PRODUCT ITEM - LIST STYLE
   ============================================ */

.rwm-product-card {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(10, 10, 10, 0.92) 50%, 
        rgba(0, 0, 0, 0.88) 100%) !important;
    border: 2px solid rgba(56, 193, 114, 0.25) !important;
    padding: 24px !important;
    display: flex !important;
    gap: 20px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 16px !important;
    margin-bottom: 20px !important;
    cursor: pointer !important;
    position: relative !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
                0 2px 8px rgba(56, 193, 114, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
}

.rwm-product-card:hover {
    transform: translateY(-6px) scale(1.01) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                0 8px 24px rgba(56, 193, 114, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(56, 193, 114, 0.45) !important;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.98) 0%, 
        rgba(15, 15, 15, 0.95) 50%, 
        rgba(0, 0, 0, 0.92) 100%) !important;
}

.rwm-product-card::before {
    content: '→' !important;
    position: absolute !important;
    right: 28px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #38C172 0%, #F7941D 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    opacity: 0.7 !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

/* Availability badge (rendered inline after the price) */
.rwm-top-right-status {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 10px !important;
    background: rgba(56, 193, 114, 0.2) !important;
    color: #38C172 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
    line-height: 1 !important;
    border-radius: 20px !important;
    border: 1px solid rgba(56, 193, 114, 0.3) !important;
    box-shadow: 0 4px 12px rgba(56, 193, 114, 0.15) !important;
    pointer-events: none !important;
    align-self: baseline !important;
}

/* Ensure the price and availability pill share the same baseline */
.rwm-product-price {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 10px !important;
}

@media (max-width: 480px) {
    .rwm-top-right-status {
        margin-left: 8px !important;
        padding: 5px 10px !important;
        font-size: 11px !important;
    }
}

.rwm-product-card:hover::before {
    opacity: 1 !important;
    right: 24px !important;
    transform: translateY(-50%) scale(1.15) !important;
}

.rwm-product-card:last-child {
    margin-bottom: 0;
}

.rwm-product-image {
    position: relative !important;
    width: 100px !important;
    height: 100px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, 
        rgba(56, 193, 114, 0.2), 
        rgba(247, 148, 29, 0.15)) !important;
    border-radius: 16px !important;
    border: 2px solid rgba(56, 193, 114, 0.3) !important;
    box-shadow: 0 8px 24px rgba(56, 193, 114, 0.2),
                inset 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.rwm-product-image::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 0.15) 0%, 
        transparent 60%) !important;
    pointer-events: none !important;
}

.rwm-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: relative !important;
    z-index: 1 !important;
}

.rwm-product-image-placeholder {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, 
        rgba(56, 193, 114, 0.15), 
        rgba(247, 148, 29, 0.1)) !important;
}

.rwm-product-image-placeholder .dashicons {
    font-size: 36px !important;
    color: rgba(56, 193, 114, 0.5) !important;
}

.rwm-sale-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--rwm-error);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.rwm-availability-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.rwm-availability-open-now {
    background: linear-gradient(135deg, rgba(10, 72, 52, 0.6) 0%, 0%, rgba(10, 72, 52, 0.6) 0%, 100%) !important;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.rwm-availability-closed {
    background: rgba(107, 114, 128, 0.9);
    color: white;
}

.rwm-availability-out-of-stock {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.rwm-availability-available-reservation {
    background: linear-gradient(135deg, rgba(10, 72, 52, 0.6) 0%, 0%, rgba(10, 72, 52, 0.6) 0%, 100%) !important;
    color: white;
    box-shadow: 0 2px 8px rgba(56, 197, 114, 0.3);
}

.rwm-availability-available {
    background: linear-gradient(135deg, rgba(10, 72, 52, 0.6) 0%, 0%, rgba(10, 72, 52, 0.6) 0%, 100%) !important;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.rwm-product-content {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding-right: 60px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.rwm-product-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

.rwm-product-name {
    font-size: 24px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: #ffffff !important;
    flex: 1 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.rwm-product-name a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.rwm-product-name a:hover {
    color: #38C172 !important;
}

.rwm-product-name a:visited {
    color: #ffffff !important;
}

.rwm-product-price {
    display: flex !important;
    align-items: baseline !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.rwm-price {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #38C172 0%, #F7941D 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.rwm-price-regular {
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: line-through !important;
    font-weight: 600 !important;
}

.rwm-price-sale {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #F7941D 0%, #38C172 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.rwm-restaurant-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    line-height: 1.5 !important;
    margin-top: 4px !important;
    flex-wrap: wrap !important;
}

.rwm-restaurant-name {
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

.rwm-restaurant-name:hover {
    color: #38C172 !important;
}

.rwm-restaurant-name .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    color: #38C172 !important;
}

.rwm-restaurant-location {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.rwm-restaurant-location .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    color: #F7941D !important;
}

.rwm-restaurant-hours {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 13px !important;
}

.rwm-product-description {
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.5 !important;
    margin: 8px 0 0 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.rwm-product-categories {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 12px !important;
}

.rwm-category-tag {
    padding: 6px 14px !important;
    background: rgba(56, 193, 114, 0.15) !important;
    border: 1px solid rgba(56, 193, 114, 0.3) !important;
    border-radius: 16px !important;
    font-size: 13px !important;
    color: #38C172 !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.rwm-category-tag:hover {
    background: rgba(56, 193, 114, 0.25) !important;
    border-color: rgba(56, 193, 114, 0.5) !important;
    transform: translateY(-1px) !important;
}

/* ============================================
   CORRECTION NOTIFICATION
   ============================================ */

/* ============================================
   RESTAURANT CARD (reservation/future view)
   Professional, modern design with strong visual hierarchy
   ============================================ */
.rwm-restaurant-card {
    width: 100% !important;
    box-sizing: border-box !important;
    /* Rich gradient background with depth */
    background: linear-gradient(135deg, 
        rgba(10, 72, 52, 0.95) 0%, 
        rgba(0, 0, 0, 0.92) 50%, 
        rgba(10, 72, 52, 0.88) 100%) !important;
    border: 2px solid rgba(56, 193, 114, 0.25) !important;
    padding: 24px !important;
    display: flex !important;
    gap: 20px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 16px !important;
    margin-bottom: 20px !important;
    cursor: pointer !important;
    position: relative !important;
    align-items: center !important;
    color: #ffffff !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
                0 2px 8px rgba(56, 193, 114, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    overflow: visible !important;
}

.rwm-restaurant-card:hover {
    transform: translateY(-6px) scale(1.01) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                0 8px 24px rgba(56, 193, 114, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(56, 193, 114, 0.45) !important;
    background: linear-gradient(135deg, 
        rgba(10, 72, 52, 1) 0%, 
        rgba(0, 0, 0, 0.95) 50%, 
        rgba(10, 72, 52, 0.92) 100%) !important;
}

/* Elegant arrow indicator with gradient */
.rwm-restaurant-card::before {
    content: '→' !important;
    position: absolute !important;
    right: 28px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #38C172 0%, #F7941D 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    opacity: 0.7 !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
}

.rwm-restaurant-card:hover::before {
    opacity: 1 !important;
    right: 24px !important;
    transform: translateY(-50%) scale(1.15) !important;
}

/* Premium avatar with glow effect */
.rwm-restaurant-avatar {
    width: 96px !important;
    height: 96px !important;
    flex-shrink: 0 !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, 
        rgba(56, 193, 114, 0.2), 
        rgba(247, 148, 29, 0.15)) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 28px !important;
    box-shadow: 0 8px 24px rgba(56, 193, 114, 0.2),
                inset 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden !important;
    border: 2px solid rgba(56, 193, 114, 0.3) !important;
    position: relative !important;
}

.rwm-restaurant-avatar::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 0.15) 0%, 
        transparent 60%) !important;
    pointer-events: none !important;
}

.rwm-restaurant-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: inherit !important;
    position: relative !important;
    z-index: 1 !important;
}

.rwm-restaurant-card .rwm-restaurant-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding-right: 60px !important;
}

.rwm-restaurant-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

.rwm-restaurant-name {
    font-size: 24px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.rwm-restaurant-name a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.rwm-restaurant-name a:hover {
    color: #38C172 !important;
}

.rwm-restaurant-meta {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.rwm-restaurant-product-count {
    font-size: 13px !important;
    color: #38C172 !important;
    background: rgba(56, 193, 114, 0.15) !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(56, 193, 114, 0.25) !important;
}

.rwm-restaurant-availability {
    font-weight: 600 !important;
    color: #38C172 !important;
}

.rwm-restaurant-hours {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 13px !important;
}

.rwm-restaurant-location {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 4px !important;
}

.rwm-restaurant-location .dashicons {
    color: #F7941D !important;
    font-size: 16px !important;
}

.rwm-restaurant-description {
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 8px 0 0 0 !important;
    line-height: 1.5 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.rwm-restaurant-actions {
    margin-top: 12px !important;
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.rwm-restaurant-actions .rwm-btn {
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: none !important;
    white-space: nowrap !important;
}

.rwm-restaurant-actions .rwm-view-menu {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.rwm-restaurant-actions .rwm-view-menu:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.rwm-restaurant-actions .rwm-make-reservation {
    background: linear-gradient(135deg, #F7941D 0%, #E67E00 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(247, 148, 29, 0.35),
                0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.rwm-restaurant-actions .rwm-make-reservation:hover {
    background: linear-gradient(135deg, #FF9D2E 0%, #F7941D 100%) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 12px 32px rgba(247, 148, 29, 0.45),
                0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Tablet responsive */
@media (max-width: 768px) {
    .rwm-restaurant-card {
        padding: 20px !important;
        gap: 16px !important;
    }

    .rwm-restaurant-avatar {
        width: 80px !important;
        height: 80px !important;
        font-size: 24px !important;
    }

    .rwm-restaurant-name {
        font-size: 20px !important;
    }

    .rwm-restaurant-card .rwm-restaurant-content {
        padding-right: 50px !important;
    }

    .rwm-restaurant-card::before {
        font-size: 28px !important;
        right: 20px !important;
    }
}

/* Mobile responsive */
@media (max-width: 640px) {
    .rwm-restaurant-card {
        padding: 16px !important;
        gap: 12px !important;
        flex-direction: row !important;
        align-items: flex-start !important;
    }

    .rwm-restaurant-avatar {
        width: 64px !important;
        height: 64px !important;
        font-size: 20px !important;
        border-radius: 12px !important;
    }

    .rwm-restaurant-name {
        font-size: 18px !important;
    }

    .rwm-restaurant-card .rwm-restaurant-content {
        padding-right: 40px !important;
        gap: 8px !important;
    }

    .rwm-restaurant-card::before {
        font-size: 24px !important;
        right: 16px !important;
    }

    .rwm-restaurant-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .rwm-restaurant-actions .rwm-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px 20px !important;
        font-size: 14px !important;
    }

    .rwm-restaurant-meta {
        font-size: 13px !important;
        gap: 10px !important;
    }

    .rwm-restaurant-description {
        font-size: 14px !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }
}

.rwm-correction-notification {
    max-width: 900px;
    margin: 0 auto 20px;
    background: rgba(56, 197, 114, 0.1);
    border: 1px solid rgba(56, 197, 114, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rwm-correction-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rwm-correction-content .dashicons {
    color: var(--rwm-accent-primary);
    font-size: 20px;
    flex-shrink: 0;
}

.rwm-correction-message {
    flex: 1;
    font-size: 14px;
    color: var(--rwm-text-primary);
    line-height: 1.5;
}

.rwm-correction-reject {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid rgba(56, 197, 114, 0.4);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--rwm-accent-primary);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.rwm-correction-reject:hover {
    background: rgba(56, 197, 114, 0.15);
    border-color: var(--rwm-accent-primary);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .rwm-correction-notification {
        margin: 0 16px 16px;
        padding: 14px 16px;
    }

    .rwm-correction-content {
        gap: 10px;
    }

    .rwm-correction-message {
        font-size: 13px;
    }

    .rwm-correction-reject {
        font-size: 11px;
        padding: 5px 12px;
    }
}

/* ============================================
   CLARIFICATION REQUEST
   ============================================ */

.rwm-clarification-request {
    max-width: 900px;
    margin: 0 auto 20px;
    background: var(--rwm-bg-secondary);
    border: 1px solid var(--rwm-border-color);
    border-radius: 16px;
    padding: 24px;
    animation: slideDown 0.3s ease;
}

.rwm-clarification-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.rwm-clarification-header .dashicons {
    color: var(--rwm-accent-primary);
    font-size: 24px;
    flex-shrink: 0;
}

.rwm-clarification-question {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--rwm-text-primary);
    line-height: 1.4;
}

.rwm-clarification-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.rwm-clarification-option {
    padding: 16px 20px;
    background: var(--rwm-bg-tertiary);
    border: 2px solid var(--rwm-border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rwm-clarification-option:hover {
    background: var(--rwm-hover-bg);
    border-color: var(--rwm-accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 197, 114, 0.2);
}

.rwm-option-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--rwm-text-primary);
    line-height: 1.3;
}

.rwm-option-description {
    font-size: 13px;
    color: var(--rwm-text-secondary);
    line-height: 1.4;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .rwm-clarification-request {
        margin: 0 16px 16px;
        padding: 20px;
    }

    .rwm-clarification-header {
        gap: 10px;
        margin-bottom: 16px;
    }

    .rwm-clarification-header .dashicons {
        font-size: 20px;
    }

    .rwm-clarification-question {
        font-size: 16px;
    }

    .rwm-clarification-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rwm-clarification-option {
        padding: 14px 16px;
    }

    .rwm-option-text {
        font-size: 14px;
    }

    .rwm-option-description {
        font-size: 12px;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */

.rwm-loading-state {
    text-align: center;
    padding: 60px 20px;
}

.rwm-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--rwm-border-color);
    border-top: 3px solid var(--rwm-accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.rwm-loading-state p {
    font-size: 14px;
    color: var(--rwm-text-secondary);
    margin: 0;
}

/* ============================================
   EMPTY STATE - PRODUCTION QUALITY
   ============================================ */

.rwm-empty-state {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.rwm-empty-card {
    display: block;
    text-align: center;
}

.rwm-empty-visual,
.rwm-empty-card-left,
.rwm-empty-copy,
.rwm-empty-title,
.rwm-empty-subtitle,
.rwm-empty-diagnostic,
.rwm-ai-diagnostic,
.rwm-empty-suggestions-container {
    display: none !important;
}

.rwm-empty-card-right {
    width: 100%;
    text-align: center;
}

.rwm-alternative-searches {
    margin-bottom: 20px;
    margin-top: 0;
    text-align: center;
}

.rwm-alternatives-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    text-align: center;
}

.rwm-alternative-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.rwm-alt-pill,
.rwm-alternative-search-link {
    padding: 10px 20px;
    background: rgba(56, 193, 114, 0.12);
    border: 1px solid rgba(56, 193, 114, 0.25);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #38C172;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rwm-alt-pill:hover,
.rwm-alternative-search-link:hover {
    background: rgba(56, 193, 114, 0.2);
    border-color: rgba(56, 193, 114, 0.4);
    transform: translateY(-2px);
}

.rwm-empty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.rwm-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.rwm-btn-primary {
    background: linear-gradient(135deg, #F7941D 0%, #E67E00 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(247, 148, 29, 0.3);
}

.rwm-btn-primary:hover {
    box-shadow: 0 6px 16px rgba(247, 148, 29, 0.4);
    transform: translateY(-2px);
}

.rwm-btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rwm-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .rwm-empty-state {
        padding: 0 16px;
    }

    .rwm-alternative-links {
        gap: 8px;
    }

    .rwm-alt-pill,
    .rwm-alternative-search-link {
        padding: 9px 18px;
        font-size: 13px;
    }

    .rwm-empty-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .rwm-btn {
        width: 100%;
        padding: 11px 20px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .rwm-empty-state {
        padding: 0 20px;
    }

    .rwm-empty-title {
        font-size: 26px;
    }

    .rwm-empty-subtitle {
        font-size: 16px;
    }

    .rwm-empty-suggestion-item {
        font-size: 14px;
    }

    .rwm-alt-pill,
    .rwm-alternative-search-link {
        padding: 11px 22px;
        font-size: 14px;
    }

    .rwm-empty-actions {
        flex-direction: column;
        width: 100%;
    }

    .rwm-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .rwm-empty-title {
        font-size: 24px;
    }

    .rwm-empty-subtitle {
        font-size: 15px;
    }

    .rwm-empty-suggestion-item {
        font-size: 13px;
    }

    .rwm-alt-pill,
    .rwm-alternative-search-link {
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* ============================================
   ERROR STATE
   ============================================ */

.rwm-error-state {
    text-align: center;
    padding: 60px 20px;
}

.rwm-error-icon {
    font-size: 64px;
    color: var(--rwm-error);
    margin-bottom: 16px;
}

.rwm-error-icon .dashicons {
    font-size: 64px;
}

.rwm-error-state h3 {
    margin: 0 0 8px 0;
    color: var(--rwm-error);
    font-size: 18px;
    font-weight: 500;
}

.rwm-error-message {
    margin: 0;
    font-size: 14px;
    color: var(--rwm-text-secondary);
}

/* ============================================
   PAGINATION
   ============================================ */

.rwm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    padding: 20px;
}

.rwm-pagination-prev,
.rwm-pagination-next {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--rwm-border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    color: var(--rwm-accent-primary);
}

.rwm-pagination-prev:hover:not(:disabled),
.rwm-pagination-next:hover:not(:disabled) {
    background: var(--rwm-hover-bg);
    border-color: var(--rwm-accent-primary);
}

.rwm-pagination-prev:disabled,
.rwm-pagination-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.rwm-pagination-info {
    font-size: 13px;
    color: var(--rwm-text-secondary);
    font-weight: 400;
}

/* Compact numeric pagination styles */
.rwm-pagination-nav {
    display: block;
}

.rwm-pagination-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.rwm-pagination-list li {
    display: inline-block;
}

.rwm-page-btn {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: transparent;
    border: 1px solid var(--rwm-border-color);
    color: var(--rwm-text-secondary);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.12s ease;
    box-shadow: none;
}

.rwm-page-btn:hover:not(:disabled) {
    background: rgba(56, 197, 114, 0.06);
    color: var(--rwm-text-primary);
    border-color: rgba(56, 197, 114, 0.2);
}

.rwm-page-btn[aria-current="page"],
.rwm-page-btn.active {
    background: var(--rwm-accent-primary);
    color: white;
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.rwm-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Reduce surrounding padding for compact look */
.rwm-pagination {
    padding: 8px 12px;
}

/* Responsive: stack prev/next on narrow screens but keep numeric buttons full width */
@media (max-width: 480px) {
    .rwm-pagination {
        gap: 10px;
        padding: 10px;
        flex-direction: column;
    }

    .rwm-pagination-list {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .rwm-page-btn {
        min-width: 30px;
        height: 30px;
        padding: 0 6px;
        font-size: 13px;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Mobile */
@media (max-width: 768px) {
    .rwm-search-section {
        padding: 30px 16px 24px;
    }

    .rwm-hero-title {
        font-size: 26px;
    }

    .rwm-hero-subtitle {
        font-size: 13px;
    }

    .rwm-search-bar-wrapper {
        max-width: 100%;
    }

    .rwm-search-input {
        font-size: 14px;
        padding: 12px 16px;
    }

    .rwm-search-button {
        padding: 10px 18px;
        font-size: 13px;
        min-width: 80px;
    }

    .rwm-search-button-text {
        font-size: 13px;
    }

    .rwm-quick-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        margin-top: 16px;
        gap: 10px;
    }

    .rwm-quick-filter {
        flex-shrink: 0;
        padding: 6px 14px;
        font-size: 12px;
    }

    .rwm-results-container {
        padding: 12px;
    }

    .rwm-product-card {
        padding: 16px !important;
        gap: 12px !important;
        margin-bottom: 12px !important;
        flex-direction: row !important;
        align-items: flex-start !important;
    }

    .rwm-product-card:hover {
        transform: translateY(-2px) !important;
    }

    .rwm-product-card::before {
        font-size: 20px !important;
        right: 16px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .rwm-product-card:hover::before {
        right: 14px !important;
        transform: translateY(-50%) scale(1.08) !important;
    }

    .rwm-product-image {
        width: 100px !important;
        height: 100px !important;
        flex-shrink: 0 !important;
        border-radius: 12px !important;
    }

    .rwm-product-content {
        gap: 6px !important;
        padding-right: 35px !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    .rwm-product-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }

    .rwm-product-name {
        font-size: 16px !important;
        line-height: 1.2 !important;
        order: 2 !important;
    }

    .rwm-product-price {
        order: 1 !important;
        align-self: flex-start !important;
    }

    .rwm-price,
    .rwm-price-sale {
        font-size: 18px !important;
    }

    .rwm-price-regular {
        font-size: 13px !important;
    }

    .rwm-top-right-status {
        font-size: 11px !important;
        padding: 4px 8px !important;
        margin-left: 8px !important;
    }

    .rwm-restaurant-info {
        font-size: 12px !important;
        flex-wrap: wrap !important;
        margin-top: 2px !important;
        gap: 6px !important;
    }

    .rwm-restaurant-name {
        font-size: 13px !important;
    }

    .rwm-restaurant-location {
        font-size: 12px !important;
    }

    .rwm-restaurant-hours {
        font-size: 12px !important;
    }

    .rwm-product-description {
        font-size: 13px !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        margin-top: 4px !important;
    }

    .rwm-product-categories {
        display: none !important;
    }

    .rwm-product-actions {
        margin-top: 8px !important;
        display: flex !important;
        gap: 8px !important;
        align-items: center !important;
    }

    .rwm-add-to-cart-btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
        flex: 1 !important;
    }

    .rwm-pagination {
        flex-direction: column;
        gap: 10px;
    }

    .rwm-pagination-prev,
    .rwm-pagination-next {
        width: 100%;
        justify-content: center;
    }

    .rwm-empty-state {
        padding: 0 16px;
    }

    .rwm-empty-icon {
        font-size: 48px;
        margin-bottom: 16px;
    }

    .rwm-empty-icon .dashicons {
        font-size: 48px;
    }

    .rwm-empty-state h3 {
        font-size: 19px;
    }

    .rwm-empty-message {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .rwm-empty-suggestions-container {
        padding: 20px;
    }

    .rwm-suggestions-title {
        font-size: 13px;
    }

    .rwm-empty-suggestion-item {
        font-size: 13px;
        gap: 10px;
    }

    .rwm-alternative-searches {
        padding: 16px;
        margin-top: 16px;
    }

    .rwm-alternatives-title {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .rwm-alternative-links {
        gap: 8px;
    }

    .rwm-alternative-search-link {
        font-size: 13px;
        padding: 8px 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .rwm-search-section {
        padding: 24px 12px 20px;
    }

    .rwm-hero-title {
        font-size: 24px;
    }

    .rwm-hero-subtitle {
        font-size: 12px;
    }

    .rwm-search-bar {
        padding: 6px 6px 6px 10px;
        gap: 8px;
    }

    .rwm-location-button {
        padding: 8px;
    }

    .rwm-location-button .dashicons {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }

    .rwm-location-prompt {
        margin-top: 12px;
        padding: 12px;
    }

    .rwm-location-prompt .rwm-location-button {
        padding: 10px 20px;
        font-size: 13px;
    }

    .rwm-location-privacy-text {
        font-size: 11px;
        margin-top: 10px;
    }

    .rwm-location-status {
        margin-top: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .rwm-location-text {
        font-size: 12px;
    }

    .rwm-search-input {
        padding: 10px 14px;
        font-size: 14px;
    }

    .rwm-search-button {
        padding: 8px 16px;
        min-width: 70px;
    }

    .rwm-results-container {
        padding: 10px;
    }

    .rwm-product-card {
        padding: 14px !important;
        gap: 10px !important;
        margin-bottom: 10px !important;
    }

    .rwm-product-content {
        padding-right: 32px !important;
        gap: 4px !important;
    }

    .rwm-product-image {
        width: 90px !important;
        height: 90px !important;
        border-radius: 10px !important;
    }

    .rwm-product-name {
        font-size: 15px !important;
    }

    .rwm-price,
    .rwm-price-sale {
        font-size: 16px !important;
    }

    .rwm-price-regular {
        font-size: 12px !important;
    }

    .rwm-top-right-status {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }

    .rwm-restaurant-info {
        font-size: 11px !important;
        gap: 4px !important;
    }

    .rwm-restaurant-name {
        font-size: 12px !important;
    }

    .rwm-restaurant-location,
    .rwm-restaurant-hours {
        font-size: 11px !important;
    }

    .rwm-product-description {
        font-size: 12px !important;
        -webkit-line-clamp: 1 !important;
        line-clamp: 1 !important;
    }

    .rwm-add-to-cart-btn {
        padding: 9px 14px !important;
        font-size: 12px !important;
    }

    .rwm-product-card::before {
        font-size: 18px !important;
        right: 14px !important;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.rwm-search-input:focus,
.rwm-search-button:focus,
.rwm-quick-filter:focus,
.rwm-pagination-prev:focus,
.rwm-pagination-next:focus {
    outline: 2px solid var(--rwm-accent-primary);
    outline-offset: 2px;
}

/* High contrast mode support - keep dark gradient background */
@media (prefers-contrast: high) {
    .rwm-product-card,
    .rwm-restaurant-card {
        border-width: 3px !important;
        border-color: rgba(56, 193, 114, 0.5) !important;
        background: linear-gradient(135deg, 
            rgba(10, 72, 52, 0.98) 0%, 
            rgba(0, 0, 0, 0.95) 50%, 
            rgba(10, 72, 52, 0.92) 100%) !important;
        color: #ffffff !important;
    }

    .rwm-search-bar {
        border-width: 3px !important;
        border-color: rgba(56, 193, 114, 0.5) !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {

    .rwm-search-section,
    .rwm-pagination,
    .rwm-loading-state {
        display: none;
    }

    .rwm-product-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ============================================
   TEMPORARILY HIDE FILTERS
   ============================================ */

/* Hide filters section - remove this rule to re-enable filters */
.rwm-filters-section {
    display: none !important;
}

/*
 ============================================
   FORCE FULL SCREEN - OVERRIDE THEME STYLES
   ============================================ */

/* Remove top spacing from page/post content */
body .entry-content:has(.rwm-food-discovery-container),
body .site-content:has(.rwm-food-discovery-container),
body .content-area:has(.rwm-food-discovery-container),
body article:has(.rwm-food-discovery-container) {
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove spacing from common theme wrappers */
.rwm-food-discovery-container~*,
.rwm-food-discovery-container+* {
    margin-top: 0 !important;
}

/* Ensure parent elements don't add spacing */
body .page:has(.rwm-food-discovery-container),
body .post:has(.rwm-food-discovery-container),
body .entry:has(.rwm-food-discovery-container) {
    padding: 0 !important;
    margin: 0 !important;
}

/* Override Astra theme specific styles */
.ast-container .rwm-food-discovery-container,
.ast-separate-container .rwm-food-discovery-container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 0 !important;
}

/* Override GeneratePress theme */
.inside-article .rwm-food-discovery-container,
.site-content .rwm-food-discovery-container {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
}

/* Override OceanWP theme */
#content .rwm-food-discovery-container,
#main .rwm-food-discovery-container {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 0 !important;
}

* Remove any box shadows or borders from parent containers */ .rwm-food-discovery-container,
*:has(> .rwm-food-discovery-container) {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
}

/* ============================================
   FORCE FULL TRANSPARENT BACKGROUNDS
   Ensures the food-discovery UI renders fully transparent
   (useful when embedding over a site background or theme)
   ============================================ */
.rwm-food-discovery-container,
.rwm-search-section,
.rwm-search-bar,
.rwm-autocomplete-dropdown,
.rwm-filters-section,
.rwm-filters-panel,
.rwm-results-container,

.rwm-product-image,
.rwm-empty-suggestions-container,
.rwm-context-indicator,
.rwm-correction-notification,
.rwm-clarification-request,
.rwm-search-history-panel,
.rwm-quick-filter,
.rwm-alternative-searches,
.rwm-search-button,
.rwm-location-status,
.rwm-location-button,
.rwm-clarification-option {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
    color: inherit !important;
}

/* Make sure results area uses transparent base even if var overrides exist */
.rwm-results-container {
    background: transparent !important;
}

/* Override high-contrast rule that previously forced white backgrounds */
@media (prefers-contrast: high) {

    .rwm-search-bar,
    .rwm-results-container {
        background: transparent !important;
        color: inherit !important;
        border-color: transparent !important;
    }
}

/* Also ensure pseudo-elements don't add solid backgrounds */
.rwm-search-section::before,
.rwm-product-card::before {
    background: transparent !important;
}

.rwm-restaurant-name a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   Ensure restaurant cards follow product card visual style
   Adding grouped rules to keep visual parity between product and restaurant cards
   ============================================ */
.rwm-restaurant-card {
    background: black !important;
    border: 1px solid var(--rwm-border-color);
    padding: 20px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    border-radius: 16px;
    margin-bottom: 16px;
    cursor: pointer;
    position: relative;
}

.rwm-restaurant-card:hover {
    background: var(--rwm-bg-tertiary);
    border-color: var(--rwm-accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(56, 197, 114, 0.2);
}

.rwm-restaurant-card::before {
    content: '→';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: 700;
    color: var(--rwm-accent-primary);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.rwm-restaurant-card:hover::before {
    opacity: 1;
    right: 20px;
    transform: translateY(-50%) scale(1.06);
}

/* Ensure avatar uses product image size and styling */
.rwm-restaurant-card .rwm-product-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--rwm-bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--rwm-border-color);
}

.rwm-restaurant-card .rwm-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rwm-restaurant-card .rwm-product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rwm-bg-secondary);
}

/* Ensure product-actions styles fit restaurant cards */
.rwm-restaurant-card .rwm-product-actions {
    margin-top: 8px;
    padding-top: 0;
    border-top: none;
}

/* Small inline buttons for restaurant actions instead of full-width add-to-cart button */
.rwm-restaurant-card .rwm-btn-ghost {
    background: transparent;
    border: 1px solid rgba(10,72,52,0.06);
    color: var(--rwm-text-primary);
    padding: 8px 14px;
    font-size: 14px;
}

.rwm-restaurant-card .rwm-btn-primary {
    background: linear-gradient(135deg, #F7941D 0%, #E67E00 100%);
    color: #08120b;
    padding: 8px 14px;
    font-size: 14px;
    box-shadow: 0 6px 16px rgba(231, 126, 0, 0.12);
}

/* Top-right availability badge for restaurant (absolute positioning) */
.rwm-restaurant-card .rwm-top-right-status {
    position: absolute;
    right: 22px;
    top: 14px;
    z-index: 70;
}

/* Stock pill styles */
.rwm-stock-pill {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    margin-left: 8px;
}
.rwm-stock-available {
    background: #fff7ed; /* subtle yellow */
    color: #7f5a00; /* dark yellow/brown */
    border: 1px solid rgba(0,0,0,0.04);
}
.rwm-stock-out {
    background: #fff1f2; /* subtle red */
    color: #9b1c18;
    border: 1px solid rgba(0,0,0,0.04);
}
.rwm-stock-managed-no {
    background: #f0fff4; /* subtle green */
    color: #086c2f;
    border: 1px solid rgba(0,0,0,0.04);
}

/* ============================================
   FEATURED SLIDERS
   ============================================ */

.rwm-featured-section {
    padding: 12px 20px;
    background: transparent;
    position: relative;
}

.rwm-featured-section:first-of-type {
    padding-top: 8px;
}

.rwm-featured-header {
    max-width: 1200px;
    margin: 0 auto 12px;
    text-align: center;
}

.rwm-featured-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.rwm-featured-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    font-weight: 400;
}

.rwm-featured-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
}

.rwm-slider-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.rwm-slider-loading .dashicons {
    animation: spin 1s linear infinite;
}

.rwm-slider-items-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Categories slider - flex-start for horizontal scrolling */
.rwm-categories-slider .rwm-slider-items-container {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding: 8px 16px;
    scroll-padding: 16px;
}

/* Only center when few items (controlled by JS) */
.rwm-categories-slider .rwm-slider-items-container.centered {
    justify-content: center;
}

/* Restaurants slider - flex-start for horizontal scrolling */
.rwm-restaurants-slider .rwm-slider-items-container {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding: 8px 16px;
    scroll-padding: 16px;
}

/* Only center when few items (controlled by JS) */
.rwm-restaurants-slider .rwm-slider-items-container.centered {
    justify-content: center;
}

/* Discounts slider - flex-start for horizontal scrolling */
.rwm-discounts-slider .rwm-slider-items-container {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding: 8px 16px;
    scroll-padding: 16px;
}

/* Only center when few items (controlled by JS) */
.rwm-discounts-slider .rwm-slider-items-container.centered {
    justify-content: center;
}

.rwm-slider-items-container::-webkit-scrollbar {
    display: none;
}

.rwm-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(56, 193, 114, 0.2);
    border: 2px solid rgba(56, 193, 114, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38C172;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.rwm-slider-nav:hover {
    background: rgba(56, 193, 114, 0.4);
    border-color: rgba(56, 193, 114, 0.6);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 24px rgba(56, 193, 114, 0.3);
}

.rwm-slider-prev {
    left: 0;
}

.rwm-slider-next {
    right: 0;
}

.rwm-slider-nav .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Category Slider Item - Modern Pill Style */
.rwm-category-item {
    flex: 0 0 auto;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
}

.rwm-category-thumbnail {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(247, 148, 29, 0.15) 0%, rgba(247, 148, 29, 0.08) 100%);
    border: 1.5px solid rgba(247, 148, 29, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rwm-category-item:hover .rwm-category-thumbnail {
    border-color: rgba(247, 148, 29, 0.6);
    background: linear-gradient(145deg, rgba(247, 148, 29, 0.25) 0%, rgba(247, 148, 29, 0.15) 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(247, 148, 29, 0.2),
                0 4px 8px rgba(0, 0, 0, 0.2);
}

.rwm-category-item:active .rwm-category-thumbnail {
    transform: translateY(-1px) scale(1.02);
}

.rwm-category-thumbnail img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.rwm-category-name {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 72px;
    letter-spacing: 0.01em;
}

.rwm-category-item:hover .rwm-category-name {
    color: #F7941D;
}

.rwm-category-count {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    display: none;
}

/* Pharmacy Slider Item - Modern Card Style */
.rwm-restaurant-item {
    flex: 0 0 180px;
    min-width: 180px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.rwm-restaurant-tile {
    background: linear-gradient(165deg, rgba(28, 28, 30, 0.95) 0%, rgba(18, 18, 20, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.rwm-restaurant-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 193, 114, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.rwm-restaurant-item:hover .rwm-restaurant-tile {
    border-color: rgba(56, 193, 114, 0.25);
    background: linear-gradient(165deg, rgba(35, 35, 38, 0.98) 0%, rgba(22, 22, 25, 1) 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35),
                0 4px 12px rgba(56, 193, 114, 0.08);
}

.rwm-restaurant-item:hover .rwm-restaurant-tile::before {
    opacity: 1;
}

.rwm-restaurant-item:active .rwm-restaurant-tile {
    transform: translateY(-2px);
}

.rwm-restaurant-logo-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(56, 193, 114, 0.12) 0%, rgba(56, 193, 114, 0.06) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(56, 193, 114, 0.15);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.rwm-restaurant-item:hover .rwm-restaurant-logo-wrapper {
    border-color: rgba(56, 193, 114, 0.35);
    box-shadow: 0 0 12px rgba(56, 193, 114, 0.15);
}

.rwm-restaurant-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rwm-restaurant-tile-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.rwm-restaurant-tile-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.rwm-restaurant-tile-status {
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 0;
}

.rwm-restaurant-tile-status.open {
    color: #4ADE80;
}

.rwm-restaurant-tile-status.closed {
    color: #F87171;
}

.rwm-restaurant-tile-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.rwm-restaurant-tile-status.closed::before {
    animation: none;
    opacity: 0.8;
}

.rwm-restaurant-tile-products {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    letter-spacing: 0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Discount badge for restaurant-style cards - positioned on image */
.rwm-discount-badge-small {
    position: absolute;
    bottom: -1px;
    right: -1px;
    background: linear-gradient(135deg, #F7941D 0%, #E67E00 100%);
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

/* Make logo wrapper position relative for badge positioning */
.rwm-discount-item .rwm-restaurant-logo-wrapper {
    position: relative;
}

/* Discount price styling - compact like status text */
.rwm-discount-item .rwm-restaurant-tile-status {
    font-size: 10px;
    font-weight: 500;
    color: #4ADE80;
}

.rwm-discount-item .rwm-restaurant-tile-status s {
    color: rgba(255, 255, 255, 0.35);
    font-size: 9px;
    font-weight: 400;
    margin-right: 3px;
}

/* Legacy inline prices (keeping for backwards compatibility) */
.rwm-discount-prices-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 2px 0;
}

.rwm-discount-prices-inline .rwm-price-old {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}

.rwm-discount-prices-inline .rwm-price-sale {
    font-size: 11px;
    font-weight: 600;
    color: #4ADE80;
}

/* Discount Slider Item - now uses restaurant-item styles */
.rwm-discount-item.rwm-restaurant-item {
    /* Inherits restaurant-item styles */
}

/* Legacy Discount Slider Item (keeping for backwards compatibility) */
.rwm-discount-item:not(.rwm-restaurant-item) {
    flex: 0 0 calc(20% - 13px);
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rwm-discount-card {
    background: linear-gradient(135deg, rgba(10, 72, 52, 0.95) 0%, rgba(0, 0, 0, 0.92) 100%);
    border: 2px solid rgba(247, 148, 29, 0.3);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
}

.rwm-discount-item:hover .rwm-discount-card {
    border-color: rgba(247, 148, 29, 0.6);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(247, 148, 29, 0.25);
}

.rwm-discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #F7941D 0%, #E67E00 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(247, 148, 29, 0.3);
}

.rwm-discount-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: rgba(56, 193, 114, 0.1);
}

.rwm-discount-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.rwm-discount-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rwm-discount-prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.rwm-discount-regular {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
}

.rwm-discount-sale {
    font-size: 15px;
    font-weight: 800;
    color: #38C172;
}

.rwm-discount-percent {
    font-size: 11px;
    color: #F7941D;
    font-weight: 700;
    background: rgba(247, 148, 29, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .rwm-restaurant-item {
        flex: 0 0 170px;
        min-width: 170px;
    }

    .rwm-discount-item {
        flex: 0 0 calc(25% - 12px);
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .rwm-featured-section {
        padding: 10px 16px;
    }

    .rwm-featured-header {
        margin-bottom: 10px;
    }

    .rwm-featured-title {
        font-size: 24px;
    }

    .rwm-featured-subtitle {
        font-size: 14px;
    }

    .rwm-slider-items-container {
        gap: 10px;
        padding: 8px 0;
    }

    /* Tablet/Mobile: Horizontal scroll sliders - center when few items */
    .rwm-categories-slider .rwm-slider-items-container {
        justify-content: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 12px;
        padding: 8px 12px;
        scroll-padding: 12px;
    }
    
    /* Allow centering on mobile when few items - use small fixed padding */
    .rwm-categories-slider .rwm-slider-items-container.centered {
        justify-content: center;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* Remove auto margins */
    .rwm-categories-slider .rwm-slider-items-container.centered .rwm-category-item:first-child {
        margin-left: 0;
    }
    
    .rwm-categories-slider .rwm-slider-items-container.centered .rwm-category-item:last-child {
        margin-right: 0;
    }

    /* Tablet/Mobile: Horizontal scroll sliders - center only when few items */
    .rwm-restaurants-slider .rwm-slider-items-container {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        padding: 8px 12px;
        scroll-padding: 12px;
    }
    
    /* Center via JS when few items */
    .rwm-restaurants-slider .rwm-slider-items-container.centered {
        justify-content: center;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* Allow centering on mobile when few items - use small fixed padding */
    .rwm-restaurants-slider .rwm-slider-items-container.centered {
        justify-content: center;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* Remove auto margins */
    .rwm-restaurants-slider .rwm-slider-items-container.centered .rwm-restaurant-item:first-child {
        margin-left: 0;
    }
    
    .rwm-restaurants-slider .rwm-slider-items-container.centered .rwm-restaurant-item:last-child {
        margin-right: 0;
    }

    .rwm-category-item {
        flex-shrink: 0;
    }

    .rwm-category-thumbnail {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .rwm-category-thumbnail img {
        width: 28px;
        height: 28px;
    }

    .rwm-category-name {
        font-size: 10px;
        max-width: 64px;
    }

    .rwm-restaurant-item {
        flex: 0 0 160px;
        min-width: 160px;
        flex-shrink: 0;
    }

    .rwm-restaurant-tile {
        padding: 14px;
        gap: 12px;
    }

    .rwm-restaurant-logo-wrapper {
        width: 46px;
        height: 46px;
    }

    .rwm-restaurant-tile-name {
        font-size: 13px;
    }

    .rwm-restaurant-tile-status {
        font-size: 10px;
    }

    .rwm-restaurant-tile-products {
        font-size: 10px;
    }

    /* Tablet/Mobile: Horizontal scroll sliders - center only when few items */
    .rwm-discounts-slider .rwm-slider-items-container {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        padding: 8px 12px;
        scroll-padding: 12px;
    }
    
    /* Center via JS when few items */
    .rwm-discounts-slider .rwm-slider-items-container.centered {
        justify-content: center;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* Allow centering on mobile when few items - use small fixed padding */
    .rwm-discounts-slider .rwm-slider-items-container.centered {
        justify-content: center;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* Remove auto margins */
    .rwm-discounts-slider .rwm-slider-items-container.centered .rwm-discount-item:first-child {
        margin-left: 0;
    }
    
    .rwm-discounts-slider .rwm-slider-items-container.centered .rwm-discount-item:last-child {
        margin-right: 0;
    }

    .rwm-discount-item.rwm-restaurant-item {
        flex: 0 0 160px;
        min-width: 160px;
        flex-shrink: 0;
    }

    /* Legacy discount styles */
    .rwm-discount-item:not(.rwm-restaurant-item) {
        flex: 0 0 calc(33.333% - 11px);
        min-width: 100px;
    }

    .rwm-discount-name {
        font-size: 12px;
    }

    .rwm-discount-content {
        padding: 10px;
    }

    .rwm-discount-badge {
        padding: 6px 10px;
        font-size: 11px;
    }

    .rwm-slider-nav {
        width: 40px;
        height: 40px;
    }

    .rwm-slider-nav .dashicons {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .rwm-featured-section {
        padding: 8px 12px;
    }

    .rwm-featured-title {
        font-size: 20px;
    }

    .rwm-featured-subtitle {
        font-size: 13px;
    }

    .rwm-slider-items-container {
        gap: 8px;
        padding: 6px 0;
    }

    /* Mobile: Horizontal scroll sliders */
    .rwm-categories-slider .rwm-slider-items-container {
        justify-content: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        padding: 6px 8px;
        scroll-padding: 8px;
    }

    /* Mobile: Horizontal scroll sliders - center only when few items */
    .rwm-restaurants-slider .rwm-slider-items-container {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        padding: 6px 8px;
        scroll-padding: 8px;
    }
    
    /* Center via JS when few items */
    .rwm-restaurants-slider .rwm-slider-items-container.centered {
        justify-content: center;
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Mobile: Horizontal scroll sliders - center only when few items */
    .rwm-discounts-slider .rwm-slider-items-container {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        padding: 6px 8px;
        scroll-padding: 8px;
    }
    
    /* Center via JS when few items */
    .rwm-discounts-slider .rwm-slider-items-container.centered {
        justify-content: center;
        padding-left: 8px;
        padding-right: 8px;
    }

    .rwm-category-item {
        padding: 6px 2px;
        gap: 6px;
        flex-shrink: 0;
    }

    .rwm-category-thumbnail {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .rwm-category-thumbnail img {
        width: 24px;
        height: 24px;
    }

    .rwm-category-name {
        font-size: 9px;
        max-width: 56px;
    }

    .rwm-restaurant-item {
        flex: 0 0 150px;
        min-width: 150px;
        flex-shrink: 0;
    }

    .rwm-restaurant-tile {
        padding: 12px;
        gap: 10px;
    }

    .rwm-restaurant-logo-wrapper {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .rwm-restaurant-tile-name {
        font-size: 12px;
    }

    .rwm-discount-item {
        flex: 0 0 calc(50% - 5px);
    }

    .rwm-slider-nav {
        width: 36px;
        height: 36px;
    }

    .rwm-slider-nav .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }
}

/*
   Center sliders on mobile when there are very few items (1 or 2). Prefer CSS-only
   detection using :has where supported; also provide a .centered fallback class
   that can be applied by JavaScript for browsers without :has support.
*/
@media (max-width: 768px) {
    /* Default mobile behavior: center like desktop; no JS centering needed */
    /* Keep horizontal scroll for many items and ensure flex:0 0 auto remains */
    .rwm-categories-slider .rwm-slider-items-container > *,
    .rwm-restaurants-slider .rwm-slider-items-container > *,
    .rwm-discounts-slider .rwm-slider-items-container > * {
        flex: 0 0 auto;
    }
}