/** Shopify CDN: Minification failed

Line 97:14 Unexpected "{"
Line 97:23 Expected ":"
Line 98:18 Expected identifier but found whitespace
Line 98:20 Unexpected "{"
Line 98:29 Expected ":"
Line 98:80 Expected ":"
Line 99:21 Expected identifier but found whitespace
Line 99:23 Unexpected "{"
Line 99:32 Expected ":"
Line 99:86 Expected ":"
... and 10 more hidden warnings

**/
    :root {
      --color-background: 255, 255, 255; /* White background */
      --color-foreground: 0, 0, 0; /* Black text */
      --color-button: 61, 8, 27; /* Dark burgundy buttons */
      --color-button-text: 255, 255, 255; /* White text on buttons */
      --color-link: 61, 8, 27; /* Dark burgundy links */
      --gradient-background: #ffffff; /* White gradient background */
    }

    .weekly-meal-selector,
    .weekly-meal-selector * {
      --color-background: 255, 255, 255;
      --color-foreground: 0, 0, 0;
      --color-button: 61, 8, 27;
      --color-button-text: 255, 255, 255;
      --color-link: 61, 8, 27;
    }

    .weekly-meal-selector {
      background: #ffffff;
      min-height: 800px;
    }

    .customer-welcome,
    .week-card,
    .meal-card,
    .order-summary,
    .chefs-choice-card {
      background: #ffffff;
      background-color: #ffffff;
      
    }

    /* Force burgundy buttons */
    .quantity-btn,
    .button--primary,
    .button {
      background: #3D081B;
      background-color: #3D081B;
      color: #ffffff;
    }

    .quantity-btn:disabled {
      background: rgba(0, 0, 0, 0.2);
      background-color: rgba(0, 0, 0, 0.2);
      color: rgba(0, 0, 0, 0.5);
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .quantity-btn:disabled:hover {
      background: rgba(0, 0, 0, 0.2);
      background-color: rgba(0, 0, 0, 0.2);
      transform: none;
      box-shadow: none;
    }

    .button--small {
      padding: 0.1rem 1.5rem !important;
      font-size: 0.9rem !important;
      min-width: auto !important;
      line-height: .5 !important;
    }

    /* Keep burgundy on specific accent elements only */
    .total-meals,
    .option-price,
    .meal-addon-cost {
      color: #3D081B;
    }

    .week-card--selected {
      border-color: rgb(var(--color-button));
      background: rgba(var(--color-button), 0.05);
    }

    .week-card:hover:not(.week-card--past) {
      border-color: #3D081B;
    }

    .section-{{ section.id }}-padding {
      padding-top: {{ section.settings.padding_top | times: 0.75 | round: 0 }}px;
      padding-bottom: {{ section.settings.padding_bottom | times: 0.75 | round: 0 }}px;
    }

    @media screen and (min-width: 750px) {
      .section-{{ section.id }}-padding {
        padding-top: {{ section.settings.padding_top }}px;
        padding-bottom: {{ section.settings.padding_bottom }}px;
      }
    }

    /* Customer Welcome */
    .customer-welcome .card__inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 2rem;
    }

    .subscription-status {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-top: 0.5rem;
    }

    /* Week Selection */
    .week-selection {
      margin: 2rem 0 2rem 0;
    }

    .week-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto auto;
      gap: 2rem;
      margin-top: 2rem;
      max-width: 80rem;
      margin-left: auto;
      margin-right: auto;
      width: 100%;
    }

    @media screen and (max-width: 749px) {
      .week-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: var(--grid-mobile-horizontal-spacing);
        max-width: none;
      }
    }

    .week-card {
      border: var(--product-card-border-width) solid rgba(var(--color-foreground), var(--product-card-border-opacity));
      border-radius: var(--product-card-corner-radius);
      padding: 2rem;
      cursor: pointer;
      transition: all 0.3s ease;
      background: rgb(var(--color-background));
      text-align: center;
    }

    .week-card:hover:not(.week-card--past) {
      border-color: rgb(var(--color-button));
      transform: translateY(-0.2rem);
      box-shadow: 0 1rem 2rem rgba(var(--color-foreground), 0.1);
    }

    .week-card--selected {
      border-color: rgb(var(--color-button));
      background: rgba(var(--color-button), 0.05);
    }

    .week-card--past {
      opacity: 0.6;
      cursor: not-allowed;
    }

    .week-date {
      font-weight: var(--font-heading-weight);
      font-size: 1.6rem;
      margin-bottom: 1rem;
    }

    .week-status {
      font-size: 1.4rem;
      color: rgba(var(--color-foreground), 0.7);
    }

    .week-status--selected {
      color: #4CAF50;
      font-weight: 600;
    }

    .week-status--chef-choice {
      color: #721c24;
      font-weight: 600;
    }

    .week-deadline {
      font-size: 1.2rem;
      color: rgba(var(--color-foreground), 0.6);
      margin-top: 0.5rem;
      font-style: italic;
    }

    .deadline-warning {
      background: #721c24;
      color: white;
      padding: 0.4rem 1rem;
      border-radius: var(--badge-corner-radius);
      font-size: 1.2rem;
      font-weight: 600;
      display: inline-block;
      margin-top: 0.5rem;
    }

    /* Meal Selection */
    .meal-selection {
      margin-top: 4rem;
    }

    .meal-selection__header {
      margin-bottom: 4rem;
    }

    .deadline-notice {
      background: #fff3cd;
      border: 0.1rem solid #ffeaa7;
      border-radius: var(--text-boxes-radius);
      padding: 2rem;
      margin-top: 2rem;
      max-width: 60rem;
      margin-left: auto;
      margin-right: auto;
    }

    .deadline-notice--urgent {
      background: #f8d7da;
      border-color: #f5c6cb;
      color: #721c24;
    }

    .deadline-notice--past {
      background: #e7f3ff;
      border-color: #b3d7ff;
      color: #0c4a6e;
    }

    /* Meals Grid */
    .meals-container {
      margin-bottom: 4rem;
    }

    .meals-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(32rem, 1fr));
      grid-template-rows: 2fr;
      row-gap: 2.5rem;
      column-gap: 1rem;
      contain: layout style;

    }

    @media screen and (max-width: 749px) {
      .meals-grid {
        grid-template-columns: 1fr;
        gap: var(--grid-mobile-horizontal-spacing);
      }
    }

    .meal-card {
      border: var(--product-card-border-width) solid #baa8ae; /* Light gray border by default */
      border-radius: var(--product-card-corner-radius);
      overflow: hidden;
      transition: all 0.3s ease;
      background: rgb(var(--color-background));
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    .meal-card:hover {
      transform: translateY(-0.3rem);
      box-shadow: 0 1rem 2rem rgba(var(--color-foreground), 0.1);
      border-color: #3D081B; /* Add consistent border color change */
    }

    meal-image[data-loading="true"] {
        opacity: 0.7;
        background: linear-gradient(90deg, #f5f5f5 25%, #e0e0e0 50%, #f5f5f5 75%);
        background-size: 200% 100%;
        animation: shimmer 1.5s infinite;
    }

    @keyframes shimmer {
        0% { background-position: -200% 0; }
        100% { background-position: 200% 0; }
    }

    .meal-image {
      width: 100%;
      height: 28rem; /* Your existing height */
      object-fit: cover;
      object-position: center; 
      background: #f5f5f5;
      flex-shrink: 0;
      content-visibility: auto;
      contain-intrinsic-size: 400px 300px;
      transition: transform 0.3s ease, opacity 0.3s ease;
    }
    /* 
    .meal-image {
      object-position: top center;     // Top center (default for food images)
      object-position: center top;     // Same as above
      object-position: top left;       // Top left corner
      object-position: top right;      // Top right corner
      object-position: center;         // Center (your current behavior)
      object-position: bottom;         // Bottom anchor (opposite of what you want)
    }
    */
    .meal-info {
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }

    .meal-name {
      font-size: 1.5rem;
      font-weight: var(--font-heading-weight);
      margin-bottom: 0rem;
      margin-top: .1rem;
      color: rgb(var(--color-foreground));
    }

    .meal-description {
      color: rgba(var(--color-foreground), 0.75);
      font-size: 1.3rem;
      line-height: 2.2rem;
      margin-bottom: .5rem;
      margin-top: .5rem;
    }

    h4 {
      margin-top: 0rem;
      margin-bottom: 1rem;
      flex-grow: 1;
      font-size: 1.3rem;
    }
    /* Style for allergen information within descriptions */
    .meal-description h4 {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
        color: rgba(var(--color-foreground), 0.6);
        font-weight: normal;
        font-style: italic;
    }

    /* Create a spacer div that grows when no options exist */
    .meal-spacer {
        flex-grow: 1;
    }
        /* Meal Options */
    .meal-options {
        background: rgba(var(--color-foreground), 0.03);
        border-radius: var(--text-boxes-radius);
        padding: 1rem 1.5rem 1rem;
        margin-bottom: .3rem;
    /* flex-grow: 1;  This pushes quantity controls to bottom 
    display: flex;
    flex-direction: column;
    justify-content: flex-end;  Push content to bottom of expanded container */
    }
    .meal-options-wrapper {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .options-title {
      font-size: 1.3rem;
      font-weight: var(--font-body-weight-bold);
      color: rgb(var(--color-foreground));
      margin-bottom: .3rem;
    }

    .options-grid {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
    }

    .option-checkbox {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      cursor: pointer;
      padding: 0.3rem;
      border-radius: 0.5rem;
      transition: background-color 0.2s ease;
    }

    .option-checkbox:hover {
      background: rgba(var(--color-button), 0.05);
    }

    .option-checkbox input[type="checkbox"] {
      width: 1.6rem;
      height: 1.6rem;
      margin: 0;
      cursor: pointer;
    }

    .option-label {
      flex-grow: 1;
      font-size: 1.2rem;
      color: rgba(var(--color-foreground), 0.85);
    }

    .option-price {
      color: rgb(var(--color-link));
      font-weight: var(--font-body-weight-bold);
      font-size: 1.2rem;
    }

    /* Quantity Controls */
    .quantity-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: auto;
      padding-top: 1rem;
      flex-shrink: 0;
    }

    .quantity-selector {
      display: flex;
      align-items: center;
      gap: .8rem;
    }

    .quantity-btn {
      background: rgb(var(--color-button));
      color: rgb(var(--color-button-text));
      border: none;
      width: 3.5rem;
      height: 3.5rem;
      border-radius: 50%;
      cursor: pointer;
      font-size: 1.8rem;
      font-weight: bold;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
    }

    .quantity-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 0.5rem 1rem rgba(var(--color-button), 0.3);
    }

    .quantity-btn:disabled {
      background: rgba(var(--color-foreground), 0.2);
      color: rgba(var(--color-foreground), 0.5);
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .quantity-display {
      font-size: 2rem;
      font-weight: var(--font-body-weight-bold);
      min-width: 3rem;
      text-align: center;
    }

    /* Order Summary */
    .order-summary {
      margin-top: 4rem;
      text-align: center;
    }

    .summary-content {
      margin: 2rem 0;
    }

    .summary-item {
      display: flex;
      flex-direction: column;
      padding: .4rem 0;
      border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.1);
    }

    
    .summary-item-main {
      display: flex;
      align-items: center;
      margin-bottom: 0rem;
      width: 100%;
      font-size: 1.4rem;
    }

    .meal-name-summary {
      font-weight: var(--font-body-weight-bold);
      color: rgb(var(--color-foreground));
      text-align: left;
      flex: 1;
    }

    .meal-right-info {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-left: auto;
    }

    .meal-quantity {
      font-weight: var(--font-body-weight-bold);
      color: rgba(var(--color-foreground), 0.8);
    }

    .meal-addon-cost {
      color: rgb(var(--color-button));
      font-weight: var(--font-body-weight-bold);
      font-size: 1.2rem;
    }

    .summary-item-options {
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
      margin-left: 0;
      margin-top: 0.2rem;
    }

    .option-desc {
      font-size: 1.2rem;
      color: rgba(var(--color-foreground), 0.6);
      font-style: italic;
      text-align: left;
    }

    .summary-total {
      background: rgba(var(--color-button), 0.1);
      padding: 1.5rem;
      border-radius: var(--text-boxes-radius);
      margin: 2rem 0;
    }

    .total-meals {
      font-size: 1.8rem;
      font-weight: var(--font-body-weight-bold);
      color: rgb(var(--color-button));
    }

    .chef-choice-info {
      background: #fff3cd;
      border: 0.1rem solid #ffeaa7;
      border-radius: var(--text-boxes-radius);
      padding: 2rem;
      margin-top: 2rem;
      text-align: left;
    }

    /* Chef's Choice Styles */
    .chefs-choice-message {
      grid-column: 1 / -1;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 40rem;
    }

    .chefs-choice-card {
      background: rgb(var(--color-background));
      border: var(--product-card-border-width) solid rgba(var(--color-foreground), var(--product-card-border-opacity));
      border-radius: var(--product-card-corner-radius);
      padding: 4rem 3rem;
      text-align: center;
      max-width: 50rem;
      box-shadow: 0 1rem 2rem rgba(var(--color-foreground), 0.1);
    }

    .chefs-choice-icon {
      font-size: 6rem;
      margin-bottom: 2rem;
    }

    .chefs-choice-title {
      font-size: 2.4rem;
      font-weight: var(--font-heading-weight);
      color: rgb(var(--color-foreground));
      margin-bottom: 2rem;
    }

    .chefs-choice-description {
      font-size: 1.6rem;
      line-height: 1.6;
      color: rgba(var(--color-foreground), 0.8);
      margin-bottom: 2rem;
    }

    .chefs-choice-note {
      background: #fff3cd;
      border: 1px solid #ffeaa7;
      border-radius: var(--text-boxes-radius);
      padding: 1.5rem;
      font-size: 1.4rem;
      color: #856404;
    }

    /* Past Delivery Styles */
    .meal-card--past {
      opacity: 0.9;
      border-color: rgba(var(--color-foreground), 0.2);
    }

    .meal-card--past:hover {
      transform: none;
      box-shadow: none;
    }

    .meal-options--past {
      background: rgba(76, 175, 80, 0.1);
      border: 1px solid rgba(76, 175, 80, 0.3);
    }

    .options-list {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .option-selected {
      color: #4CAF50;
      font-weight: 600;
      font-size: 1.3rem;
    }

    .quantity-display-past {
      background: rgba(var(--color-button), 0.1);
      padding: 1rem;
      border-radius: var(--text-boxes-radius);
      text-align: center;
      margin-top: 1rem;
    }

    .quantity-selected {
      font-size: 1.6rem;
      font-weight: var(--font-body-weight-bold);
      color: rgb(var(--color-button));
    }

    /* Customer Portal Styles */
    .customer-portal-section {
      background: #f8f9fa;
      margin-top: 1rem;
      padding: 2rem 0;
      border-radius: var(--text-boxes-radius);
    }

    .portal-stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 2.5rem;
      margin: .5rem 0;
    }

    .stat-card {
      background: white;
      padding: 1rem;
      border-radius: var(--text-boxes-radius);
      text-align: center;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .stat-card h3 {
      margin: 0 0 1rem 0;
      color: #666;
      font-size: 1.2rem;
    }

    .stat-number {
      font-size: 1.7rem;
      font-weight: bold;
      color: #3D081B;
    }
    .meal-history-section {
      background: white;
      padding: 1rem 2.5rem;
      border-radius: var(--text-boxes-radius);
      margin: 2rem 0;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .meal-history-section h3 {
      margin-bottom: 1.8rem;
      color: #333;
    }

    .history-card {
      border: 1px solid #e1e3e5;
      border-radius: 8px;
      padding: 1rem;
      margin-bottom: 2rem;
      background: #fafafa;
    }

    .history-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: .8rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid #e1e3e5;
    }

    .delivery-date {
      font-size: 1.5rem;
      font-weight: 600;
      color: #333;
    }

    .delivery-status {
      padding: 0.5rem 1rem;
      border-radius: 4px;
      font-size: 1.2rem;
      font-weight: 600;
    }

    .status-upcoming { 
      background: #F4E9DB; 
      color: #856404; 
    }

    .status-delivered { 
      background: #d1ecf1; 
      color: #0c5460; 
    }

    .status-chef-choice { 
      background: #f8d7da; 
      color: #721c24; 
    }

    .portal-actions {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: 1rem;
    }

    /*
    .history-meals {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1rem;
    }
    */

    .history-meal-item {
      background: white;
      padding: 1rem;
      border-radius: 6px;
      border: 1px solid #e1e3e5;
    }

    .history-meal-name {
      font-weight: 600;
      color: #333;
      margin-bottom: 0.5rem;
    }

    .history-meal-details {
      color: #666;
      font-size: 1rem;
    }

    .billing-summary {
      border: 1px #910F3F;
      padding: 1rem 1rem 0rem 1rem;
      border-radius: 6px;
      margin-top: 1rem;
    }

    .billing-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 0.5rem;
      font-size: 1.1rem;
    }

    .billing-total {
      font-weight: 600;
      padding-top: 0.5rem;
      border-top: 1px solid #3D081B;
    }

    @media screen and (max-width: 749px) {
      .portal-stats {
        grid-template-columns: 1fr;
      }
      
      .portal-actions {
        flex-direction: column;
      }
      
      .history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
      }
      .meal-history-section {
        padding: .5rem 1rem .1rem 1rem;
      }
      .billing-summary{
        padding: 0rem;
      }
      .page-width{
        padding: 0rem 1rem;
      }
    }
    .plan-analysis {
      border: 2px solid #e1e3e5;
      border-radius: var(--text-boxes-radius);
      padding: 2rem;
      margin: 2rem 0;
      background: #f8f9fa;
    }
    .plan-analysis-after-button{
      padding-top: 2rem;
    }
    .plan-status h4 {
      margin: 0 0 1rem 0;
      color: #333;
    }

    .plan-meter {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.5rem;
    }

    .plan-meter-bar {
      flex: 1;
      height: 1rem;
      background: #e1e3e5;
      border-radius: 0.5rem;
      overflow: hidden;
    }

    .plan-meter-fill {
      height: 100%;
      background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 50%, #FFC107 75%, #FF5722 100%);
      transition: width 0.3s ease;
    }

    .plan-meter-text {
      font-weight: 600;
      color: #3D081B;
      white-space: nowrap;
    }

    .plan-warnings {
      margin: 1rem 0;
    }

    .plan-warning {
      padding: 0.8rem 1rem;
      border-radius: 0.5rem;
      margin: 0.5rem 0;
      font-weight: 500;
    }

    .plan-warning-under {
      background: #fff3cd;
      color: #856404;
      border: 1px solid #ffeaa7;
    }

    .plan-warning-overage {
      background: #f8d7da;
      color: #721c24;
      border: 1px solid #f5c6cb;
    }

    .billing-breakdown {
      border-top: 1px solid #dee2e6;
      padding-top: 1.5rem;
      margin-top: 1.5rem;
    }

    .billing-breakdown h4 {
      margin: 0 0 1rem 0;
      color: #333;
    }

    .billing-line {
      display: flex;
      justify-content: space-between;
      margin: 0.5rem 0;
      color: #666;
    }

    .billing-line span {
      color: #3D081B;
      font-weight: 600;
    }

    .billing-total {
      display: flex;
      justify-content: space-between;
      margin-top: .7rem;
      padding-top: .5rem;
      border-top: 1px solid #3D081B;
      font-weight: 600;
      font-size: 1.4rem;
      color: #3D081B;
    }

    .billing-total span {
      color: #3D081B;
    }

    @media screen and (max-width: 749px) {
      .plan-meter {
        flex-direction: column;
        align-items: stretch;
      }
      
      .plan-meter-text {
        text-align: center;
        margin-top: 0.5rem;
      }
    }

    .weekly-breakdown {
      margin-bottom: 1.5rem;
    }

    .week-summary {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #f8f9fa;
      padding: 1rem;
      border-radius: 0.5rem;
      margin-bottom: 1rem;
      border: 1px solid #e1e3e5;
    }

    .day-total {
      font-size: 1.3rem;
      color: #666;
      padding: 0.5rem;
    }

    .week-total {
      font-size: 1.4rem;
      color: #3D081B;
      padding: 0.5rem 1rem;
      background: #f8f9fa;
      border-radius: 0.3rem;
      border: 1px solid #f8f9fa;
      
    }

    .plan-warning-perfect {
      background: #d4edda;
      color: #155724;
      border: 1px solid #c3e6cb;
    }

    .plan-warning-info {
      background: #d1ecf1;
      color: #0c5460;
      border: 1px solid #bee5eb;
    }

    @media screen and (max-width: 749px) {
      .week-summary {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
      }
      
      .day-total, .week-total {
        width: 100%;
      }
    }
    /* Add this to your existing CSS to integrate the add-on options seamlessly */
