/* RWZ Booker Plugin Styles */

:root {
    --rwz-booker-primary: #4CAF50;
    --rwz-booker-secondary: #2196F3;
    --rwz-booker-danger: #f44336;
    --rwz-booker-success: #4CAF50;
    --rwz-booker-warning: #ff9800;
    --rwz-booker-text: #333;
    --rwz-booker-border: #ddd;
    --rwz-booker-bg: #f9f9f9;
}

.rwz-booker-booking-container,
.rwz-booker-dashboard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.rwz-booker-title {
    text-align: center;
    color: var(--rwz-booker-text);
    margin-bottom: 30px;
    font-size: 28px;
}

/* Steps */
.rwz-booker-step {
    display: none;
}

.rwz-booker-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

/* Form Groups */
.rwz-booker-form-group {
    margin-bottom: 20px;
}

.rwz-booker-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--rwz-booker-text);
}

/* Inputs */
.rwz-booker-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--rwz-booker-border);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.rwz-booker-input:focus {
    outline: none;
    border-color: var(--rwz-booker-primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

textarea.rwz-booker-input {
    resize: vertical;
    min-height: 80px;
}

.rwz-booker-pin-input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    font-weight: bold;
}

/* Buttons */
.rwz-booker-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
}

.rwz-booker-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rwz-booker-btn-primary {
    background-color: var(--rwz-booker-primary);
    color: white;
}

.rwz-booker-btn-primary:hover:not(:disabled) {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.rwz-booker-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.rwz-booker-btn-secondary:hover:not(:disabled) {
    background-color: #5a6268;
}

.rwz-booker-btn-success {
    background-color: var(--rwz-booker-success);
    color: white;
    font-size: 18px;
    padding: 15px 30px;
}

.rwz-booker-btn-success:hover:not(:disabled) {
    background-color: #45a049;
    transform: scale(1.05);
}

/* Post-booking: anchor shares button styles (themes often restyle links; !important beats typical a { color } rules) */
#rwz-booker-post-booking-actions a.rwz-booker-btn.rwz-booker-btn-secondary,
#rwz-booker-post-booking-actions a.rwz-booker-book-another-ride {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    box-sizing: border-box;
}

#rwz-booker-post-booking-actions a.rwz-booker-btn.rwz-booker-btn-secondary:hover {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

@media (max-width: 480px) {
    .rwz-booker-post-booking-actions .rwz-booker-btn {
        width: 100%;
        margin-right: 0;
        text-align: center;
    }
}

.rwz-booker-btn-link {
    background: none;
    color: var(--rwz-booker-secondary);
    text-decoration: underline;
    padding: 8px 0;
}

/* Sticky Button Container */
.rwz-booker-sticky-button-wrapper {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 15px 0;
    border-top: 1px solid var(--rwz-booker-border);
    z-index: 100;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    margin: 0 -20px;
    padding: 15px 20px;
}

#get-quote-btn.sticky-enabled {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 18px;
}

#continue-to-login-btn.sticky-enabled {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 18px;
}

/* Quote Result */
.rwz-booker-quote-result {
    margin-top: 30px;

/* Card Mode Selector */
.rwz-booker-card-mode {
    margin-bottom: 15px;
    font-size: 14px;
}

.rwz-booker-card-mode label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.rwz-booker-card-mode input[type="radio"] {
    margin-right: 6px;
    cursor: pointer;
}

/* Trip Type Selector */
.rwz-booker-trip-type {
    display: flex;
    gap: 12px;
    font-size: 15px;
}

.rwz-booker-trip-type label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: normal;
    padding: 10px 20px;
    border: 2px solid var(--rwz-booker-border);
    border-radius: 6px;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
}

.rwz-booker-trip-type input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.rwz-booker-trip-type label:has(input:checked) {
    border-color: var(--rwz-booker-primary);
    background: rgba(76, 175, 80, 0.05);
    font-weight: 600;
}

/* Additional Requests - Scoped Reset for Theme Isolation */
#rwz-booker-addon-wrapper label,
#rwz-booker-addon-wrapper input,
#rwz-booker-addon-wrapper button {
    all: revert;
    box-sizing: border-box;
}

/* Additional Requests - Card Style with Icons */
#rwz-booker-addon-wrapper #additional-requests-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 10px;
    list-style: none;
    padding: 0;
}

#rwz-booker-addon-wrapper .rwz-booker-addon-card {
    position: relative;
    display: flex;
    min-height: 0;
}

#rwz-booker-addon-wrapper .rwz-booker-addon-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

#rwz-booker-addon-wrapper .rwz-booker-addon-card label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    height: 220px;
    min-height: 220px;
    flex: 1;
    width: 100%;
    min-width: 0;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 0;
    font-weight: normal;
}

#rwz-booker-addon-wrapper .rwz-booker-addon-card label:hover {
    border-color: #bbb;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

#rwz-booker-addon-wrapper .rwz-booker-addon-card input[type="checkbox"]:checked + label {
    background: #ffffff !important;
    border-color: var(--rwz-booker-primary) !important;
    border-width: 3px !important;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* Badge in top-left corner */
#rwz-booker-addon-wrapper .rwz-booker-addon-badge {
    position: absolute;
    top: -8px;
    left: 12px;
    background: var(--rwz-booker-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    z-index: 2;
}

#rwz-booker-addon-wrapper .rwz-booker-addon-badge small {
    display: block;
    font-size: 10px;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 2px;
}

#rwz-booker-addon-wrapper .rwz-booker-addon-card input[type="checkbox"]:checked + label .rwz-booker-addon-badge {
    background: var(--rwz-booker-success) !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4) !important;
}

/* Icon container */
#rwz-booker-addon-wrapper .rwz-booker-addon-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 56px;
    color: #888;
    transition: all 0.3s ease;
}

#rwz-booker-addon-wrapper .rwz-booker-addon-icon:empty {
    display: none;
}

#rwz-booker-addon-wrapper .rwz-booker-addon-icon i {
    font-size: 56px;
    color: #888;
    transition: all 0.3s ease;
}

#rwz-booker-addon-wrapper .rwz-booker-addon-card input[type="checkbox"]:checked + label .rwz-booker-addon-icon i {
    color: var(--rwz-booker-primary) !important;
    transform: scale(1.1) !important;
}

/* SVG Icon Styling - Match Font Awesome */
#rwz-booker-addon-wrapper .rwz-booker-addon-icon svg {
    width: 90px;
    height: 90px;
    color: #888;
    transition: all 0.3s ease;
}

#rwz-booker-addon-wrapper .rwz-booker-addon-icon svg * {
    fill: currentColor;
}

#rwz-booker-addon-wrapper .rwz-booker-addon-card input[type="checkbox"]:checked + label .rwz-booker-addon-icon svg {
    color: var(--rwz-booker-primary) !important;
    transform: scale(1.1) !important;
}

