/**
 * Road Runner Delivery - Frontend Customer Tracking Styles
 * Designed for Seed Co Online Shop customer pages.
 */

.rr-customer-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 28px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    font-family: 'Barlow', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rr-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.rr-brand-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rr-img-icon {
    display: block;
    max-width: 32px;
    max-height: 32px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0);
}

.rr-service-tag {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f89d13;
}

.rr-service-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #212529;
}

.rr-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #334155;
}

.rr-status-in_transit,
.rr-status-picked_up,
.rr-status-assigned {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.rr-status-delivered {
    background: #f4faed;
    color: #276711;
    border: 1px solid #d4ecb3;
}

.rr-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
    animation: rr-pulse 2s infinite ease-in-out;
}

@keyframes rr-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

/* Stepper Progress Bar */
.rr-stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0 24px;
}

.rr-step {
    position: relative;
}

.rr-step-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    position: relative;
}

.rr-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.2s ease;
}

.rr-step-line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    margin-left: 6px;
    z-index: 1;
}

.rr-step-meta {
    padding-right: 8px;
}

.rr-step-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 2px;
}

.rr-step-desc {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.3;
}

/* Completed Step */
.rr-step-completed .rr-step-circle {
    background: #7cbd1e;
    color: #ffffff;
}

.rr-step-completed .rr-step-line {
    background: #7cbd1e;
}

.rr-step-completed .rr-step-title {
    color: #212529;
}

/* Current Step */
.rr-step-current .rr-step-circle {
    background: #f89d13;
    color: #ffffff;
    box-shadow: 0 0 0 4px #fef7ec;
}

.rr-step-current .rr-step-title {
    color: #f89d13;
}

/* Detail Info Bar */
.rr-details-bar {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.rr-detail-item {
    font-size: 13px;
}

.rr-detail-label {
    color: #64748b;
    margin-right: 6px;
}

.rr-detail-val {
    font-weight: 600;
    color: #212529;
}

.rr-mono {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 12px;
}

/* Tracking Button Action */
.rr-track-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f89d13;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background 0.15s ease, transform 0.15s ease;
    box-shadow: 0 2px 6px rgba(248, 157, 19, 0.3);
}

.rr-track-btn:hover {
    background: #de8807;
    color: #ffffff !important;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .rr-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .rr-stepper {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .rr-step-line {
        display: none;
    }
}

/* ── Location Selector Action Bar & Badges ───────────────────────── */
.rr-location-field-row,
.rr-use-location-wrap,
.rr-location-selector-wrap {
    margin-bottom: 16px;
    clear: both;
}

.rr-location-action-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.rr-location-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    text-decoration: none;
    line-height: 1.2;
}

