/* MyFoodApp - Checkout & Payment Consolidated Styles */
/* Consolidated: checkout.css + checkout-modals.css */
/* Created: Asset Consolidation Phase */

/* ===================================
   CHECKOUT PAGE LAYOUT
   =================================== */

/* Main container */
.checkout-container {
    padding: 2rem 0;
}

/* Order Summary Styles */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

/* Weekly Menu Badge for checkout */
.weekly-menu-badge {
    background: #007bff;
    color: white;
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    display: inline-block;
}

.cart-subtotal, .cart-delivery-fee, .cart-total {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.cart-subtotal {
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.cart-delivery-fee {
    color: #666;
}

.cart-total {
    border-top: 2px solid #333;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 5px;
}

/* Address selection fixes */
#selected_address_id {
    pointer-events: auto !important;
    cursor: pointer !important;
}

#selected_address_id:not([disabled]) {
    opacity: 1 !important;
    background-color: white !important;
}

.use-new-address-option, #use-new-address-option {
    pointer-events: auto !important;
    cursor: pointer !important;
    user-select: none;
}

.new-address-form:not(.hidden) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Utility: hidden (to replace inline style display:none) */
.hidden {
    display: none !important;
}

/* Spacing for address label section (replaces inline margin-top) */
#address-label-section {
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

#address-label-section.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

#address-label-section:not(.hidden) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#address-label-section input {
    margin-top: 0.25rem;
}

/* Save address checkbox styling */
.save-address-checkbox {
    margin-top: 1rem;
}

.save-address-checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Combo Display Styling */
.combo-line-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    position: relative;
}

.combo-line-item .combo-header {
    font-weight: bold;
    color: #28a745;
    font-size: 16px;
    margin-bottom: 8px;
}

.combo-line-item .combo-price {
    font-weight: bold;
    font-size: 18px;
    color: #28a745;
}

.combo-line-item .combo-price .regular-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 14px;
    margin-left: 8px;
}

.combo-line-item .combo-applied-message {
    color: #17a2b8;
    font-style: italic;
    margin: 8px 0;
}

.combo-breakdown-items {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

.combo-breakdown-items .breakdown-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #495057;
}

.combo-breakdown-items .breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    color: #6c757d;
}

.combo-breakdown-items .breakdown-total {
    font-weight: bold;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #dee2e6;
    color: #28a745;
}

/* Cart item modifications for combo items */
.cart-item.combo-item {
    opacity: 0.7;
}

.cart-item.combo-item .item-price {
    text-decoration: line-through;
    color: #6c757d;
}

.cart-item.combo-item .combo-price {
    color: #28a745;
    font-weight: bold;
    margin-left: 8px;
}

/* Enhanced combo line item styling */
.combo-line-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.1);
    position: relative;
}

.combo-line-item::before {
    content: "🍽️ COMBO";
    position: absolute;
    top: -10px;
    left: 15px;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.combo-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 8px;
    line-height: 1.4;
}

.combo-price-display {
    color: #28a745 !important;
    font-weight: bold !important;
    font-size: 18px !important;
    margin: 0 8px;
}

.combo-regular-price {
    color: #6c757d;
    font-size: 14px;
    margin-left: 8px;
}

.combo-regular-price .strikethrough {
    text-decoration: line-through;
    opacity: 0.7;
}

.combo-savings-badge {
    display: inline-block;
    background: #17a2b8;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.combo-item-price {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
    text-align: right;
}

/* Combo breakdown items styling */
.combo-breakdown-item {
    background: #f8f9fa;
    border-left: 3px solid #28a745;
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 0 8px 8px 0;
    opacity: 0.9;
}