#rwz-booker-addon-wrapper .rwz-booker-addon-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

#rwz-booker-addon-wrapper .rwz-booker-addon-card input[type="checkbox"]:checked + label .rwz-booker-addon-icon img {
    transform: scale(1.1) !important;
}

/* Add-on name */
#rwz-booker-addon-wrapper .rwz-booker-addon-name {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
    margin-top: auto;
    width: 100%;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#rwz-booker-addon-wrapper .rwz-booker-addon-card input[type="checkbox"]:checked + label .rwz-booker-addon-name {
    color: #000 !important;
    font-weight: 700 !important;
}

/* Checkmark indicator on selected cards */
#rwz-booker-addon-wrapper .rwz-booker-addon-card input[type="checkbox"]:checked + label::after {
    content: '✓' !important;
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 28px !important;
    height: 28px !important;
    background: var(--rwz-booker-success) !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: bold !important;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4) !important;
    z-index: 2 !important;
}

/* Responsive adjustments - tablet (iPad, Android tablet) */
@media (max-width: 1024px) {
    #rwz-booker-addon-wrapper #additional-requests-list {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 14px;
    }
    
    #rwz-booker-addon-wrapper .rwz-booker-addon-card label {
        height: 200px;
        min-height: 200px;
        padding: 20px 12px;
    }
    
    #rwz-booker-addon-wrapper .rwz-booker-addon-icon {
        width: 70px;
        height: 70px;
        font-size: 48px;
        margin-bottom: 12px;
    }
    
    #rwz-booker-addon-wrapper .rwz-booker-addon-icon i {
        font-size: 48px;
    }
    
    #rwz-booker-addon-wrapper .rwz-booker-addon-name {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    #rwz-booker-addon-wrapper #additional-requests-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    #rwz-booker-addon-wrapper .rwz-booker-addon-card label {
        height: 190px;
        min-height: 190px;
        padding: 18px 10px;
    }
    
    #rwz-booker-addon-wrapper .rwz-booker-addon-icon {
        width: 60px;
        height: 60px;
        font-size: 40px;
        margin-bottom: 10px;
    }
    
    #rwz-booker-addon-wrapper .rwz-booker-addon-icon i {
        font-size: 40px;
    }
    
    #rwz-booker-addon-wrapper .rwz-booker-addon-name {
        font-size: 14px;
    }
    
    #rwz-booker-addon-wrapper .rwz-booker-addon-badge {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    #rwz-booker-addon-wrapper .rwz-booker-addon-card input[type="checkbox"]:checked + label::after {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    #rwz-booker-addon-wrapper #additional-requests-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    #rwz-booker-addon-wrapper .rwz-booker-addon-card label {
        height: 175px;
        min-height: 175px;
        padding: 14px 8px;
    }
    
    #rwz-booker-addon-wrapper .rwz-booker-addon-icon {
        width: 52px;
        height: 52px;
        font-size: 34px;
        margin-bottom: 8px;
    }
    
    #rwz-booker-addon-wrapper .rwz-booker-addon-icon i {
        font-size: 34px;
    }
    
    #rwz-booker-addon-wrapper .rwz-booker-addon-name {
        font-size: 13px;
    }
    
    #rwz-booker-addon-wrapper .rwz-booker-addon-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
}

@media (max-width: 360px) {
    #rwz-booker-addon-wrapper #additional-requests-list {
        gap: 8px;
    }
    
    #rwz-booker-addon-wrapper .rwz-booker-addon-card label {
        height: 165px;
        min-height: 165px;
        padding: 12px 6px;
    }
    
    #rwz-booker-addon-wrapper .rwz-booker-addon-icon {
        width: 44px;
        height: 44px;
        font-size: 28px;
        margin-bottom: 6px;
    }
    
    #rwz-booker-addon-wrapper .rwz-booker-addon-icon i {
        font-size: 28px;
    }
    
    #rwz-booker-addon-wrapper .rwz-booker-addon-name {
        font-size: 12px;
    }
}

.rwz-booker-request-leg-options {
    margin-left: 15px;
    font-size: 12px;
    color: #666;
}

.rwz-booker-request-leg-options label {
    margin-right: 10px;
}

/* Round Trip Quote Display */
.rwz-booker-quote-legs {
    margin-top: 20px;
}

.rwz-booker-quote-leg {
    background: #fff;
    border: 1px solid var(--rwz-booker-border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.rwz-booker-quote-leg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.rwz-booker-quote-leg-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--rwz-booker-text);
}

.rwz-booker-quote-leg-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--rwz-booker-primary);
}

.rwz-booker-quote-leg-details {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.rwz-booker-quote-leg-details-item {
    margin: 10px 0;
}

.rwz-booker-quote-leg-details-item strong {
    display: block;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f4f9 100%);
    border-left: 3px solid var(--rwz-booker-primary);
    border-radius: 3px;
    font-weight: 600;
    font-size: 13px;
}

.rwz-booker-quote-leg-details-item:not(:has(strong)) {
    font-size: 15px;
    color: #222;
    font-weight: 500;
    line-height: 1.6;
    padding: 6px 0;
}

.rwz-booker-quote-total {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 18px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Round trip total and button wrapper */
#roundtrip-total-and-button {
    /* No special styling needed when not sticky */
}

#roundtrip-total-and-button.sticky-enabled {
    background: white;
    padding: 15px 20px;
    border-top: 2px solid #e0e0e0;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

#roundtrip-total-and-button.sticky-enabled .rwz-booker-quote-total {
    margin-top: 0;
    margin-bottom: 15px;
}



/* Temporary Card Display - smooth appearance */
.rwz-booker-temp-card-display {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.rwz-booker-temp-card-display:not([style*="display: none"]) {
    opacity: 1;
}

/* Smooth transitions for form elements */
#add-card-form,
#add-card-btn {
    transition: opacity 0.15s ease-in-out;
}
    text-align: center;
}

.rwz-booker-quote-box {
    background: var(--rwz-booker-bg);
    border: 2px solid var(--rwz-booker-primary);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.rwz-booker-quote-box h4 {
    margin: 0 0 15px 0;
    color: var(--rwz-booker-text);
    font-size: 18px;
}

.rwz-booker-fare-amount {
    font-size: 48px;
    font-weight: bold;
    color: var(--rwz-booker-primary);
    margin: 15px 0;
}

.rwz-booker-quote-note {
    margin: 15px 0 0 0;
    color: #666;
    font-size: 14px;
}

/* Trip Summary */
.rwz-booker-trip-summary {
    background: #f9f9f9;
    border: 1px solid var(--rwz-booker-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.rwz-booker-trip-summary h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: var(--rwz-booker-text);
}

.rwz-booker-trip-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--rwz-booker-border);
    flex-wrap: wrap;
    gap: 12px;
}