.addon-options-wrapper {
  margin-top: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.addon-options {
  background: rgba(var(--color-foreground), 0.03); /* Same as your meal-options */
  border-radius: var(--text-boxes-radius);
  padding: 1rem 1.5rem 1rem;
  margin-bottom: .3rem;
}

.addon-options .options-title {
  font-size: 1.3rem;
  font-weight: var(--font-body-weight-bold);
  color: rgb(var(--color-foreground));
  margin-bottom: .3rem;
}
/* Add these CSS rules to your existing styles */

/* Protein Ball Add-on Card Styling */
.meal-card--addon {
  border-color: #e1e3e5;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.meal-card--addon:hover {
  border-color: #3D081B;
  transform: translateY(-0.2rem);
  box-shadow: 0 0.8rem 1.6rem rgba(var(--color-foreground), 0.08);
}

.meal-card--addon .meal-name::after {
  content: " (Add-on)";
  color: #666;
  font-size: 1.2rem;
  font-weight: normal;
  font-style: italic;
}

/* Radio Button Styling for Protein Balls */
.option-radio {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 0.2rem .5rem;
  border-radius: 0.6rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  margin-bottom: 0.1rem;
}

.option-radio:hover {
  background: rgba(var(--color-button), 0.05);
  border-color: rgba(var(--color-button), 0.2);
}

.option-radio input[type="radio"] {
  width: 1.8rem;
  height: 1.8rem;
  margin: 0;
  cursor: pointer;
  accent-color: #3D081B;
}

.option-radio input[type="radio"]:checked + .option-label {
  font-weight: 600;
  color: #3D081B;
}

.option-radio:has(input[type="radio"]:checked) {
  background: rgba(var(--color-button), 0.1);
  border-color: #3D081B;
  box-shadow: 0 0 0 2px rgba(var(--color-button), 0.2);
}

.option-radio .option-label {
  flex-grow: 1;
  font-size: 1.3rem;
  color: rgba(var(--color-foreground), 0.85);
  transition: all 0.2s ease;
}

.option-radio .option-price {
  color: #3D081B;
  font-weight: 600;
  font-size: 1.3rem;
  min-width: 5rem;
  text-align: right;
}

/* Special styling for "No Protein Balls" option */
.option-radio:has(input[value="none"]) {
  border-style: dashed;
  opacity: 0.8;
}

.option-radio:has(input[value="none"]) .option-label {
  font-style: italic;
  color: #666;
}

.option-radio:has(input[value="none"]:checked) {
  background: rgba(108, 117, 125, 0.1);
  border-color: #6c757d;
  box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.2);
}