.breakdown-item-name {
    font-size: 14px;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.combo-item-badge {
    background: #ffc107;
    color: #212529;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 8px;
}

.breakdown-item-price {
    font-size: 14px;
    color: #28a745;
    font-weight: 600;
}

/* Success message */

/* Main layout grid */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* User info note */
.user-info-note {
    color: #28a745;
    margin-bottom: 1rem;
}

.user-info-note a {
    color: #28a745;
}

/* Form row with two columns */
.checkout-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Delivery method selection */
.delivery-method-selection {
    display: flex;
    gap: 0.5rem;
}

/* Terms and order section */
.terms-order-section {
    margin-top: 2rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 5px;
}

/* Terms agreement label */
.terms-agreement-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Submit button */
.checkout-submit-btn {
    width: 100%;
    margin-top: 1rem;
}

/* ===================================
   MOBILE RESPONSIVE IMPROVEMENTS
   =================================== */

/* Mobile-friendly form inputs */
@media (max-width: 768px) {
    .checkout-container {
        padding: 1rem 0;
    }
    
    /* Stack grid layout on mobile */
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Stack form row items on mobile */
    .checkout-form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Mobile-friendly form inputs */
    .form-control {
        font-size: 16px !important; /* Prevent zoom on iOS */
        padding: 12px 16px !important;
        min-height: 44px !important; /* Better touch target */
        border-radius: 8px !important;
    }
    
    /* Mobile-friendly textareas */
    .form-control[rows] {
        min-height: 100px !important;
        resize: vertical;
    }
    
    /* Mobile-friendly select dropdowns */
    select.form-control {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 12px center;
        background-repeat: no-repeat;
        background-size: 16px 12px;
        padding-right: 40px !important;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    /* Mobile-friendly buttons */
    .btn {
        font-size: 16px !important;
        padding: 12px 20px !important;
        min-height: 44px !important;
        border-radius: 8px !important;
    }
    
    /* Better spacing for form groups */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    /* Delivery method buttons stack on mobile */
    .delivery-method-selection {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .delivery-method-selection .btn {
        width: 100%;
    }
    
    /* Terms section mobile adjustments */
    .terms-order-section {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    /* Better checkbox/radio touch targets */
    input[type="checkbox"], 
    input[type="radio"] {
        width: 18px !important;
        height: 18px !important;
        margin-right: 8px;
    }
    
    /* Improve label spacing for mobile */
    .terms-agreement-label {
        gap: 0.75rem;
        line-height: 1.4;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .checkout-container {
        padding: 0.5rem 0;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .checkout-submit-btn {
        padding: 14px 20px !important;
        font-size: 18px !important;
        font-weight: 600;
    }
}

/* Order item styling */

/* Order Summary Modal Styles */

/* ===================================
   CHECKOUT PROCESSING MODAL
   =================================== */

@keyframes slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===================================
   CHECKOUT SUCCESS MODAL
   =================================== */

/* ===================================
   CHECKOUT NOTIFICATIONS
   =================================== */

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

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checkout-form-row {
        grid-template-columns: 1fr;
    }
    
    .delivery-method-selection {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ===================================
   FORM VALIDATION STYLES
   =================================== */

/* Valid input styling */
.form-control.valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.1rem rgba(40, 167, 69, 0.25);
}

/* Invalid input styling */
.form-control.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.1rem rgba(220, 53, 69, 0.25);
}

/* Field error messages */
.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Phone number formatting helper */
.form-control[type="tel"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25);
}

/* Loading state for time slots dropdown */
.form-control:disabled {
    background-color: #e9ecef;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Calendar Styles - Chrome Compatible with Full Field Clickable */
input[type="date"] {
    position: relative;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 45px 12px 12px; /* Extra right padding for calendar icon */
    font-size: 1rem;
    width: 100%;
    /* Add calendar icon as background to make entire field clickable */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    background-size: 18px 18px;
}

/* Make the webkit calendar indicator cover the entire input */
input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0; /* Hide the default icon since we use background image */
    background: transparent;
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
}

/* Style for disabled dates */
input[type="date"]:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Override browser's default disabled date behavior */
input[type="date"]::-webkit-datetime-edit {
    color: inherit;
    padding: 0;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

input[type="date"]::-webkit-datetime-edit-text {
    color: #6c757d;
    padding: 0 0.3em;
}

input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    padding: 0 0.1em;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-clear-button {
    display: none;
    -webkit-appearance: none;
}

/* Focus state - Enhanced for better UX */
input[type="date"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-color: #fafbff;
}

/* Hover state for better visual feedback */
input[type="date"]:hover {
    border-color: #667eea;
    background-color: #fafbff;
}

/* Active state when calendar is open */
input[type="date"]:active {
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.15);
}

/* Ensure date constraints work properly */
input[type="date"][min],
input[type="date"][max] {
    position: relative;
}

/* Style for the date input when it has a value */

input[type="date"]:valid {
    color: #495057;
}

/* Chrome-specific fix for date picker dropdown */
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* ===================================
   CHECKOUT FORM SPECIFIC OVERRIDES
   =================================== */

/* Ensure form controls inherit proper styling in checkout */
#checkout-form .form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

#checkout-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Specific styling for date and select inputs in checkout */
#checkout-form input[type="date"],
#checkout-form select {
    height: auto;
    min-height: 48px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Select dropdown arrow */
#checkout-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

#checkout-form select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23667eea' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
}

/* Disabled state for select */
#checkout-form select:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Loading state indicator */
#checkout-form select.loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 38 38' stroke='%23666'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg transform='translate(1 1)' stroke-width='2'%3E%3Ccircle stroke-opacity='.5' cx='18' cy='18' r='18'/%3E%3Cpath d='M36 18c0-9.94-8.06-18-18-18'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 18 18' to='360 18 18' dur='1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

/* ===================================
   WEEKLY MENU STYLES (Phase 3)
   =================================== */

/* Weekly Menu Status in Order Summary */
.weekly-menu-status {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.1);
}

.weekly-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.weekly-menu-header h4 {
    margin: 0;
    color: #28a745;
    font-size: 1.1rem;
    font-weight: 600;
}

.rights-count {
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.weekly-menu-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.weekly-menu-info small {
    color: #6c757d;
    font-size: 0.8rem;
}

.expiry-info {
    color: #dc3545 !important;
    font-weight: 500;
}

/* Combo Savings Display */
.combo-savings {
    border-top: 1px dashed #28a745;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.savings-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #28a745;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.savings-amount {
    font-size: 1.1rem;
}

/* Weekly Menu Items in Cart Display */
.cart-item.weekly-menu-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
    border-left: 4px solid #28a745;
    position: relative;
}

.cart-item.weekly-menu-item::before {
    content: "🍽️";
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.2rem;
}

.weekly-menu-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

/* Combo eligible items */
.cart-item.combo-eligible {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
}

.combo-eligible-badge {
    display: inline-block;
    background: #ffc107;
    color: #856404;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

/* Combo applied items */
.cart-item.combo-applied {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left: 4px solid #17a2b8;
}

.combo-applied-badge {
    display: inline-block;
    background: #17a2b8;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .weekly-menu-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .rights-count {
        align-self: flex-end;
    }
    
    .savings-line {
        font-size: 0.9rem;
    }
    
    .weekly-menu-status {
        padding: 0.75rem;
    }
}

/* Animation for showing/hiding combo savings */
.combo-savings {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.combo-savings.show {
    opacity: 1;
    max-height: 100px;
}

/* ===================================
   ORDER SUMMARY TOTALS
   =================================== */

/* Cart Subtotal Display */
#order-summary .cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-top: 2px solid #e9ecef;
    margin-top: 1rem;
    font-size: 1rem;
}

#order-summary .cart-subtotal > div {
    display: flex;
    align-items: center;
}

#order-summary .cart-subtotal strong {
    color: #495057;
}