.rwz-booker-trip-details-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--rwz-booker-text);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rwz-booker-icon-btn.edit-all {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
}

.rwz-booker-trip-fare {
    font-size: 28px;
    font-weight: 700;
    color: var(--rwz-booker-primary);
}

.rwz-booker-trip-details-grid {
    display: grid;
    gap: 12px;
}

.rwz-booker-detail-row {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 12px;
    align-items: start;
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.rwz-booker-detail-label {
    font-weight: 600;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rwz-booker-detail-value {
    font-size: 15px;
    line-height: 1.4;
    color: var(--rwz-booker-text);
}

.rwz-booker-detail-actions {
    display: flex;
    gap: 8px;
}

.rwz-booker-icon-btn {
    background: #f5f5f5;
    border: 1px solid var(--rwz-booker-border);
    color: #666;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.rwz-booker-icon-btn:hover {
    background: #e8e8e8;
    border-color: #bbb;
    transform: scale(1.05);
}

.rwz-booker-icon-btn.delete {
    background: #fff5f5;
    border-color: #ffcdd2;
    color: #d32f2f;
}

.rwz-booker-icon-btn.delete:hover {
    background: #ffebee;
    border-color: #ef9a9a;
}

.rwz-booker-vehicle-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.rwz-booker-addon-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    color: #1565c0;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 13px;
    margin-right: 6px;
    margin-bottom: 6px;
}

.rwz-booker-addons-container {
    display: flex;
    flex-wrap: wrap;
}

.rwz-booker-addon-tag .rwz-booker-icon-btn {
    width: 20px;
    height: 20px;
    font-size: 12px;
    margin-left: 4px;
}

/* Round Trip Sections */
.rwz-booker-round-trip-section {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
}

.rwz-booker-round-trip-section h5 {
    margin: 0 0 12px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rwz-booker-round-trip-section.outbound h5 {
    color: #4CAF50;
}

.rwz-booker-round-trip-section.return h5 {
    color: #2196F3;
}

.rwz-booker-trip-subtotal {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    font-weight: 600;
    font-size: 16px;
    color: var(--rwz-booker-text);
    text-align: right;
}

/* Leg-specific pickup notes (v1.24.10) */
.rwz-leg-pickup-notes {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e0e0e0;
}

.rwz-leg-pickup-notes label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--rwz-booker-text);
    margin-bottom: 6px;
}

.rwz-leg-notes-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
    max-height: 120px;
    transition: border-color 0.2s ease;
}

.rwz-leg-notes-input:focus {
    outline: none;
    border-color: var(--rwz-booker-primary);
}

.rwz-leg-notes-input::placeholder {
    color: #999;
    font-style: italic;
}

.rwz-leg-pickup-notes .rwz-char-count {
    display: block;
    text-align: right;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.rwz-booker-round-trip-grid {
    display: grid;
    gap: 8px;
}

.rwz-booker-round-trip-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px;
    font-size: 14px;
    align-items: start;
}

.rwz-booker-round-trip-label {
    font-weight: 600;
    color: #666;
}

.rwz-booker-round-trip-value {
    color: var(--rwz-booker-text);
}

.rwz-booker-will-call-badge {
    background: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.rwz-booker-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--rwz-booker-border);
}

.rwz-booker-summary-row:last-child {
    border-bottom: none;
}

.rwz-booker-summary-row.rwz-booker-total {
    font-weight: bold;
    font-size: 18px;
    color: var(--rwz-booker-primary);
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid var(--rwz-booker-border);
}

.rwz-booker-summary-row .label {
    color: #666;
}

.rwz-booker-summary-row .value {
    color: var(--rwz-booker-text);
    text-align: right;
}

/* Cards List */
.rwz-booker-cards-list {
    margin-bottom: 20px;
}

