/* =============================================================================
   Pickup Search Component - Production Ready Styles
   Leveraging design patterns from production pickup.css
   ============================================================================= */

:root { --pickup-icon-size: 16px; }

/* Design Tokens & CSS Variables */
.pickup-search-wrapper {
    --pickup-icon-size: 16px;
    --pickup-border: #e5e7eb;
    --pickup-radius: 8px;
    --pickup-shadow: 0 10px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
    --pickup-primary: #324fbe;
    --pickup-success: #10b981;
    --pickup-text: #111827;
    --pickup-text-muted: #6b7280;
    --pickup-bg-hover: #f9fafb;
    --pickup-bg-selected: #dbeafe;
    --pickup-transition: 0.15s ease;
    --pickup-z-dropdown: 9999;

    /* Add standard design system variables for compatibility */
    --space-md: 1rem;
    --border-color: #e5e7eb;

    position: relative;
    width: 100%;
    contain: layout style;
}

/* enable only if QA reports a tiny baseline drift in Safari zoom */
/*
@supports (translate: 0) {
  .pickup-change-link .pickup-change-icon { translate: 0 .5px; }
}
*/

/* Input Container with Icon */
.pickup-search-wrapper .autoComplete_wrapper { position: relative; display: block; z-index: 1000; }
.pickup-search-input-wrapper { position: relative; }

.pickup-search-wrapper .pickup-status-message {
    margin-top: 8px;
    font-size: 13px;
    color: var(--pickup-text-muted);
}

/* Search Input - Production Spec */
.pickup-search-wrapper input[type="search"],
.pickup-search-wrapper .pickup-search__input {
    --pickup-suffix-width: 72px; /* Clear-only */
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    padding-inline-end: calc(var(--pickup-suffix-width) + 8px);
    padding-inline-start: calc(var(--pickup-icon-size) + 24px);
    border: 1px solid var(--pickup-border);
    border-radius: var(--pickup-radius);
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    color: var(--pickup-text);
    transition: border-color var(--pickup-transition), box-shadow var(--pickup-transition);
    background: #fff;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

/* Input prefix pin icon */
.pickup-search-icon {
    position: absolute;
    inset-inline-start: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--pickup-icon-size);
    line-height: 1;
    color: var(--bs-secondary-color, #6c757d);
    pointer-events: none;
    z-index: 2;
}

/* Always hide native cancel; custom clear button provided */
.pickup-search-wrapper input[type="search"]::-webkit-search-cancel-button,
.pickup-search-wrapper-production input[type="search"]::-webkit-search-cancel-button,
[data-pickup-component] input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none !important;
}

.pickup-search-wrapper input[type="search"]::-webkit-search-decoration,
.pickup-search-wrapper-production input[type="search"]::-webkit-search-decoration,
[data-pickup-component] input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none !important;
}

/* Firefox: hide native clear button */
.pickup-search-wrapper input[type="search"]::-moz-clear,
.pickup-search-wrapper-production input[type="search"]::-moz-clear,
[data-pickup-component] input[type="search"]::-moz-clear {
    display: none !important;
}

/* Edge/IE: hide native clear button */
.pickup-search-wrapper input[type="search"]::-ms-clear,
.pickup-search-wrapper-production input[type="search"]::-ms-clear,
[data-pickup-component] input[type="search"]::-ms-clear {
    display: none !important;
}


/* Focus States */
.pickup-search-wrapper input[type="search"]:focus,
.pickup-search-wrapper .pickup-search__input:focus {
    outline: none;
    border-color: var(--pickup-primary);
    box-shadow: 0 0 0 3px rgba(50, 79, 190, 0.1);
}

.pickup-search-wrapper input[type="search"]:focus-visible,
.pickup-search-wrapper .pickup-search__input:focus-visible {
    outline: 2px solid var(--pickup-primary);
    outline-offset: 2px;
}

/* Disabled State */
.pickup-search-wrapper input[type="search"]:disabled,
.pickup-search-wrapper .pickup-search__input:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.5;
    color: var(--pickup-text-muted);
}

/* Placeholder */
.pickup-search-wrapper input::placeholder {
    color: #9ca3af;
    font-weight: 400;
    font-size: 14px;
}