/* Seed Co green (matches the shop's buttons), red on hover */
.rr-location-btn.rr-btn-pin-map {
    background: var(--sc-green, #02a64f) !important;
    color: #ffffff !important;
    border: 1px solid var(--sc-green, #02a64f) !important;
    border-radius: 3px;
    box-shadow: none !important;
}

.rr-location-btn.rr-btn-pin-map:hover:not(:disabled) {
    background: var(--sc-red, #eb1f27) !important;
    border-color: var(--sc-red, #eb1f27) !important;
    transform: none;
    color: #ffffff !important;
}

.rr-location-btn.rr-btn-gps {
    background: #ffffff !important;
    color: var(--sc-green, #02a64f) !important;
    border: 1px solid var(--sc-green, #02a64f) !important;
    border-radius: 3px;
    box-shadow: none !important;
}

.rr-location-btn.rr-btn-gps:hover:not(:disabled) {
    background: var(--sc-green, #02a64f) !important;
    color: #ffffff !important;
}

.rr-location-btn:disabled,
.rr-location-btn.rr-loc-loading {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.rr-btn-icon {
    flex-shrink: 0;
}

/* ── Pinned Location Card ────────────────────────────────────────── */
.rr-location-badge-card {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
    animation: rrFadeSlideIn 0.3s ease-out;
}

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

.rr-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #dcfce7;
    flex-shrink: 0;
}

.rr-badge-content {
    flex: 1;
    min-width: 0;
}

.rr-badge-title {
    font-size: 13px;
    font-weight: 700;
    color: #15803d;
    margin-bottom: 2px;
}

.rr-badge-addr {
    font-size: 13px;
    color: #1e293b;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rr-badge-coords {
    font-size: 11px;
    font-family: monospace;
    color: #047857;
    margin-top: 2px;
}

.rr-badge-change-btn {
    background: #ffffff;
    border: 1px solid #86efac;
    color: #15803d;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.rr-badge-change-btn:hover {
    background: #dcfce7;
}

.rr-loc-status {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 8px;
    max-width: 100%;
}

.rr-loc-status.rr-loc-info    { background: #eff6ff; color: #1d4ed8; }
.rr-loc-status.rr-loc-success { background: #f0fdf4; color: #15803d; }
.rr-loc-status.rr-loc-warn    { background: #fffbeb; color: #92400e; }
.rr-loc-status.rr-loc-error   { background: #fef2f2; color: #b91c1c; }

/* ── Interactive InDrive-Style Ride & Courier Delivery Modal ───────── */
.rr-map-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 12, 16, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: rrModalFadeIn 0.22s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@keyframes rrModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.rr-ride-modal-dialog {
    background: #18191c;
    border-radius: 4px;
    box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 960px;
    height: 90vh;
    max-height: 860px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid #334155;
    animation: rrModalScaleUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    color: #ffffff;
}

@keyframes rrModalScaleUp {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Top Route Card Overlay ────────────────────────────────────────── */
.rr-ride-top-card {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 50;
    background: #18191c;
    border-radius: 4px;
    padding: 12px 14px 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    border: 1px solid #334155;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.rr-ride-top-card.rr-top-card-hidden {
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
}

.rr-ride-stop-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rr-ride-stop-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rr-icon-person {
    background: #252830;
    color: #ffffff;
}

.rr-icon-flag {
    background: #252830;
    color: #ffffff;
}

.rr-ride-stop-info {
    flex: 1;
    min-width: 0;
}

.rr-ride-stop-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.rr-ride-stop-sub {
    font-size: 11.5px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.rr-top-card-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Entrance / Change Depot Badge */
.rr-ride-stop-badge {
    background: #2a2e38;
    border: 1px solid #374151;
    color: #e2e8f0;
    padding: 5px 11px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.rr-ride-stop-badge:hover {
    background: #374151;
    color: #ffffff;
}

.rr-badge-caret {
    transition: transform 0.15s;
}

/* Hide Route Bar Button */
.rr-top-card-hide-btn {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: #252830;
    border: 1px solid #374151;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    padding: 0;
}

.rr-top-card-hide-btn:hover {
    background: #374151;
    color: #ffffff;
    border-color: #4b5563;
}

/* Floating Slim Mini-Pill (Shown when Top Card is hidden) */
.rr-top-mini-pill {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 52;
    background: rgba(24, 25, 28, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid #374151;
    border-radius: 4px;
    padding: 7px 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    transition: all 0.18s ease;
    max-width: 90%;
}

.rr-top-mini-pill:hover {
    background: #252830;
    border-color: #4b5563;
    transform: translateX(-50%) scale(1.02);
}

.rr-mini-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
}

.rr-mini-pill-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    color: #e2e8f0;
}

.rr-mini-pill-action {
    font-size: 11px;
    font-weight: 700;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    padding: 2px 7px;
    flex-shrink: 0;
}

/* Depot Selection Dropdown */
.rr-depot-dropdown {
    position: absolute;
    top: 56px;
    left: 10px;
    right: 10px;
    background: #20232a;
    border-radius: 4px;
    border: 1px solid #374151;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    z-index: 60;
    max-height: 280px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.rr-depot-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #2d313a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.rr-depot-dropdown-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.rr-depot-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #181a1f;
    border-bottom: 1px solid #2d313a;
}

.rr-depot-search-icon {
    color: #64748b;
    flex-shrink: 0;
}

.rr-depot-search-input {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 12.5px !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.rr-depot-search-input::placeholder {
    color: #64748b;
}

.rr-depot-list {
    overflow-y: auto;
    max-height: 230px;
    padding: 4px;
}

.rr-depot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.12s;
}

.rr-depot-item:hover {
    background: #2b303c;
}

.rr-depot-item-active {
    background: #1e3a5f;
}

.rr-depot-item-icon {
    font-size: 16px;
}

.rr-depot-item-details {
    flex: 1;
    min-width: 0;
}

.rr-depot-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.rr-active-tag {
    font-size: 10px;
    background: #3b82f6;
    color: #ffffff;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
    margin-left: 4px;
}

.rr-depot-item-addr {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

/* Route Connector Line */
.rr-ride-route-connector {
    margin-left: 17px;
    padding: 4px 0;
    display: flex;
    align-items: center;
}

.rr-connector-dots {
    width: 2px;
    height: 14px;
    border-left: 2px dotted #4b5563;
}

/* Destination Row Input */
.rr-dest-input-wrap {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.rr-ride-dest-input {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: inherit;
}

.rr-ride-dest-input::placeholder {
    color: #64748b;
    font-weight: 500;
}

.rr-dest-clear-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
    transition: color 0.15s;
}

.rr-dest-clear-btn:hover {
    color: #ffffff;
}

.rr-dest-sub-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}

.rr-ride-duration-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 700;
}

.rr-dest-coords-hint {
    font-size: 11px;
    color: #64748b;
    font-family: monospace;
}

.rr-ride-dest-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.rr-btn-icon-action {
    background: #252830;
    border: 1px solid #374151;
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.rr-btn-icon-action:hover {
    background: #374151;
    color: #ffffff;
}

.rr-btn-spin svg {
    animation: rrSpin 1s infinite linear;
}

@keyframes rrSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Preset Quick Chips Row with Scroll Mask */
.rr-presets-scroll-wrap {
    position: relative;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #282c35;
    overflow: hidden;
}

.rr-presets-scroll-wrap::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 0;
    bottom: 0;
    width: 28px;
    background: linear-gradient(to right, rgba(24, 25, 28, 0), #18191c 92%);
    pointer-events: none;
}

.rr-ride-presets-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 20px 4px 0;
}

.rr-ride-presets-chips::-webkit-scrollbar {
    display: none;
}

.rr-chip {
    background: #242730;
    border: 1px solid #374151;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 4px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.rr-chip:hover {
    background: #374151;
    color: #ffffff;
    border-color: #4b5563;
}

.rr-chip-active {
    background: #1e3a5f !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
    font-weight: 700 !important;
}

/* ── Map Canvas Container ──────────────────────────────────────────── */
.rr-map-canvas-container {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 280px;
    background: #1e2124;
}

.rr-map-picker-canvas {
    width: 100%;
    height: 100%;
    min-height: 280px;
    background: #1e2124;
}

/* Floating Action Buttons on Map */
.rr-floating-btn {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: #18191c;
    border: 1px solid #2f3440;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 40;
    transition: all 0.15s ease;
}

.rr-floating-btn:hover {
    background: #252830;
    transform: scale(1.05);
}

.rr-floating-back {
    bottom: 16px;
    left: 16px;
}

.rr-floating-route {
    bottom: 16px;
    right: 16px;
}

.rr-map-floating-tip {
    position: absolute;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 19, 22, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #e2e8f0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 35;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rr-tip-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: rrTipPulseAnim 2s infinite;
}

@keyframes rrTipPulseAnim {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ── Bottom Sheet Card ─────────────────────────────────────────────── */
.rr-ride-bottom-sheet {
    background: #18191c;
    border-top: 1px solid #2a2e37;
    border-radius: 4px 4px 0 0;
    padding: 10px 18px 20px;
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.55);
    z-index: 50;
    position: relative;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.rr-sheet-handle {
    width: 38px;
    height: 4.5px;
    background: #4b5563;
    border-radius: 999px;
    margin: 0 auto 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rr-sheet-handle:hover {
    background: #6b7280;
    transform: scaleX(1.15);
}

/* Minimized bottom sheet state */
.rr-ride-bottom-sheet.rr-sheet-minimized {
    transform: translateY(calc(100% - 66px));
}

.rr-ride-bottom-sheet.rr-sheet-minimized .rr-service-row,
.rr-ride-bottom-sheet.rr-sheet-minimized .rr-sheet-landmark-wrap,
.rr-ride-bottom-sheet.rr-sheet-minimized .rr-fare-subtext,
.rr-ride-bottom-sheet.rr-sheet-minimized .rr-sheet-actions {
    display: none !important;
}

.rr-ride-bottom-sheet.rr-sheet-minimized .rr-fare-card {
    margin-bottom: 0;
    padding: 6px 14px;
    flex-direction: row;
    justify-content: space-between;
}

.rr-ride-bottom-sheet.rr-sheet-minimized .rr-fare-amount {
    font-size: 20px;
    margin: 0;
}

/* Service Details Row */
.rr-service-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #22252c;
    border: 1px solid #2f3440;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.rr-service-vehicle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rr-service-meta {
    flex: 1;
    min-width: 0;
}

.rr-service-title-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rr-service-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.rr-service-info-badge {
    color: #94a3b8;
    font-size: 13px;
    cursor: help;
}

.rr-service-stats-line {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    color: #e2e8f0;
    margin-top: 2px;
}

.rr-stats-icon {
    font-size: 12px;
}

.rr-stats-sep {
    color: #64748b;
    font-size: 10px;
}

.rr-service-subtitle {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 2px;
}

.rr-service-edit-btn {
    background: #2c303a;
    border: 1px solid #3e4452;
    color: #e2e8f0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}

.rr-service-edit-btn:hover {
    background: #3e4452;
    color: #ffffff;
}

/* Collapsible Landmark Input */
.rr-sheet-landmark-wrap {
    margin-bottom: 12px;
}

.rr-sheet-landmark-input {
    width: 100% !important;
    background: #22252c !important;
    border: 1px solid #374151 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 9px 14px !important;
    font-size: 13px !important;
    outline: none !important;
    box-shadow: none !important;
}

.rr-sheet-landmark-input:focus {
    border-color: #3b82f6 !important;
}

/* Official Live Delivery Fee Display Card (Calculated via Road Runner API) */
.rr-fare-card {
    background: #20232a;
    border: 1px solid #2d3340;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rr-fare-badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.rr-fare-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.rr-fare-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
}

.rr-fare-amount {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin: 2px 0;
}

.rr-fare-subtext {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
}

/* Calculating Spinner */
.rr-calculating-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.rr-mini-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: rrSpin 0.8s infinite linear;
}

/* Confirm Button */
.rr-confirm-route-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4) !important;
    transition: all 0.18s ease !important;
}

.rr-confirm-route-btn:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.5) !important;
}

/* ── Checkout Page Location Badge Card ─────────────────────────────── */
.rr-location-badge-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 10px;
}

.rr-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rr-badge-content {
    flex: 1;
    min-width: 0;
}

.rr-badge-title {
    font-size: 13px;
    font-weight: 700;
    color: #166534;
}

.rr-badge-addr {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    margin-top: 1px;
}

.rr-badge-route {
    font-size: 12px;
    color: #475569;
    margin-top: 2px;
}

.rr-badge-fee {
    font-size: 12.5px;
    color: #0369a1;
    margin-top: 2px;
}

.rr-badge-change-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.rr-badge-change-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

/* ── Mobile Optimization ───────────────────────────────────────────── */
@media (max-width: 640px) {
    .rr-map-modal-backdrop {
        padding: 0;
        align-items: stretch;
    }
    .rr-ride-modal-dialog {
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
        padding-top: env(safe-area-inset-top, 0px);
    }
    .rr-ride-top-card {
        top: max(10px, env(safe-area-inset-top, 10px));
        left: 8px;
        right: 8px;
        padding: 10px 12px 8px;
        border-radius: 4px;
    }
    .rr-top-mini-pill {
        top: max(10px, env(safe-area-inset-top, 10px));
        border-radius: 4px;
    }
    .rr-floating-back {
        bottom: 14px;
        left: 12px;
        border-radius: 4px;
    }
    .rr-floating-route {
        bottom: 14px;
        right: 12px;
        border-radius: 4px;
    }
    .rr-ride-bottom-sheet {
        padding: 10px 14px max(14px, env(safe-area-inset-bottom, 14px));
        border-radius: 4px 4px 0 0;
    }
    .rr-service-row {
        padding: 10px 12px;
        margin-bottom: 10px;
        gap: 10px;
    }
    .rr-service-vehicle-icon svg {
        width: 44px;
        height: 25px;
    }
    .rr-service-title {
        font-size: 14px;
    }
    .rr-service-stats-line {
        font-size: 11.5px;
    }
    .rr-fare-card {
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    .rr-fare-amount {
        font-size: 26px;
    }
    .rr-confirm-route-btn {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
}

/* ── Google Maps Error Dialog Suppression ──────────────────────────── */
.dismissButton,
button.dismissButton,
div:has(.dismissButton),
div:has(> table .dismissButton),
div:has(> div > table .dismissButton),
.gm-err-container,
.gm-err-content,
.gm-err-autocomplete,
#rr-map-picker-canvas div[style*="z-index: 1000000"],
#rr-map-picker-canvas div[style*="z-index: 1000001"],
#rr-map-picker-canvas div[style*="z-index: 1000002"],
div:has(> .gm-err-container) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.gm-style > div:first-child {
    filter: none !important;
    -webkit-filter: none !important;
    opacity: 1 !important;
}

.gm-style div[style*="background-color: rgba(0, 0, 0, 0.5)"],
.gm-style div[style*="rgba(0, 0, 0, 0.4)"] {
    background-color: transparent !important;
    pointer-events: none !important;
}

.gmnoprint, .gm-style-cc {
    font-family: inherit !important;
}






/* ══ Seed Co checkout theme ═══════════════════════════════════════════
   Matches the shop: Seed Co green (#02a64f) primary, red (#eb1f27) hover,
   grey (#686868) secondary text, light-grey borders, square uppercase buttons. */
.woocommerce-checkout {
    --rr-sc-green: var(--sc-green, #02a64f);
    --rr-sc-dark-green: var(--sc-dark-green, #028840);
    --rr-sc-red: var(--sc-red, #eb1f27);
    --rr-sc-grey: var(--sc-grey, #686868);
    --rr-sc-border: #dee2e6;
}

/* Map / GPS buttons */
.woocommerce-checkout .rr-location-btn {
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 13px;
    padding: 11px 20px;
    box-shadow: none;
    transform: none;
}
.woocommerce-checkout .rr-btn-pin-map {
    background: var(--rr-sc-green);
    color: #fff !important;
}
.woocommerce-checkout .rr-btn-pin-map:hover:not(:disabled) {
    background: var(--rr-sc-red);
    box-shadow: none;
    transform: none;
}
.woocommerce-checkout .rr-btn-gps {
    background: #fff;
    color: var(--rr-sc-green);
    border: 1px solid var(--rr-sc-green);
}
.woocommerce-checkout .rr-btn-gps:hover:not(:disabled) {
    background: var(--rr-sc-green);
    border-color: var(--rr-sc-green);
    color: #fff;
}

/* Confirmed delivery location card */
.woocommerce-checkout .rr-location-badge-card {
    background: #fff;
    border: 1px solid var(--rr-sc-border);
    border-radius: 3px;
    padding: 16px 20px;
    gap: 16px;
    box-shadow: none;
}
.woocommerce-checkout .rr-badge-icon {
    width: 40px;
    height: 40px;
    background: var(--rr-sc-green);
}
.woocommerce-checkout .rr-badge-icon svg {
    stroke: #fff;
}
.woocommerce-checkout .rr-badge-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rr-sc-green);
    margin-bottom: 2px;
}
.woocommerce-checkout .rr-badge-addr {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    white-space: normal;
}
.woocommerce-checkout .rr-badge-route {
    font-size: 14px;
    color: var(--rr-sc-grey);
    margin-top: 2px;
}
.woocommerce-checkout .rr-badge-fee {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--rr-sc-border);
    font-size: 14px;
    color: var(--rr-sc-grey);
}
.woocommerce-checkout .rr-badge-fee-label {
    color: #212529;
    font-weight: 600;
}
.woocommerce-checkout .rr-badge-fee-amount {
    color: var(--rr-sc-green);
    font-size: 18px;
    font-weight: 800;
}
.woocommerce-checkout .rr-badge-fee-note {
    font-size: 12px;
}
.woocommerce-checkout .rr-badge-change-btn {
    background: #fff;
    border: 1px solid var(--rr-sc-green);
    color: var(--rr-sc-green);
    border-radius: 3px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.woocommerce-checkout .rr-badge-change-btn:hover {
    background: var(--rr-sc-green);
    border-color: var(--rr-sc-green);
    color: #fff;
}

/* Depot step: helper note and delivery choice */
.woocommerce-checkout .rr-depot-note {
    color: var(--sc-grey, #686868);
}
.woocommerce-checkout .rr-fulfilment-field input[type="radio"] {
    accent-color: var(--sc-green, #02a64f);
}
.woocommerce-checkout .rr-fulfilment-field label.radio {
    display: inline-block;
    margin: 0 20px 0 4px;
    font-weight: 400;
}

@media (max-width: 640px) {
    .woocommerce-checkout .rr-location-badge-card {
        flex-wrap: wrap;
        padding: 14px 16px;
    }
    .woocommerce-checkout .rr-badge-content {
        flex-basis: calc(100% - 56px);
    }
    .woocommerce-checkout .rr-badge-change-btn {
        width: 100%;
    }
    .woocommerce-checkout .rr-location-btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* ══ Map picker modal: Seed Co light theme ════════════════════════════
   White surfaces, dark text (#212529), grey secondary text (#686868),
   light-grey borders (#dee2e6), Seed Co green (#02a64f) accents and
   square uppercase primary button with red hover, like the shop. */
#rr-map-modal {
    --rr-m-green: var(--sc-green, #02a64f);
    --rr-m-green-tint: #e8f7ef;
    --rr-m-red: var(--sc-red, #eb1f27);
    --rr-m-text: #212529;
    --rr-m-grey: var(--sc-grey, #686868);
    --rr-m-border: #dee2e6;
    --rr-m-surface: #ffffff;
    --rr-m-soft: #f8f9fa;
}
#rr-map-modal.rr-map-modal-backdrop { background: rgba(33, 37, 41, 0.6); }

#rr-map-modal .rr-ride-modal-dialog {
    background: var(--rr-m-surface);
    border: 1px solid var(--rr-m-border);
    color: var(--rr-m-text);
    border-radius: 4px;
}

/* Top route card */
#rr-map-modal .rr-ride-top-card {
    background: var(--rr-m-surface);
    border: 1px solid var(--rr-m-border);
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    color: var(--rr-m-text);
}
#rr-map-modal .rr-ride-stop-title { color: var(--rr-m-text); }
#rr-map-modal .rr-ride-stop-sub,
#rr-map-modal .rr-dest-coords-hint { color: var(--rr-m-grey); }
#rr-map-modal .rr-ride-stop-icon { border-radius: 50%; }
#rr-map-modal .rr-icon-person { background: var(--rr-m-green); color: #fff; }
#rr-map-modal .rr-icon-flag { background: var(--rr-m-red); color: #fff; }
#rr-map-modal .rr-connector-dots { border-color: var(--rr-m-border); }
#rr-map-modal .rr-ride-stop-badge,
#rr-map-modal .rr-top-card-hide-btn,
#rr-map-modal .rr-btn-icon-action {
    background: var(--rr-m-surface);
    border: 1px solid var(--rr-m-border);
    color: var(--rr-m-text);
    border-radius: 3px;
}
#rr-map-modal .rr-ride-stop-badge:hover,
#rr-map-modal .rr-top-card-hide-btn:hover,
#rr-map-modal .rr-btn-icon-action:hover {
    background: var(--rr-m-green);
    border-color: var(--rr-m-green);
    color: #fff;
}
#rr-map-modal .rr-ride-dest-input { color: var(--rr-m-text) !important; }
#rr-map-modal .rr-ride-dest-input::placeholder { color: var(--rr-m-grey); }
#rr-map-modal .rr-dest-clear-btn { color: var(--rr-m-grey); }
#rr-map-modal .rr-dest-clear-btn:hover { color: var(--rr-m-red); }
#rr-map-modal .rr-ride-duration-pill {
    background: var(--rr-m-green-tint);
    border: 1px solid rgba(2, 166, 79, 0.3);
    color: var(--rr-m-green);
}

/* Area chips */
#rr-map-modal .rr-presets-scroll-wrap { border-top: 1px solid var(--rr-m-border); }
#rr-map-modal .rr-presets-scroll-wrap::after {
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #ffffff 92%);
}
#rr-map-modal .rr-chip {
    background: var(--rr-m-soft);
    border: 1px solid var(--rr-m-border);
    color: var(--rr-m-text);
    border-radius: 3px;
}
#rr-map-modal .rr-chip:hover {
    background: var(--rr-m-green-tint);
    border-color: var(--rr-m-green);
    color: var(--rr-m-green);
}
#rr-map-modal .rr-chip-active {
    background: var(--rr-m-green) !important;
    border-color: var(--rr-m-green) !important;
    color: #fff !important;
}

/* Collapsed route pill */
#rr-map-modal .rr-top-mini-pill {
    background: var(--rr-m-surface);
    border: 1px solid var(--rr-m-border);
    color: var(--rr-m-text);
    border-radius: 3px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
#rr-map-modal .rr-top-mini-pill:hover { background: var(--rr-m-soft); }
#rr-map-modal .rr-mini-pill-dot,
#rr-map-modal .rr-fare-live-dot { background: var(--rr-m-green); }
#rr-map-modal .rr-mini-pill-action {
    background: var(--rr-m-green-tint);
    color: var(--rr-m-green);
    border-color: rgba(2, 166, 79, 0.3);
}

/* Depot dropdown */
#rr-map-modal .rr-depot-dropdown {
    background: var(--rr-m-surface);
    border: 1px solid var(--rr-m-border);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
#rr-map-modal .rr-depot-dropdown-header { border-bottom: 1px solid var(--rr-m-border); color: var(--rr-m-grey); }
#rr-map-modal .rr-depot-dropdown-close { color: var(--rr-m-grey); }
#rr-map-modal .rr-depot-search-wrap { background: var(--rr-m-soft); border-bottom: 1px solid var(--rr-m-border); }
#rr-map-modal .rr-depot-search-icon,
#rr-map-modal .rr-depot-search-input::placeholder { color: var(--rr-m-grey); }
#rr-map-modal .rr-depot-search-input { color: var(--rr-m-text) !important; }
#rr-map-modal .rr-depot-item:hover { background: var(--rr-m-soft); }
#rr-map-modal .rr-depot-item-active { background: var(--rr-m-green-tint); }
#rr-map-modal .rr-depot-item-name { color: var(--rr-m-text); }
#rr-map-modal .rr-depot-item-addr { color: var(--rr-m-grey); }

/* Floating map buttons */
#rr-map-modal .rr-map-canvas-container,
#rr-map-modal .rr-map-picker-canvas { background: #e9ecef; }
#rr-map-modal .rr-floating-btn {
    background: var(--rr-m-surface);
    border: 1px solid var(--rr-m-border);
    color: var(--rr-m-text);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
#rr-map-modal .rr-floating-btn:hover { background: var(--rr-m-green); border-color: var(--rr-m-green); color: #fff; }
#rr-map-modal .rr-map-floating-tip { background: rgba(33, 37, 41, 0.85); }

/* Bottom sheet */
#rr-map-modal .rr-ride-bottom-sheet {
    background: var(--rr-m-surface);
    border-top: 1px solid var(--rr-m-border);
    color: var(--rr-m-text);
}
#rr-map-modal .rr-sheet-handle { background: var(--rr-m-border); }
#rr-map-modal .rr-sheet-handle:hover { background: var(--rr-m-grey); }
#rr-map-modal .rr-service-row {
    background: var(--rr-m-surface);
    border: 1px solid var(--rr-m-border);
    border-radius: 4px;
}
#rr-map-modal .rr-service-vehicle-icon { color: var(--rr-m-green); }
#rr-map-modal .rr-service-title { color: var(--rr-m-text); }
#rr-map-modal .rr-service-stats-line { color: var(--rr-m-text); }
#rr-map-modal .rr-service-info-badge,
#rr-map-modal .rr-service-subtitle,
#rr-map-modal .rr-stats-sep { color: var(--rr-m-grey); }
#rr-map-modal .rr-service-edit-btn {
    background: var(--rr-m-surface);
    border: 1px solid var(--rr-m-green);
    color: var(--rr-m-green);
    border-radius: 3px;
}
#rr-map-modal .rr-service-edit-btn:hover { background: var(--rr-m-green); color: #fff; }
#rr-map-modal .rr-sheet-landmark-input {
    background: var(--rr-m-surface) !important;
    border: 1px solid var(--rr-m-border) !important;
    color: var(--rr-m-text) !important;
    border-radius: 3px !important;
}
#rr-map-modal .rr-sheet-landmark-input:focus { border-color: var(--rr-m-green) !important; }

/* Fee card */
#rr-map-modal .rr-fare-card {
    background: var(--rr-m-soft);
    border: 1px solid var(--rr-m-border);
    border-radius: 4px;
}
#rr-map-modal .rr-fare-label { color: var(--rr-m-grey); }
#rr-map-modal .rr-fare-amount { color: var(--rr-m-green); }
#rr-map-modal .rr-fare-subtext,
#rr-map-modal .rr-calculating-overlay { color: var(--rr-m-grey); }
#rr-map-modal .rr-mini-spinner { border-top-color: var(--rr-m-green); }

/* Primary action, same as the shop's green uppercase buttons */
#rr-map-modal .rr-confirm-route-btn {
    background: var(--rr-m-green) !important;
    color: #fff !important;
    border-radius: 3px !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: none !important;
    transform: none !important;
}
#rr-map-modal .rr-confirm-route-btn:hover { background: var(--rr-m-red) !important; }

/* ══ Depot step (Shipping details) ════════════════════════════════════ */
.rr-depot-section {
    margin: 0 0 24px;
    padding: 0 0 8px;
    border-bottom: 1px solid #dee2e6;
}
.rr-depot-section .rr-depot-heading {
    margin: 0 0 12px;
}
.rr-depot-section .rr-depot-select {
    width: 100%;
}
/* keep long depot names clear of the select's clear (×) and arrow icons */
.rr-depot-section .select2-selection__rendered {
    padding-right: 48px !important;
}
.rr-depot-section .rr-fulfilment-label {
    display: block;
    margin-bottom: 8px;
}
.rr-depot-section .rr-fulfilment-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}
.rr-depot-section .rr-fulfilment-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}
.rr-depot-section .rr-fulfilment-option input[type="radio"] {
    margin: 0;
    accent-color: var(--sc-green, #02a64f);
}
.rr-depot-section .rr-depot-note {
    color: var(--sc-grey, #686868);
}

/* ══ Map picker layout: full-bleed map, left-side route + price cards ══ */
#rr-map-modal .rr-ride-modal-dialog {
    max-width: 1180px;
    height: 88vh;
    max-height: 820px;
    border-radius: 6px;
}
#rr-map-modal .rr-map-canvas-container {
    position: absolute;
    inset: 0;
    min-height: 0;
}
#rr-map-modal .rr-ride-top-card,
#rr-map-modal .rr-price-panel {
    left: 16px;
    width: 280px;
    border-radius: 6px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}
