/* =============================================================================
   ROTATING MEALS SUBSCRIPTION CHECKOUT - MINIMOG THEME INTEGRATION
   ============================================================================= */

/* CSS Reset & Base Styles */
.rmm-checkout-container {
    width: 90%;
    max-width: 1200px;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #000000;
    line-height: 1.6;
    padding: 20px;
    margin: auto;
}

/* Disabled button state for package selection */
#continue-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #cccccc !important;
    border-color: #cccccc !important;
}

#continue-btn:disabled:hover {
    background-color: #cccccc !important;
    transform: none !important;
}

.rmm-checkout-container * {
    box-sizing: border-box;
}

/* Checkout Header */
.rmm-checkout-header {
    margin-bottom: 30px;
}

.rmm-checkout-content {
    margin-top: 20px;
  
}

/* =============================================================================
   PROGRESS BAR - MATCHING SCREENSHOTS
   ============================================================================= */

/* .rmm-progress-bar {
    margin-bottom: 60px;
    padding: 0 20px;
    position: relative;
} */

/* .rmm-progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
} */

/* .rmm-progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #e5e5e5;
    z-index: 1;
} */

/* .rmm-progress-line {
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #e5e5e5;
    z-index: 1;
} */

/* .rmm-progress-fill {
    height: 100%;
    background: #000000;
    transition: width 0.3s ease;
}

.rmm-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    min-width: 120px;
}

.rmm-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e5e5;
    color: #999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.rmm-step.active .rmm-step-number {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.rmm-step.completed .rmm-step-number {
    background: #28a745;
    color: #ffffff;
    border-color: #28a745;
}

.rmm-step.completed .rmm-step-number::before {
    content: '✓';
    font-size: 14px;
}

.rmm-step-label {
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    margin: 0;
}

.rmm-step.active .rmm-step-label {
    color: #000000;
    font-weight: 600;
}

.rmm-step.completed .rmm-step-label {
    color: #28a745;
} */

/* =============================================================================
   STEP CONTENT CONTAINERS
   ============================================================================= */

.rmm-step-content {
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #E5E7EB;
    background: #ffffff;
    background-origin: padding-box;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #00000033;
    width: 100%;
}

.rmm-step-content h1 {
    font-size: 28px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.rmm-step-description {
    font-size: 16px;
    color: #666666;
    margin: 0 0 40px 0;
    line-height: 1.5;
}

.rmm-step-title {
    font-size: 28px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.rmm-step-subtitle {
    font-size: 14px;
    color: #666666;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

/* Responsive adjustments for the step content containers */
@media (max-width: 992px) {
    .rmm-step-content {
        padding: 20px;
    }

    .rmm-step-content h1,
    .rmm-step-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .rmm-checkout-container {
        width: 95%;
        padding: 15px;
    }

    .rmm-step-content {
        padding: 15px;
        margin-bottom: 20px;
    }

    .rmm-step-content h1,
    .rmm-step-title {
        font-size: 22px;
    }

    .rmm-step-description {
        font-size: 14px;
        margin: 0 0 25px 0;
    }

    .rmm-step-subtitle {
        font-size: 13px;
        margin: 0 0 20px 0;
    }
}

@media (max-width: 480px) {
    .rmm-checkout-container {
        width: 100%;
        padding: 10px;
    }

    .rmm-step-content {
        padding: 15px;
        border-radius: 6px;
    }

    .rmm-step-content h1,
    .rmm-step-title {
        font-size: 20px;
    }
}

/* =============================================================================
   MEAL SELECTION HEADER
   ============================================================================= */

/* Hide old elements */
.rmm-step-header {
    margin-bottom: 20px;
}

.rmm-cutoff-notice {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
}

.rmm-meal-info-header {
    display: none;
}

.rmm-meals-plan-info {
    display: none;
}

.rmm-meals-count {
    display: none;
}

.rmm-meals-remaining {
    display: none;
}

.rmm-selection-toggle {
    display: none;
}

.rmm-toggle-label {
    display: none;
}

.rmm-selection-method {
    display: none;
}

.rmm-plan-progress {
    display: none;
}

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

.rmm-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.rmm-form-field {
    flex: 1 1 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .rmm-form-field.rmm-third {
        flex: 1 1 30%;
        max-width: 30%;
    }
.rmm-form-field.rmm-half {
        flex: 1 1 45%;
        max-width: 45%;
}
}

.rmm-form-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.rmm-form-field input[type="text"],
.rmm-form-field input[type="email"],
.rmm-form-field input[type="tel"],
.rmm-form-field input[type="date"],
.rmm-form-field select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    height: 38px;
    background-color: #fff;
}

.rmm-form-field input:focus,
.rmm-form-field select:focus,
.rmm-form-field textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.rmm-form-field textarea {
    min-height: 100px;
    resize: vertical;
}

/* Style for the state dropdown */
.rmm-form-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 30px;
    cursor: pointer;
}

/* Ensure dropdown opens downward */
.rmm-form-field select option {
    padding: 10px;
}

/* Fix placeholder styling */
.rmm-form-field input::placeholder {
    color: #aaa;
}

/* Form Sections */
.rmm-form-section {
    margin-bottom: 20px;
}

.rmm-form-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
}

.rmm-section-description {
    font-size: 14px;
    color: #666666;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* Checkbox Styles */
.rmm-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.rmm-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rmm-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #000000;
}