.rwz-booker-card-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.rwz-booker-card-item input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.rwz-booker-card-item:hover {
    border-color: var(--rwz-booker-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.rwz-booker-card-item:has(input:checked) {
    border-color: #2ecc71;
    background-color: #f6fff8;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.15);
}

.rwz-booker-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.rwz-booker-card-brand {
    font-weight: 600;
    font-size: 13px;
}

.rwz-booker-card-last4 {
    color: #666;
    font-size: 14px;
}

.rwz-booker-card-exp {
    color: #999;
    font-size: 11px;
}

.rwz-booker-card-delete {
    color: var(--rwz-booker-danger);
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid var(--rwz-booker-danger);
    border-radius: 4px;
    font-size: 14px;
    background: none;
}

.rwz-booker-card-delete:hover {
    background: var(--rwz-booker-danger);
    color: white;
}

/* Stripe Card Element */
.rwz-booker-card-element {
    border: 1px solid var(--rwz-booker-border);
    border-radius: 6px;
    padding: 12px;
    background: white;
}

/* Alerts */
.rwz-booker-alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.rwz-booker-alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rwz-booker-alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.rwz-booker-alert.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.rwz-booker-alert.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.rwz-booker-error {
    color: var(--rwz-booker-danger);
    font-size: 14px;
    margin-top: 5px;
}

/* Loading Spinner */
.rwz-booker-loading {
    text-align: center;
    padding: 40px;
}

.rwz-booker-spinner {
    border: 4px solid var(--rwz-booker-border);
    border-top: 4px solid var(--rwz-booker-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Success Message */
.rwz-booker-success-message {
    text-align: center;
    padding: 40px 20px;
}

.rwz-booker-success-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: var(--rwz-booker-success);
    color: white;
    font-size: 48px;
    margin: 0 auto 20px;
}

.rwz-booker-success-message h3 {
    color: var(--rwz-booker-success);
    margin-bottom: 10px;
}

/* Map */
#map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--rwz-booker-border);
}

/* Help Text */
.rwz-booker-help-text {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Dashboard Specific */
.rwz-booker-user-info {
    background: var(--rwz-booker-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.rwz-booker-user-info h3 {
    margin: 0 0 10px 0;
}

.rwz-booker-user-info p {
    margin: 5px 0;
    color: #666;
}

/* Dashboard login card - matches booker guest card style */
.rwz-booker-dashboard-login-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.rwz-booker-dashboard-login-intro {
    margin: 0 0 20px 0;
    font-size: 15px;
    color: #444;
    line-height: 1.5;
}

/* Tabs */
.rwz-booker-tabs {
    display: flex;
    border-bottom: 2px solid var(--rwz-booker-border);
    margin-bottom: 25px;
}

.rwz-booker-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.rwz-booker-tab:hover {
    color: var(--rwz-booker-primary);
}

.rwz-booker-tab.active {
    color: var(--rwz-booker-primary);
    border-bottom-color: var(--rwz-booker-primary);
}

.rwz-booker-tab-content {
    display: none;
}

.rwz-booker-tab-content.active {
    display: block;
}

/* Rides List */
.rwz-booker-rides-list {
    margin-top: 20px;
}

.rwz-booker-ride-item {
    background: white;
    border: 1px solid var(--rwz-booker-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s;
}

.rwz-booker-ride-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rwz-booker-ride-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.rwz-booker-ride-id {
    font-weight: 600;
    color: var(--rwz-booker-text);
}

.rwz-booker-ride-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.rwz-booker-ride-route {
    margin: 10px 0;
}

.rwz-booker-ride-location {
    margin: 8px 0;
    color: var(--rwz-booker-text);
}

.rwz-booker-ride-fare {
    margin: 10px 0;
    font-weight: 600;
    color: var(--rwz-booker-primary);
}

.rwz-booker-cancel-ride-btn {
    margin-top: 15px;
    background: #dc3545 !important;
    border-color: #dc3545 !important;
}

.rwz-booker-cancel-ride-btn:hover {
    background: #c82333 !important;
    border-color: #bd2130 !important;
}

.rwz-booker-ride-from,
.rwz-booker-ride-to {
    display: flex;
    align-items: start;
    margin: 5px 0;
}

.rwz-booker-ride-from::before {
    content: "📍";
    margin-right: 10px;
}

.rwz-booker-ride-to::before {
    content: "🎯";
    margin-right: 10px;
}

.rwz-booker-ride-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.rwz-booker-status-completed {
    background: #d4edda;
    color: #155724;
}

.rwz-booker-status-pending,
.rwz-booker-status-unassigned {
    background: #fff3cd;
    color: #856404;
}

.rwz-booker-status-assigned,
.rwz-booker-status-accepted,
.rwz-booker-status-onway,
.rwz-booker-status-arrived,
.rwz-booker-status-onboard {
    background: #d1ecf1;
    color: #0c5460;
}

.rwz-booker-status-cancelled,
.rwz-booker-status-no_show {
    background: #f8d7da;
    color: #721c24;
}

.rwz-booker-ride-status.completed {
    background: #d4edda;
    color: #155724;
}

.rwz-booker-ride-status.pending {
    background: #fff3cd;
    color: #856404;
}

.rwz-booker-ride-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Empty State */
.rwz-booker-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.rwz-booker-empty-state p {
    margin-bottom: 20px;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .rwz-booker-booking-container,
    .rwz-booker-dashboard-container {
        padding: 15px;
    }
    
    .rwz-booker-title {
        font-size: 24px;
    }
    
    .rwz-booker-fare-amount {
        font-size: 36px;
    }
    
    .rwz-booker-btn {
        width: 100%;
        margin-right: 0;
    }
    
    .rwz-booker-card-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .rwz-booker-tabs {
        overflow-x: auto;
    }
}

/* Historical Bookings Dashboard Styles */

.rwz-booker-historical-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.rwz-booker-historical-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--rwz-booker-border);
}

.rwz-booker-historical-header h3 {
    margin: 0;
    font-size: 24px;
    color: var(--rwz-booker-text);
}

/* Filters Section */
.rwz-booker-filters-section {
    background: var(--rwz-booker-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--rwz-booker-border);
}

.rwz-booker-filters-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.rwz-booker-filter-group {
    flex: 1;
    min-width: 200px;
}

.rwz-booker-search-group {
    flex: 2;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.rwz-booker-search-input {
    flex: 1;
}

.rwz-booker-date-input {
    width: 100%;
}

.rwz-booker-date-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rwz-booker-btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.rwz-booker-export-row {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--rwz-booker-border);
    margin-top: 15px;
}

/* Summary Section */
.rwz-booker-summary {
    padding: 15px;
    background: #f0f7ff;
    border-left: 4px solid var(--rwz-booker-secondary);
    margin-bottom: 20px;
    border-radius: 4px;
}

.rwz-booker-summary p {
    margin: 0;
    color: var(--rwz-booker-text);
}

#historical-cache-indicator {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

/* Table Styles */
.rwz-booker-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid var(--rwz-booker-border);
}

.rwz-booker-historical-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
}

.rwz-booker-historical-table thead {
    background: var(--rwz-booker-primary);
    color: white;
    position: sticky;
    top: 0;
}

.rwz-booker-historical-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.rwz-booker-historical-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--rwz-booker-border);
    font-size: 14px;
    color: var(--rwz-booker-text);
}

.rwz-booker-historical-table tbody tr:hover {
    background: #f9f9f9;
}

.rwz-booker-historical-table tbody tr:last-child td {
    border-bottom: none;
}

/* Cell-specific styling */
.rwz-booker-cell-datetime {
    white-space: normal;
}

.rwz-booker-cell-datetime .rwz-booker-date {
    font-weight: 500;
    margin-bottom: 4px;
}

.rwz-booker-cell-datetime .rwz-booker-time {
    font-size: 13px;
    color: #666;
}

/* Address stacked vertically */
.rwz-booker-cell-address-stacked {
    max-width: 300px;
    word-break: break-word;
}

.rwz-booker-cell-address-stacked .rwz-booker-label {
    font-weight: 600;
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    margin-bottom: 2px;
}

.rwz-booker-cell-address-stacked .rwz-booker-label:first-child {
    margin-top: 0;
}

.rwz-booker-cell-address-stacked .rwz-booker-address {
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.4;
    word-break: break-word;
}

/* Vehicle & Driver stacked vertically */
.rwz-booker-cell-vehicle-driver {
    padding: 14px 12px;
    vertical-align: middle;
}

.rwz-booker-cell-vehicle-driver .rwz-booker-vehicle,
.rwz-booker-cell-vehicle-driver .rwz-booker-driver {
    font-size: 13px;
    padding: 0;
    margin: 0;
    line-height: 1.2;
    display: block;
}

.rwz-booker-cell-vehicle-driver .rwz-booker-vehicle {
    margin-bottom: 4px;
}

.rwz-booker-cell-price {
    font-weight: 500;
    text-align: right;
    min-width: 80px;
}

.rwz-booker-cell-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.rwz-booker-cell-actions .rwz-booker-btn {
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 12px;
}

/* Rebook buttons in Booking # cell */
.rwz-booker-rebook-btn,
.rwz-booker-return-btn {
    display: block;
    width: 100%;
    padding: 6px 8px;
    font-size: 12px;
    margin-top: 4px;
    white-space: nowrap;
}

/* Status Styles */
.rwz-booker-status-completed {
    color: var(--rwz-booker-success);
    font-weight: 600;
}

.rwz-booker-status-cancelled {
    color: var(--rwz-booker-danger);
    font-weight: 600;
}

.rwz-booker-status-noshow {
    color: var(--rwz-booker-warning);
    font-weight: 600;
}

/* Pagination */
.rwz-booker-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

#historical-page-info {
    font-weight: 600;
    color: var(--rwz-booker-text);
}

/* Modal Styles */
.rwz-booker-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