/* Cart Total Display */
#order-summary .cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 3px solid #28a745;
    margin-top: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: #28a745;
}

#order-summary .cart-total > div {
    display: flex;
    align-items: center;
}

#order-summary .cart-total strong {
    color: #28a745;
}

/* Cart Items Container */
#order-summary .cart-items {
    margin-bottom: 0.5rem;
}

#order-summary .cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

#order-summary .cart-item:last-of-type {
    border-bottom: none;
}

/* Delivery Fee and Package Items */
#order-summary .cart-item.delivery-fee,
#order-summary .cart-item.weekly-menu-package {
    font-style: italic;
    color: #6c757d;
}

/* Mobile responsive adjustments for order summary */
@media (max-width: 768px) {
    #order-summary .cart-subtotal,
    #order-summary .cart-total {
        font-size: 0.95rem;
    }
    
    #order-summary .cart-total {
        font-size: 1.1rem;
    }
}

/* ===================================
   COMBO BREAKDOWN DISPLAY
   =================================== */

/* Combo breakdown container */
#combo-breakdown {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border: 2px solid #17a2b8;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#combo-breakdown.hidden {
    display: none;
}

/* Combo breakdown header */
.combo-breakdown-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: #17a2b8;
    margin-bottom: 0.5rem;
}

/* Combo price display */
.combo-breakdown-price {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.combo-breakdown-price strong {
    color: #28a745;
    font-size: 1.2rem;
}

/* Rights message */
.combo-breakdown-rights {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-style: italic;
}

/* Applied title */
.combo-breakdown-applied-title {
    font-weight: 600;
    color: #495057;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

/* Combo items list */
.combo-breakdown-items {
    padding-left: 1rem;
    color: #495057;
    line-height: 1.6;
}

/* Total line */
.combo-breakdown-total {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px dashed #17a2b8;
    font-weight: 600;
    color: #17a2b8;
    font-size: 1.05rem;
}

/* Horizontal rules in combo breakdown */
#combo-breakdown hr {
    border: none;
    border-top: 1px solid #dee2e6;
    margin: 0.75rem 0;
}

/* Original price strikethrough */
.original-price {
    text-decoration: line-through;
    color: #dc3545;
    opacity: 0.7;
    margin-right: 0.5rem;
}

/* Combo price highlight */
.combo-price {
    color: #28a745;
    font-weight: 600;
}

/* Mobile Date Picker Fixes */
.mobile-date-input {
    position: relative;
}

/* Mobile date guidance styling */
.mobile-date-guidance {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 5px;
    font-size: 0.875rem;
    color: #1976d2;
}

.mobile-date-guidance strong {
    color: #0d47a1;
}

/* Mobile date error styling */
.mobile-date-error {
    animation: mobile-error-slide-in 0.3s ease-out;
    border-radius: 4px;
    font-size: 0.875rem;
    padding: 8px 12px;
    margin-top: 8px;
}

@keyframes mobile-error-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced invalid state for mobile */
.mobile-date-input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    animation: mobile-input-shake 0.5s ease-in-out;
}

@keyframes mobile-input-shake {
    0%, 20%, 40%, 60%, 80%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
}

/* Mobile-specific date input enhancements */
@media screen and (max-width: 768px) {
    /* Make date input more touch-friendly */
    .mobile-date-input {
        min-height: 44px; /* iOS minimum touch target */
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 16px;
    }
    
    /* Enhanced visual feedback for mobile */
    .mobile-date-input:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
        transform: scale(1.02);
        transition: all 0.2s ease;
    }
    
    /* Better spacing for mobile */
    .mobile-date-guidance,
    .mobile-date-error {
        margin-left: -4px;
        margin-right: -4px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .mobile-date-error,
    .mobile-date-input.is-invalid {
        animation: none;
    }
    
    .mobile-date-input:focus {
        transform: none;
        transition: none;
    }
}