#meal-plan-builder {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 50px;
    padding: 15px;
}
.mainMealsection {
    grid-column: 1 / span 8; /* Takes 8 out of 12 columns */
}
.summarycheckout {
    grid-column: 9 / span 4; /* Starts at column 9, takes up 4 columns = ends at 12 */
    position: -webkit-sticky;
    position: sticky;
    align-self: flex-start;
    height: max-content;
    top: 88px;
    background: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #dfdfdf;
}
.summarycheckout h3 {
    width: 100%;
    color: #000;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px;
}
#meal-plan-builder table {
    border: none;
    margin: 0;
    background: #f9f9f9;
}
#meal-plan-builder table tr {
    background: transparent !important;
}
#meal-plan-builder table td {
    padding: 5px 0;
    vertical-align: top;
    border: none;
    background: transparent !important;
}
.summarycheckout h5 {
    width: 100%;
    color: #000;
    font-size: 20px;
    font-weight: 600;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #dfdfdf;
    justify-content: space-between;
    display: flex;
}
.summarycheckout button#checkout-button {
    width: 100%;
    background-color: #5c6836;
    color: #fff;
    font-weight: 700;
    border: none;
    font-size: 18px;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}
.summarycheckout button#checkout-button:hover, .summarycheckout button#checkout-button:focus {
    background-color: #384020;
}
#meal-plan-builder .selected {
    border: 1px solid #5c6836;
    background-color: rgba(92, 104, 54, 0.1);
}
.meal-option:hover, .meal-option:focus, .meal-day-option:hover, .meal-day-option:focus, .payment-option:hover, .payment-option:focus, .day-option:hover, .day-option:focus {
    border: 1px solid #dfdfdf;
    background-color: #f8f8f8;
}
#meal-plan-builder h2 {
    width: 100%;
    color: #000;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px;
}
.meal-types {
    width: 100%;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 0 0 50px;
}
.meal-option {
    width: 100%;
    cursor: pointer;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    display: flex;
    gap: 25px;
    flex-direction: column;
    transition: all 0.3s ease;
}
.innerMealDetails {
    width: 100%;
    cursor: pointer;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}
.outerMealDetails {
    width: 100%;
    cursor: pointer;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}
.meal-option img {
    width: 60px;
}
.meal-option h6 {
    width: 100%;
    font-weight: 600;
    font-size: 16px;
    color: #000;
    margin: 0 0 5px;
}
.meal-option p {
    width: 100%;
    font-size: 15px;
    margin: 0;
    line-height: 1.4em;
}
.selectplanbtn {
    color: #384020;
    font-size: 12px;
    padding: 6px 15px;
    font-weight: 600;
    border-radius: 30px;
    background: rgba(92, 104, 54, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}
#meal-plan-builder .selected .selectplanbtn {
    color: #fff;
    background: #384020;
}
button.learn-more-button {
    color: #384020;
    font-size: 13px;
    padding: 0 20px 0 0;
    border: none;
    background: url("https://mealplan.enhdemo.com/wp-content/uploads/2025/06/arrow-1.svg") no-repeat center right;
    background-size: 14px;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}