/* Suffix slot to host spinner + clear */
.pickup-suffix {
    position: absolute;
    inset-inline-end: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: var(--pickup-suffix-width);
    z-index: 1;
}

.pickup-clear-btn {
    all: unset;
    display: inline-block;
    color: var(--bs-secondary-color, #6c757d);
    font-size: .875rem; /* 14px */
    line-height: 1;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    padding: 10px;     /* bigger hit area */
    margin: -10px;     /* keep visual small */
    border-radius: 4px;
    visibility: hidden;
    pointer-events: none;
}

/* Show Clear when there is value/selection; support production wrapper */
:is(.pickup-search-wrapper, .pickup-search-wrapper-production).is-selected .pickup-clear-btn,
:is(.pickup-search-wrapper, .pickup-search-wrapper-production).has-value .pickup-clear-btn {
    visibility: visible;
    pointer-events: auto;
}

:is(.pickup-search-wrapper, .pickup-search-wrapper-production):not(.is-selected):not(.has-value) .pickup-clear-btn {
    visibility: hidden;
    pointer-events: none;
}

/* Hide Clear if input disabled */
:is(.pickup-search-wrapper, .pickup-search-wrapper-production) input:disabled ~ .pickup-suffix .pickup-clear-btn {
    visibility: hidden;
    pointer-events: none;
}

/* spinner removed – skeletons provide loading feedback */

/* Autocomplete Results Dropdown - Enhanced popover styling */
.pickup-search-results,
.autoComplete_result {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.02);
    max-height: 320px;
    overflow: hidden;
    overscroll-behavior: contain;
    z-index: var(--pickup-z-dropdown);
    animation: slideDown 0.2s ease;
}

/* Scrollable content area */
.pickup-search-results {
    overflow-y: auto;
    max-height: 70vh; /* scroll instead of clipping */
}

/* More compact for initial suggestions without header */
.pickup-search-results:not(:has(.results-info)) {
    max-height: 280px;
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
}

/* Fallback for browsers without :has() support */
.no-css-has .pickup-search-results:not(.has-results-info) {
    max-height: 280px;
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
}

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

/* Custom Scrollbar */
.pickup-search-results::-webkit-scrollbar {
    width: 6px;
}

.pickup-search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.pickup-search-results::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.pickup-search-results::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Result Header Info - Lighter and more subtle */
.results-info {
    padding: 8px 16px;
    font-size: 11px;
    color: #9ca3af;
    background: #fefefe;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 400;
    text-transform: lowercase;
}

.results-info.results-info--message {
    color: var(--pickup-text-muted);
    text-transform: none;
}

.no-results {
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--pickup-text-muted);
    font-style: italic;
}

/* Result Items - Tighter spacing and better interaction */
.pickup-result-item {
    padding: 12px 16px;
    cursor: default; /* Default cursor */
    transition: background-color var(--pickup-transition);
    border-bottom: 1px solid #e2e2e2;
    position: relative;
    background: #ffffff;
    overflow: visible; /* avoid clipping expanded pills */
}

/* Two-step selection: Make hotel clickable */
.pickup-result-item.pickup-result-clickable .pickup-result-main {
    cursor: pointer;
    user-select: none;
}

/* Hover state for clickable hotel area */
.pickup-result-item.pickup-result-clickable .pickup-result-main:hover {
    background-color: var(--pickup-bg-hover);
    border-radius: 6px;
    padding: 2px 4px;
    margin: -2px -4px;
}

/* Change link alignment */
.pickup-change-link { display: inline-flex; align-items: center; gap: 8px; line-height: 1.25; }
.pickup-change-icon { font-size: var(--pickup-icon-size); line-height: 1; vertical-align: middle; }

/* Skeleton rows for loading */
.pickup-skeleton {
    padding: 12px 16px;
}