/* WP admin bar (z-index 99999) sits on top of position:fixed at top:0.
   Shift modal + toast down to clear it for logged-in WP users.
   b98: toast keeps its original 20px (desktop) / 10px (mobile) breathing
   room BELOW the admin bar via calc(); the modal overlay starts flush at
   the admin-bar bottom (modal-content has its own top:5%, so no gap needed). */
body.admin-bar .rwz-booker-modal {
    top: 32px;
    height: calc(100% - 32px);
}
body.admin-bar .rwz-booker-toast-container {
    top: calc(32px + 20px);
}
@media screen and (max-width: 782px) {
    body.admin-bar .rwz-booker-modal {
        top: 46px;
        height: calc(100% - 46px);
    }
    body.admin-bar .rwz-booker-toast-container {
        top: calc(46px + 10px);
    }
}

.rwz-booker-modal-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 5%;
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(-50%) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.rwz-booker-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s;
}

.rwz-booker-modal-close:hover,
.rwz-booker-modal-close:focus {
    color: #000;
}

.rwz-booker-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--rwz-booker-text);
}

.rwz-booker-detail-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rwz-booker-border);
}

.rwz-booker-detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rwz-booker-detail-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--rwz-booker-primary);
    font-size: 16px;
}

.rwz-booker-detail-section p {
    margin: 8px 0;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rwz-booker-historical-container {
        padding: 10px;
    }
    
    .rwz-booker-filters-row {
        flex-direction: column;
    }
    
    .rwz-booker-filter-group {
        width: 100%;
        min-width: 100%;
    }
    
    .rwz-booker-search-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rwz-booker-date-presets {
        flex-direction: column;
    }
    
    .rwz-booker-date-presets button {
        width: 100%;
    }
    
    .rwz-booker-export-row {
        flex-direction: column;
    }
    
    .rwz-booker-export-row button {
        width: 100%;
    }
    
    .rwz-booker-historical-table {
        font-size: 12px;
    }
    
    .rwz-booker-historical-table th,
    .rwz-booker-historical-table td {
        padding: 8px 6px;
    }
    
    .rwz-booker-modal-content {
        top: 10%;
        width: 90%;
        padding: 20px;
    }
}

/* Loading State */
#historical-loading {
    text-align: center;
    padding: 40px;
}

#historical-loading p {
    margin-top: 15px;
    color: #666;
    font-size: 16px;
}

/* Empty State */
#historical-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--rwz-booker-bg);
    border-radius: 8px;
    border: 2px dashed var(--rwz-booker-border);
}

#historical-empty p {
    color: #666;
    margin: 10px 0;
    font-size: 16px;
}

#historical-empty p:first-child {
    font-size: 18px;
    font-weight: 600;
    color: var(--rwz-booker-text);
}

/* Save Card Checkbox Styling */
.save-card-option {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    cursor: pointer;
    font-size: 14px;
}

.save-card-option input[type="checkbox"] {
    cursor: pointer;
}

.save-card-note {
    display: block;
    color: #555;
    font-size: 0.85em;
    margin-left: 24px;
    margin-top: 4px;
}

.save-card-note.hidden {
    display: none;
}

/* Stripe Trust Branding */
.stripe-trust {
    font-size: 0.8em;
    color: #777;
    text-align: right;
    margin-top: 8px;
    margin-bottom: 16px;
}

/* Collapsed Saved Card Summary */
.rwz-saved-card-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.rwz-saved-card-summary strong {
    color: #333;
    font-weight: 600;
}

.rwz-toggle-cards {
    color: var(--rwz-booker-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.rwz-toggle-cards:hover {
    background: rgba(76, 175, 80, 0.1);
    text-decoration: none;
}

/* Cards list can be hidden when collapsed */
.rwz-booker-cards-list.hidden {
    display: none;
}

/* Account Bar - Guest and Logged-In States */
.rwz-booker-account-bar {
    margin-bottom: 24px;
}

.rwz-booker-account-bar.guest {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 15px;
    color: #444;
    text-align: center;
}

.rwz-booker-account-bar.guest p {
    margin: 0;
    line-height: 1.6;
}

.rwz-login-link {
    color: #007bff;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}

.rwz-login-link:hover {
    color: #0056b3;
}

/* Ensure consistent spacing for both states */
.rwz-booker-account-bar.logged-in > div,
.rwz-booker-account-bar.guest {
    margin-bottom: 0;
}

/* Dashboard account bar - same purple gradient as booker */
.rwz-booker-account-bar-dashboard.rwz-booker-account-bar.logged-in .rwz-booker-account-bar-inner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.rwz-booker-account-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.rwz-booker-account-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rwz-booker-account-bar-avatar {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.rwz-booker-account-bar-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.rwz-booker-account-bar-phone {
    font-size: 20px;
    font-weight: 700;
}

.rwz-booker-account-bar-logout {
    background: white;
    color: #667eea;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.rwz-booker-account-bar-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Active Rides Status Badges (for table display) */
.rwz-booker-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rwz-booker-status-badge.status-active {
    background: #d1ecf1;
    color: #0c5460;
}

.rwz-booker-status-badge.status-completed {
    background: #d4edda;
    color: #155724;
}

.rwz-booker-status-badge.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.rwz-booker-status-badge.status-upcoming {
    background: #fff3cd;
    color: #856404;
}

.rwz-booker-status-badge.status-default {
    background: #e9ecef;
    color: #495057;
}


/* Service Area Filtering */
.hidden-by-service-area {
    display: none !important;
}

/* Hide filtered select options */
option.hidden-by-service-area {
    display: none;
}

/* Mobility Needs - Card Style (like Add-Ons but with Radio Buttons) */
#rwz-booker-mobility-wrapper {
    margin-bottom: 30px;
}

#rwz-booker-mobility-wrapper .rwz-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

#mobility-options-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.rwz-booker-mobility-card {
    position: relative;
    display: flex;
    min-height: 0;
}

.rwz-booker-mobility-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rwz-booker-mobility-card label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    height: 220px;
    min-height: 220px;
    flex: 1;
    width: 100%;
    min-width: 0;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 0;
    font-weight: normal;
}

.rwz-booker-mobility-card label:hover {
    border-color: #bbb;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.rwz-booker-mobility-card input[type="radio"]:checked + label {
    background: #ffffff !important;
    border-color: var(--rwz-booker-primary) !important;
    border-width: 3px !important;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* Icon container */
.rwz-booker-mobility-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 54px;
    transition: all 0.3s ease;
}

/* Icon - Font Awesome or custom icons */
.rwz-booker-mobility-icon i {
    font-size: 54px;
    transition: all 0.3s ease;
}

/* Icon - custom SVG icons */
.rwz-booker-mobility-icon i[class^="rwz-icon-"]::before,
.rwz-booker-mobility-icon i[class*=" rwz-icon-"]::before {
    font-size: 54px;
}

.rwz-booker-mobility-card input[type="radio"]:checked + label .rwz-booker-mobility-icon {
    transform: scale(1.1);
}

.rwz-booker-mobility-card input[type="radio"]:checked + label .rwz-booker-mobility-icon i {
    color: var(--rwz-booker-primary) !important;
    transform: scale(1.1);
}

.rwz-booker-mobility-card input[type="radio"]:checked + label .rwz-booker-mobility-icon svg {
    color: var(--rwz-booker-primary) !important;
    transform: scale(1.1);
}

.rwz-booker-mobility-card input[type="radio"]:checked + label .rwz-booker-mobility-icon img {
    transform: scale(1.1);
}

/* Name */
.rwz-booker-mobility-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    transition: color 0.3s ease;
    width: 100%;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rwz-booker-mobility-card input[type="radio"]:checked + label .rwz-booker-mobility-name {
    color: var(--rwz-booker-primary);
    font-weight: 600;
}

/* Checkmark indicator when selected */
.rwz-booker-mobility-card input[type="radio"]:checked + label::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--rwz-booker-success);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
    animation: checkmark-pop 0.3s ease;
}