.rmm-checkbox-item label {
    font-size: 14px;
    color: #333333;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.rmm-checkbox-item.rmm-terms {
    grid-column: 1 / -1;
    margin-top: 20px;
    padding: 16px;
    background: #f8f8f8;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.rmm-checkbox-item.rmm-terms label {
    font-size: 14px;
    line-height: 1.5;
}

.rmm-checkbox-item.rmm-terms a {
    color: #007bff;
    text-decoration: none;
}

.rmm-checkbox-item.rmm-terms a:hover {
    text-decoration: underline;
}

/* Required Field Indicator */
.required {
    color: #d63638;
    font-weight: 600;
}

/* Selected Plan Display */
.rmm-selected-plan-display {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
}

.rmm-plan-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.rmm-plan-info {
    flex: 1;
    min-width: 200px;
}

.rmm-plan-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 4px;
}

.rmm-plan-price {
    font-size: 16px;
    color: #000000;
    font-weight: 500;
}

@media (max-width: 576px) {
    .rmm-selected-plan-display {
        padding: 16px;
    }
    
    .rmm-plan-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .rmm-plan-name {
        font-size: 16px;
    }
    
    .rmm-plan-price {
        font-size: 14px;
    }
}

.rmm-change-plan-btn {
    padding: 0;
    border: none;
    background: transparent;
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: underline;
}

.rmm-change-plan-btn:hover {
    color: #0056b3;
    text-decoration: underline;
    background: transparent;
    box-shadow: none;
}