#rr-map-modal .rr-ride-top-card { top: 16px; right: auto; width: 340px; }
#rr-map-modal .rr-top-mini-pill { left: 16px; }

/* ── Simplified route card: depot line + destination search ── */
#rr-map-modal .rr-ride-top-card { padding: 14px 16px; }
#rr-map-modal .rr-ride-origin-row { align-items: flex-start; gap: 10px; }
#rr-map-modal .rr-stop-dot {
    width: 10px;
    height: 10px;
    margin-top: 20px;
    flex-shrink: 0;
}
#rr-map-modal .rr-stop-dot-origin { background: var(--rr-m-green); border-radius: 50%; }
#rr-map-modal .rr-stop-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--rr-m-grey);
    margin: 0 0 2px;
}
#rr-map-modal .rr-ride-stop-title { font-size: 14px; font-weight: 600; }
#rr-map-modal .rr-ride-stop-sub { font-size: 12px; }
#rr-map-modal .rr-ride-stop-badge {
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--rr-m-green);
    border-color: var(--rr-m-green);
}
#rr-map-modal .rr-top-card-header-actions { margin-top: 14px; }
#rr-map-modal .rr-ride-dest-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--rr-m-border);
}
#rr-map-modal .rr-dest-search {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 4px 0 10px;
    background: var(--rr-m-surface);
    border: 1px solid var(--rr-m-border);
    border-radius: 4px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