@keyframes checkmark-pop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive - tablet (iPad, Android tablet) */
@media (max-width: 1024px) {
    #mobility-options-list {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 14px;
    }
    
    .rwz-booker-mobility-card label {
        height: 200px;
        min-height: 200px;
        padding: 20px 12px;
    }
    
    .rwz-booker-mobility-icon {
        width: 70px;
        height: 70px;
        font-size: 42px;
        margin-bottom: 12px;
    }
    
    .rwz-booker-mobility-icon i {
        font-size: 42px;
    }
    
    .rwz-booker-mobility-icon i[class^="rwz-icon-"]::before,
    .rwz-booker-mobility-icon i[class*=" rwz-icon-"]::before {
        font-size: 42px;
    }
    
    .rwz-booker-mobility-name {
        font-size: 14px;
    }
}

/* Phone landscape / small tablet */
@media (max-width: 768px) {
    #mobility-options-list {
        grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
        gap: 12px;
    }
    
    .rwz-booker-mobility-card label {
        height: 190px;
        min-height: 190px;
        padding: 18px 10px;
    }
    
    .rwz-booker-mobility-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .rwz-booker-mobility-icon i {
        font-size: 36px;
    }
    
    .rwz-booker-mobility-icon i[class^="rwz-icon-"]::before,
    .rwz-booker-mobility-icon i[class*=" rwz-icon-"]::before {
        font-size: 36px;
    }
    
    .rwz-booker-mobility-name {
        font-size: 14px;
    }
}

/* Phone portrait (iPhone, Android) */
@media (max-width: 480px) {
    #mobility-options-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .rwz-booker-mobility-card label {
        height: 175px;
        min-height: 175px;
        padding: 14px 8px;
    }
    
    .rwz-booker-mobility-icon {
        width: 52px;
        height: 52px;
        font-size: 34px;
        margin-bottom: 8px;
    }
    
    .rwz-booker-mobility-icon i {
        font-size: 34px;
    }
    
    .rwz-booker-mobility-icon i[class^="rwz-icon-"]::before,
    .rwz-booker-mobility-icon i[class*=" rwz-icon-"]::before {
        font-size: 34px;
    }
    
    .rwz-booker-mobility-name {
        font-size: 13px;
    }
    
    .rwz-booker-mobility-card input[type="radio"]:checked + label::after {
        width: 22px;
        height: 22px;
        font-size: 14px;
        top: 8px;
        right: 8px;
    }
}

/* Small phones (narrow viewports) */
@media (max-width: 360px) {
    #mobility-options-list {
        gap: 8px;
    }
    
    .rwz-booker-mobility-card label {
        height: 165px;
        min-height: 165px;
        padding: 12px 6px;
    }
    
    .rwz-booker-mobility-icon {
        width: 44px;
        height: 44px;
        font-size: 28px;
        margin-bottom: 6px;
    }
    
    .rwz-booker-mobility-icon i {
        font-size: 28px;
    }
    
    .rwz-booker-mobility-icon i[class^="rwz-icon-"]::before,
    .rwz-booker-mobility-icon i[class*=" rwz-icon-"]::before {
        font-size: 28px;
    }
    
    .rwz-booker-mobility-name {
        font-size: 12px;
    }
    
    .rwz-booker-mobility-card input[type="radio"]:checked + label::after {
        width: 20px;
        height: 20px;
        font-size: 12px;
        top: 6px;
        right: 6px;
    }
}

/* Time Confirmation Checkbox (v1.24.09) */
.rwz-time-confirmation {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 12px;
    animation: rwz-slide-in 0.2s ease-out;
}

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

.rwz-time-confirmation label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    margin: 0;
    font-weight: normal;
}

.rwz-time-confirmation input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #007bff;
    flex-shrink: 0;
}

.rwz-time-confirmation span {
    line-height: 1.4;
}

/* Multi-Date Bookings (v1.25.0) */
.multi-date-booking-entry {
    background: var(--rwz-booker-bg);
    border: 1px solid var(--rwz-booker-border);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.multi-date-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
}

.multi-date-booking-label {
    font-weight: 600;
    color: var(--rwz-booker-text);
    font-size: 15px;
}

.multi-date-remove-btn {
    background: none;
    border: none;
    color: var(--rwz-booker-danger);
    cursor: pointer;
    font-size: 22px;
    padding: 2px 8px;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.2s;
}

.multi-date-remove-btn:hover {
    background: rgba(244, 67, 54, 0.1);
}

.multi-date-section {
    margin-bottom: 15px;
}

.multi-date-section-divider {
    height: 1px;
    background: var(--rwz-booker-border);
    margin: 15px 0;
}

/* Collapsed entry state */
.multi-date-entry-collapsed {
    padding: 10px 15px;
    cursor: pointer;
}

.multi-date-entry-collapsed:hover {
    background: #f0f0f0;
}

.multi-date-entry-collapsed .multi-date-booking-header {
    margin-bottom: 0;
}

.multi-date-entry-summary {
    font-size: 13px;
    color: #666;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.multi-date-booking-entry:not(.multi-date-entry-collapsed) .multi-date-entry-summary {
    display: none;
}