.option-radio:has(input[value="none"]:checked) .option-label {
  color: #6c757d;
  font-weight: 600;
}

/* Summary item styling for add-ons */
.summary-item--addon {
  background: rgba(var(--color-button), 0.03);
  border: 1px solid rgba(var(--color-button), 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.summary-item--addon .meal-name-summary::after {
  content: " 🍫";
  margin-left: 0.5rem;
}

.summary-item--addon .meal-quantity {
  background: #3D081B;
  color: white;
  padding: 0.2rem 0.8rem;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Responsive adjustments */
@media screen and (max-width: 749px) {
  .option-radio {
    padding: 1rem 0.8rem;
    gap: 0.8rem;
  }
  
  .option-radio .option-label {
    font-size: 1.2rem;
  }
  
  .option-radio .option-price {
    font-size: 1.2rem;
    min-width: 4rem;
  }
  
  .option-radio input[type="radio"] {
    width: 1.6rem;
    height: 1.6rem;
  }
}

/* Animation for selection changes */
@keyframes selectPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.option-radio:has(input[type="radio"]:checked) {
  animation: selectPulse 0.3s ease-out;
}
/* ADD THESE CSS RULES to fix past deadline layout anchoring */

/* Ensure meal-info uses flexbox to push content to bottom */
.meal-card--past .meal-info {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Wrapper for description that can grow to fill space */
.meal-description-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Make description take available space but not force height */
.meal-card--past .meal-description {
  flex-grow: 1;
  margin-bottom: 1rem;
}

/* Container for bottom content (options + quantity) that stays anchored */
.meal-bottom-content {
  margin-top: auto; /* This pushes it to the bottom */
  flex-shrink: 0;   /* Prevents it from shrinking */
}

/* Ensure past meal options don't have extra margin that affects layout */
.meal-options--past {
  margin-bottom: 1rem;
}

/* Make sure quantity display stays at very bottom */
.quantity-display-past {
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Fix for protein balls past cards too */
.meal-card--past.meal-card--addon .meal-bottom-content {
  margin-top: auto;
}

/* Additional specificity for past deadline allergen handling */
.meal-card--past .meal-description h4 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  flex-shrink: 0; /* Don't let allergen info shrink */
}
/* Enhanced Meal Card Hover Effects - Replace your existing .meal-card:hover rule */


/* Enhanced hover for regular meal cards */
.meal-card:hover:not(.meal-card--past):not(.meal-card--addon) {
  border-color: #3D081B;
  box-shadow: 0 1rem 2rem rgba(61, 8, 27, 0.15);
}

/* Non-subscriber specific styles */
.non-subscriber-mode .meal-options,
.non-subscriber-mode .addon-options-wrapper,
.non-subscriber-mode .quantity-controls,
.non-subscriber-mode .order-summary,
.non-subscriber-mode [data-save-order],
.non-subscriber-mode .deadline-notice,
.non-subscriber-mode [data-deadline-notice] {
  display: none !important;
}

.non-subscriber-mode .meal-card {
  cursor: default;
  pointer-events: none;
}

.non-subscriber-mode .meal-card:hover {
  transform: none;
  box-shadow: none;
  border-color: #baa8ae;
}

/* Subscribe CTA for non-subscribers */
.subscribe-cta-section {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  margin: 3rem auto;
  max-width: 600px;
  background: linear-gradient(135deg, #fff3cd 0%, #ffffff 100%);
  border: 2px solid #3D081B;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(61, 8, 27, 0.1);
}

.non-subscriber-mode .subscribe-cta-section {
  display: block;
}

.subscribe-cta-title {
  font-size: 2.4rem;
  color: #3D081B;
  margin-bottom: 1rem;
  font-weight: bold;
}

.subscribe-cta-subtitle {
  font-size: 1.4rem;
  color: #666;
}

.subscribe-cta-benefits {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.2rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.subscribe-benefit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  color: #333;
}

.subscribe-benefit::before {
  content: "✓";
  color: #4CAF50;
  font-weight: bold;
  font-size: 1.8rem;
}

.subscribe-cta-button {
  background: #3D081B;
  color: white;
  padding: 1.1rem 5rem;
  font-size: 1.5rem;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
}

.subscribe-cta-button:hover {
  background: #5a0c29;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 8, 27, 0.3);
}

/* View-only meal info banner */
.view-only-banner {
  display: none;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.non-subscriber-mode .view-only-banner {
  display: block;
}

.view-only-banner-text {
  font-size: 1.4rem;
  color: #666;
  margin: 0;
}

.view-only-banner-link {
  color: #3D081B;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px solid #3D081B;
}

.view-only-banner-link:hover {
  color: #5a0c29;
}

/* Adjust meal card display for non-subscribers */
.non-subscriber-mode .meal-info {
  padding-bottom: 2rem;
}

.non-subscriber-mode .meal-spacer {
  display: none;
}

.non-subscriber-mode .meal-options-wrapper {
  display: none;
}

/* Hide week selection header for non-subscribers if you want */
.non-subscriber-mode .week-selection h2 {
  display: none;
}

/* Or make week cards less prominent -  Hide week selection entirely 
.non-subscriber-mode .week-grid {
  display: none; 
}*/

/* Alternative: Keep week grid but make it smaller/less prominent */

.non-subscriber-mode .week-grid {
  opacity: 0.5;
  max-width: 40rem;
  margin: 1rem auto;
}


/* Make sure meal section is always visible for non-subscribers */
.non-subscriber-mode .meal-selection {
  display: block !important;
  margin-top: 2rem;
}

/* Hide "Select Menu" text for non-subscribers since it auto-opens */
.non-subscriber-mode .week-selection {
  display: none; /* This hides the entire week selection area */
}

/* Mobile responsive */
@media screen and (max-width: 749px) {
  .subscribe-cta-section {
    padding: 2rem 1.5rem;
    margin: 2rem 1rem;
  }
  
  .subscribe-cta-title {
    font-size: 2rem;
  }
  
  .subscribe-cta-button {
    padding: 1rem 1rem;
    font-size: 1rem;
  }
}

.subscribe-benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #3D081B;
    font-weight: 600;
    padding: 0.5rem;
}
.subscribe-benefit::before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 0.5rem;
}
.subscribe-cta-section {
  text-align: center;
  padding: 3rem 2rem;
  margin: 3rem auto;
  max-width: 850px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* Sync Status Indicator */
.sync-status-indicator {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 9999;
  animation: slideInRight 0.3s ease-out;
}

.sync-status-content {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 1.4rem;
  font-weight: 500;
}

/* Sync states */
.sync-status-indicator--syncing .sync-status-content {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.sync-status-indicator--success .sync-status-content {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.sync-status-indicator--error .sync-status-content {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.sync-status-indicator--offline .sync-status-content {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* Spinning icon for syncing state */
.sync-status-indicator--syncing .sync-icon::before {
  content: "🔄";
  display: inline-block;
  animation: spin 1s linear infinite;
}

.sync-status-indicator--success .sync-icon::before {
  content: "✅";
}

.sync-status-indicator--error .sync-icon::before {
  content: "❌";
}

.sync-status-indicator--offline .sync-icon::before {
  content: "📴";
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Mobile responsive */
@media screen and (max-width: 749px) {
  .sync-status-indicator {
    right: 1rem;
    left: 1rem;
    top: 1rem;
  }
  
  .sync-status-content {
    justify-content: center;
  }
}
.sync-controls-wrapper {
  max-width: 100%;
}

.sync-controls {
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 749px) {
  .sync-controls {
    flex-direction: column;
    text-align: center;
  }
  
  #manual-refresh-btn {
    width: 100%;
  }
}

#manual-refresh-btn {
  font-size: 1.3rem;
  padding: 0.8rem 1.5rem;
  transition: all 0.2s ease;
}
#clear-data {
  font-size: 1.3rem;
}
#download-history {
  font-size: 1.3rem;
}

#manual-refresh-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

#manual-refresh-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.syncing {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Last sync time indicator */
#last-sync-time {
  font-weight: 500;
}

#last-sync-time.sync-fresh {
  color: #28a745;
}

#last-sync-time.sync-stale {
  color: #ffc107;
}

#last-sync-time.sync-old {
  color: #dc3545;
}

.subscribe-cta-title { margin: 0 0 .5rem; font-size: 2rem; }

.subscribe-cta-note { margin: 1rem auto 1rem; color: #666; font-size: 1.4rem}

.subscribe-cta-button:hover { background:rgb(47, 6, 21); transform: translateY(-1px); }
