{"id":4235,"date":"2026-08-27T06:09:40","date_gmt":"2026-08-27T03:09:40","guid":{"rendered":"https:\/\/www.myhappytummies.org\/?page_id=4235"},"modified":"2026-10-26T11:24:18","modified_gmt":"2026-10-26T08:24:18","slug":"plan","status":"publish","type":"page","link":"https:\/\/www.myhappytummies.org\/ar\/plan\/","title":{"rendered":"plans"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"4235\" class=\"elementor elementor-4235\">\n\t\t\t\t<div class=\"elementor-element elementor-element-6039c16 e-con-full e-flex e-con e-parent\" data-id=\"6039c16\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-bcc5157 elementor-widget elementor-widget-shortcode\" data-id=\"bcc5157\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\n    <div id=\"ht-wizard-app\" dir=\"rtl\" class=\"ht-rtl \">\n\n        <!-- Header Progress -->\n        <div class=\"ht-wizard-header\">\n            <div class=\"ht-header-info\">\n                <span class=\"ht-step-badge\" data-no-translation>\n                    \u0627\u0644\u062e\u0637\u0648\u0629                    <span id=\"ht-current-step-num\">1<\/span>\n                                            \u0645\u0646 2                                    <\/span>\n                <h2 id=\"ht-step-title\" data-no-translation>\n                    1. \u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0628\u0627\u0642\u0629 \u0627\u0644\u063a\u0630\u0627\u0626\u064a\u0629                <\/h2>\n            <\/div>\n            <div class=\"ht-progress-track\">\n                <div class=\"ht-track-fill\" id=\"ht-progress-fill\" style=\"width: 50%;\"><\/div>\n            <\/div>\n        <\/div>\n\n        <!-- STEP 1: BENTO PLAN SELECTION -->\n        <div class=\"ht-step active\" id=\"ht-step-1\">\n            <div class=\"ht-step-intro\">\n                <h3>\u0627\u062e\u062a\u0631 \u0627\u0644\u0628\u0627\u0642\u0629 \u0627\u0644\u0645\u0646\u0627\u0633\u0628\u0629 \u0644\u0628\u0637\u0644\u0643\u0645<\/h3>\n                <p>\u0648\u062c\u0628\u0627\u062a \u0635\u062d\u064a\u0629 \u0648\u0637\u0627\u0632\u062c\u0629 \u0648\u0645\u062c\u0647\u0632\u0629 \u0628\u0639\u0646\u0627\u064a\u0629 \u0641\u0627\u0626\u0642\u0629 \u064a\u0648\u0645\u064a\u0627\u064b \u0645\u0646 \u0645\u0637\u0628\u062e\u0646\u0627.<\/p>\n            <\/div>\n\n            <div class=\"ht-bento-grid\">\n                                    <div class=\"ht-bento-card ht-bento-full\"\n                        data-plan-id=\"4098\"\n                        data-plan-key=\"Full\"\n                        data-plan-title=\"Rose Garden School &#038; Daycare Full Tummies\"\n                        data-plan-price=\"960\"\n                        data-period-text=\"\u0631.\u0633 \/ \u0634\u0647\u0631\">\n\n                        <div class=\"ht-bento-top-badge\" data-no-translation>\n                            \u0627\u0634\u062a\u0631\u0627\u0643 \u0634\u0647\u0631\u064a (20 \u064a\u0648\u0645)                        <\/div>\n\n                        <div class=\"ht-bento-media\">\n                            <img decoding=\"async\" src=\"https:\/\/www.myhappytummies.org\/mhapptmms\/wp-content\/uploads\/2026\/08\/15539060_395504724116494_1407202711199285248_a-768x768.jpg\" alt=\"Rose Garden School &#038; Daycare Full Tummies\" loading=\"lazy\" \/>\n                            <span class=\"ht-bento-tag ht-bento-tag-full\" data-no-translation>\n                                \ud83c\udf1f \u0643\u0648\u0645\u0628\u0648 \u0645\u062a\u0643\u0627\u0645\u0644                            <\/span>\n                        <\/div>\n\n                        <div class=\"ht-bento-content\">\n                            <h4 class=\"ht-bento-title\">Rose Garden School &#038; Daycare Full Tummies<\/h4>\n\n                            <div class=\"ht-bento-price-pill\" data-no-translation>\n                                <div class=\"ht-bento-price\">\n                                    <span class=\"ht-bento-val\">960<\/span>\n                                    <span class=\"ht-bento-cur\">\u0631.\u0633<\/span>\n                                <\/div>\n                                <span class=\"ht-bento-dur\">\u0631.\u0633 \/ \u0634\u0647\u0631<\/span>\n                            <\/div>\n\n                            <p class=\"ht-bento-desc\">Breakfast + Lunch Daily<\/p>\n                        <\/div>\n\n                        <div class=\"ht-bento-footer\">\n                            <span class=\"ht-bento-action-text\">\u0627\u062e\u062a\u064a\u0627\u0631 \u0647\u0630\u0647 \u0627\u0644\u0628\u0627\u0642\u0629<\/span>\n                            <span class=\"ht-bento-check\">\u2713<\/span>\n                        <\/div>\n                    <\/div>\n                                    <div class=\"ht-bento-card ht-bento-lunch\"\n                        data-plan-id=\"4099\"\n                        data-plan-key=\"Lunch\"\n                        data-plan-title=\"Rose Garden School &#038; Daycare Tiny Tummies\"\n                        data-plan-price=\"585\"\n                        data-period-text=\"\u0631.\u0633 \/ \u0634\u0647\u0631\">\n\n                        <div class=\"ht-bento-top-badge\" data-no-translation>\n                            \u0627\u0634\u062a\u0631\u0627\u0643 \u0634\u0647\u0631\u064a (20 \u064a\u0648\u0645)                        <\/div>\n\n                        <div class=\"ht-bento-media\">\n                            <img decoding=\"async\" src=\"https:\/\/www.myhappytummies.org\/mhapptmms\/wp-content\/uploads\/2026\/08\/15539060_395504724116494_1407202711199285248_a-768x768.jpg\" alt=\"Rose Garden School &#038; Daycare Tiny Tummies\" loading=\"lazy\" \/>\n                            <span class=\"ht-bento-tag ht-bento-tag-lunch\" data-no-translation>\n                                \ud83c\udf71 \u063a\u062f\u0627\u0621                            <\/span>\n                        <\/div>\n\n                        <div class=\"ht-bento-content\">\n                            <h4 class=\"ht-bento-title\">Rose Garden School &#038; Daycare Tiny Tummies<\/h4>\n\n                            <div class=\"ht-bento-price-pill\" data-no-translation>\n                                <div class=\"ht-bento-price\">\n                                    <span class=\"ht-bento-val\">585<\/span>\n                                    <span class=\"ht-bento-cur\">\u0631.\u0633<\/span>\n                                <\/div>\n                                <span class=\"ht-bento-dur\">\u0631.\u0633 \/ \u0634\u0647\u0631<\/span>\n                            <\/div>\n\n                            <p class=\"ht-bento-desc\">Lunch Meal Daily<\/p>\n                        <\/div>\n\n                        <div class=\"ht-bento-footer\">\n                            <span class=\"ht-bento-action-text\">\u0627\u062e\u062a\u064a\u0627\u0631 \u0647\u0630\u0647 \u0627\u0644\u0628\u0627\u0642\u0629<\/span>\n                            <span class=\"ht-bento-check\">\u2713<\/span>\n                        <\/div>\n                    <\/div>\n                            <\/div>\n\n            <div class=\"ht-actions\" style=\"justify-content: flex-end;\">\n                <button type=\"button\" class=\"ht-btn ht-btn-primary ht-next-btn\">\n                    \u0645\u062a\u0627\u0628\u0639\u0629 \u2794                <\/button>\n            <\/div>\n        <\/div>\n\n        <!-- STEP 2: CHILD INFO & SCHOOL (NATIVE DROPDOWNS) -->\n        <div class=\"ht-step\" id=\"ht-step-2\">\n            <div class=\"ht-step-intro\">\n                <h3>\u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0637\u0641\u0644 \u0648\u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0645\u062f\u0631\u0633\u064a<\/h3>\n                <p>\u062a\u064f\u062d\u0641\u0638 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u062a\u0644\u0642\u0627\u0626\u064a\u0627\u064b \u0639\u0644\u0649 \u062c\u0647\u0627\u0632\u0643\u0645 \u0644\u0631\u0627\u062d\u062a\u0643\u0645 \u0648\u062a\u0648\u0641\u064a\u0631 \u0648\u0642\u062a\u0643\u0645.<\/p>\n            <\/div>\n\n            <div class=\"ht-form-grid\">\n                <!-- Child Name -->\n                <div class=\"ht-field-group\">\n                    <label for=\"ht_child_name\">\n                        <span class=\"ht-field-icon\">\ud83d\udc76<\/span>\u0627\u0633\u0645 \u0627\u0644\u0637\u0641\u0644 \u062b\u0644\u0627\u062b\u064a *                    <\/label>\n                    <input type=\"text\" id=\"ht_child_name\" placeholder=\"\u0645\u062b\u0627\u0644: \u0641\u064a\u0635\u0644 \u0641\u0647\u062f \u0627\u0644\u0642\u062d\u0637\u0627\u0646\u064a\" required \/>\n                <\/div>\n\n                <!-- Native Schools Select -->\n                <div class=\"ht-field-group\">\n                    <label for=\"ht_school_name\">\n                        <span class=\"ht-field-icon\">\ud83c\udfeb<\/span>\u0627\u0633\u0645 \u0627\u0644\u0645\u062f\u0631\u0633\u0629 *                    <\/label>\n                    <select id=\"ht_school_name\" class=\"ht-native-select\" required>\n                        <option value=\"\">-- \u0627\u062e\u062a\u0631 \u0627\u0644\u0645\u062f\u0631\u0633\u0629 \u0627\u0644\u0645\u0639\u062a\u0645\u062f\u0629 --<\/option>\n                                                    <option value=\"\u0645\u062f\u0631\u0633\u0629 \u062d\u062f\u064a\u0642\u0629 \u0627\u0644\u0648\u0631\u062f\">\u0645\u062f\u0631\u0633\u0629 \u062d\u062f\u064a\u0642\u0629 \u0627\u0644\u0648\u0631\u062f<\/option>\n                                                    <option value=\"\u062d\u0636\u0627\u0646\u0629 \u062d\u062f\u064a\u0642\u0629 \u0627\u0644\u0648\u0631\u062f\">\u062d\u0636\u0627\u0646\u0629 \u062d\u062f\u064a\u0642\u0629 \u0627\u0644\u0648\u0631\u062f<\/option>\n                                            <\/select>\n                <\/div>\n\n                <!-- Native Classes Select -->\n                <div class=\"ht-field-group\">\n                    <label for=\"ht_class_name\">\n                        <span class=\"ht-field-icon\">\ud83c\udf92<\/span>\u0627\u0644\u0635\u0641 \u0627\u0644\u062f\u0631\u0627\u0633\u064a \/ \u0627\u0644\u0641\u0635\u0644 *                    <\/label>\n                    <select id=\"ht_class_name\" class=\"ht-native-select\" required>\n                        <option value=\"\">-- \u0627\u062e\u062a\u0631 \u0627\u0644\u0635\u0641 \u0623\u0648 \u0627\u0644\u0645\u0631\u062d\u0644\u0629 --<\/option>\n                                                    <option value=\"\u0627\u0644\u0623\u0637\u0641\u0627\u0644 \u0627\u0644\u0635\u063a\u0627\u0631\">\u0627\u0644\u0623\u0637\u0641\u0627\u0644 \u0627\u0644\u0635\u063a\u0627\u0631<\/option>\n                                                    <option value=\"\u0627\u0644\u062d\u0636\u0627\u0646\u0629\">\u0627\u0644\u062d\u0636\u0627\u0646\u0629<\/option>\n                                                    <option value=\"\u0645\u0627 \u0642\u0628\u0644 \u0627\u0644\u0631\u0648\u0636\u0629 2\">\u0645\u0627 \u0642\u0628\u0644 \u0627\u0644\u0631\u0648\u0636\u0629 2<\/option>\n                                                    <option value=\"\u0627\u0644\u0631\u0648\u0636\u0629 \u0627\u0644\u0623\u0648\u0644\u0649\">\u0627\u0644\u0631\u0648\u0636\u0629 \u0627\u0644\u0623\u0648\u0644\u0649<\/option>\n                                                    <option value=\"\u0627\u0644\u0631\u0648\u0636\u0629 \u0627\u0644\u062b\u0627\u0646\u064a\u0629\">\u0627\u0644\u0631\u0648\u0636\u0629 \u0627\u0644\u062b\u0627\u0646\u064a\u0629<\/option>\n                                                    <option value=\"\u0627\u0644\u0631\u0648\u0636\u0629 \u0627\u0644\u062b\u0627\u0644\u062b\u0629\">\u0627\u0644\u0631\u0648\u0636\u0629 \u0627\u0644\u062b\u0627\u0644\u062b\u0629<\/option>\n                                                    <option value=\"\u0627\u0644\u0635\u0641 \u0627\u0644\u0623\u0648\u0644 \u0627\u0644\u0627\u0628\u062a\u062f\u0627\u0626\u064a\">\u0627\u0644\u0635\u0641 \u0627\u0644\u0623\u0648\u0644 \u0627\u0644\u0627\u0628\u062a\u062f\u0627\u0626\u064a<\/option>\n                                                    <option value=\"\u0627\u0644\u0635\u0641 \u0627\u0644\u062b\u0627\u0646\u064a \u0627\u0644\u0627\u0628\u062a\u062f\u0627\u0626\u064a\">\u0627\u0644\u0635\u0641 \u0627\u0644\u062b\u0627\u0646\u064a \u0627\u0644\u0627\u0628\u062a\u062f\u0627\u0626\u064a<\/option>\n                                                    <option value=\"\u0627\u0644\u0635\u0641 \u0627\u0644\u062b\u0627\u0644\u062b \u0627\u0644\u0627\u0628\u062a\u062f\u0627\u0626\u064a\">\u0627\u0644\u0635\u0641 \u0627\u0644\u062b\u0627\u0644\u062b \u0627\u0644\u0627\u0628\u062a\u062f\u0627\u0626\u064a<\/option>\n                                                    <option value=\"\u0627\u0644\u0635\u0641 \u0627\u0644\u0631\u0627\u0628\u0639 \u0627\u0644\u0627\u0628\u062a\u062f\u0627\u0626\u064a\">\u0627\u0644\u0635\u0641 \u0627\u0644\u0631\u0627\u0628\u0639 \u0627\u0644\u0627\u0628\u062a\u062f\u0627\u0626\u064a<\/option>\n                                                    <option value=\"\u0627\u0644\u0635\u0641 \u0627\u0644\u062e\u0627\u0645\u0633 \u0627\u0644\u0627\u0628\u062a\u062f\u0627\u0626\u064a\">\u0627\u0644\u0635\u0641 \u0627\u0644\u062e\u0627\u0645\u0633 \u0627\u0644\u0627\u0628\u062a\u062f\u0627\u0626\u064a<\/option>\n                                                    <option value=\"\u0627\u0644\u0635\u0641 \u0627\u0644\u0633\u0627\u062f\u0633 \u0627\u0644\u0627\u0628\u062a\u062f\u0627\u0626\u064a\">\u0627\u0644\u0635\u0641 \u0627\u0644\u0633\u0627\u062f\u0633 \u0627\u0644\u0627\u0628\u062a\u062f\u0627\u0626\u064a<\/option>\n                                            <\/select>\n                <\/div>\n            <\/div>\n\n            <!-- Allergy Box (Honors Admin Toggle) -->\n            \n            <div class=\"ht-actions\">\n                <button type=\"button\" class=\"ht-btn ht-btn-outline ht-prev-btn\">\u2b05\ufe0f \u0627\u0644\u0628\u0627\u0642\u0627\u062a<\/button>\n                <button type=\"button\" class=\"ht-btn ht-btn-primary ht-next-btn\">\u0627\u0644\u0645\u062a\u0627\u0628\u0639\u0629 \u0625\u0644\u0649 \u0627\u0644\u062f\u0641\u0639 \u2794<\/button>\n            <\/div>\n        <\/div>\n\n        <!-- STEP 3: DYNAMIC MATRIX WEEKS & MEALS -->\n        <div class=\"ht-step\" id=\"ht-step-3\">\n\n            \n            <div class=\"ht-menu-nav-bar\">\n                <div class=\"ht-week-indicator\" id=\"ht-week-indicators-holder\" data-no-translation><\/div>\n                <div class=\"ht-week-counter-tag\" data-no-translation>\n                    <span id=\"ht-current-week-display\">...<\/span>\n                <\/div>\n            <\/div>\n\n            <div id=\"ht-menu-loader\">\n                <div class=\"ht-spinner\"><\/div>\n                <p data-no-translation>\u062c\u0627\u0631\u064a \u0627\u0633\u062a\u062f\u0639\u0627\u0621 \u062c\u062f\u0648\u0644 \u0627\u0644\u0648\u062c\u0628\u0627\u062a \u0627\u0644\u062f\u0642\u064a\u0642...<\/p>\n            <\/div>\n\n            <div id=\"ht-weeks-wrapper\" style=\"display:none;\" data-no-translation><\/div>\n\n            <div class=\"ht-actions\">\n                <button type=\"button\" class=\"ht-btn ht-btn-outline\" id=\"ht-week-prev-btn\">\u2b05\ufe0f \u0627\u0644\u0633\u0627\u0628\u0642<\/button>\n                <button type=\"button\" class=\"ht-btn ht-btn-primary\" id=\"ht-week-next-btn\">\u0627\u0644\u062a\u0627\u0644\u064a \u2794<\/button>\n            <\/div>\n        <\/div>\n\n        <!-- STEP 4: SUMMARY & CHECKOUT -->\n        <div class=\"ht-step\" id=\"ht-step-4\">\n            <div class=\"ht-step-intro\">\n                <h3>\u0645\u0631\u0627\u062c\u0639\u0629 \u0648\u062a\u0623\u0643\u064a\u062f \u062c\u062f\u0648\u0644 \u0627\u0644\u0648\u062c\u0628\u0627\u062a<\/h3>\n                <p>\u064a\u0631\u062c\u0649 \u0645\u0631\u0627\u062c\u0639\u0629 \u0627\u0644\u0648\u062c\u0628\u0627\u062a \u0627\u0644\u0645\u062e\u062a\u0627\u0631\u0629 \u0648\u0628\u064a\u0627\u0646\u0627\u062a \u0637\u0641\u0644\u0643 \u0642\u0628\u0644 \u0627\u0644\u0627\u0646\u062a\u0642\u0627\u0644 \u0644\u0644\u062f\u0641\u0639.<\/p>\n            <\/div>\n\n            <div class=\"ht-summary-box\">\n                <div class=\"ht-summary-header\">\n                    <div>\n                        <strong id=\"summary-child-name\" style=\"font-size: 18px; color: #44A7E0;\"><\/strong>\n                        <div class=\"ht-summary-student-meta\">\n                            <span id=\"summary-school-name\"><\/span>\n                            <span class=\"ht-summary-dot\">\u2022<\/span>\n                            <span id=\"summary-class-name\"><\/span>\n                        <\/div>\n                    <\/div>\n                    <div class=\"ht-summary-plan-badge\" id=\"summary-plan-title\" data-no-translation><\/div>\n                <\/div>\n\n                <div class=\"ht-summary-section\">\n                    <h4 style=\"margin: 0 0 14px 0; font-size: 15.5px; color: #1E293B; font-weight: 800;\">\n                        \ud83d\udccb \u062c\u062f\u0648\u0644 \u0627\u0644\u0648\u062c\u0628\u0627\u062a \u0627\u0644\u0645\u0639\u062a\u0645\u062f:                    <\/h4>\n                    <div id=\"ht-summary-meals-list\" class=\"ht-summary-grid\" data-no-translation><\/div>\n                <\/div>\n\n                <div class=\"ht-coupon-container\">\n                    <div class=\"ht-coupon-input-wrap\">\n                        <input type=\"text\" id=\"ht-coupon-code-input\" placeholder=\"\u0647\u0644 \u0644\u062f\u064a\u0643 \u0643\u0648\u062f \u062e\u0635\u0645\u061f \u0623\u062f\u062e\u0644\u0647 \u0647\u0646\u0627\" \/>\n                        <button type=\"button\" id=\"ht-apply-coupon-btn\" class=\"ht-btn ht-btn-coupon\">\u062a\u0637\u0628\u064a\u0642 \u0627\u0644\u062e\u0635\u0645<\/button>\n                    <\/div>\n                    <div id=\"ht-coupon-response-msg\" data-no-translation><\/div>\n                <\/div>\n\n                <div class=\"ht-price-breakdown\">\n                    <div class=\"ht-price-row\">\n                        <span>\u0642\u064a\u0645\u0629 \u0627\u0644\u0628\u0627\u0642\u0629:<\/span>\n                        <strong id=\"ht-base-price-display\" data-no-translation>0 \u0631.\u0633<\/strong>\n                    <\/div>\n                    <div class=\"ht-price-row ht-discount-row\" style=\"display:none; color: #10B981;\">\n                        <span>\u0642\u064a\u0645\u0629 \u0627\u0644\u062e\u0635\u0645:<\/span>\n                        <strong id=\"ht-discount-price-display\" data-no-translation>-0 \u0631.\u0633<\/strong>\n                    <\/div>\n                    <div class=\"ht-price-row ht-total-row\">\n                        <span>\u0627\u0644\u0625\u062c\u0645\u0627\u0644\u064a \u0627\u0644\u0646\u0647\u0627\u0626\u064a \u0627\u0644\u0645\u0637\u0644\u0648\u0628 \u0644\u0644\u062f\u0641\u0639:<\/span>\n                        <strong id=\"ht-final-total-display\" data-no-translation>0 \u0631.\u0633<\/strong>\n                    <\/div>\n                <\/div>\n            <\/div>\n\n            <div class=\"ht-actions\">\n                <button type=\"button\" class=\"ht-btn ht-btn-outline ht-prev-btn\">\u2b05\ufe0f \u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u0648\u062c\u0628\u0627\u062a<\/button>\n                <button type=\"button\" class=\"ht-btn ht-btn-success\" id=\"ht-final-checkout-btn\">\n                    <span>\u062a\u0623\u0643\u064a\u062f \u0648\u0627\u0644\u0627\u0646\u062a\u0642\u0627\u0644 \u0644\u0644\u062f\u0641\u0639 \ud83d\udcb3<\/span>\n                <\/button>\n            <\/div>\n        <\/div>\n\n    <\/div>\n\n    <!-- ==============================================\n         CSS STYLING (BENTO MASTER DESIGN SYSTEM)\n         ============================================== -->\n    <style>\n        #ht-wizard-app {\n            max-width: 1050px;\n            margin: 20px auto;\n            background: #FFFFFF;\n            border-radius: 24px;\n            box-shadow: 0 16px 45px rgba(68, 167, 224, 0.08);\n            overflow: hidden;\n            border: 1.5px solid #F1F5F9;\n            box-sizing: border-box;\n            font-family: inherit;\n        }\n\n        #ht-wizard-app * { box-sizing: border-box; }\n\n        .ht-wizard-header {\n            background: linear-gradient(135deg, #F0F9FF 0%, #FAF5FF 100%);\n            padding: 20px 28px;\n            border-bottom: 2px solid #E0F2FE;\n        }\n\n        .ht-header-info {\n            display: flex;\n            justify-content: space-between;\n            align-items: center;\n            margin-bottom: 12px;\n            gap: 12px;\n        }\n\n        .ht-step-badge {\n            background: linear-gradient(135deg, #44A7E0 0%, #8D5EA8 100%);\n            color: #FFFFFF;\n            padding: 5px 15px;\n            border-radius: 18px;\n            font-size: 12px;\n            font-weight: 800;\n            white-space: nowrap;\n        }\n\n        #ht-step-title {\n            margin: 0;\n            font-size: 19px;\n            font-weight: 900;\n            color: #1E293B;\n        }\n\n        .ht-progress-track {\n            height: 7px;\n            background: #E2E8F0;\n            border-radius: 10px;\n            overflow: hidden;\n        }\n\n        .ht-track-fill {\n            height: 100%;\n            background: linear-gradient(90deg, #44A7E0, #8D5EA8);\n            transition: width 0.35s ease;\n        }\n\n        .ht-post-payment-plan-banner {\n            margin: 0 0 18px;\n            padding: 16px 18px;\n            border-radius: 14px;\n            background: linear-gradient(135deg, #F0F9FF 0%, #FAF5FF 100%);\n            border: 1px solid #D8EAFE;\n            text-align: center;\n        }\n\n        .ht-post-payment-plan-banner strong {\n            display: block;\n            color: #1E293B;\n            font-size: 17px;\n            font-weight: 900;\n            margin-bottom: 5px;\n        }\n\n        .ht-post-payment-plan-banner span {\n            display: block;\n            color: #44A7E0;\n            font-weight: 800;\n            font-size: 14px;\n        }\n\n        .ht-post-payment-plan-banner small {\n            display: block;\n            margin-top: 5px;\n            color: #64748B;\n            font-size: 12px;\n        }\n\n        \/* Post-payment meal-selection mode *\/\n        #ht-wizard-app.ht-post-payment-selection-mode .ht-step {\n            display: none !important;\n        }\n\n        #ht-wizard-app.ht-post-payment-selection-mode #ht-step-3 {\n            display: block !important;\n        }\n\n        #ht-wizard-app.ht-post-payment-selection-mode .ht-menu-nav-bar {\n            margin-bottom: 8px;\n        }\n\n        .ht-step { display: none; padding: 28px 24px; }\n        .ht-step.active { display: block; animation: htFade 0.3s ease-out; }\n\n        @keyframes htFade {\n            from { opacity: 0; transform: translateY(6px); }\n            to { opacity: 1; transform: translateY(0); }\n        }\n\n        .ht-step-intro { text-align: center; margin-bottom: 22px; }\n        .ht-step-intro h3 { font-size: 21px; font-weight: 900; color: #1E293B; margin: 0 0 6px 0; }\n        .ht-step-intro p { color: #64748B; font-size: 14px; margin: 0; }\n\n        \/* Bento Grid Desktop *\/\n        .ht-bento-grid {\n            display: grid;\n            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));\n            gap: 16px;\n            margin-bottom: 24px;\n        }\n\n        .ht-bento-card {\n            background: #FFFFFF;\n            border: 2px solid #E2E8F0;\n            border-radius: 18px;\n            cursor: pointer;\n            position: relative;\n            overflow: hidden;\n            display: flex;\n            flex-direction: column;\n            transition: all 0.2s ease;\n            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);\n            -webkit-tap-highlight-color: transparent;\n        }\n\n        .ht-bento-card:hover { box-shadow: 0 10px 24px rgba(68, 167, 224, 0.12); }\n        .ht-bento-breakfast:hover { border-color: #F59E0B; }\n        .ht-bento-lunch:hover { border-color: #44A7E0; }\n        .ht-bento-full:hover { border-color: #8D5EA8; }\n\n        .ht-bento-card.selected {\n            border-width: 2.5px;\n            border-color: #44A7E0;\n            box-shadow: 0 12px 28px rgba(68, 167, 224, 0.2);\n        }\n        .ht-bento-breakfast.selected { border-color: #F59E0B; }\n        .ht-bento-full.selected { border-color: #8D5EA8; }\n\n        .ht-bento-card.selected::before {\n            content: '';\n            position: absolute;\n            top: 0; left: 0; right: 0;\n            height: 5px;\n            background: linear-gradient(90deg, #44A7E0, #8D5EA8);\n            z-index: 5;\n        }\n\n        .ht-bento-top-badge {\n            position: absolute;\n            top: 10px;\n            background: rgba(30, 41, 59, 0.88);\n            backdrop-filter: blur(6px);\n            color: #FFFFFF;\n            font-size: 10px;\n            font-weight: 800;\n            padding: 3px 9px;\n            border-radius: 16px;\n            z-index: 4;\n        }\n        .ht-rtl .ht-bento-top-badge { right: 10px; }\n        .ht-ltr .ht-bento-top-badge { left: 10px; }\n\n        .ht-bento-media {\n            width: 100%;\n            height: 165px;\n            background: #F8FAFC;\n            position: relative;\n            overflow: hidden;\n            border-bottom: 1px solid #F1F5F9;\n        }\n\n        .ht-bento-media img {\n            width: 100%;\n            height: 100%;\n            object-fit: cover;\n            transform: none !important;\n        }\n\n        .ht-bento-tag {\n            position: absolute;\n            bottom: 8px;\n            font-size: 10.5px;\n            font-weight: 800;\n            padding: 3px 9px;\n            border-radius: 12px;\n            backdrop-filter: blur(8px);\n        }\n        .ht-rtl .ht-bento-tag { left: 8px; }\n        .ht-ltr .ht-bento-tag { right: 8px; }\n\n        .ht-bento-tag-breakfast { background: rgba(254, 243, 199, 0.95); color: #B45309; }\n        .ht-bento-tag-lunch { background: rgba(224, 242, 254, 0.95); color: #0284C7; }\n        .ht-bento-tag-full { background: rgba(250, 232, 255, 0.95); color: #8D5EA8; }\n\n        .ht-bento-content {\n            padding: 14px 12px;\n            flex-grow: 1;\n            display: flex;\n            flex-direction: column;\n            text-align: center;\n        }\n\n        .ht-bento-title {\n            font-size: 16.5px;\n            font-weight: 800;\n            color: #1E293B;\n            margin: 0 0 8px 0;\n            line-height: 1.35;\n        }\n\n        .ht-bento-price-pill {\n            display: flex;\n            flex-direction: column;\n            align-items: center;\n            background: #F8FAFC;\n            border: 1.5px solid #E2E8F0;\n            border-radius: 12px;\n            padding: 7px 8px;\n            margin-bottom: 8px;\n            width: 100%;\n        }\n\n        .ht-bento-price { display: flex; align-items: baseline; gap: 4px; }\n        \/* \u062c\u0645\u064a\u0639 \u0623\u0633\u0639\u0627\u0631 \u0627\u0644\u0628\u0627\u0642\u0627\u062a \u0628\u0646\u0641\u0633 \u0627\u0644\u0644\u0648\u0646 *\/\n        .ht-bento-val {\n            font-size: 23px;\n            font-weight: 900;\n            color: #44A7E0 !important;\n            line-height: 1;\n        }\n        .ht-bento-breakfast .ht-bento-val,\n        .ht-bento-lunch .ht-bento-val,\n        .ht-bento-full .ht-bento-val {\n            color: #44A7E0 !important;\n        }\n        .ht-bento-cur { font-size: 12px; font-weight: 800; color: #64748B; }\n        .ht-bento-dur { font-size: 11px; font-weight: 700; color: #475569; margin-top: 2px; }\n\n        .ht-bento-desc {\n            font-size: 12.5px;\n            color: #64748B;\n            line-height: 1.45;\n            margin: 0 0 6px;\n            flex-grow: 1;\n            min-height: 32px;\n        }\n\n        .ht-bento-footer {\n            background: #F8FAFC;\n            padding: 9px 12px;\n            display: flex;\n            justify-content: space-between;\n            align-items: center;\n            border-top: 1px solid #E2E8F0;\n            font-size: 12px;\n            font-weight: 800;\n            color: #64748B;\n        }\n\n        .ht-bento-card.selected .ht-bento-footer { background: #44A7E0; color: #FFFFFF; }\n        .ht-bento-breakfast.selected .ht-bento-footer { background: #F59E0B; }\n        .ht-bento-full.selected .ht-bento-footer { background: #8D5EA8; }\n        .ht-bento-check { opacity: 0; }\n        .ht-bento-card.selected .ht-bento-check { opacity: 1; }\n\n        \/* Step 2 Inputs & Native Selects *\/\n        .ht-form-grid {\n            display: grid;\n            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));\n            gap: 16px;\n            margin-bottom: 20px;\n        }\n\n        .ht-field-group label {\n            display: flex;\n            align-items: center;\n            gap: 6px;\n            font-weight: 800;\n            color: #1E293B;\n            margin-bottom: 7px;\n            font-size: 13.5px;\n        }\n\n        .ht-field-group input,\n        .ht-native-select {\n            width: 100%;\n            padding: 12px 14px;\n            border: 2px solid #E2E8F0;\n            border-radius: 12px;\n            font-size: 14px;\n            background-color: #FFFFFF;\n            color: #1E293B;\n            font-family: inherit;\n            outline: none;\n            transition: all 0.2s ease;\n        }\n\n        .ht-native-select {\n            cursor: pointer;\n            -webkit-appearance: none;\n            -moz-appearance: none;\n            appearance: none;\n            background-image: url('data:image\/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2218%22%20height%3D%2218%22%20fill%3D%22%2344A7E0%22%3E%3Cpath%20d%3D%22M7%2010l5%205%205-5z%22%2F%3E%3C%2Fsvg%3E');\n            background-repeat: no-repeat;\n            background-size: 18px;\n        }\n\n        .ht-rtl .ht-native-select { background-position: left 12px center; padding-left: 36px; }\n        .ht-ltr .ht-native-select { background-position: right 12px center; padding-right: 36px; }\n\n        .ht-field-group input:focus,\n        .ht-native-select:focus {\n            border-color: #44A7E0;\n            box-shadow: 0 0 0 4px rgba(68, 167, 224, 0.14);\n        }\n\n        .ht-allergy-box {\n            background: #FFFBEB;\n            border: 2px dashed #FCD34D;\n            border-radius: 16px;\n            padding: 18px;\n        }\n\n        .ht-allergy-header h4 { margin: 0 0 6px 0; color: #B45309; font-size: 15px; font-weight: 800; }\n        .ht-allergy-header p { margin: 0 0 12px 0; color: #78350F; font-size: 12.5px; }\n        .ht-allergy-items { display: flex; flex-wrap: wrap; gap: 8px; }\n\n        .ht-allergy-chip {\n            background: #FFFFFF;\n            border: 1.5px solid #FDE68A;\n            padding: 6px 14px;\n            border-radius: 18px;\n            font-weight: 700;\n            font-size: 12px;\n            color: #475569;\n            cursor: pointer;\n        }\n\n        .ht-allergy-chip.selected {\n            background: #EF4444;\n            border-color: #EF4444;\n            color: #FFFFFF;\n        }\n\n        \/* Step 3 Menu Navigation *\/\n        .ht-menu-nav-bar {\n            display: flex;\n            justify-content: space-between;\n            align-items: center;\n            margin-bottom: 18px;\n            background: #F8FAFC;\n            padding: 10px 14px;\n            border-radius: 14px;\n            border: 1.5px solid #E2E8F0;\n            gap: 10px;\n        }\n\n        .ht-week-indicator {\n            display: flex;\n            align-items: center;\n            gap: 6px;\n            overflow-x: auto;\n            scrollbar-width: none;\n        }\n        .ht-week-indicator::-webkit-scrollbar { display: none; }\n\n        .ht-indicator-pill {\n            font-size: 12px;\n            font-weight: 800;\n            padding: 6px 14px;\n            border-radius: 12px;\n            background: #E2E8F0;\n            color: #64748B;\n            cursor: pointer;\n            white-space: nowrap;\n            transition: all 0.2s ease;\n        }\n\n        .ht-indicator-pill.active { background: #44A7E0; color: #FFFFFF; }\n        .ht-indicator-pill.completed { background: #10B981; color: #FFFFFF; }\n\n        .ht-week-counter-tag {\n            font-size: 13px;\n            font-weight: 800;\n            color: #8D5EA8;\n            white-space: nowrap;\n        }\n\n        .ht-day-block {\n            background: #FFFFFF;\n            border: 1.5px solid #E2E8F0;\n            border-radius: 16px;\n            padding: 16px;\n            margin-bottom: 16px;\n        }\n\n        .ht-day-heading {\n            font-size: 15.5px;\n            font-weight: 900;\n            color: #1E293B;\n            margin-bottom: 12px;\n            display: flex;\n            align-items: center;\n            gap: 8px;\n            border-bottom: 1.5px solid #F1F5F9;\n            padding-bottom: 7px;\n        }\n\n        .ht-day-dot { width: 8px; height: 8px; background: #FFD948; border-radius: 50%; }\n\n        .ht-meal-slot-label {\n            font-size: 13px;\n            font-weight: 800;\n            margin: 10px 0 8px 0;\n            display: flex;\n            align-items: center;\n            gap: 6px;\n        }\n        .breakfast-label { color: #D97706; }\n        .lunch-label { color: #44A7E0; }\n\n        .ht-day-meals-grid {\n            display: flex;\n            flex-wrap: wrap;\n            gap: 12px;\n            margin-bottom: 10px;\n        }\n\n        \/* Meal Option Card *\/\n        .ht-meal-option-card {\n            flex: 0 0 215px;\n            width: 215px;\n            max-width: 100%;\n            background: #FFFFFF;\n            border: 2px solid #E2E8F0;\n            border-radius: 14px;\n            cursor: pointer;\n            position: relative;\n            overflow: hidden;\n            display: flex;\n            flex-direction: column;\n            transition: all 0.2s ease;\n            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);\n            -webkit-tap-highlight-color: transparent;\n        }\n\n        .ht-meal-option-card:hover { border-color: #44A7E0; }\n\n        .ht-meal-option-card.selected {\n            border-color: #10B981;\n            background: #F0FDF4;\n            box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);\n        }\n\n        .ht-meal-option-card.selected::before {\n            content: '\u2713 \u062a\u0645 \u0627\u0644\u0627\u062e\u062a\u064a\u0627\u0631';\n            position: absolute;\n            top: 6px;\n            left: 6px;\n            background: #10B981;\n            color: #FFFFFF;\n            font-size: 9.5px;\n            font-weight: 800;\n            padding: 3px 7px;\n            border-radius: 8px;\n            z-index: 4;\n        }\n        .ht-ltr .ht-meal-option-card.selected::before { content: '\u2713 Selected'; left: auto; right: 6px; }\n\n        .ht-meal-option-card.disabled {\n            opacity: 0.35;\n            pointer-events: none;\n            filter: grayscale(100%);\n            border-style: dashed;\n        }\n\n        .ht-allergy-alert-badge {\n            position: absolute;\n            top: 6px;\n            right: 6px;\n            background: #EF4444;\n            color: #FFFFFF;\n            font-size: 9px;\n            font-weight: 800;\n            padding: 2px 6px;\n            border-radius: 8px;\n            display: none;\n            z-index: 4;\n        }\n        .ht-ltr .ht-allergy-alert-badge { right: auto; left: 6px; }\n        .ht-meal-option-card.disabled .ht-allergy-alert-badge { display: block; }\n\n        .ht-meal-thumb-wrap {\n            width: 100%;\n            height: 125px;\n            background: #F8FAFC;\n            position: relative;\n            overflow: hidden;\n            border-bottom: 1px solid #F1F5F9;\n        }\n\n        .ht-meal-thumb-wrap img {\n            width: 100%;\n            height: 100%;\n            object-fit: cover;\n            transform: none !important;\n        }\n\n        .ht-meal-meta-box {\n            padding: 10px 12px;\n            flex-grow: 1;\n            display: flex;\n            flex-direction: column;\n            justify-content: space-between;\n        }\n\n        .ht-meal-title-text {\n            font-size: 12.5px;\n            font-weight: 800;\n            color: #1E293B;\n            margin-bottom: 6px;\n            line-height: 1.35;\n            display: -webkit-box;\n            -webkit-line-clamp: 2;\n            -webkit-box-orient: vertical;\n            overflow: hidden;\n            min-height: 34px;\n        }\n\n        .ht-meal-sides-text {\n            font-size: 11px;\n            color: #0F766E;\n            background: #F0FDFA;\n            padding: 4px 7px;\n            border-radius: 6px;\n            line-height: 1.35;\n            display: -webkit-box;\n            -webkit-line-clamp: 2;\n            -webkit-box-orient: vertical;\n            overflow: hidden;\n        }\n\n        \/* Step 4 Summary *\/\n        .ht-summary-box { background: #F8FAFC; border: 1.5px solid #E2E8F0; border-radius: 16px; padding: 18px; }\n        .ht-summary-header {\n            display: flex;\n            justify-content: space-between;\n            align-items: center;\n            border-bottom: 2px solid #E2E8F0;\n            padding-bottom: 12px;\n            margin-bottom: 14px;\n            gap: 10px;\n        }\n\n        .ht-summary-student-meta { color: #64748B; font-size: 13.5px; font-weight: 600; margin-top: 3px; }\n        .ht-summary-dot { margin: 0 5px; }\n\n        .ht-summary-plan-badge {\n            background: linear-gradient(135deg, #44A7E0 0%, #8D5EA8 100%);\n            color: #FFFFFF;\n            font-weight: 800;\n            font-size: 12.5px;\n            padding: 5px 12px;\n            border-radius: 16px;\n        }\n\n        .ht-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }\n        .ht-summary-item { background: #FFFFFF; border: 1.5px solid #E2E8F0; padding: 10px; border-radius: 10px; font-size: 12px; }\n        .ht-summary-item strong { display: block; color: #44A7E0; margin-bottom: 2px; font-size: 12.5px; }\n\n        .ht-coupon-container { margin-top: 16px; padding: 14px; background: #FFFFFF; border: 2px dashed #44A7E0; border-radius: 12px; }\n        .ht-coupon-input-wrap { display: flex; gap: 8px; }\n        .ht-coupon-input-wrap input { flex-grow: 1; padding: 10px 12px; border: 1.5px solid #CBD5E1; border-radius: 10px; font-size: 13.5px; }\n        .ht-btn-coupon { background: #44A7E0; color: #FFFFFF; padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 800; border: none; cursor: pointer; }\n\n        .ht-price-breakdown { margin-top: 14px; background: #FFFFFF; border: 1.5px solid #E2E8F0; border-radius: 12px; padding: 16px; }\n        .ht-price-row { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 13.5px; color: #475569; }\n        .ht-total-row { border-top: 2px solid #F1F5F9; padding-top: 10px; margin-top: 10px; font-size: 15px; color: #1E293B; font-weight: 900; }\n        .ht-total-row strong { font-size: 20px; color: #10B981; }\n\n        \/* Buttons *\/\n        .ht-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 18px; border-top: 1.5px solid #F1F5F9; gap: 10px; }\n        .ht-btn { border: none; padding: 12px 24px; border-radius: 11px; font-size: 13.5px; font-weight: 800; cursor: pointer; text-align: center; }\n        .ht-btn-primary { background: linear-gradient(135deg, #44A7E0 0%, #3B82F6 100%); color: #FFFFFF; }\n        .ht-btn-success { background: linear-gradient(135deg, #10B981 0%, #059669 100%); color: #FFFFFF; }\n        .ht-btn-outline { background: #F8FAFC; border: 1.5px solid #CBD5E1; color: #475569; }\n\n        .ht-spinner { width: 34px; height: 34px; border: 3.5px solid #E2E8F0; border-top-color: #44A7E0; border-radius: 50%; animation: htSpin 0.75s linear infinite; margin: 0 auto 10px auto; }\n        @keyframes htSpin { to { transform: rotate(360deg); } }\n\n        \/* ==========================================================\n           ULTRA-COMPACT MOBILE 2-COLUMNS BENTO STYLING\n           ========================================================== *\/\n        @media (max-width: 768px) {\n            #ht-wizard-app { margin: 4px; border-radius: 16px; }\n            .ht-wizard-header { padding: 12px 14px; }\n            #ht-step-title { font-size: 15px; }\n            .ht-step { padding: 12px 8px; }\n\n            \/* STEP 1: COMPACT 2-COLUMNS CARDS ON MOBILE *\/\n            .ht-bento-grid {\n                grid-template-columns: repeat(2, 1fr);\n                gap: 6px;\n                margin-bottom: 14px;\n            }\n\n            .ht-bento-card { border-radius: 12px; border-width: 1.5px; }\n            .ht-bento-media { height: 92px; }\n            .ht-bento-top-badge { font-size: 8px; padding: 2px 6px; top: 5px; border-radius: 10px; }\n            .ht-rtl .ht-bento-top-badge { right: 5px; }\n            .ht-ltr .ht-bento-top-badge { left: 5px; }\n            \n            .ht-bento-tag { font-size: 8.5px; padding: 2px 6px; bottom: 5px; border-radius: 8px; }\n            .ht-rtl .ht-bento-tag { left: 5px; }\n            .ht-ltr .ht-bento-tag { right: 5px; }\n\n            .ht-bento-content { padding: 8px 6px; }\n            .ht-bento-title { font-size: 12.5px; margin-bottom: 4px; line-height: 1.25; min-height: 28px; }\n\n            .ht-bento-price-pill { padding: 4px 6px; border-radius: 8px; margin-bottom: 5px; }\n            .ht-bento-val { font-size: 17px; }\n            .ht-bento-cur { font-size: 10px; }\n            .ht-bento-dur { font-size: 8.5px; margin-top: 1px; }\n\n            .ht-bento-desc { font-size: 10.5px; line-height: 1.35; margin-bottom: 2px; min-height: 26px; }\n            .ht-bento-footer { padding: 6px 8px; font-size: 10px; }\n\n            \/* Step 3 Week Navigation on Mobile *\/\n            .ht-menu-nav-bar {\n                flex-direction: column;\n                align-items: stretch;\n                gap: 6px;\n                padding: 8px 10px;\n            }\n            .ht-week-indicator { justify-content: flex-start; }\n            .ht-indicator-pill { font-size: 11px; padding: 5px 11px; border-radius: 10px; }\n            .ht-week-counter-tag { text-align: center; font-size: 11.5px; }\n\n            \/* Step 3 Meals 2-Columns Grid on Mobile *\/\n            .ht-day-meals-grid {\n                display: grid;\n                grid-template-columns: repeat(2, 1fr);\n                gap: 8px;\n            }\n            .ht-meal-option-card { width: 100%; flex: unset; border-radius: 12px; }\n            .ht-meal-thumb-wrap { height: 95px; }\n            .ht-meal-meta-box { padding: 6px 8px; }\n            .ht-meal-title-text { font-size: 11px; min-height: 28px; line-height: 1.3; }\n            .ht-meal-sides-text { font-size: 9px; padding: 2px 5px; }\n\n            .ht-actions { gap: 6px; }\n            .ht-btn { padding: 10px 8px; font-size: 11.5px; flex: 1; }\n        }\n    <\/style>\n\n    <!-- ==============================================\n         JAVASCRIPT ENGINE (DIRECT SELECTION & RETENTION)\n         ============================================== -->\n    <script>\n        jQuery(document).ready(function ($) {\n            const isArabic = \"yes\" === 'yes';\n            const langCode = \"ar\";\n            const isPostPaymentSelection = false;\n            const postPaymentOrderId = 0;\n            const postPaymentOrderKey = \"\";\n            const postPaymentPlanId = 0;\n            const postPaymentPlanKey = \"\";\n            const postPaymentPlanTitle = \"\";\n            const postPaymentPlanPrice = 0;\n            const postPaymentPeriodText = \"\";\n            const postPaymentChildName = \"\";\n            const postPaymentSchool = \"\";\n            const postPaymentClass = \"\";\n            const postPaymentAllergies = \"\";\n\n            let currentWizardStep = isPostPaymentSelection ? 3 : 1;\n            let currentActiveWeekPointer = 0;\n            let activeWeeksArray = [1];\n\n            let selectedPlanId = isPostPaymentSelection ? postPaymentPlanId : 0;\n            let selectedPlanKey = isPostPaymentSelection ? postPaymentPlanKey : 'Breakfast';\n            let selectedPlanTitle = isPostPaymentSelection ? postPaymentPlanTitle : '';\n            let selectedPlanPrice = isPostPaymentSelection ? postPaymentPlanPrice : 0;\n            let selectedPlanPeriodText = isPostPaymentSelection ? postPaymentPeriodText : '';\n\n            let appliedCouponCode = '';\n            let discountAmount = 0;\n            let childAllergies = [];\n            if (isPostPaymentSelection && postPaymentAllergies) {\n                childAllergies = String(postPaymentAllergies)\n                    .split(',')\n                    .map(function (x) { return x.trim(); })\n                    .filter(Boolean);\n            }\n\n            let fetchedMeals = [];\n            let masterSchedule = null;\n\n            const daysMap = [\n                { key: 'Sunday',    ar: '\u064a\u0648\u0645 \u0627\u0644\u0623\u062d\u062f',    en: 'Sunday' },\n                { key: 'Monday',    ar: '\u064a\u0648\u0645 \u0627\u0644\u0627\u062b\u0646\u064a\u0646',   en: 'Monday' },\n                { key: 'Tuesday',   ar: '\u064a\u0648\u0645 \u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621',  en: 'Tuesday' },\n                { key: 'Wednesday', ar: '\u064a\u0648\u0645 \u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621', en: 'Wednesday' },\n                { key: 'Thursday',  ar: '\u064a\u0648\u0645 \u0627\u0644\u062e\u0645\u064a\u0633',   en: 'Thursday' }\n            ];\n\n            \/\/ 1. LocalStorage Auto-Retention\n            try {\n                let sName = localStorage.getItem('ht_child_name');\n                let sSchool = localStorage.getItem('ht_school_name');\n                let sClass = localStorage.getItem('ht_class_name');\n                let sAllergies = localStorage.getItem('ht_allergies');\n\n                if (sName) $('#ht_child_name').val(sName);\n                if (sSchool) $('#ht_school_name').val(sSchool);\n                if (sClass) $('#ht_class_name').val(sClass);\n                if (sAllergies) {\n                    childAllergies = JSON.parse(sAllergies) || [];\n                    $('.ht-allergy-chip').each(function () {\n                        if (childAllergies.includes($(this).data('allergy'))) {\n                            $(this).addClass('selected');\n                        }\n                    });\n                }\n            } catch (e) {}\n\n            function persistInputs() {\n                try {\n                    localStorage.setItem('ht_child_name', $('#ht_child_name').val().trim());\n                    localStorage.setItem('ht_school_name', $('#ht_school_name').val());\n                    localStorage.setItem('ht_class_name', $('#ht_class_name').val());\n                    localStorage.setItem('ht_allergies', JSON.stringify(childAllergies));\n                } catch (e) {}\n            }\n            $('#ht_child_name, #ht_school_name, #ht_class_name').on('input change', persistInputs);\n\n            \/\/ Step 1: Select Plan Bento Card\n            \/\/ Selecting a plan only marks it selected. Continue advances to Child Information.\n            $('.ht-bento-card').on('click', function () {\n                if (isPostPaymentSelection) return;\n\n                $('.ht-bento-card').removeClass('selected');\n                $(this).addClass('selected');\n\n                selectedPlanId = parseInt($(this).data('plan-id'));\n                selectedPlanKey = $(this).data('plan-key');\n                selectedPlanTitle = $(this).find('.ht-bento-title').text().trim() || $(this).data('plan-title');\n                selectedPlanPrice = parseFloat($(this).data('plan-price')) || 0;\n                selectedPlanPeriodText = $(this).data('period-text') || '';\n            });\n\n            \/\/ Step 2: Allergies\n            $('.ht-allergy-chip').on('click', function () {\n                $(this).toggleClass('selected');\n                let a = $(this).data('allergy');\n                if ($(this).hasClass('selected')) {\n                    if (!childAllergies.includes(a)) childAllergies.push(a);\n                } else {\n                    childAllergies = childAllergies.filter(x => x !== a);\n                }\n                persistInputs();\n            });\n\n            \/\/ Direct flow: Plan -> Checkout. No meal selection is required here.\n            function startDirectPlanCheckout(button) {\n                if (!selectedPlanId) {\n                    alert(isArabic ? '\u064a\u0631\u062c\u0649 \u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0628\u0627\u0642\u0629 \u0623\u0648\u0644\u0627\u064b.' : 'Please select a plan first.');\n                    return;\n                }\n\n                var btn = button || $('.ht-next-btn').first();\n                var isRealButton = btn.is('button');\n\n                if (isRealButton) {\n                    btn.prop('disabled', true);\n                }\n\n                $('.ht-bento-card').css('pointer-events', 'none');\n\n                var originalText = btn.text();\n                if (isRealButton) {\n                    btn.text(isArabic ? '\u062c\u0627\u0631\u064a \u0641\u062a\u062d \u0627\u0644\u062f\u0641\u0639... \u23f3' : 'Opening Checkout... \u23f3');\n                }\n\n                $.ajax({\n                    url: \"https:\/\/www.myhappytummies.org\/mhapptmms\/wp-admin\/admin-ajax.php\",\n                    type: 'POST',\n                    data: {\n                        action: 'ht_start_plan_checkout',\n                        nonce: \"0d1da87227\",\n                        plan_id: selectedPlanId,\n                        lang: langCode,\n                        child_name: $('#ht_child_name').val(),\n                        school: $('#ht_school_name').val(),\n                        class: $('#ht_class_name').val(),\n                        allergies: childAllergies.join(', ')\n                    },\n                    success: function (res) {\n                        if (res.success && res.data && res.data.checkout_url) {\n                            window.location.href = res.data.checkout_url;\n                            return;\n                        }\n\n                        alert(res.data && res.data.message\n                            ? res.data.message\n                            : (isArabic ? '\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0641\u062a\u062d \u0635\u0641\u062d\u0629 \u0627\u0644\u062f\u0641\u0639.' : 'Unable to open checkout.'));\n\n                        if (isRealButton) {\n                            btn.prop('disabled', false).text(originalText);\n                        }\n                        $('.ht-bento-card').css('pointer-events', '');\n                    },\n                    error: function () {\n                        alert(isArabic ? '\u062a\u0639\u0630\u0631 \u0627\u0644\u0627\u062a\u0635\u0627\u0644 \u0628\u0627\u0644\u062e\u0627\u062f\u0645. \u064a\u0631\u062c\u0649 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649.' : 'Server connection failed. Please try again.');\n                        if (isRealButton) {\n                            btn.prop('disabled', false).text(originalText);\n                        }\n                        $('.ht-bento-card').css('pointer-events', '');\n                    }\n                });\n            }\n\n            \/\/ Steps Navigation\n            $('.ht-next-btn').on('click', function () {\n                if (currentWizardStep === 1) {\n                    if (!selectedPlanId) {\n                        alert(isArabic ? '\u064a\u0631\u062c\u0649 \u0627\u062e\u062a\u064a\u0627\u0631 \u0625\u062d\u062f\u0649 \u0627\u0644\u0628\u0627\u0642\u0627\u062a \u0644\u0644\u0645\u062a\u0627\u0628\u0639\u0629.' : 'Please select a plan to continue.');\n                        return;\n                    }\n\n                    goToStep(2);\n                } else if (currentWizardStep === 2) {\n                    let n = $('#ht_child_name').val().trim();\n                    let s = $('#ht_school_name').val();\n                    let c = $('#ht_class_name').val();\n                    if (!n || !s || !c) {\n                        alert(isArabic ? '\u064a\u0631\u062c\u0649 \u0625\u0643\u0645\u0627\u0644 \u062c\u0645\u064a\u0639 \u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0637\u0641\u0644 \u0648\u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0645\u062f\u0631\u0633\u0629 \u0648\u0627\u0644\u0635\u0641 \u0627\u0644\u062f\u0631\u0627\u0633\u064a.' : 'Please enter child name, select school, and grade.');\n                        return;\n                    }\n                    persistInputs();\n                    \/\/ Pre-purchase: skip meal selection; meals are chosen after successful payment.\n                    startDirectPlanCheckout($(this));\n                }\n            });\n\n            $('.ht-prev-btn').on('click', function () {\n                if (currentWizardStep === 4) {\n                    currentActiveWeekPointer = activeWeeksArray.length - 1;\n                    updateWeekView();\n                    goToStep(3);\n                } else {\n                    goToStep(currentWizardStep - 1);\n                }\n            });\n\n            function goToStep(step) {\n                currentWizardStep = step;\n                $('.ht-step').removeClass('active');\n                $('#ht-step-' + step).addClass('active');\n\n                \/\/ Pre-purchase wizard is 2 steps (Plan \u2192 Child \u2192 Checkout).\n                \/\/ Post-payment meal selection reuses step 3 UI separately.\n                let totalSteps = isPostPaymentSelection ? 1 : 2;\n                let pct = isPostPaymentSelection ? 100 : ((step \/ totalSteps) * 100);\n                $('#ht-progress-fill').css('width', pct + '%');\n                $('#ht-current-step-num').text(isPostPaymentSelection ? '1' : step);\n\n                let titlesAr = ['1. \u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0628\u0627\u0642\u0629 \u0627\u0644\u063a\u0630\u0627\u0626\u064a\u0629', '2. \u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0637\u0641\u0644 \u0648\u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0645\u062f\u0631\u0633\u064a', '3. \u062a\u062e\u0635\u064a\u0635 \u0648\u062c\u0628\u0627\u062a \u0627\u0644\u0628\u0627\u0642\u0629', '4. \u0645\u0631\u0627\u062c\u0639\u0629 \u0648\u062a\u0623\u0643\u064a\u062f \u0627\u0644\u0627\u0634\u062a\u0631\u0627\u0643'];\n                let titlesEn = ['1. Select Subscription Plan', '2. Child Details & School Profile', '3. Customize Meal Schedule', '4. Review & Confirm Subscription'];\n                if (isPostPaymentSelection) {\n                    $('#ht-step-title').text(isArabic ? '\u0627\u062e\u062a\u064a\u0627\u0631 \u0648\u062c\u0628\u0627\u062a \u0627\u0644\u0628\u0627\u0642\u0629' : 'Choose Meals for Your Plan');\n                } else {\n                    $('#ht-step-title').text(isArabic ? titlesAr[step - 1] : titlesEn[step - 1]);\n                }\n\n                $('html, body').animate({ scrollTop: $('#ht-wizard-app').offset().top - 20 }, 250);\n            }\n\n            \/\/ AJAX Load Meals\n            function loadScheduleAndMeals() {\n                $('#ht-weeks-wrapper').hide();\n                $('#ht-menu-loader').show();\n\n                $.ajax({\n                    url: \"https:\/\/www.myhappytummies.org\/mhapptmms\/wp-admin\/admin-ajax.php\",\n                    type: 'POST',\n                    data: {\n                        action: 'ht_fetch_meals',\n                        nonce: \"0d1da87227\",\n                        plan_id: selectedPlanId,\n                        lang: langCode\n                    },\n                    success: function (res) {\n                        $('#ht-menu-loader').hide();\n                        $('#ht-weeks-wrapper').show();\n                        if (res.success && res.data) {\n                            fetchedMeals = res.data.meals || [];\n                            masterSchedule = res.data.schedule || {};\n                            activeWeeksArray = res.data.active_weeks || [1];\n\n                            currentActiveWeekPointer = 0;\n                            buildWeekIndicators();\n                            buildDynamicWeeksDOM();\n                            updateWeekView();\n                        }\n                    }\n                });\n            }\n\n            function buildWeekIndicators() {\n                let pills = '';\n                activeWeeksArray.forEach((wNum, idx) => {\n                    let text = isArabic ? `\u0627\u0644\u0623\u0633\u0628\u0648\u0639 ${wNum}` : `Week ${wNum}`;\n                    let cls = (idx === 0) ? 'active' : '';\n                    pills += `<span class=\"ht-indicator-pill ${cls}\" data-week-index=\"${idx}\">${text}<\/span>`;\n                });\n                $('#ht-week-indicators-holder').html(pills);\n\n                $('.ht-indicator-pill').on('click', function () {\n                    let targetIdx = parseInt($(this).data('week-index'));\n                    if (!isNaN(targetIdx)) {\n                        currentActiveWeekPointer = targetIdx;\n                        updateWeekView();\n                    }\n                });\n            }\n\n            function buildDynamicWeeksDOM() {\n                let html = '';\n                let isFull = (selectedPlanKey === 'Full');\n\n                activeWeeksArray.forEach((weekNum) => {\n                    let weekKey = `week_${weekNum}`;\n                    html += `<div class=\"ht-week-group\" id=\"ht-week-group-${weekNum}\" style=\"display:none;\" data-no-translation>`;\n\n                    daysMap.forEach((dayObj) => {\n                        let dayKey = dayObj.key;\n                        let dayTitle = isArabic ? dayObj.ar : dayObj.en;\n\n                        let bfCards = renderMealCards(weekKey, dayKey, 'Breakfast');\n                        let luCards = renderMealCards(weekKey, dayKey, 'Lunch');\n\n                        let hasBf = (bfCards.length > 0);\n                        let hasLu = (luCards.length > 0);\n\n                        if (isFull && !hasBf && !hasLu) return;\n                        if (selectedPlanKey === 'Breakfast' && !hasBf) return;\n                        if (selectedPlanKey === 'Lunch' && !hasLu) return;\n\n                        html += `\n                        <div class=\"ht-day-block\" data-day-key=\"${dayKey}\">\n                            <div class=\"ht-day-heading\">\n                                <span class=\"ht-day-dot\"><\/span> ${dayTitle}\n                            <\/div>`;\n\n                        if (isFull) {\n                            if (hasBf) {\n                                html += `\n                                <div class=\"ht-meal-slot-label breakfast-label\">\ud83c\udf73 ${isArabic ? '\u0648\u062c\u0628\u0629 \u0627\u0644\u0625\u0641\u0637\u0627\u0631' : 'Breakfast'}<\/div>\n                                <div class=\"ht-day-meals-grid\" data-week=\"${weekNum}\" data-day=\"${dayKey}\" data-meal-type=\"Breakfast\">\n                                    ${bfCards}\n                                <\/div>`;\n                            }\n                            if (hasLu) {\n                                html += `\n                                <div class=\"ht-meal-slot-label lunch-label\">\ud83c\udf71 ${isArabic ? '\u0648\u062c\u0628\u0629 \u0627\u0644\u063a\u062f\u0627\u0621' : 'Lunch'}<\/div>\n                                <div class=\"ht-day-meals-grid\" data-week=\"${weekNum}\" data-day=\"${dayKey}\" data-meal-type=\"Lunch\">\n                                    ${luCards}\n                                <\/div>`;\n                            }\n                        } else {\n                            let slotLabel = (selectedPlanKey === 'Breakfast')\n                                ? `\ud83c\udf73 ${isArabic ? '\u0648\u062c\u0628\u0629 \u0627\u0644\u0625\u0641\u0637\u0627\u0631' : 'Breakfast'}`\n                                : `\ud83c\udf71 ${isArabic ? '\u0648\u062c\u0628\u0629 \u0627\u0644\u063a\u062f\u0627\u0621' : 'Lunch'}`;\n                            let cards = (selectedPlanKey === 'Breakfast') ? bfCards : luCards;\n\n                            html += `\n                            <div class=\"ht-meal-slot-label ${selectedPlanKey === 'Breakfast' ? 'breakfast-label' : 'lunch-label'}\">${slotLabel}<\/div>\n                            <div class=\"ht-day-meals-grid\" data-week=\"${weekNum}\" data-day=\"${dayKey}\" data-meal-type=\"${selectedPlanKey}\">\n                                ${cards}\n                            <\/div>`;\n                        }\n\n                        html += `<\/div>`;\n                    });\n\n                    html += `<\/div>`;\n                });\n\n                $('#ht-weeks-wrapper').html(html);\n\n                \/\/ Direct Click Anywhere on Card to Select Immediately\n                $('.ht-meal-option-card').on('click', function () {\n                    if ($(this).hasClass('disabled')) return;\n                    $(this).closest('.ht-day-meals-grid').find('.ht-meal-option-card').removeClass('selected');\n                    $(this).addClass('selected');\n                });\n            }\n\n            function renderMealCards(weekKey, dayKey, mealType) {\n                let slotKey = (mealType === 'Breakfast') ? 'breakfast' : 'lunch';\n                let slotIds = (masterSchedule && masterSchedule[weekKey] && masterSchedule[weekKey][dayKey])\n                    ? (masterSchedule[weekKey][dayKey][slotKey] || [])\n                    : [];\n\n                let matched = fetchedMeals.filter(m => slotIds.includes(m.id));\n                let out = '';\n                let hasAutoSelected = false;\n\n                matched.forEach((meal) => {\n                    let hasAllergy = (childAllergies.length > 0 && meal.allergies)\n                        ? childAllergies.some(a => meal.allergies.includes(a))\n                        : false;\n\n                    let isSelected = '';\n                    if (!hasAllergy && !hasAutoSelected) {\n                        isSelected = 'selected';\n                        hasAutoSelected = true;\n                    }\n\n                    let sides = meal.sides ? `<div class=\"ht-meal-sides-text\">\ud83e\udd57 <strong>${isArabic ? '\u0627\u0644\u062c\u0627\u0646\u0628\u064a:' : 'Side:'}<\/strong> ${meal.sides}<\/div>` : '';\n\n                    out += `\n                    <div class=\"ht-meal-option-card ${isSelected} ${hasAllergy ? 'disabled' : ''}\" \n                         data-meal-id=\"${meal.id}\" \n                         data-meal-name=\"${meal.name}\" \n                         data-meal-type=\"${meal.meal_type}\"\n                         data-meal-sides=\"${meal.sides || ''}\"\n                         data-day=\"${dayKey}\">\n                        <div class=\"ht-allergy-alert-badge\">\u26a0\ufe0f ${isArabic ? '\u0645\u0633\u0628\u0628 \u062d\u0633\u0627\u0633\u064a\u0629' : 'Allergen'}<\/div>\n                        <div class=\"ht-meal-thumb-wrap\">\n                            <img decoding=\"async\" src=\"${meal.image}\" alt=\"${meal.name}\" loading=\"lazy\" \/>\n                        <\/div>\n                        <div class=\"ht-meal-meta-box\">\n                            <div class=\"ht-meal-title-text\">${meal.name}<\/div>\n                            ${sides}\n                        <\/div>\n                    <\/div>`;\n                });\n\n                return out;\n            }\n\n            function updateWeekView() {\n                let actualWeekNum = activeWeeksArray[currentActiveWeekPointer];\n                $('.ht-week-group').hide();\n                $('#ht-week-group-' + actualWeekNum).fadeIn(200);\n\n                $('.ht-indicator-pill').removeClass('active completed');\n                activeWeeksArray.forEach((w, idx) => {\n                    let pill = $(`.ht-indicator-pill[data-week-index=\"${idx}\"]`);\n                    if (idx < currentActiveWeekPointer) pill.addClass('completed');\n                    else if (idx === currentActiveWeekPointer) pill.addClass('active');\n                });\n\n                let activeGridsCount = $(`#ht-week-group-${actualWeekNum} .ht-day-meals-grid`).length;\n                let countBadge = isArabic ? `(${activeGridsCount} \u0648\u062c\u0628\u0627\u062a)` : `(${activeGridsCount} Meals)`;\n                let weekText = isArabic ? `\u0627\u0644\u0623\u0633\u0628\u0648\u0639 ${actualWeekNum} ${countBadge}` : `Week ${actualWeekNum} ${countBadge}`;\n                $('#ht-current-week-display').text(weekText);\n\n                if (currentActiveWeekPointer === 0) {\n                    $('#ht-week-prev-btn').text(isArabic ? '\u2b05\ufe0f \u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0637\u0641\u0644' : '\u2b05\ufe0f Child Info');\n                } else {\n                    $('#ht-week-prev-btn').text(isArabic ? '\u2b05\ufe0f \u0627\u0644\u0623\u0633\u0628\u0648\u0639 \u0627\u0644\u0633\u0627\u0628\u0642' : '\u2b05\ufe0f Previous Week');\n                }\n\n                if (currentActiveWeekPointer === activeWeeksArray.length - 1) {\n                    $('#ht-week-next-btn').text(\n                        isPostPaymentSelection\n                            ? (isArabic ? '\u062a\u0623\u0643\u064a\u062f \u0627\u0644\u0648\u062c\u0628\u0627\u062a \u2713' : 'Confirm Meals \u2713')\n                            : (isArabic ? '\u0645\u0631\u0627\u062c\u0639\u0629 \u0648\u062a\u0623\u0643\u064a\u062f \u0627\u0644\u0648\u062c\u0628\u0627\u062a \u2794' : 'Review & Confirm \u2794')\n                    );\n                } else {\n                    $('#ht-week-next-btn').text(isArabic ? '\u0627\u0644\u0623\u0633\u0628\u0648\u0639 \u0627\u0644\u062a\u0627\u0644\u064a \u2794' : 'Next Week \u2794');\n                }\n\n                $('html, body').animate({ scrollTop: $('#ht-wizard-app').offset().top - 20 }, 250);\n            }\n\n            $('#ht-week-next-btn').on('click', function () {\n                let actualWeekNum = activeWeeksArray[currentActiveWeekPointer];\n                let currentGrids = $(`#ht-week-group-${actualWeekNum} .ht-day-meals-grid`);\n                let missing = 0;\n\n                currentGrids.each(function () {\n                    if ($(this).find('.ht-meal-option-card.selected').length === 0) {\n                        missing++;\n                    }\n                });\n\n                if (missing > 0) {\n                    alert(isArabic ? '\u064a\u0631\u062c\u0649 \u0627\u062e\u062a\u064a\u0627\u0631 \u0648\u062c\u0628\u0629 \u0644\u062c\u0645\u064a\u0639 \u0627\u0644\u0623\u064a\u0627\u0645 \u0627\u0644\u0645\u0639\u0631\u0648\u0636\u0629 \u0641\u064a \u0647\u0630\u0627 \u0627\u0644\u0623\u0633\u0628\u0648\u0639.' : 'Please choose a meal for each day displayed this week.');\n                    return;\n                }\n\n                if (currentActiveWeekPointer < activeWeeksArray.length - 1) {\n                    currentActiveWeekPointer++;\n                    updateWeekView();\n                } else {\n                    if (isPostPaymentSelection) {\n                        confirmPostPaymentMeals();\n                    } else {\n                        buildSummary();\n                        goToStep(4);\n                    }\n                }\n            });\n\n            $('#ht-week-prev-btn').on('click', function () {\n                if (currentActiveWeekPointer > 0) {\n                    currentActiveWeekPointer--;\n                    updateWeekView();\n                } else {\n                    goToStep(2);\n                }\n            });\n\n            function buildSummary() {\n                $('#summary-child-name').text($('#ht_child_name').val());\n                $('#summary-school-name').text($('#ht_school_name').val());\n                $('#summary-class-name').text($('#ht_class_name').val());\n                $('#summary-plan-title').text(`${selectedPlanTitle} - ${selectedPlanPrice} ${selectedPlanPeriodText}`);\n\n                let html = '';\n                activeWeeksArray.forEach(wNum => {\n                    daysMap.forEach(d => {\n                        let grids = $(`#ht-week-group-${wNum} .ht-day-meals-grid[data-day=\"${d.key}\"]`);\n                        grids.each(function () {\n                            let card = $(this).find('.ht-meal-option-card.selected');\n                            if (card.length) {\n                                let mName = card.data('meal-name');\n                                let mType = card.data('meal-type');\n                                let mSides = card.data('meal-sides') || '';\n                                let tag = (mType === 'Breakfast') ? (isArabic ? '\ud83c\udf73 \u0625\u0641\u0637\u0627\u0631' : '\ud83c\udf73 Breakfast') : (isArabic ? '\ud83c\udf71 \u063a\u062f\u0627\u0621' : '\ud83c\udf71 Lunch');\n                                let dTitle = isArabic ? d.ar : d.en;\n                                let wTitle = (activeWeeksArray.length > 1) ? `${isArabic ? '\u0627\u0644\u0623\u0633\u0628\u0648\u0639' : 'Week'} ${wNum} - ` : '';\n                                let sidesHtml = mSides ? `<span style=\"display:block; color:#0F766E; font-size:11px; margin-top:3px;\">\ud83e\udd57 ${isArabic ? '\u0627\u0644\u062c\u0627\u0646\u0628\u064a:' : 'Side:'} ${mSides}<\/span>` : '';\n\n                                html += `\n                                <div class=\"ht-summary-item\">\n                                    <strong>${wTitle}${dTitle} [${tag}]<\/strong>\n                                    <span>${mName}<\/span>\n                                    ${sidesHtml}\n                                <\/div>`;\n                            }\n                        });\n                    });\n                });\n\n                $('#ht-summary-meals-list').html(html);\n                updatePriceDisplay();\n            }\n\n            function updatePriceDisplay() {\n                let cur = isArabic ? '\u0631.\u0633' : 'SAR';\n                $('#ht-base-price-display').text(`${selectedPlanPrice} ${cur}`);\n                if (discountAmount > 0) {\n                    $('.ht-discount-row').show();\n                    $('#ht-discount-price-display').text(`-${discountAmount} ${cur}`);\n                } else {\n                    $('.ht-discount-row').hide();\n                }\n                let total = Math.max(0, selectedPlanPrice - discountAmount);\n                $('#ht-final-total-display').text(`${total} ${cur}`);\n            }\n\n            $('#ht-apply-coupon-btn').on('click', function () {\n                let code = $('#ht-coupon-code-input').val().trim();\n                if (!code) return;\n\n                let btn = $(this).prop('disabled', true).text(isArabic ? '\u0627\u0644\u062a\u062d\u0642\u0642...' : 'Checking...');\n                $.ajax({\n                    url: \"https:\/\/www.myhappytummies.org\/mhapptmms\/wp-admin\/admin-ajax.php\",\n                    type: 'POST',\n                    data: {\n                        action: 'ht_apply_coupon',\n                        nonce: \"0d1da87227\",\n                        coupon_code: code,\n                        plan_id: selectedPlanId,\n                        lang: langCode\n                    },\n                    success: function (res) {\n                        btn.prop('disabled', false).text(isArabic ? '\u062a\u0637\u0628\u064a\u0642 \u0627\u0644\u062e\u0635\u0645' : 'Apply');\n                        if (res.success) {\n                            appliedCouponCode = res.data.coupon_code;\n                            discountAmount = parseFloat(res.data.discount_amount);\n                            $('#ht-coupon-response-msg').html(`<span style=\"color:#10B981;\">\u2713 ${res.data.message} (${discountAmount} ${isArabic ? '\u0631.\u0633 \u062e\u0635\u0645' : 'SAR OFF'})<\/span>`);\n                            updatePriceDisplay();\n                        } else {\n                            appliedCouponCode = '';\n                            discountAmount = 0;\n                            $('#ht-coupon-response-msg').html(`<span style=\"color:#EF4444;\">\u2717 ${res.data.message}<\/span>`);\n                            updatePriceDisplay();\n                        }\n                    }\n                });\n            });\n\n            function collectSelectedMeals() {\n                let selectedMealIds = [];\n                let scheduleMap = {};\n\n                activeWeeksArray.forEach(wNum => {\n                    scheduleMap[wNum] = {};\n\n                    daysMap.forEach(d => {\n                        let cards = $(`#ht-week-group-${wNum} .ht-day-meals-grid[data-day=\"${d.key}\"] .ht-meal-option-card.selected`);\n\n                        if (cards.length > 0) {\n                            scheduleMap[wNum][d.key] = [];\n\n                            cards.each(function () {\n                                let mid = parseInt($(this).data('meal-id'));\n\n                                if (mid) {\n                                    selectedMealIds.push(mid);\n                                    scheduleMap[wNum][d.key].push(mid);\n                                }\n                            });\n                        }\n                    });\n                });\n\n                return {\n                    ids: selectedMealIds,\n                    schedule: scheduleMap\n                };\n            }\n\n            function confirmPostPaymentMeals() {\n                let selection = collectSelectedMeals();\n                let totalGrids = $('#ht-weeks-wrapper .ht-day-meals-grid').length;\n\n                if (selection.ids.length < totalGrids) {\n                    alert(isArabic\n                        ? '\u064a\u0631\u062c\u0649 \u0627\u0644\u062a\u0623\u0643\u062f \u0645\u0646 \u0627\u062e\u062a\u064a\u0627\u0631 \u062c\u0645\u064a\u0639 \u0627\u0644\u0648\u062c\u0628\u0627\u062a \u0644\u062c\u0645\u064a\u0639 \u0627\u0644\u0623\u064a\u0627\u0645 \u0641\u064a \u062c\u062f\u0648\u0644\u0643.'\n                        : 'Please select all scheduled meals.');\n                    return;\n                }\n\n                let btn = $('#ht-week-next-btn').prop('disabled', true);\n                btn.text(isArabic ? '\u062c\u0627\u0631\u064a \u062d\u0641\u0638 \u0627\u0644\u0648\u062c\u0628\u0627\u062a... \u23f3' : 'Saving Meals... \u23f3');\n\n                $.ajax({\n                    url: \"https:\/\/www.myhappytummies.org\/mhapptmms\/wp-admin\/admin-ajax.php\",\n                    type: 'POST',\n                    data: {\n                        action: 'ht_confirm_post_payment_meals',\n                        nonce: \"0d1da87227\",\n                        order_id: postPaymentOrderId,\n                        order_key: postPaymentOrderKey,\n                        selected_meals: selection.ids,\n                        schedule_map: JSON.stringify(selection.schedule)\n                    },\n                    success: function (res) {\n                        if (res.success) {\n                            $('#ht-week-next-btn').hide();\n                            $('#ht-week-prev-btn').hide();\n\n                            $('#ht-weeks-wrapper').before(\n                                '<div class=\"ht-post-payment-success\" style=\"margin:0 0 18px;padding:16px;border-radius:14px;background:#ecfdf5;border:1px solid #a7f3d0;color:#047857;font-weight:800;text-align:center;\">' +\n                                '\u2713 ' + (res.data && res.data.message\n                                    ? res.data.message\n                                    : (isArabic ? '\u062a\u0645 \u062a\u0623\u0643\u064a\u062f \u0627\u0644\u0648\u062c\u0628\u0627\u062a \u0628\u0646\u062c\u0627\u062d.' : 'Meals confirmed successfully.')) +\n                                '<\/div>'\n                            );\n\n                            setTimeout(function () {\n                                if (res.data && res.data.account_url) {\n                                    window.location.href = res.data.account_url;\n                                }\n                            }, 1200);\n\n                            return;\n                        }\n\n                        alert(res.data && res.data.message\n                            ? res.data.message\n                            : (isArabic ? '\u062a\u0639\u0630\u0631 \u062d\u0641\u0638 \u0627\u0644\u0648\u062c\u0628\u0627\u062a.' : 'Unable to save meals.'));\n\n                        btn.prop('disabled', false);\n                        updateWeekView();\n                    },\n                    error: function () {\n                        alert(isArabic ? '\u062a\u0639\u0630\u0631 \u0627\u0644\u0627\u062a\u0635\u0627\u0644 \u0628\u0627\u0644\u062e\u0627\u062f\u0645.' : 'Server connection failed.');\n                        btn.prop('disabled', false);\n                        updateWeekView();\n                    }\n                });\n            }\n\n            \/\/ Final Checkout Submission\n            $('#ht-final-checkout-btn').on('click', function () {\n                if (isPostPaymentSelection) {\n                    confirmPostPaymentMeals();\n                    return;\n                }\n\n                let selection = collectSelectedMeals();\n                let totalGrids = $('#ht-weeks-wrapper .ht-day-meals-grid').length;\n\n                if (selection.ids.length < totalGrids) {\n                    alert(isArabic ? '\u064a\u0631\u062c\u0649 \u0627\u0644\u062a\u0623\u0643\u062f \u0645\u0646 \u0627\u062e\u062a\u064a\u0627\u0631 \u062c\u0645\u064a\u0639 \u0627\u0644\u0648\u062c\u0628\u0627\u062a \u0644\u062c\u0645\u064a\u0639 \u0627\u0644\u0623\u064a\u0627\u0645 \u0641\u064a \u062c\u062f\u0648\u0644\u0643.' : 'Please select all scheduled meals.');\n                    return;\n                }\n\n                let btn = $(this).prop('disabled', true);\n                btn.find('span').text(isArabic ? '\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u0648\u062c\u064a\u0647 \u0644\u0644\u062f\u0641\u0639... \u23f3' : 'Redirecting... \u23f3');\n\n                $.ajax({\n                    url: \"https:\/\/www.myhappytummies.org\/mhapptmms\/wp-admin\/admin-ajax.php\",\n                    type: 'POST',\n                    data: {\n                        action: 'ht_process_checkout',\n                        nonce: \"0d1da87227\",\n                        plan_id: selectedPlanId,\n                        child_name: $('#ht_child_name').val(),\n                        school: $('#ht_school_name').val(),\n                        class: $('#ht_class_name').val(),\n                        allergies: childAllergies.join(', '),\n                        selected_meals: selection.ids,\n                        schedule_map: JSON.stringify(selection.schedule),\n                        coupon_code: appliedCouponCode,\n                        lang: langCode\n                    },\n                    success: function (res) {\n                        if (res.success && res.data.checkout_url) {\n                            window.location.href = res.data.checkout_url;\n                        } else {\n                            alert(res.data && res.data.message ? res.data.message : 'Error processing checkout.');\n                            btn.prop('disabled', false).find('span').text(isArabic ? '\u062a\u0623\u0643\u064a\u062f \u0648\u0627\u0644\u0627\u0646\u062a\u0642\u0627\u0644 \u0644\u0644\u062f\u0641\u0639 \ud83d\udcb3' : 'Confirm & Proceed to Checkout \ud83d\udcb3');\n                        }\n                    }\n                });\n            });\n\n            \/\/ ---------------------------------------------------------\n            \/\/ Post-payment page bootstrap:\n            \/\/ directly open Step 3 and load the purchased plan meals.\n            \/\/ ---------------------------------------------------------\n            if (isPostPaymentSelection) {\n                $('#ht-step-1, #ht-step-2, #ht-step-4').removeClass('active').hide();\n                $('#ht-step-3').addClass('active').show();\n\n                currentWizardStep = 3;\n                selectedPlanId = postPaymentPlanId;\n                selectedPlanKey = postPaymentPlanKey || 'Breakfast';\n                selectedPlanTitle = postPaymentPlanTitle || '';\n                selectedPlanPrice = parseFloat(postPaymentPlanPrice) || 0;\n                selectedPlanPeriodText = postPaymentPeriodText || '';\n\n                if (postPaymentChildName) $('#ht_child_name').val(postPaymentChildName);\n                if (postPaymentSchool) $('#ht_school_name').val(postPaymentSchool);\n                if (postPaymentClass) $('#ht_class_name').val(postPaymentClass);\n\n                $('#ht-progress-fill').css('width', '100%');\n                $('#ht-current-step-num').text('1');\n                $('#ht-step-title').text(isArabic ? '\u0627\u062e\u062a\u064a\u0627\u0631 \u0648\u062c\u0628\u0627\u062a \u0627\u0644\u0628\u0627\u0642\u0629' : 'Choose Meals for Your Plan');\n\n                $('#ht-week-prev-btn').hide();\n                $('#ht-final-checkout-btn').hide();\n\n                loadScheduleAndMeals();\n            }\n\n\n        });\n    <\/script>\n    \n<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"Lunch Meal Daily","protected":false},"author":56,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"_joinchat":[],"footnotes":""},"class_list":["post-4235","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.myhappytummies.org\/ar\/wp-json\/wp\/v2\/pages\/4235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myhappytummies.org\/ar\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.myhappytummies.org\/ar\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.myhappytummies.org\/ar\/wp-json\/wp\/v2\/users\/56"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myhappytummies.org\/ar\/wp-json\/wp\/v2\/comments?post=4235"}],"version-history":[{"count":11,"href":"https:\/\/www.myhappytummies.org\/ar\/wp-json\/wp\/v2\/pages\/4235\/revisions"}],"predecessor-version":[{"id":4291,"href":"https:\/\/www.myhappytummies.org\/ar\/wp-json\/wp\/v2\/pages\/4235\/revisions\/4291"}],"wp:attachment":[{"href":"https:\/\/www.myhappytummies.org\/ar\/wp-json\/wp\/v2\/media?parent=4235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}