/* Per-date return options */
.multi-date-return-options {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.multi-date-return-option {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.multi-date-return-option input[type="radio"] {
    margin-right: 6px;
}

.help-text {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* ============================================================
   TOAST NOTIFICATION SYSTEM
   ============================================================ */

.rwz-booker-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.rwz-booker-toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.rwz-booker-toast-visible {
    transform: translateX(0);
    opacity: 1;
}

.rwz-booker-toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.rwz-booker-toast-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: white;
}

.rwz-booker-toast-message {
    flex: 1;
    line-height: 1.4;
}

.rwz-booker-toast-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 0 0 12px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.rwz-booker-toast-close:hover {
    opacity: 1;
}

.rwz-booker-toast-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.rwz-booker-toast-success .rwz-booker-toast-icon {
    background: #28a745;
}

.rwz-booker-toast-success .rwz-booker-toast-close {
    color: #155724;
}

.rwz-booker-toast-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.rwz-booker-toast-error .rwz-booker-toast-icon {
    background: #dc3545;
}

.rwz-booker-toast-error .rwz-booker-toast-close {
    color: #721c24;
}

.rwz-booker-toast-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.rwz-booker-toast-warning .rwz-booker-toast-icon {
    background: #e0a800;
}

.rwz-booker-toast-warning .rwz-booker-toast-close {
    color: #856404;
}

.rwz-booker-toast-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.rwz-booker-toast-info .rwz-booker-toast-icon {
    background: #17a2b8;
}

.rwz-booker-toast-info .rwz-booker-toast-close {
    color: #0c5460;
}

@media (max-width: 480px) {
    .rwz-booker-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ============================================================
   STYLED CONFIRMATION DIALOG
   ============================================================ */

.rwz-booker-confirm-content {
    max-width: 420px;
    text-align: center;
    padding: 30px;
}

.rwz-booker-confirm-content h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
}

.rwz-booker-confirm-content p {
    margin: 0 0 25px 0;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

.rwz-booker-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.rwz-booker-confirm-actions .rwz-booker-btn {
    min-width: 100px;
}

/* ============================================================
   MOBILE TABLE REFLOW (card layout below 768px)
   ============================================================ */

@media (max-width: 768px) {
    .rwz-booker-responsive-table thead {
        display: none;
    }

    .rwz-booker-responsive-table tbody,
    .rwz-booker-responsive-table tr {
        display: block;
    }

    .rwz-booker-responsive-table tr {
        background: white;
        border: 1px solid var(--rwz-booker-border);
        border-radius: 8px;
        padding: 14px;
        margin-bottom: 12px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    }

    .rwz-booker-responsive-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 6px 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;
        text-align: right;
    }

    .rwz-booker-responsive-table td:last-child {
        border-bottom: none;
    }

    .rwz-booker-responsive-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
        text-align: left;
        flex-shrink: 0;
        margin-right: 12px;
        font-size: 13px;
    }
}

/* ============================================================
   ACCOUNT BAR CONTRAST FIX (WCAG AA)
   ============================================================ */

.rwz-booker-account-bar-dashboard.rwz-booker-account-bar.logged-in .rwz-booker-account-bar-inner {
    background: linear-gradient(135deg, #4a3f8a 0%, #5c3d8f 100%);
}

/* Clickable table rows */
.rwz-booker-historical-table tbody tr[style*="cursor: pointer"]:hover {
    background: #f0f7ff;
}


/* === Saved places chip strip (v1.26.0.b9) ===
   Horizontal scroll row above the booking form's "Where" section when the
   rider is signed in. Matches the iOS app's chip strip so the two surfaces
   feel like the same product. */
.rwz-saved-places-strip {
    margin-bottom: 18px;
}

.rwz-saved-places-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    padding: 0 2px;
}

.rwz-saved-places-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #7a7a7a;
}

.rwz-saved-places-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.rwz-saved-places-chips::-webkit-scrollbar {
    display: none; /* Chromium / Safari */
}

.rwz-saved-place-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    min-height: 40px;
    border: 1px solid rgba(76, 175, 80, 0.35);
    background: rgba(76, 175, 80, 0.10);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.rwz-saved-place-chip:hover,
.rwz-saved-place-chip:focus {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    outline: none;
}

.rwz-saved-place-chip-icon {
    display: inline-flex;
    width: 20px;
    justify-content: center;
    font-size: 15px;
}

.rwz-saved-place-chip-label {
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === Saved places dashboard tab (v1.26.0.b9) ===
   Card-style list with edit/delete per row and an inline add/edit form
   above the list — mirrors the BriteLift iOS Saved Places screen so the
   two surfaces feel like the same product. */
.rwz-booker-dashboard-help {
    margin: 0 0 14px;
    font-size: 13px;
    color: #6a6a6a;
    line-height: 1.5;
}

.rwz-booker-saved-places-toolbar {
    margin-bottom: 14px;
}

.rwz-booker-saved-places-form {
    border: 1px solid rgba(76, 175, 80, 0.3);
    background: rgba(76, 175, 80, 0.05);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.rwz-booker-saved-places-form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.rwz-booker-saved-places-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rwz-booker-saved-place-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 10px;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.rwz-booker-saved-place-row:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.rwz-booker-saved-place-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.rwz-booker-saved-place-body {
    flex: 1 1 auto;
    min-width: 0;
}

.rwz-booker-saved-place-label {
    font-size: 15px;
    font-weight: 600;
    color: #2e3135;
    margin-bottom: 2px;
}

.rwz-booker-saved-place-address {
    font-size: 13px;
    color: #6a6a6a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rwz-booker-saved-place-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
}

.rwz-booker-btn-link-danger {
    background: transparent;
    color: #dc3545;
    border: none;
    padding: 6px 10px;
    font-weight: 600;
    cursor: pointer;
}

.rwz-booker-btn-link-danger:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .rwz-booker-saved-place-row {
        flex-wrap: wrap;
    }
    .rwz-booker-saved-place-body {
        flex-basis: calc(100% - 58px);
    }
    .rwz-booker-saved-place-actions {
        flex-basis: 100%;
        justify-content: flex-end;
        margin-top: 4px;
    }
}

/* === In-field saved-places dropdown (v1.26.0.b9) ===
   Appears under the pickup/dropoff input when it's focused and empty,
   hidden once the rider types (Google's own .pac-container takes over).
   Relative-positioning stays in the DOM flow inside the form-group so
   nothing overlaps the nearby labels / hints. */
.rwz-booker-form-group {
    position: relative;
}

.rwz-saved-places-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    margin-top: 2px;
    background: #fff;
    border: 1px solid #d7dbe0;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    max-height: 240px;
    overflow-y: auto;
    z-index: 25; /* Above the form but below Google's .pac-container (~1050). */
}

.rwz-saved-places-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    min-height: 52px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #eceff2;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: #2e3135;
}

.rwz-saved-places-dropdown-item:last-child {
    border-bottom: none;
}

.rwz-saved-places-dropdown-item:hover,
.rwz-saved-places-dropdown-item:focus {
    background: rgba(76, 175, 80, 0.08);
    outline: none;
}

.rwz-saved-places-dropdown-icon {
    flex: 0 0 28px;
    width: 28px;
    text-align: center;
    font-size: 18px;
}

.rwz-saved-places-dropdown-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.rwz-saved-places-dropdown-label {
    font-size: 14px;
    font-weight: 600;
    color: #2e3135;
}