.pickup-skeleton .skeleton-line {
    height: 12px;
    width: 60%;
    border-radius: 6px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 37%, #f3f4f6 63%);
    background-size: 400% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

/* More compact styling for initial suggestions (no header) */
.pickup-search-results:not(:has(.results-info)) .pickup-result-item {
    padding: 10px 16px;
}

.pickup-search-results:not(:has(.results-info)) .pickup-result-item:first-child {
    border-radius: 12px 12px 0 0;
}

.pickup-search-results:not(:has(.results-info)) .pickup-result-item:last-child {
    border-radius: 0 0 12px 12px;
    border-bottom: none;
}

/* First item after header */
.pickup-search-results .results-info + .pickup-result-item {
    border-top: none;
}

.pickup-result-item:last-child {
    border-bottom: none;
}

.pickup-result-item:hover {
    background-color: var(--pickup-bg-hover);
}

.pickup-result-item[aria-selected="true"] {
    background-color: var(--pickup-bg-selected);
}

.pickup-result-item:focus-visible {
    outline: 2px solid var(--pickup-primary);
    outline-offset: -2px;
}

/* Highlighted Match - Better readability without spacing issues */
.pickup-result-item .autoComplete_highlighted,
.pickup-result-item mark {
    background: #fff8c5;
    color: inherit;
    font-weight: inherit;
    padding: 0 2px;
    border-radius: 3px;
    letter-spacing: normal;
    word-spacing: normal;
}

/* Result Main Content - Grid layout for better alignment */
.pickup-result-main {
    display: grid;
    grid-template-columns: 1fr auto auto; /* Added column for expand icon */
    align-items: center;
    gap: 8px;
}

/* Expand Icon for two-step selection */
.pickup-expand-icon {
    color: var(--pickup-text-muted);
    font-size: 16px;
    transition: transform var(--pickup-transition);
    margin-left: 4px;
}

/* Rotate icon when expanded */
.pickup-result-item--expanded .pickup-expand-icon {
    transform: rotate(90deg);
}

/* More compact for initial suggestions */
.pickup-search-results:not(:has(.results-info)) .pickup-result-main {
    gap: 6px;
}

.pickup-result-title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--pickup-text);
    line-height: 1.3;
    user-select: none; /* Prevent text selection */
    pointer-events: none; /* Disable pointer events on title */
}

/* Slightly smaller for initial suggestions */
.pickup-search-results:not(:has(.results-info)) .pickup-result-title {
    font-size: 13px;
    line-height: 1.2;
}

/* Fee Badge - Toned down and better contrast */
.pickup-result-fee {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: #e8f8f2;
    color: #13795b;
    border: 1px solid #cdeee3;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: nowrap;
    line-height: 1;
    user-select: none; /* Prevent text selection */
    pointer-events: none; /* Disable pointer events */
}

.pickup-result-fee.is-free {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #dbeafe;
}

/* Time Pills Container */
.pickup-result-times {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    align-items: center;
}

/* Two-step selection: Hidden state for time pills */
.pickup-result-times--collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease, margin-top 0.2s ease;
}

/* Two-step selection: Expanded state for time pills */
.pickup-result-times--expanded {
    max-height: 320px; /* allow 2–3 rows on mobile */
    opacity: 1;
    margin-top: 8px;
    animation: slideInTimes 0.3s ease;
}

@keyframes slideInTimes {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Visual indicator for expanded state */
.pickup-result-item--expanded {
    background-color: #f8fafb;
    box-shadow: inset 0 0 0 1px var(--pickup-primary);
}

/* Time Pills - More clickable and accessible */
.pickup-time-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #e8f8f2;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #258164;
    cursor: pointer;
    transition: all var(--pickup-transition);
    white-space: nowrap;
    position: relative;
    min-height: 32px;
    box-sizing: border-box;
}

/* No icon in time pills - clean text only */
.pickup-time-pill::before {
    content: none;  /* Remove clock icon - cleaner design */
}

.pickup-time-pill:hover {
    background: #d4f2e5;
    border-color: #d1d5db;
}

.pickup-time-pill:focus-visible {
    outline: 2px solid #3c72dc;
    outline-offset: 2px;
}

.pickup-time-pill:active,
.pickup-time-pill[aria-pressed="true"] {
    border-color: #3c72dc;
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(60,114,220,.15);
}

.pickup-time-pill:active {
    transform: none;
}

/* Selection display inherits styles from production pickup.css */
/* The .pickup-selected and .pickup-summary classes are already styled in the main CSS */