/* Form Navigation */
.rmm-form-navigation {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.rmm-btn-large {
    padding: 16px 48px;
    font-size: 16px;
    min-width: 200px;
}

/* =============================================================================
   BUTTONS - MATCHING MINIMOG STYLE
   ============================================================================= */

.rmm-btn {
    padding: 14px 32px;
    border: 2px solid transparent;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 1.4;
    min-width: 140px;
}

.rmm-btn-primary {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

.rmm-btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.rmm-btn-secondary {
    background: transparent;
    color: #000000;
    border-color: #e0e0e0;
}

.rmm-btn-secondary:hover {
    background: #f8f8f8;
    border-color: #000000;
    text-decoration: none;
}

.rmm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.rmm-step-header {
    margin-bottom: 30px;
}

.rmm-step-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.rmm-cutoff-notice {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
}

/* Meal Info Header */
.rmm-meal-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.rmm-meals-plan-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rmm-meals-count {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.rmm-meals-remaining {
    font-size: 14px;
    color: #666;
    padding-left: 15px;
    border-left: 1px solid #ddd;
}

/* Selection Toggle */
.rmm-selection-toggle {
    display: flex;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 3px;
}

.rmm-toggle-label {
    padding: 6px 15px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 18px;
    transition: all 0.2s ease;
}

.rmm-toggle-label.active {
    background: #333;
    color: white;
}

.rmm-toggle-label:not(.active):hover {
    background: #e0e0e0;
}

/* Selection Method Toggle */
.rmm-selection-method {
    display: none; /* Hide the old toggle buttons */
}

.rmm-plan-progress {
    display: none; /* Hide the old plan progress section */
}

/* Button Groups */
.rmm-button-group {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.rmm-button-group .rmm-btn {
    margin: 0;
}

/* =============================================================================
   MEAL SELECTION STEP 2
   ============================================================================= */

/* Selection Counter */
.rmm-selection-counter {
    background: #2c3e50;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rmm-counter-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.rmm-counter-text {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.rmm-counter-numbers {
    font-size: 20px;
    font-weight: 700;
}

.rmm-progress-bar-small {
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.rmm-progress-bar-small .rmm-progress-fill {
    height: 100%;
    background: white;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Meal Filters */
.rmm-meal-filters {
    margin-bottom: 30px;
}

.rmm-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}



.rmm-filter-tab.active {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

/* Search and Sort */
.rmm-search-sort {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
}

.rmm-search-box {
    flex: 1;
    position: relative;
}

.rmm-search-box input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    transition: border-color 0.3s ease;
}

.rmm-search-box input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.rmm-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999999;
    font-size: 16px;
}

.rmm-search-icon::before {
    content: "🔍";
}

.rmm-sort-box {
    min-width: 180px;
}

.rmm-sort-box select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    cursor: pointer;
}

.rmm-sort-box select:focus {
    outline: none;
    border-color: #2c3e50;
}

.rmm-selected-meals-counter {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 16px 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rmm-selected-meals-counter h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
}

.rmm-meal-count {
    font-size: 18px;
    font-weight: 600;
    color: #007cba;
}

/* Filter Tabs */
.rmm-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rmm-filter-tab {
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    background: transparent;
    color: #666666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.rmm-filter-tab:hover {
    border-color: #000000;
}

.rmm-filter-tab.active {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* Search & Sort */
.rmm-search-sort-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
}

.rmm-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.rmm-sort-select {
    min-width: 180px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
}

/* Meal Grid */
.rmm-meals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.rmm-meal-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #2c3e50;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rmm-meal-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.rmm-meal-card.selected {
    border-color: #2c3e50;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.rmm-meal-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: #27ae60;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.rmm-meal-image {
    position: relative;
    overflow: hidden;
}

.rmm-meal-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.rmm-meal-card:hover .rmm-meal-image img {
    transform: scale(1.05);
}

.rmm-meal-calories {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}



.rmm-stars {
    color: #ffc107;
}

.rmm-rating-count {
    color: #666666;
    font-size: 11px;
}

.rmm-meal-content {
    padding: 20px;
}

.rmm-meal-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.rmm-meal-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.rmm-meal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.rmm-tag {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.rmm-meal-category {
    font-size: 12px;
    color: #bdc3c7;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 12px;
}

.rmm-meal-nutrition {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.rmm-nutrition-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: #ffffff;
}

.rmm-meal-description {
    font-size: 14px;
    color: #bdc3c7;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rmm-meal-actions {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.rmm-add-meal-btn {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.rmm-add-meal-btn:hover {
    transform: translateY(-1px);
}

.rmm-add-meal-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.rmm-quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.rmm-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.rmm-qty-btn:hover {
    background: #f0f0f0;
    border-color: #2c3e50;
}

.rmm-qty-display {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    min-width: 20px;
    text-align: center;
}

/* Loading and Error States */
.rmm-loading {
    text-align: center;
    padding: 40px;
    color: #666666;
}

.rmm-no-meals {
    text-align: center;
    color: #666666;
    font-size: 16px;
    padding: 40px;
}

/* Selected Meals Area */
.rmm-selected-meals-area {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.rmm-selected-meals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rmm-selected-meals-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.rmm-selected-meals-remaining {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

.rmm-selected-meals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.rmm-selected-meal-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.rmm-selected-meal-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.rmm-selected-meal-info {
    flex: 1;
}

.rmm-selected-meal-name {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.rmm-selected-meal-details {
    font-size: 12px;
    color: #666666;
}

.rmm-selected-meal-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.rmm-selected-meal-remove:hover {
    background: #ff3838;
}

.rmm-selected-meals-empty {
    text-align: center;
    color: #999999;
    font-style: italic;
    padding: 40px;
}

/* Loading Overlay */
.rmm-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.rmm-loading-spinner {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.rmm-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c3e50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.rmm-loading-spinner p {
    margin: 0;
    color: #666666;
    font-size: 16px;
}

/* Navigation */
.rmm-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.rmm-navigation .rmm-btn {
    min-width: 160px;
}

/* =============================================================================
   STEP 3 - WEEKLY SELECTION
   ============================================================================= */

.rmm-weekly-selection {
    padding: 20px 0;
}

.rmm-package-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    background: #f8f8f8;
    padding: 4px;
    border-radius: 8px;
    align-items: center;
}

.rmm-toggle-option {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666666;
    text-align: center;
}

.rmm-toggle-option.active {
    background: #000000;
    color: #ffffff;
}

.rmm-weeks-container {
    space-y: 30px;
}

.rmm-week-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    background: #ffffff;
}

.rmm-week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.rmm-week-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.rmm-week-dates {
    font-size: 14px;
    color: #666666;
}

.rmm-week-selection-type {
    font-size: 14px;
    color: #007cba;
    font-weight: 500;
}

.rmm-week-description {
    color: #666666;
    font-size: 14px;
    margin-bottom: 16px;
}

.rmm-select-meals-btn {
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rmm-select-meals-btn:hover {
    background: #333333;
}

/* =============================================================================
   STEP 4 - PLAN SELECTION
   ============================================================================= */

   .rmm-plan-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin: 40px 0;
}

.rmm-plan-card {
    flex: 1;
    min-width: 240px;
    max-width: 300px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rmm-plan-card:hover {
    border-color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.rmm-plan-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 20px;
}

.rmm-plan-featured {
    border: 2px solid #000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.rmm-plan-header {
    margin-bottom: 20px;
    text-align: center;
}

.rmm-plan-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.rmm-plan-price {
    display: flex;
    align-items: baseline;
    /* justify-content: center; */
    margin-bottom: 5px;
}

.rmm-price-main {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: #000;
}

.rmm-price-period {
    font-size: 14px;
    color: #666;
    margin-left: 5px;
}

.rmm-price-per-meal {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.rmm-plan-features {
    flex-grow: 1;
    margin-bottom: 20px;
}

.rmm-plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rmm-plan-features ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #333;
}

.rmm-plan-features ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #000;
    font-weight: bold;
}

.rmm-select-plan-btn {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.rmm-select-plan-btn:hover {
    background: #333;
}

.rmm-select-plan-btn.selected {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

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

@media (max-width: 768px) {
    .rmm-checkout-container {
        width: 95%;
        padding: 15px;
    }
    
    /* Progress bar styles removed as no longer needed */
    
    .rmm-checkout-content {
        margin-top: 10px;
    }
    
    .rmm-step-content {
        padding: 20px 15px;
    }
    
    .rmm-step-title {
        font-size: 24px;
    }
    
    .rmm-form-row {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .rmm-form-field {
        margin-bottom: 5px;
    }
    
    .rmm-checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .rmm-plan-summary {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 15px;
    }
    
    .rmm-plan-summary .rmm-change-plan-btn {
        align-self: center;
        margin-top: 10px;
    }
    
    .rmm-form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .rmm-form-navigation .rmm-btn {
        width: 100%;
    }
    
    .rmm-search-sort-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rmm-meals-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .rmm-meal-card {
        border-radius: 8px;
    }
    
    .rmm-filter-tabs {
        gap: 6px;
    }
    
    .rmm-filter-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .rmm-search-sort {
        flex-direction: column;
        gap: 12px;
    }
    
    .rmm-search-box input {
        padding: 10px 14px 10px 36px;
    }
    
    .rmm-sort-box {
        min-width: auto;
    }
    
    .rmm-sort-box select {
        padding: 10px 14px;
    }
    
    .rmm-selection-counter {
        padding: 16px;
    }
    
    .rmm-counter-display {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .rmm-selected-meals-area {
        padding: 16px;
    }
    
    .rmm-selected-meals-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .rmm-selected-meals-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .rmm-navigation {
        flex-direction: column;
        gap: 12px;
    }
    
    .rmm-navigation .rmm-btn {
        width: 100%;
    }
    
    .rmm-plans-grid {
        grid-template-columns: 1fr;
    }
    
    .rmm-button-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .rmm-button-group .rmm-btn {
        width: 100%;
    }
    
    .rmm-package-toggle {
        flex-direction: column;
        gap: 8px;
    }
    /* New mobile styles for the header section */
    .rmm-step-header {
        margin-bottom: 20px;
    }

    .rmm-meal-info-header {
        display: none;
    }

    .rmm-meals-plan-info {
        display: none;
    }

    .rmm-meals-count {
        display: none;
    }

    .rmm-meals-remaining {
        display: none;
    }

    .rmm-selection-toggle {
        display: none;
    }

    .rmm-toggle-label {
        display: none;
    }

    .rmm-selection-method {
        display: none;
    }

    .rmm-plan-progress {
        display: none;
    }
}

/* Form columns for side-by-side sections */
.rmm-form-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.rmm-form-column {
    flex: 1;
    min-width: 300px;
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
    .rmm-form-columns {
        flex-direction: column;
    }
    
    .rmm-form-column {
        width: 100%;
    }
}

/* Date input styling */
.date-input-wrapper {
    position: relative;
    width: 100%;
}

.date-input-wrapper input {
    padding-right: 30px;
}

.date-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3e%3c/rect%3e%3cline x1='16' y1='2' x2='16' y2='6'%3e%3c/line%3e%3cline x1='8' y1='2' x2='8' y2='6'%3e%3c/line%3e%3cline x1='3' y1='10' x2='21' y2='10'%3e%3c/line%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
    z-index: 5;
}

/* Dietary Preferences Row */
.dietary-preferences-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 20px;
}

.dietary-checkbox {
    flex: 0 0 calc(33.33% - 20px);
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.dietary-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
    height: auto;
}

.dietary-checkbox label {
    font-weight: normal;
    margin: 0;
    cursor: pointer;
}

/* Make dietary preferences display in rows of 3 on mobile */
@media (max-width: 767px) {
    .dietary-checkbox {
        flex: 0 0 100%;
    }
}

/* Allergies Row */
.allergies-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.allergy-checkbox {
    flex: 0 0 calc(25% - 10px);
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.allergy-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
    height: auto;
}

.allergy-checkbox label {
    font-weight: normal;
    margin: 0;
    cursor: pointer;
}

/* Other Allergies */
.other-allergies h4 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 8px;
}

.other-allergies textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    font-size: 14px;
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
    .allergy-checkbox {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .allergy-checkbox {
        flex: 0 0 100%;
    }
}

/* Selected Plan */
.rmm-selected-plan {
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    padding: 20px;
    margin: 30px 0;
}

.plan-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.plan-selection {
    display: flex;
    align-items: center;
}

.plan-check {
    margin-right: 15px;
}

.checkmark-circle {
    display: flex;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #1a2b47;
    position: relative;
}

.checkmark-circle:after {
    content: "";
    position: absolute;
    display: block;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 5px;
    left: 9px;
}

.plan-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.plan-price {
    font-size: 14px;
    color: #555;
}

.plan-change-btn {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.plan-change-btn:hover {
    text-decoration: underline;
}

/* Terms and Conditions */
.rmm-terms-section {
    margin: 25px 0;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 10px;
}

.terms-checkbox label {
    font-size: 14px;
    line-height: 1.5;
}

.terms-link {
    color: #333;
    text-decoration: underline;
}

/* Navigation */
.rmm-form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.back-btn {
    padding: 10px 20px;
    background-color: transparent;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.continue-btn {
    padding: 12px 24px;
    background-color: #1a2b47;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
} 

/* Allergy Warning Styles */
.rmm-allergy-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 10px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rmm-allergy-warning i {
    color: #d68910;
    font-size: 14px;
}

.rmm-allergy-warning strong {
    color: #b7950b;
}

/* Preference Match Indicator */
.rmm-preference-match {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 10px;
    color: #155724;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rmm-preference-match i {
    font-size: 10px;
    color: #28a745;
}

/* Excluded Meal Styles */
.rmm-meal-card.rmm-meal-excluded {
    opacity: 0.6;
    border: 1px solid #f5c6cb;
    background: #f8f9fa;
}

.rmm-meal-card.rmm-meal-excluded .rmm-meal-image {
    position: relative;
}

.rmm-meal-card.rmm-meal-excluded .rmm-meal-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
}

.rmm-meal-card.rmm-meal-excluded .rmm-add-meal-btn {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
    cursor: not-allowed;
}

.rmm-meal-card.rmm-meal-excluded .rmm-add-meal-btn:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* Allergy Popup Styles */
.rmm-allergy-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.rmm-allergy-popup-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.rmm-allergy-popup-content h4 {
    color: #dc3545;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rmm-allergy-popup-content h4 i {
    font-size: 20px;
}

.rmm-allergy-popup-content ul {
    background: #fff3cd;
    border-radius: 6px;
    padding: 12px;
    margin: 12px 0;
    border-left: 4px solid #ffc107;
}

.rmm-allergy-popup-content ul li {
    color: #856404;
    font-weight: 500;
    text-transform: capitalize;
}

.rmm-allergy-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.rmm-allergy-actions .rmm-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.rmm-allergy-actions .rmm-btn-secondary {
    background: #6c757d;
    color: white;
}

.rmm-allergy-actions .rmm-btn-secondary:hover {
    background: #5a6268;
}

.rmm-allergy-actions .rmm-btn-primary {
    background: #007bff;
    color: white;
}

.rmm-allergy-actions .rmm-btn-primary:hover {
    background: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rmm-preference-match {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 8px;
        align-self: flex-start;
    }
    
    .rmm-allergy-popup-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .rmm-allergy-actions {
        flex-direction: column;
    }
    
    .rmm-allergy-actions .rmm-btn {
        width: 100%;
    }
}

/* Additional meal card enhancements */
.rmm-meal-card {
    position: relative;
    overflow: visible;
}

.rmm-meal-image {
    position: relative;
}

/* Preference sorting indicator */
.rmm-meals-container {
    position: relative;
}

.rmm-preference-notice {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
    color: #004085;
    font-size: 14px;
}

.rmm-preference-notice i {
    color: #007bff;
    margin-right: 8px;
}

/* Journey Section */
.rmm-journey-section {
    margin-top: 50px;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.rmm-journey-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.rmm-journey-steps {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

.rmm-journey-card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 200px;
    max-width: calc(33.333% - 20px);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
}

.rmm-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rmm-step-icon {
    margin-right: 10px;
}

.rmm-step-icon .dashicons {
    width: 24px;
    height: 24px;
    background-color: #1a2b47;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.rmm-journey-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 0;
    border: none;
}

.rmm-journey-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    padding-left: 34px;
}

/* Responsive adjustments for journey section */
@media (max-width: 992px) {
    .rmm-journey-card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 767px) {
    .rmm-journey-section {
        padding: 20px;
        margin-top: 30px;
    }
    
    .rmm-journey-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .rmm-journey-card {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0;
        padding: 15px;
    }
    
    .rmm-journey-card p {
        padding-left: 34px;
    }
}

@media (max-width: 480px) {
    .rmm-journey-section {
        padding: 15px;
    }
    
    .rmm-journey-section h2 {
        font-size: 16px;
    }
    
    .rmm-journey-card h3 {
        font-size: 15px;
    }
    
    .rmm-journey-card p {
        font-size: 13px;
    }
} 

/* =============================================================================
   RESPONSIVE DESIGN FOR MEAL SELECTION
   ============================================================================= */

@media (max-width: 768px) {
    .rmm-meal-selection-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .rmm-selection-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .rmm-method-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .rmm-method-btn {
        flex: 1;
        justify-content: center;
    }
    
    .rmm-selected-meals-sidebar {
        position: static;
        order: -1;
    }
    
    .rmm-meal-selection-header {
        padding: 15px;
    }
    
    .rmm-plan-title {
        font-size: 16px;
    }
} 

/* =============================================================================
   NEW MEAL CARD DESIGN
   ============================================================================= */

.rmm-meal-card-redesigned {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    margin-bottom: 20px;
}

.rmm-meal-card-redesigned:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.rmm-meal-card-redesigned.selected {
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.3);
}

.rmm-meal-card-redesigned.excluded {
    opacity: 0.7;
    border: 2px solid #dc3545;
}

/* Header Section with Dark Background */
.rmm-meal-header-section {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    overflow: hidden;
}

.rmm-meal-header-section .rmm-meal-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.rmm-meal-header-section .rmm-meal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rmm-meal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

.rmm-meal-calories
 {
    position: absolute;
    top: 16px;
    left: 75%;
    background: #222;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.rmm-meal-title-header {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rmm-meal-header-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.rmm-header-tag {
    background: #fff;
    color: #222;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Content Section with White Background */
.rmm-meal-content-section {
    padding: 20px;
    background: #ffffff;
}

.rmm-meal-content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.rmm-meal-title-content {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    margin-right: 12px;
}

.rmm-meal-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    flex-shrink: 0;
}

.rmm-meal-rating .fas.fa-star {
    color: #222;
    font-size: 14px;
}

.rmm-meal-description {
    font-size: 14px;
    color: #222;
    line-height: 1.5;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meal Footer Section */
.rmm-meal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rmm-meal-content-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rmm-content-tag {
    background: #f3f4f6;
    color: #4b5563;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.rmm-add-meal-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: #f9fafb;
    color: #4b5563;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.rmm-add-meal-btn:hover {
  
    color: white;
}

/* Meal quantity control styles */
.rmm-meal-quantity-control {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 18px;
    padding: 2px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.rmm-qty-decrease,
.rmm-qty-increase {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: none;
    background-color: #f9fafb;
    color: #4b5563;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}



.rmm-qty-decrease:disabled,
.rmm-qty-increase:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rmm-qty-value {
    min-width: 24px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
}

/* Sidebar quantity controls */
.rmm-meal-quantity-badge {
    position: absolute;
    top: 8px;
    right: 8px;
 
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
    z-index: 2;
}

.rmm-sidebar-quantity {
    display: flex;
    align-items: center;
    margin-top: 6px;
}

.rmm-sidebar-qty-decrease,
.rmm-sidebar-qty-increase {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background-color: #f3f4f6;
    color: #4b5563;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rmm-sidebar-qty-decrease:hover:not(:disabled),
.rmm-sidebar-qty-increase:hover:not(:disabled) {
    background-color: #e5e7eb;
}

.rmm-sidebar-qty-decrease:disabled,
.rmm-sidebar-qty-increase:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rmm-sidebar-qty-value {
    min-width: 20px;
    text-align: center;
    font-weight: 500;
    font-size: 12px;
    margin: 0 5px;
}

.rmm-meal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.rmm-meal-content-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.rmm-content-tag {
    background: #f8f9fa;
    color: #222;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.rmm-add-meal-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #333333;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    margin-left: 12px;
    flex-shrink: 0;
}

.rmm-add-meal-btn:hover {
    transform: scale(1.1);
}

.rmm-meal-card-redesigned.selected .rmm-add-meal-btn {
    transform: rotate(45deg);
}

.rmm-meal-card-redesigned.selected .rmm-add-meal-btn .fas.fa-plus {
    transform: rotate(45deg);
}

/* Selected Indicator */
.rmm-selected-indicator {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 28px;
    height: 28px;
    background: #222;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
    z-index: 3;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design for New Meal Cards */
@media (max-width: 768px) {
    .rmm-meal-card-redesigned {
        margin-bottom: 16px;
    }
    
    .rmm-meal-header-section {
        height: 160px;
    }
    
    .rmm-meal-overlay {
        padding: 16px;
    }
    
    .rmm-meal-title-header {
        font-size: 18px;
    }
    
    .rmm-meal-content-section {
        padding: 16px;
    }
    
    .rmm-meal-title-content {
        font-size: 16px;
    }
    
    .rmm-meal-content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .rmm-meal-title-content {
        margin-right: 0;
    }
    
    .rmm-meal-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .rmm-add-meal-btn {
        align-self: flex-end;
        margin-left: 0;
    }
}

/* Grid Layout for New Cards */
.rmm-meals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .rmm-meals-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
} 

/* =============================================================================
   MAIN HEADER SECTION
   ============================================================================= */

.rmm-main-header {
    margin-bottom: 30px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

.plan-count-header {
    flex: 1;
    min-width: 280px;
}

.rmm-plan-count {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 8px;
}

.rmm-plan-info-section {
    margin-bottom: 5px;
}

.rmm-page-title {
    font-size: 32px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.rmm-page-subtitle {
    font-size: 16px;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

.rmm-plan-title {
    font-size: 18px;
    font-weight: 600;
    color: #222222;
}

.rmm-plan-count-section {
    font-size: 16px;
    color: #666666;
    font-weight: 500;
}

#remaining-count {
    font-weight: 700;
    color: #000;
}

/* Responsive styles for the main header */
@media (max-width: 768px) {
    .rmm-main-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .plan-count-header {
        width: 100%;
        min-width: auto;
    }
    
    .rmm-page-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .rmm-page-subtitle {
        font-size: 14px;
        margin-bottom: 0;
    }
    
    .rmm-plan-count {
        align-items: center;
        padding-top: 0;
    }
    
    .rmm-plan-info-section,
    .rmm-plan-count-section {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .rmm-main-header {
        margin-bottom: 20px;
    }
    
    .rmm-page-title {
        font-size: 24px;
    }
    
    .rmm-page-subtitle {
        font-size: 13px;
    }
}

/* =============================================================================
   INFO BAR SECTION
   ============================================================================= */

.rmm-info-bar {
    margin-bottom: 30px;
}

.rmm-selection-info {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.rmm-selection-instructions {
    font-size: 16px;
    color: #4b5563;
    margin: 0;
    line-height: 1.6;
}

.rmm-plan-info-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rmm-plan-title {
    font-size: 18px;
    font-weight: 600;
    color: #222222;
}

.rmm-plan-count {
    font-size: 14px;
    color: #666666;
    font-weight: 500;
    display: flex;
    gap: 14px;
    align-self: end;
}





/* Hide old meal selection header styles */
.rmm-meal-selection-header {
    display: none;
}

/* .rmm-plan-summary {
    display: none;
} */

.rmm-plan-details {
    display: none;
}

.rmm-plan-remaining {
    display: none;
}

.rmm-selection-methods {
    display: none;
}

.rmm-method-toggle {
    display: none;
}

.rmm-method-btn {
    display: none;
}

.rmm-method-icon {
    display: none;
}

/* =============================================================================
   RESPONSIVE DESIGN FOR INFO BAR
   ============================================================================= */

@media (max-width: 768px) {
    .rmm-page-title {
        font-size: 28px;
    }
    
    .rmm-page-subtitle {
        font-size: 14px;
    }
    
    .rmm-selection-instructions {
        font-size: 14px;
    }
    
    .rmm-info-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .rmm-plan-info-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    

    
    .rmm-meal-selection-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .rmm-selected-meals-sidebar {
        position: static;
        order: -1;
    }
} 

/* =============================================================================
   MEAL SELECTION LAYOUT
   ============================================================================= */


.rmm-meal-selection-main {
    min-width: 0;
}

.rmm-selected-meals-sidebar {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
} 

/* Selected Meals Sidebar Styling */
.rmm-selected-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.rmm-selected-meals-list {
    margin-bottom: 20px;
}

.rmm-no-selection-container {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: #4b5563;
    background: #ffffff;
    margin: 20px 0;
}

.rmm-no-selection-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.rmm-no-selection-icon svg {
    width: 64px;
    height: 64px;
    background: #f3f4f6;
    border-radius: 50%;
    padding: 20px;
    box-sizing: border-box;
}

.rmm-no-selection-container p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #4b5563;
}

.rmm-selected-meal-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f9fafb;
}

.rmm-selected-meal-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.rmm-selected-meal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rmm-selected-meal-info {
    flex: 1;
}

.rmm-selected-meal-info h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #1f2937;
}

.rmm-selected-calories {
    font-size: 12px;
    color: #6b7280;
}

.rmm-remove-meal {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.rmm-remove-meal:hover {
    color: #fee2e2;
    box-shadow: none !important;
    background: transparent;
}

.rmm-sidebar-actions {
    display: flex;
    gap: 12px;
}

.rmm-sidebar-actions .rmm-btn {
    flex: 1;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rmm-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.rmm-btn-secondary:hover {
    background: #e5e7eb;
}

.rmm-btn-primary {
    background: #3b82f6;
    color: white;
}

.rmm-btn-primary:hover {
    background: #2563eb;
}

.rmm-btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.rmm-btn-primary:disabled:hover {
    background: #9ca3af;
}
/* Plan Selection Grid Styling */
.rmm-plan-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin: 40px 0;
}

.rmm-plan-card {
    flex: 1;
    min-width: 240px;
    max-width: 300px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rmm-plan-card:hover {
    border-color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.rmm-plan-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 20px;
}

.rmm-plan-featured {
    border: 2px solid #000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.rmm-plan-header {
    margin-bottom: 20px;
    text-align: center;
}

.rmm-plan-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.rmm-plan-price {
    display: flex;
    align-items: baseline;
    /* justify-content: center; */
    margin-bottom: 5px;
}

.rmm-price-main {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: #000;
}

.rmm-price-period {
    font-size: 14px;
    color: #666;
    margin-left: 5px;
}

.rmm-price-per-meal {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.rmm-plan-features {
    flex-grow: 1;
    margin-bottom: 20px;
}

.rmm-plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rmm-plan-features ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #333;
}

.rmm-plan-features ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #000;
    font-weight: bold;
}

.rmm-select-plan-btn {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.rmm-select-plan-btn:hover {
    background: #333;
}

.rmm-select-plan-btn.selected {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rmm-plan-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .rmm-plan-card {
        width: 100%;
        max-width: 320px;
    }
} 

/* How It Works Section Styling */
.rmm-how-it-works {
    margin: 40px 0;
    width: 100%;
}

.rmm-meal-selection-info {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
}

.rmm-meal-selection-info > h3 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin: 0 0 30px 0;
    display: flex;
}

.rmm-meal-selection-columns {
    display: flex;
    width: 100%;
}

.rmm-selection-methods,
.rmm-selection-benefits {
    flex: 1;
    padding: 0 15px;
}

.rmm-selection-methods {
    min-width: 45%;
    display: block;
}

.rmm-selection-benefits {
    min-width: 33%;
    display: block;
}

.rmm-selection-methods h3,
.rmm-selection-benefits h3 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0 0 25px 0;
}

/* Selection Methods */
.rmm-selection-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.rmm-selection-method:last-child {
    margin-bottom: 0;
}

.rmm-method-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    color: #fff;
}

.rmm-method-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0 0 5px 0;
}

.rmm-method-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Benefits */
.rmm-benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rmm-selection-benefit {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.rmm-selection-benefit:last-child {
    margin-bottom: 0;
}

.rmm-benefit-check {
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #000;
    font-weight: bold;
}

.rmm-benefit-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .rmm-meal-selection-info {
        padding: 25px;
    }
    
    .rmm-selection-methods,
    .rmm-selection-benefits {
        padding: 0 10px;
    }
    
    .rmm-selection-methods {
        min-width: 48%;
    }
    
    .rmm-selection-benefits {
        min-width: 38%;
    }
}

@media (max-width: 768px) {
    .rmm-meal-selection-info {
        padding: 20px;
        text-align: center;
    }
    
    .rmm-meal-selection-info > h3 {
        font-size: 20px;
        margin-bottom: 20px;
        justify-content: center;
    }
    
    .rmm-meal-selection-columns {
        flex-direction: column;
        align-items: center;
    }
    
    .rmm-selection-methods,
    .rmm-selection-benefits {
        padding: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .rmm-selection-methods {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .rmm-selection-methods h3,
    .rmm-selection-benefits h3 {
        font-size: 18px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .rmm-selection-method,
    .rmm-selection-benefit {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .rmm-method-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .rmm-method-content {
        text-align: center;
    }
    
    .rmm-method-content h4 {
        font-size: 15px;
    }
    
    .rmm-benefit-check {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .rmm-benefit-text {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .rmm-how-it-works {
        margin: 30px 0;
    }
    
    .rmm-meal-selection-info {
        padding: 15px;
    }
    
    .rmm-meal-selection-info > h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .rmm-selection-method {
        margin-bottom: 25px;
    }
    
    .rmm-method-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 12px;
    }
    
    .rmm-method-content h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .rmm-method-content p {
        font-size: 13px;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .rmm-benefit-text {
        font-size: 13px;
        max-width: 250px;
        margin: 0 auto;
    }
} 

/* Customer Journey Example Styling */
.rmm-customer-journey {
    margin: 40px 0;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rmm-customer-journey > h3 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin: 0 0 25px 0;
}

.rmm-journey-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.rmm-journey-card {
    flex: 1;
    min-width: 220px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.rmm-journey-week {
    padding: 12px 16px;
    background-color: #f5f5f5;
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.rmm-journey-details {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rmm-journey-action {
    font-size: 14px;
    margin-bottom: 10px;
}

.rmm-journey-selection {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.rmm-journey-meals {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rmm-meal-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rmm-meal-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #3a4a5d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.rmm-meal-text {
    font-size: 14px;
}

@media (max-width: 768px) {
    .rmm-journey-cards {
        flex-direction: column;
    }
    
    .rmm-journey-card {
        width: 100%;
    }
} 

/* Checkout Summary Page Styling */
.rmm-checkout-summary {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.rmm-summary-section {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.rmm-summary-section h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #000;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.rmm-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.rmm-summary-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.rmm-summary-label {
    font-weight: 500;
    color: #666;
}

.rmm-summary-value {
    font-weight: 600;
    color: #000;
    text-align: right;
}

/* Selected Meals Grid */
.rmm-meal-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.rmm-meal-preview-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rmm-meal-preview-image {
    height: 120px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.rmm-meal-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rmm-meal-preview-content {
    padding: 15px;
}

.rmm-meal-preview-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #000;
}

.rmm-meal-preview-meta {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Checkout Actions */
.rmm-checkout-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#complete-order-btn {
    background: #000;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 30px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#complete-order-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#complete-order-btn:active {
    transform: translateY(0);
}

.rmm-checkout-note {
    text-align: center;
    color: #666;
    font-size: 14px;
    max-width: 500px;
}

.rmm-checkout-note p {
    margin: 5px 0;
}

.rmm-loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

/* Payment methods display */
.rmm-payment-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.rmm-payment-icon {
    width: 40px;
    height: 25px;
    background-color: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .rmm-summary-section {
        padding: 20px;
    }
    
    .rmm-meal-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
} 

/* Date Input Styling */
.date-input-wrapper {
    position: relative;
    width: 100%;
}

.date-input-wrapper input {
    padding-right: 30px;
    cursor: pointer;
}

.date-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3e%3c/rect%3e%3cline x1='16' y1='2' x2='16' y2='6'%3e%3c/line%3e%3cline x1='8' y1='2' x2='8' y2='6'%3e%3c/line%3e%3cline x1='3' y1='10' x2='21' y2='10'%3e%3c/line%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
    z-index: 5;
}

/* jQuery UI Datepicker Customization */
.ui-datepicker {
    background: #fff;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    padding: 0;
    width: 320px;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-radius: 12px;
    overflow: hidden;
    display: none;
    z-index: 9999 !important;
    animation: datepicker-pop 0.3s ease;
}

@keyframes datepicker-pop {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ui-datepicker .ui-datepicker-header {
    position: relative;
    padding: 15px 0;
    background: #f2f2f2;
    border: none;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    position: relative;
    top: 29px;
    transform: translateY(-50%);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.2s ease;
    background: rgba(0,0,0,0.05);
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
    background: rgba(0,0,0,0.05);
}

.ui-datepicker .ui-datepicker-prev {
    left: 10px;
}

.ui-datepicker .ui-datepicker-next {
    right: 10px;
}

.ui-datepicker .ui-datepicker-title {
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 5px 25px 5px 10px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    color: #333;
    appearance: none;
    background: #fff url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    cursor: pointer;
    margin: 0 2px;
    transition: border-color 0.2s;
}

.ui-datepicker select.ui-datepicker-month:focus,
.ui-datepicker select.ui-datepicker-year:focus {
    outline: none;
    border-color: #000;
}

.ui-datepicker table.ui-datepicker-calendar {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.ui-datepicker .ui-datepicker-calendar thead {
    border-bottom: 1px solid #f0f0f0;
}

.ui-datepicker .ui-datepicker-calendar th {
    padding: 12px 5px;
    text-align: center;
    color: #999;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
}

.ui-datepicker .ui-datepicker-calendar td {
    padding: 3px;
    text-align: center;
    font-size: 14px;
}

.ui-datepicker .ui-datepicker-calendar td a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 36px;
    margin: 0 auto;
    text-decoration: none;
    color: #333;
    text-align: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.ui-datepicker .ui-datepicker-calendar td a:hover {
    background: #f0f0f0;
}

.ui-datepicker .ui-datepicker-calendar .ui-datepicker-today a {
    background: #f0f0f0;
    color: #000;
    font-weight: 600;
    position: relative;
}

.ui-datepicker .ui-datepicker-calendar .ui-datepicker-current-day a {
    background: #000;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ui-datepicker .ui-datepicker-buttonpane {
    border-top: 1px solid #f0f0f0;
    padding: 10px;
    display: flex;
    justify-content: space-between;
}

.ui-datepicker .ui-datepicker-buttonpane button {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #333;
    font-weight: 500;
    font-size: 13px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.ui-datepicker .ui-datepicker-buttonpane button:hover {
    border-color: #000;
    background: #f9f9f9;
}

/* Weekend days styling */
.ui-datepicker-calendar tr td:last-child a,
.ui-datepicker-calendar tr td:nth-last-child(2) a {
    color: #E53935;
}

/* Other months days styling */
.ui-datepicker td.ui-datepicker-other-month a {
    opacity: 0.3;
}

.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next{
    top: 37px !important;
}


.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-prev-hover {
    left: 10px;
}

.ui-datepicker .ui-datepicker-next, .ui-datepicker .ui-datepicker-next-hover {
    right: 10px;
}

/* Hide Blog and Home links in WordPress theme navigation while keeping the nav structure */
body.rmm-checkout-page .site-header a[href*="/blog/"],
body.rmm-checkout-page .site-header a:contains("Blog"),
body.rmm-checkout-page .site-header a[href="/"],
body.rmm-checkout-page .site-header a:contains("Home") {
    display: none !important;
}

/* Additional hiding rules for Blog headings and Home links */
h1, h2, h3, h4, h5, h6, div {
    &:only-child:contains("Blog") {
        display: none !important;
    }
}

.entry-header h1:contains("Blog"),
.page-header h1:contains("Blog"),
.site-content h1:contains("Blog"),
div:contains("Blog"):not(:has(*)),
a:contains("Home"),
a[href="/"] {
    display: none !important;
}