#rr-map-modal .rr-dest-search:focus-within {
    border-color: var(--rr-m-green);
    box-shadow: 0 0 0 3px rgba(2, 166, 79, 0.12);
}
#rr-map-modal .rr-dest-search-icon { color: var(--rr-m-grey); flex-shrink: 0; }
#rr-map-modal .rr-ride-dest-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    font-size: 14px !important;
    font-weight: 500 !important;
    -webkit-appearance: none;
    appearance: none;
}
#rr-map-modal .rr-ride-dest-input::-webkit-search-cancel-button { display: none; }
#rr-map-modal .rr-dest-clear-btn { font-size: 20px; padding: 0 4px; }
#rr-map-modal .rr-dest-gps-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    border-left: 1px solid var(--rr-m-border);
    border-radius: 0;
    color: var(--rr-m-grey);
    cursor: pointer;
}
#rr-map-modal .rr-dest-gps-btn:hover { color: var(--rr-m-green); }
#rr-map-modal .rr-dest-gps-btn.rr-btn-spin svg { animation: rrSpin 1s infinite linear; }
#rr-map-modal .rr-dest-hint {
    font-size: 11.5px;
    color: var(--rr-m-grey);
    margin-top: 6px;
}
#rr-map-modal .rr-dest-hint-error { color: var(--rr-m-red); }