/* Ensure proper animation when showing/hiding */
.booking-widget-instant .pickup-search-selection {
    animation: fadeIn 0.3s ease;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Removed duplicate summary display styles - using PHP-rendered selection card instead */

/* Error State */
.pickup-search-wrapper.has-error input {
    border-color: #ef4444;
}

.pickup-search-error {
    margin-top: 4px;
    font-size: 12px;
    color: #ef4444;
}

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

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .pickup-search-results,
    .pickup-result-item,
    .pickup-time-pill,
    .pickup-summary-card,
    .pickup-summary-check,
    .pickup-selection-card {
        animation: none;
        transition: none;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .pickup-search-wrapper input[type="search"],
    .pickup-search-wrapper .pickup-search__input {
        font-size: 16px; /* Prevent zoom on iOS */
        height: 44px;
    }

    .pickup-search-results {
        max-height: 60vh;
    }

    .pickup-result-item {
        padding: 10px 12px;
    }

    /* More compact initial suggestions on mobile */
    .pickup-search-results:not(:has(.results-info)) .pickup-result-item {
        padding: 8px 12px;
    }

    .pickup-time-pill {
        padding: 6px 10px;
        min-height: 28px;
        font-size: 11px;
    }

    .pickup-result-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pickup-result-title {
        width: 100%;
    }

    .pickup-time-pill {
        padding: 6px 10px;
        font-size: 12px;
    }

    .pickup-selection-details {
        flex-direction: column;
        gap: 6px;
    }

    .pickup-selection-details span {
        display: block;
        width: fit-content;
    }
}


/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .pickup-search-wrapper input[type="search"]:focus,
    .pickup-search-wrapper .pickup-search__input:focus {
        outline: 3px solid currentColor;
        outline-offset: 0;
    }

    .pickup-time-pill:focus,
    .pickup-result-item:focus-visible {
        outline: 3px solid currentColor;
    }
}

/* =============================================================================
   Google Places Integration Styles - Trust & Reassurance Theme
   ============================================================================= */

/* Google Places result - trust palette (soft blue, minimal chrome) */
.pickup-result--google {
    background: #f8fbff;  /* Soft blue tint - reassuring, not alarming */
    border-left: none;  /* No border - clean and minimal */
}

.pickup-result--google:hover {
    background: #f1faff;  /* Slightly darker blue on hover */
}

.pickup-result-item.pickup-result--google:focus-within {
    outline: 2px solid #bae6fd;
    outline-offset: 2px;
}

/* Title highlight from autoComplete - subtle blue */
.pickup-result--google .autoComplete_highlighted {
    background: #dbeafe;  /* Subtle blue highlight */
}

/* "Price TBD" badge - calm blue (not urgent orange) */
.pickup-result-badge--pending {
    font: 600 12px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    padding: 6px 10px;
    border-radius: 999px;  /* Full pill shape */
    background: #e0f2fe;  /* Light blue background */
    color: #075985;  /* Blue-700 text - professional */
    border: 1px solid #bae6fd;  /* Soft blue border */
    text-transform: none;  /* Remove UPPERCASE - less aggressive */
    letter-spacing: normal;
}

/* Pickup selection card structure */
.pickup-selection-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pickup-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.pickup-header {
    display: flex;
    align-items: center;
    gap: 0.625rem; /* Slightly more space between PICKUP and chip */
}

.pickup-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.pickup-location {
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 28px); /* Reserve room for chevron */
}

.pickup-time {
    color: #374151;
    font-size: 0.9rem;
}

/* Tone down inline check when guarantee badge is present */
.pickup-search-wrapper.is-selected .pickup-check-indicator {
    color: #9ca3af; /* Neutral gray instead of green */
}

/* Pickup guarantee badge - compact mint chip with subtle border */
.pickup-guarantee {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.375rem;
    background: #eaf7f1; /* Lighter mint (not neon) */
    color: #0a7a39;
    border: 1px solid #cfe8db; /* Subtle border for definition */
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.pickup-guarantee__icon {
    width: 14px;
    height: 14px;
    stroke: #0a7a39;
    fill: none;
    stroke-width: 2;
}

.pickup-guarantee__text {
    /* Text already styled by parent */
}

/* Keep chevron from being squeezed */
.pickup-chevron-right {
    flex: 0 0 20px;
}

/* Change location link - proper touch target */
.pickup-change-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0;
    min-height: 44px; /* Touch target */
}

.pickup-change-link:hover {
    text-decoration: underline;
}