button.learn-more-button:hover {
    color: #000;
    background-color: transparent;
    padding-right: 25px; /* Creates a slight "push" effect on hover */
    background-position: center right;
}
.meal-per-day {
    width: 100%;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 0 0 50px;
}
.meal-per-day > .section-alert {
    grid-column: 1 / -1;
}
.meal-day-option {
    width: 100%;
    cursor: pointer;
    padding: 24px;
    border: 1px solid #ccc;
    border-radius: 8px;
    gap: 20px;
    color: #000;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
}
.meal-day-option:after {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #fff;
    content: "";
    z-index: 999;
    right: 24px;
    border-radius: 8px;
    padding: 0;
    border: 1px solid #dfdfdf;
}
.meal-day-option.selected:after {
    background: #5c6836 url("https://mealplan.enhdemo.com/wp-content/uploads/2025/05/tick.svg") no-repeat center center;
    background-size: 16px 16px;
    content: "";
    z-index: 999;
    padding: 4px;
    box-sizing: border-box;
}
.meal-day-option h6 {
    width: auto;
    font-weight: 600;
    font-size: 16px;
    color: #000;
    margin: 0;
}
.meal-day-option span {
    width: auto;
    font-weight: 400;
    font-size: 12px;
    color: #000;
    margin: 0 35px 0 0;
}
.days-selection {
    width: 100%;
    padding: 0;
    gap: 15px;
    margin: 0 0 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.day-option {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 18px;
    line-height: 50px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    font-weight: 600;
    color: #000;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}
.day-option.selected {
    border: 1px solid #5c6836;
    color: #fff;
    background-color: #5c6836 !important;
}
.payment-cycles {
    width: 100%;
    margin: 0 0 50px;
}
.payment-option {
    width: 100%;
    cursor: pointer;
    display: inline-block;
    margin: 0 0 24px;
    padding: 24px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #000;
    transition: all 0.3s ease;
    position: relative;
}
.payment-option:after {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #fff;
    content: "";
    z-index: 999;
    right: 24px;
    top: 35px;
    border-radius: 12px;
    padding: 0;
    border: 1px solid #dfdfdf;
}
.payment-option.selected:after {
    background: #5c6836 url("https://mealplan.enhdemo.com/wp-content/uploads/2025/05/circle.svg") no-repeat center center;
    background-size: 8px 8px;
    content: "";
    z-index: 999;
    padding: 4px;
    box-sizing: border-box;
}
.payment-price-info {
    width: 100%;
    margin: 0;
    padding: 0;
    justify-content: space-between;
    display: flex;
    font-size: 12px;
    gap: 20px;
}
.payment-price-info span {
    color: #626262;
    font-weight: 400;
}
.payment-price-info aside {
    color: #000;
    margin: 0 35px 0 0;
    bottom: 8px;
    position: relative;
    font-weight: 500;
    font-size: 14px;
}
.summary {
    margin-top: 20px;
}
.section-alert {
    color: red;
    font-size: 16px;
    margin-top: 5px;
    width: 100%;
    border: none;
}
.disabled {
    pointer-events: none;
    opacity: 0.5;
}
.payment-price-display {
    display: none;
}
/* Modal Overlay */
#meal-info-modal {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#meal-info-modal.show {
    display: flex;
    opacity: 1;
}
#meal-info-modal .modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: left;
}
.close-modal {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    border: 1px solid #dfdfdf;
    text-align: center;
    line-height: 46px;
}
.close-modal:hover, .close-modal:focus {
    color: #333;
}
.close-modal:focus {
    outline: 2px solid #5c6836;
    outline-offset: 2px;
}
#modal-body-text .meal-info {
    margin-bottom: 20px;
}
#modal-body-text .meal-info h4 {
    margin: 0 0 10px;
    font-size: 20px;
}
#modal-body-text .meal-info p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}
.menu-tabs {
    width: 100%;
}
.tab-titles {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    border-bottom: 1px solid #dfdfdf;
}
.tab-titles li {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: color 0.3s ease;
}
.tab-titles li.active {
    color: #5c6836;
    border: none;
    border-bottom: 2px solid #384020;
}
.tab-titles li:hover {
    color: #5c6836;
    border-bottom: 2px solid #ccc;
}
.tab-panel {
    display: none;
    min-height: 460px;
    max-height: 41vh;
    overflow: hidden;
    overflow-y: scroll;
    padding: 0 15px 0 0;
    /* Scrollbar Styling for WebKit (Chrome, Safari, Edge) */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #5c6836 transparent; /* Firefox */
}
.tab-panel::-webkit-scrollbar {
    width: 8px;
}
.tab-panel::-webkit-scrollbar-track {
    background: transparent;
}
.tab-panel::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: content-box;
    transition: background-color 0.3s;
}
.tab-panel::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}
.tab-panel.active {
    display: block;
}
.menu-list {
    width: 100%;
    margin: 0;
    padding: 0 0 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 40px;
    column-gap: 20px;
}
.menu-list li {
    width: 100%;
}
.menu-list li span {
    width: 100%;
    height: auto;
}
.menu-list li span img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px;
}
.menu-list h6 {
    font-size: 12px;
    font-weight: 400 !important;
    text-align: center;
    padding: 0;
    margin: 0;
}
/* Media Queries */
@media (min-width:300px) and (max-width:991px) {
    .payment-cycles {
        margin: 0;
    }
}
@media (max-width: 1024px) {
    #meal-plan-builder {
        gap: 30px;
        padding: 0;
    }
    .mainMealsection {
        grid-column: 1 / span 12;
    }
    .summarycheckout {
        grid-column: 1 / span 12;
        padding: 20px;
    }
}
@media (max-width: 768px) {
    #meal-plan-builder {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .mainMealsection {
        grid-column: 1 / span 12;
    }
    .summarycheckout {
        grid-column: 1 / span 12;
        position: static;
        padding: 20px;
    }
}
@media (max-width: 600px) {
    .meal-types, .meal-per-day {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ===== Additive accessibility helpers (non-breaking) ===== */
:focus-visible { outline: 2px solid rgba(0,0,0,.4); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
/* ===== End helpers ===== */