.rwz-saved-places-dropdown-address {
    font-size: 12px;
    color: #6a6a6a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================================================
   Merged from custom-datetime.css (previously a separate enqueue).
   Uses .rwz-dp-* selectors; no overlap with the rules above.
   ======================================================================== */
/**
 * Custom DateTime Picker Styles
 * Matches Abraham's design with rounded cards, pill buttons, and purple accents
 */

/* Date Display Button */
.rwz-dp-display {
    width: 100%;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    color: #666;
}

.rwz-dp-display.has-value {
    color: #000;
    font-weight: 500;
}

.rwz-dp-display:hover {
    border-color: #8b5cf6;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

.rwz-dp-display::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #666;
}

/* Calendar Modal */
.rwz-dp-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 24px;
    z-index: 10000;
    max-width: 380px;
    width: 90%;
}

.rwz-dp-modal[hidden] {
    display: none;
}

.rwz-dp-modal-visible {
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Calendar Container */
.rwz-calendar {
    width: 100%;
}

/* Calendar Header */
.rwz-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.rwz-calendar-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.rwz-cal-nav {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.rwz-cal-nav:hover {
    background: #f5f5f5;
    color: #8b5cf6;
}

/* Weekday Headers */
.rwz-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.rwz-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    padding: 8px 0;
}

/* Calendar Days Grid */
.rwz-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.rwz-day {
    aspect-ratio: 1;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    color: #1a1a1a;
    transition: all 0.15s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.rwz-day:not(.rwz-day-disabled):not(.rwz-day-empty):hover {
    background: #f3f0ff;
    border-color: #8b5cf6;
}

.rwz-day-selected {
    background: #f3f0ff;
    border-color: #8b5cf6;
    font-weight: 600;
    color: #8b5cf6;
}

.rwz-day-today .rwz-day-number {
    position: relative;
}

.rwz-day-today .rwz-day-number::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #8b5cf6;
    border-radius: 50%;
}

.rwz-day-disabled {
    color: #ccc;
    cursor: not-allowed;
}

.rwz-day-empty {
    visibility: hidden;
}

/* Time Picker */
.rwz-time-picker {
    margin-top: 16px;
}

.rwz-time-input-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rwz-time-input-group {
    flex: 1;
}

.rwz-time-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.rwz-time-inputs {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    padding: 12px 16px;
    gap: 8px;
}

/* Single time input field */
.rwz-time-input-single {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
    background: #fff;
}

.rwz-time-input-single:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.rwz-time-input-single::placeholder {
    color: #999;
    font-weight: 400;
}

/* Old dual inputs (kept for compatibility) */
.rwz-time-input {
    width: 50px;
    border: none;
    background: transparent;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    color: #1a1a1a;
    outline: none;
}

.rwz-time-input::placeholder {
    color: #ccc;
}

.rwz-time-separator {
    font-size: 20px;
    font-weight: 500;
    color: #666;
}

/* AM/PM Toggle */
.rwz-ampm-toggle {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 28px;
}

.rwz-ampm-btn {
    padding: 12px 24px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
}

.rwz-ampm-btn:hover {
    background: #ebebeb;
}

.rwz-ampm-btn.active {
    background: #ffffff;
    border-color: #8b5cf6;
    color: #8b5cf6;
}

/* Timezone Note */
.tz-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    margin-top: 12px;
}

.tz-note::before {
    content: 'ℹ️';
    font-size: 16px;
}

/* DateTime Field Container */
.rwz-datetime-field {
    margin-bottom: 24px;
}

.rwz-datetime-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .rwz-dp-modal {
        width: 95%;
        max-width: none;
        padding: 20px;
        top: 20px;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .rwz-dp-modal-visible {
        animation: modalSlideIn 0.3s ease;
    }
    
    @keyframes modalSlideIn {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }
    
    .rwz-time-input-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .rwz-ampm-toggle {
        flex-direction: row;
        margin-top: 0;
    }
    
    .rwz-ampm-btn {
        flex: 1;
    }
}

/* Focus States */
.rwz-time-input:focus {
    outline: none;
}

.rwz-time-inputs:focus-within {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Dark overlay when modal is open (optional) */
.rwz-dp-modal-visible::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
    animation: fadeIn 0.2s ease;
}

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

/* ========================================================================
   Merged from custom-icons.css (previously a separate enqueue).
   Fallback styling for #rwz-booker-addon-wrapper .rwz-icon-* classes.
   User-added icon CSS still comes in via wp_add_inline_style on the
   rwz_booker-styles handle from the rwz_booker_custom_icons_css option.
   ======================================================================== */
/**
 * RWZ Booker - Custom Icons Stylesheet
 * Add your custom icon classes here
 * 
 * HOW TO ADD A CUSTOM ICON:
 * 1. Use the SVG sanitizer tool to clean your SVG
 * 2. Use the SVG to Font converter tool to generate the CSS
 * 3. Paste the generated CSS below
 * 4. Use the class name (e.g., "rwz-icon-ramp") in your add-on settings
 */

/* Example: Custom Ramp Icon */
/* 
.rwz-icon-ramp::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask-image: url('data:image/svg+xml,...');
    mask-image: url('data:image/svg+xml,...');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

#rwz-booker-addon-wrapper .rwz-booker-addon-icon .rwz-icon-ramp::before {
    font-size: 56px;
    color: #888;
    transition: all 0.3s ease;
}

#rwz-booker-addon-wrapper .rwz-booker-addon-card input[type="checkbox"]:checked + label .rwz-booker-addon-icon .rwz-icon-ramp::before {
    color: var(--rwz-booker-primary);
    transform: scale(1.1);
}
*/

/* Add your custom icons below this line */

/* Generic fallback styling for any rwz-icon-* classes that haven't been generated yet */
#rwz-booker-addon-wrapper .rwz-booker-addon-icon [class^="rwz-icon-"]:not([style*="mask-image"]),
#rwz-booker-addon-wrapper .rwz-booker-addon-icon [class*=" rwz-icon-"]:not([style*="mask-image"]) {
    display: inline-block;
    width: 56px;
    height: 56px;
    background-color: transparent;
    transition: all 0.3s ease;
}

/* Turn green when addon is selected - fallback */
#rwz-booker-addon-wrapper .rwz-booker-addon-card input[type="checkbox"]:checked + label .rwz-booker-addon-icon [class^="rwz-icon-"]:not([style*="mask-image"]),
#rwz-booker-addon-wrapper .rwz-booker-addon-card input[type="checkbox"]:checked + label .rwz-booker-addon-icon [class*=" rwz-icon-"]:not([style*="mask-image"]) {
    transform: scale(1.1);
}


/* Booked-for-other badge (1.27.5): shown under the rider name on rides
   the signed-in user placed for someone else (different contact phone). */
.rwz-booker-booked-for-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: #ede7f6;
    color: #4527a0;
    white-space: nowrap;
}