/* Semantic pickup note - responsive layout (stacked mobile, inline desktop) */
/* Used in dropdown for Google Places time selection context */
.pca-pickup-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.75rem; /* 12px */
    line-height: 1.25rem;
}

.pca-pickup-note__icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    opacity: 0.8;
    color: #3b82f6;
}

.pca-pickup-note__text {
    display: flex;
    flex-direction: column;
}

.pca-pickup-note__primary {
    font-weight: 500;
}

.pca-pickup-note__secondary {
    opacity: 0.95;
}

/* Desktop: collapse to single line with bullet separator */
@media (min-width: 640px) {
    .pca-pickup-note__text {
        flex-direction: row;
        gap: 0.5rem;
    }

    .pca-pickup-note__secondary::before {
        content: "•";
        margin: 0 0.5rem 0 0;
        opacity: 0.6;
    }
}

/* Legacy class for backward compatibility */
.pickup-time-note {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0.5rem 0 0;
    padding: 0;
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 0.8125rem;
    line-height: 1.4;
    font-style: normal;
}

.pickup-time-note .bi-info-circle {
    font-size: 13px;
    color: #3b82f6;
    flex-shrink: 0;
}

/* Legacy verify-message class - deprecated after Place ID sanitization */
.pickup-result-verify-message {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0.5rem 0 0;
    padding: 0;
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 0.8125rem;
    line-height: 1.4;
    font-style: normal;
}

.pickup-result-verify-message .bi {
    font-size: 13px;
    color: #9ca3af;  /* Lighter gray icon - subtle */
    opacity: 0.8;
    flex-shrink: 0;
}

/* Extra info - hidden by default to reduce noise */
.pickup-result-extra {
    display: none;  /* Reduce clutter - message above is sufficient */
}