/* Google Places suggestions must sit above the map modal (z-index 9999999) */
.pac-container {
    z-index: 10000000 !important;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    font-family: inherit;
    margin-top: 4px;
}
/* Self-rendered dropdown (Places API New) lacks Google's injected base styles */
.rr-pac-container {
    position: fixed;
    background: #fff;
    max-height: 260px;
    overflow-y: auto;
    text-align: left;
}
.rr-pac-container .pac-item { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #6c757d; border-top: 1px solid #f1f3f5; }
.rr-pac-container .pac-item:first-child { border-top: 0; }
.pac-item { padding: 8px 12px; font-size: 13px; border-top-color: #f1f3f5; cursor: pointer; }
.pac-item:hover, .pac-item-selected { background: #e8f7ef; }
.pac-icon { display: none; }
.pac-item-query { font-size: 13.5px; color: #212529; padding-right: 4px; }

/* Price card */
#rr-map-modal .rr-price-panel {
    position: absolute;
    bottom: 16px;
    padding: 14px 16px;
    border: 1px solid var(--rr-m-border);
    transform: none;
}
#rr-map-modal .rr-price-panel .rr-fare-card {
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0 0 10px;
    align-items: flex-start;
    text-align: left;
}
#rr-map-modal .rr-price-panel .rr-fare-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
}
#rr-map-modal .rr-price-panel .rr-fare-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--rr-m-text);
    letter-spacing: -1px;
    margin: 2px 0 2px;
    font-variant-numeric: tabular-nums;
}
#rr-map-modal .rr-fare-meta {
    display: flex;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--rr-m-grey);
}
#rr-map-modal .rr-price-panel .rr-fare-subtext:empty { display: none; }
#rr-map-modal .rr-price-panel .rr-fare-subtext { margin-top: 4px; font-size: 11px; line-height: 1.35; }
#rr-map-modal .rr-price-panel .rr-calculating-overlay {
    justify-content: flex-start;
    margin: -8px 0 14px;
}
#rr-map-modal .rr-landmark-link {
    background: none;
    border: 0;
    padding: 0;
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--rr-m-green);
    cursor: pointer;
}
#rr-map-modal .rr-landmark-link:hover { text-decoration: underline; }
#rr-map-modal .rr-price-panel .rr-sheet-landmark-wrap { margin: -4px 0 10px; }
#rr-map-modal .rr-street-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--rr-m-grey);
    margin: 0 0 4px;
}
#rr-map-modal .rr-price-panel .rr-street-input {
    padding: 7px 10px !important;
    font-size: 12.5px !important;
    margin: 0 0 8px;
}
#rr-map-modal .rr-price-panel .rr-confirm-route-btn {
    padding: 9px 14px !important;
    font-size: 12.5px !important;
}

/* Floating map buttons */
#rr-map-modal .rr-floating-back { top: 16px; right: 16px; bottom: auto; left: auto; }
#rr-map-modal .rr-floating-route { bottom: 16px; right: 16px; }
#rr-map-modal .rr-floating-btn:hover { transform: none; }

@media (max-width: 640px) {
    #rr-map-modal .rr-ride-modal-dialog { height: 100dvh; max-height: 100dvh; border-radius: 0; }
    #rr-map-modal .rr-ride-top-card,
    #rr-map-modal .rr-price-panel {
        left: 10px;
        right: 10px;
        width: auto;
    }
    #rr-map-modal .rr-ride-top-card { right: 66px; }
    #rr-map-modal .rr-floating-back { top: max(10px, env(safe-area-inset-top, 10px)); right: 10px; }
    #rr-map-modal .rr-price-panel {
        bottom: max(10px, env(safe-area-inset-bottom, 10px));
        padding: 12px 14px;
    }
    #rr-map-modal .rr-price-panel .rr-fare-amount { font-size: 26px; }
    #rr-map-modal .rr-floating-route { bottom: auto; top: calc(max(10px, env(safe-area-inset-top, 10px)) + 54px); right: 10px; }
}