/* Database result - subtle green checkmark (trust signal) */
.pickup-result--database .pickup-result-title::before {
    content: '✓';
    display: inline-block;
    margin-right: 6px;
    color: var(--pickup-success, #10b981);
    font-weight: bold;
    font-size: 14px;
    opacity: 0.8;
}

/* Chevron icon - neutral tone for Google results */
.pickup-result--google .pickup-expand-icon svg {
    opacity: 0.6;  /* Muted - less prominent */
}

/* Ensure chevron hugs right edge when no price badge present */
.pickup-result--google .pickup-expand-icon {
    margin-left: auto;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .pickup-result-badge--pending {
        font-size: 11px;
        padding: 4px 8px;
    }

    .pickup-result-verify-message {
        font-size: 12px;
        padding: 6px 10px;
        gap: 0.375rem;
    }
}

/* =============================================================================
   "Not Listed" Bootstrap Emerald Card UI (Compact)
   Color Palette:
   - Emerald-50 (bg): #ecfdf5
   - Emerald-200 (border): #a7f3d0
   - Emerald-600 (icon): #059669
   - Emerald-700 (hover): #047857
   - Gray-900 (text): #111827
   - Gray-600 (secondary): #4b5563
   - Gray-500 (muted): #6b7280
   ============================================================================= */

/* Tunable CSS custom properties - all text 14px */
.pickup-notlisted-card,
.pickup-notlisted-footer {
    --notlisted-card-padding: 1rem;
    --notlisted-inner-padding: 1rem;
    --notlisted-icon-size: 1rem;
    --notlisted-font-size: 0.875rem;  /* 14px for all text */
    --notlisted-gap: 0.375rem;
}

/* Main card container (empty state) */
.pickup-notlisted-card {
    padding: var(--notlisted-card-padding);
    list-style: none;
    overflow: hidden;
}

.pickup-notlisted-card__inner {
    border: 1px solid #a7f3d0;
    border-radius: 0.5rem;
    background: #ecfdf5;
    padding: var(--notlisted-inner-padding);
    transition: all 0.2s ease;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pickup-notlisted-card:hover .pickup-notlisted-card__inner,
.pickup-notlisted-card:focus .pickup-notlisted-card__inner {
    border-color: #6ee7b7;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.pickup-notlisted-card:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Header with Bootstrap icon - flex-wrap for overflow */
.pickup-notlisted-card__header {
    display: flex;
    align-items: center;
    gap: var(--notlisted-gap);
    margin-bottom: 0.375rem;
    flex-wrap: wrap;
}

.pickup-notlisted-card__icon {
    font-size: var(--notlisted-icon-size);
    color: #059669;
    flex-shrink: 0;
}

.pickup-notlisted-card__title {
    font-weight: 600;
    font-size: var(--notlisted-font-size);
    color: #111827;
    margin: 0;
    line-height: 1.3;
}

/* Subheading - starts on new line, proper wrapping */
.pickup-notlisted-card__subtitle {
    display: block;
    font-size: 12px !important;
    color: #6b7280 !important;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Numbered steps - tighter spacing */
.pickup-notlisted-card__steps {
    margin-bottom: 0.75rem;
}

.pickup-notlisted-card__step {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.25rem;
    gap: 0.25rem;
}

.pickup-notlisted-card__step:last-child {
    margin-bottom: 0;
}

.pickup-notlisted-card__step-num {
    font-weight: 600;
    font-size: var(--notlisted-font-size);
    color: #111827;
    flex-shrink: 0;
    min-width: 1rem;
}

.pickup-notlisted-card__step span:last-child {
    font-size: 12px !important;
    color: #4b5563 !important;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Time buttons container */
.pickup-notlisted-card__times {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Compact time buttons (rounded-pill, outline-success) */
.pickup-notlisted-btn {
    min-height: 40px;
    padding: 0.5rem 1.25rem;
    border: 1px solid #a7f3d0;
    border-radius: 9999px;
    background: #fff;
    color: #111827;
    font-size: var(--notlisted-font-size);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.pickup-notlisted-btn:hover {
    border-color: #047857;
    background: #10b981;
    color: #fff;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.pickup-notlisted-btn:active {
    transform: scale(0.97);
    background: #047857;
}

.pickup-notlisted-btn:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Divider section - compact */
.pickup-notlisted-divider {
    padding: 0.75rem 1rem;
    list-style: none;
    overflow: hidden;
}

.pickup-notlisted-divider__hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 0 0 0.5rem 0;
}

.pickup-notlisted-divider__text {
    text-align: center;
    font-size: var(--notlisted-font-size);
    color: #6b7280;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pickup-notlisted-divider__text strong {
    color: #111827;
}

/* =============================================================================
   "Not Listed" Footer - When Results Exist (Condensed)
   ============================================================================= */

.pickup-notlisted-footer {
    background: #ecfdf5;
    border-top: 1px solid #a7f3d0;
    padding: var(--notlisted-card-padding);
    list-style: none;
    transition: background 0.2s ease;
}

.pickup-notlisted-footer:hover {
    background: #d1fae5;
}

.pickup-notlisted-footer:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: -2px;
}

.pickup-notlisted-footer__header {
    display: flex;
    align-items: flex-start;
    gap: var(--notlisted-gap);
    margin-bottom: 0.5rem;
}

.pickup-notlisted-footer__icon {
    font-size: var(--notlisted-icon-size);
    color: #059669;
    flex-shrink: 0;
    margin-top: 0.125rem;
    }

.pickup-notlisted-footer__text {
    flex: 1;
    }

.pickup-notlisted-footer__title {
    font-weight: 600;
    font-size: var(--notlisted-font-size);
    color: #111827;
    margin: 0 0 0.25rem 0;
    }

.pickup-notlisted-footer__subtitle {
    font-size: var(--notlisted-font-size);
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    }

.pickup-notlisted-footer__times {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* =============================================================================
   Mobile Optimizations - Slightly Smaller
   ============================================================================= */

@media (max-width: 640px) {
    .pickup-notlisted-card,
    .pickup-notlisted-footer {
        --notlisted-card-padding: 0.75rem;
        --notlisted-inner-padding: 0.75rem;
        --notlisted-icon-size: 0.875rem;
        --notlisted-font-size: 0.8125rem;  /* 13px on mobile */
        --notlisted-gap: 0.25rem;
    }

    .pickup-notlisted-btn {
        min-height: 36px;
        padding: 0.375rem 1rem;
    }

    .pickup-notlisted-divider {
        padding: 0.5rem 0.75rem;
    }

    .pickup-notlisted-divider__hr {
        margin: 0 0 0.375rem 0;
    }
}
