/**
 * Workout list UI inside Add Item drawer - matches planner-new-ui/workout-planner.css
 * All classes prefixed with drawer-workout- to avoid conflicts with planner.css
 * (e.g. .workout-card, .workout-duration, .workout-title, .star-icon, .rating-badge, .add-button)
 */

.recipe-planner-drawer .category-pane-workouts {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.recipe-planner-drawer .category-pane-workouts.is-active {
    display: flex;
}

.recipe-planner-drawer .drawer-general-training-control {
    margin: 12px 20px 0;
}

.recipe-planner-drawer .drawer-general-training-trigger {
    display: inline-flex;
    min-height: 34px;
    padding: 7px 12px;
    align-items: center;
    gap: 6px;
    border: 1px solid #b8dce2;
    border-radius: 9px;
    background: #f7fcfd;
    color: #187f8f;
    cursor: pointer;
    font: 600 11px Montserrat, sans-serif;
}

.recipe-planner-drawer .drawer-general-training-trigger:hover,
.recipe-planner-drawer .drawer-general-training-trigger[aria-expanded='true'] {
    border-color: #55adba;
    background: #eaf7f9;
}

.recipe-planner-drawer .drawer-general-training-trigger[aria-expanded='true'] {
    display: none;
}

.recipe-planner-drawer .drawer-general-training {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    margin-top: 8px;
    padding: 10px 12px;
    align-items: center;
    gap: 12px;
    border: 1px solid #d6e8eb;
    border-radius: 12px;
    background: linear-gradient(105deg, #f2fafb 0%, #ffffff 66%);
}

.recipe-planner-drawer .drawer-general-training[hidden] {
    display: none;
}

.recipe-planner-drawer .drawer-general-training-animation {
    width: 68px;
    height: 68px;
    overflow: hidden;
    border-radius: 10px;
    background: transparent;
}

.recipe-planner-drawer .drawer-general-training-animation svg {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.recipe-planner-drawer .drawer-general-training-animation--fallback::before {
    content: '\1F3CB';
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #55adba;
    font-size: 28px;
}

.recipe-planner-drawer .drawer-general-training-settings {
    display: grid;
    min-width: 0;
    gap: 8px;
}

.recipe-planner-drawer .drawer-general-training h2 {
    margin: 0;
    color: #10243e;
    font: 600 13px/1.3 Montserrat, sans-serif;
}

.recipe-planner-drawer .drawer-general-training-actions,
.recipe-planner-drawer .drawer-general-training-intensity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.recipe-planner-drawer .drawer-general-training-intensity > span {
    color: #344052;
    font: 600 10px/1.2 Montserrat, sans-serif;
}

.recipe-planner-drawer .drawer-general-training-intensity-options {
    display: inline-flex;
    gap: 3px;
    padding: 3px;
    border-radius: 9px;
    background: #eaf4f6;
}

.recipe-planner-drawer .drawer-general-training-intensity-options label {
    margin: 0;
    cursor: pointer;
}

.recipe-planner-drawer .drawer-general-training-intensity-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.recipe-planner-drawer .drawer-general-training-intensity-options label > span {
    display: block;
    min-width: 54px;
    padding: 5px 8px;
    border-radius: 7px;
    color: #53636d;
    font: 600 10px Montserrat, sans-serif;
    text-align: center;
}

.recipe-planner-drawer .drawer-general-training-intensity-options input:checked + span {
    background: #ffffff;
    color: #147d8d;
    box-shadow: 0 1px 5px rgb(8 43 65 / 12%);
}

.recipe-planner-drawer .drawer-general-training-add {
    display: inline-flex;
    height: 36px;
    padding: 0 14px;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 8px;
    background: #55adba;
    color: #ffffff;
    cursor: pointer;
    font: 600 11px Montserrat, sans-serif;
}

.recipe-planner-drawer .drawer-general-training-add:hover {
    background: #459aa7;
}

.recipe-planner-drawer .drawer-general-training-add:disabled {
    cursor: wait;
    opacity: 0.7;
}

@media (max-width: 760px) {
    .recipe-planner-drawer .drawer-general-training {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .recipe-planner-drawer .drawer-general-training-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .recipe-planner-drawer .drawer-general-training-intensity {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .recipe-planner-drawer .drawer-general-training-intensity-options {
        flex-wrap: wrap;
    }

    .recipe-planner-drawer .drawer-general-training-animation {
        width: 54px;
        height: 54px;
    }
}

/* Workout filter row */
.recipe-planner-drawer .category-pane-workouts .drawer-workout-filter-section {
    overflow-x: auto;
    display: flex;
    margin-top: 12px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 20px;
    padding-top: 8px;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-filter-tabs {
    display: flex;
    padding-top: 8px;
    align-items: stretch;
    color: #000;
    white-space: nowrap;
    text-align: center;
    justify-content: start;
    font:
        300 12px Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-filter-tab {
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    padding: 0 8px 8px;
    font:
        300 12px Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    color: #000;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-filter-tab.active {
    border-color: #000;
    border-bottom-width: 1px;
    font-weight: 600;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-search-btn {
    border-radius: 8px;
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    padding: 13px 12px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    background: none;
    cursor: pointer;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-search-btn .drawer-workout-search-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.recipe-planner-drawer .add-item-drawer-search .drawer-recipe-text-search {
    border: 1px solid #cbdde1;
    background: #fff;
}

.recipe-planner-drawer .add-item-drawer-search .search-form {
    align-items: stretch;
}

.recipe-planner-drawer .add-item-drawer-search .modal-filter-btn,
.recipe-planner-drawer .add-item-drawer-search .drawer-ai-search-launch {
    height: 42px;
    margin: 0;
    align-self: stretch;
}

.recipe-planner-drawer .add-item-drawer-search .drawer-ai-search-launch {
    display: inline-flex;
    height: 42px;
    box-sizing: border-box;
    padding: 8px 13px;
    border: 1.3px solid transparent;
    border-radius: 8px;
    background:
        linear-gradient(105deg, #fff5f5 0%, #fff9ed 30%, #f9f2fc 65%, #f1f4ff 100%) padding-box,
        linear-gradient(90deg, #ff4c4c 0%, #ff9500 28%, #a400c1 65%, #0015fc 100%) border-box;
    color: #277985;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.recipe-planner-drawer .add-item-drawer-search .drawer-ai-search-launch:hover,
.recipe-planner-drawer .add-item-drawer-search .drawer-ai-search-launch:focus-visible {
    background:
        linear-gradient(105deg, #ffeded 0%, #fff4dc 30%, #f4e9fa 65%, #e9edff 100%) padding-box,
        linear-gradient(90deg, #ff4c4c 0%, #ff9500 28%, #a400c1 65%, #0015fc 100%) border-box;
    box-shadow: 0 3px 10px rgba(85, 127, 209, 0.16);
}

.recipe-planner-drawer .add-item-drawer-search .drawer-ai-search-launch:focus-visible {
    outline: 2px solid rgba(85, 127, 209, 0.24);
    outline-offset: 2px;
}

.recipe-planner-drawer .add-item-drawer-search .drawer-ai-search-launch img {
    width: 17px;
    height: 17px;
}

.recipe-planner-drawer .rcpf-panel .rcpf-header {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 12px;
    width: auto;
}

.recipe-planner-drawer .rcpf-panel .rcpf-divider {
    display: none;
}

.recipe-planner-drawer .rcpf-panel .rcpf-sections {
    display: grid;
    margin-top: 0;
    padding-right: 44px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.recipe-planner-drawer .rcpf-panel .rcpf-col,
.recipe-planner-drawer .rcpf-panel .rcpf-col--narrow {
    width: auto;
}

/* Loading state in workout drawer grid */
.recipe-planner-drawer .category-pane-workouts .drawer-workout-loading,
.recipe-planner-drawer .category-pane-workouts .drawer-workout-grid .drawer-loading {
    color: #10152c;
    font-size: 14px;
}

/* Sentinel for infinite scroll in workout drawer (min height so IntersectionObserver reliably fires) */
.recipe-planner-drawer .category-pane-workouts .drawer-workout-infinite-sentinel {
    min-height: 20px;
    height: 20px;
    width: 100%;
    visibility: hidden;
    pointer-events: none;
}

/* Workout grid - two columns (same grid layout as recipes for empty-state centering) */
.recipe-planner-drawer .category-pane-workouts .drawer-workout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 12px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    align-items: start;
    gap: 16px;
    padding: 0 16px 24px;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-column {
    min-width: 0;
    min-height: 0;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    position: relative;
    aspect-ratio: 1.781;
    min-height: 210px;
    width: 100%;
    max-width: none;
    padding: 12px;
    margin-bottom: 16px;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-card-wide {
    aspect-ratio: 3.667;
    padding: 12px 12px 66px;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
    gap: 33px;
    border-radius: 8px;
    /* Gradient top and bottom so text and buttons are visible over the image */
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0) 22%,
        rgba(0, 0, 0, 0) 69.05%,
        #000000 100%
    );
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-header {
    display: flex;
    width: 100%;
    align-items: start;
    justify-content: space-between;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-card .drawer-workout-rating-badge {
    border-radius: 64px;
    background-color: #fff;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 6px;
    font:
        600 12px Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    color: #10152c;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-card .drawer-workout-star {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    background-color: #ffd700;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-card .drawer-workout-rating-text {
    margin: auto 0;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-avatars {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-avatar {
    width: 24px;
    height: 24px;
    border-radius: 14px;
    object-fit: cover;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-action-icon {
    /* Round white background (Component 260) */
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 17px;
    padding: 5px;
    box-sizing: border-box;
    object-fit: contain;
    cursor: pointer;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-action-icon.drawer-workout-action-favorite {
    opacity: 1;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-action-icon[data-action='favorite'].favorited {
    background: #e2676c;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-action-icon[data-action='add-to-recommend'].recommended {
    background: #5bb0bd;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-footer {
    display: flex;
    width: 100%;
    align-items: end;
    justify-content: space-between;
    font-family:
        Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    color: #fff;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-info {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: start;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    color: #fff;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-duration {
    display: flex;
    margin-top: 6px;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 400;
    color: #fff;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-duration-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-card .drawer-workout-add-btn {
    border-radius: 17px;
    background-color: #5bb0bd;
    display: flex;
    min-height: 24px;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
}

.recipe-planner-drawer .category-pane-workouts .drawer-workout-card .drawer-workout-add-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

/* When Workouts tab is active: hide recipe search, filter tabs, and recipes grid */
.recipe-planner-drawer .add-item-drawer-list-view.category-workouts .category-pane-recipes {
    display: none !important;
}

.recipe-planner-drawer .add-item-drawer-list-view.category-workouts .add-item-drawer-search,
.recipe-planner-drawer .add-item-drawer-list-view.category-workouts .add-item-drawer-filter-tabs {
    display: none !important;
}

.recipe-planner-drawer .add-item-drawer-list-view.category-recipes .category-pane-workouts {
    display: none !important;
}

.recipe-planner-drawer .add-item-drawer-list-view.category-recipes .category-pane-workouts.is-active {
    display: none !important;
}

.recipe-planner-drawer .add-item-drawer-list-view.category-workouts .category-pane-workouts.is-active {
    display: flex !important;
}

/* When Notes tab is active: hide recipe search, filter tabs, recipes grid, and workouts */
.recipe-planner-drawer .add-item-drawer-list-view.category-notes .category-pane-recipes,
.recipe-planner-drawer .add-item-drawer-list-view.category-notes .category-pane-workouts {
    display: none !important;
}

.recipe-planner-drawer .add-item-drawer-list-view.category-notes .add-item-drawer-search,
.recipe-planner-drawer .add-item-drawer-list-view.category-notes .add-item-drawer-filter-tabs {
    display: none !important;
}

.recipe-planner-drawer .add-item-drawer-list-view .category-pane-notes {
    display: none !important;
}

.recipe-planner-drawer .add-item-drawer-list-view.category-notes .category-pane-notes.is-active {
    display: flex !important;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

/* Nutrition Videos pane base + visibility (mirrors workouts pane behavior) */
.recipe-planner-drawer .category-pane-nutrition-videos {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.recipe-planner-drawer .add-item-drawer-list-view.category-nutrition-videos .category-pane-nutrition-videos.is-active {
    display: flex !important;
}

/* When Nutrition Videos tab is active: hide other panes + recipe search/filter */
.recipe-planner-drawer .add-item-drawer-list-view.category-nutrition-videos .category-pane-recipes,
.recipe-planner-drawer .add-item-drawer-list-view.category-nutrition-videos .category-pane-workouts,
.recipe-planner-drawer .add-item-drawer-list-view.category-nutrition-videos .category-pane-notes,
.recipe-planner-drawer .add-item-drawer-list-view.category-nutrition-videos .category-pane-nutrition-challenges {
    display: none !important;
}

.recipe-planner-drawer .add-item-drawer-list-view.category-nutrition-videos .add-item-drawer-search,
.recipe-planner-drawer .add-item-drawer-list-view.category-nutrition-videos .add-item-drawer-filter-tabs {
    display: none !important;
}

/* When other tabs are active: keep nutrition-videos pane hidden */
.recipe-planner-drawer .add-item-drawer-list-view.category-recipes .category-pane-nutrition-videos,
.recipe-planner-drawer .add-item-drawer-list-view.category-workouts .category-pane-nutrition-videos,
.recipe-planner-drawer .add-item-drawer-list-view.category-notes .category-pane-nutrition-videos,
.recipe-planner-drawer .add-item-drawer-list-view.category-nutrition-challenges .category-pane-nutrition-videos,
.recipe-planner-drawer .add-item-drawer-list-view.category-wellness-rebates .category-pane-nutrition-videos {
    display: none !important;
}

/* === Nutrition Challenges pane visibility + hide-others === */
.recipe-planner-drawer .category-pane-nutrition-challenges {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.recipe-planner-drawer
    .add-item-drawer-list-view.category-nutrition-challenges
    .category-pane-nutrition-challenges.is-active {
    display: flex !important;
}

.recipe-planner-drawer .add-item-drawer-list-view.category-nutrition-challenges .category-pane-recipes,
.recipe-planner-drawer .add-item-drawer-list-view.category-nutrition-challenges .category-pane-workouts,
.recipe-planner-drawer .add-item-drawer-list-view.category-nutrition-challenges .category-pane-notes,
.recipe-planner-drawer .add-item-drawer-list-view.category-nutrition-challenges .category-pane-nutrition-videos {
    display: none !important;
}

.recipe-planner-drawer .add-item-drawer-list-view.category-nutrition-challenges .add-item-drawer-search,
.recipe-planner-drawer .add-item-drawer-list-view.category-nutrition-challenges .add-item-drawer-filter-tabs {
    display: none !important;
}

.recipe-planner-drawer .add-item-drawer-list-view.category-recipes .category-pane-nutrition-challenges,
.recipe-planner-drawer .add-item-drawer-list-view.category-workouts .category-pane-nutrition-challenges,
.recipe-planner-drawer .add-item-drawer-list-view.category-notes .category-pane-nutrition-challenges,
.recipe-planner-drawer .add-item-drawer-list-view.category-nutrition-videos .category-pane-nutrition-challenges,
.recipe-planner-drawer .add-item-drawer-list-view.category-wellness-rebates .category-pane-nutrition-challenges {
    display: none !important;
}

/* === Wellness Rebates pane visibility + hide-others === */
.recipe-planner-drawer .category-pane-wellness-rebates {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.recipe-planner-drawer .add-item-drawer-list-view.category-wellness-rebates .category-pane-wellness-rebates.is-active {
    display: flex !important;
}

.recipe-planner-drawer .add-item-drawer-list-view.category-wellness-rebates .category-pane-recipes,
.recipe-planner-drawer .add-item-drawer-list-view.category-wellness-rebates .category-pane-workouts,
.recipe-planner-drawer .add-item-drawer-list-view.category-wellness-rebates .category-pane-notes,
.recipe-planner-drawer .add-item-drawer-list-view.category-wellness-rebates .category-pane-nutrition-videos,
.recipe-planner-drawer .add-item-drawer-list-view.category-wellness-rebates .category-pane-nutrition-challenges {
    display: none !important;
}

.recipe-planner-drawer .add-item-drawer-list-view.category-wellness-rebates .add-item-drawer-search,
.recipe-planner-drawer .add-item-drawer-list-view.category-wellness-rebates .add-item-drawer-filter-tabs {
    display: none !important;
}

.recipe-planner-drawer .add-item-drawer-list-view.category-recipes .category-pane-wellness-rebates,
.recipe-planner-drawer .add-item-drawer-list-view.category-workouts .category-pane-wellness-rebates,
.recipe-planner-drawer .add-item-drawer-list-view.category-notes .category-pane-wellness-rebates,
.recipe-planner-drawer .add-item-drawer-list-view.category-nutrition-videos .category-pane-wellness-rebates,
.recipe-planner-drawer .add-item-drawer-list-view.category-nutrition-challenges .category-pane-wellness-rebates {
    display: none !important;
}

/* Scrollable note form content - footer stays static at bottom like recipe/workout confirm */
.recipe-planner-drawer .category-pane-notes .note-scrollable {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px;
}

.recipe-planner-drawer .category-pane-notes .note-confirm-footer {
    flex-shrink: 0;
    padding: 16px 20px;
    background: #fff;
    margin-top: 0;
}

/* Food Items catalog */
.recipe-planner-drawer .category-navigation {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
}

.recipe-planner-drawer .category-pane-food-items,
.recipe-planner-drawer .category-pane-food-baskets {
    display: none;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
    background: #f8fcfd;
}

.recipe-planner-drawer .add-item-drawer-list-view.category-food-items .category-pane-food-items.is-active {
    display: flex !important;
}

.recipe-planner-drawer .add-item-drawer-list-view.category-food-baskets .category-pane-food-baskets.is-active {
    display: flex !important;
}

.recipe-planner-drawer .add-item-drawer-list-view.category-food-items .category-pane-recipes,
.recipe-planner-drawer .add-item-drawer-list-view.category-food-items .category-pane-workouts,
.recipe-planner-drawer .add-item-drawer-list-view.category-food-items .category-pane-notes,
.recipe-planner-drawer .add-item-drawer-list-view.category-food-items .category-pane-nutrition-videos,
.recipe-planner-drawer .add-item-drawer-list-view.category-food-items .category-pane-nutrition-challenges,
.recipe-planner-drawer .add-item-drawer-list-view.category-food-items .category-pane-wellness-rebates,
.recipe-planner-drawer .add-item-drawer-list-view.category-food-items .add-item-drawer-search,
.recipe-planner-drawer .add-item-drawer-list-view.category-food-items .add-item-drawer-filter-tabs,
.recipe-planner-drawer .add-item-drawer-list-view.category-food-items .rcpf-wrap {
    display: none !important;
}

.recipe-planner-drawer .add-item-drawer-list-view.category-food-baskets .category-pane-recipes,
.recipe-planner-drawer .add-item-drawer-list-view.category-food-baskets .category-pane-food-items,
.recipe-planner-drawer .add-item-drawer-list-view.category-food-baskets .category-pane-workouts,
.recipe-planner-drawer .add-item-drawer-list-view.category-food-baskets .category-pane-notes,
.recipe-planner-drawer .add-item-drawer-list-view.category-food-baskets .category-pane-nutrition-videos,
.recipe-planner-drawer .add-item-drawer-list-view.category-food-baskets .category-pane-nutrition-challenges,
.recipe-planner-drawer .add-item-drawer-list-view.category-food-baskets .category-pane-wellness-rebates,
.recipe-planner-drawer .add-item-drawer-list-view.category-food-baskets .add-item-drawer-search,
.recipe-planner-drawer .add-item-drawer-list-view.category-food-baskets .add-item-drawer-filter-tabs,
.recipe-planner-drawer .add-item-drawer-list-view.category-food-baskets .rcpf-wrap {
    display: none !important;
}

.recipe-planner-drawer .drawer-food-items-layout {
    display: flex;
    flex: 1;
    min-height: 0;
}

.recipe-planner-drawer .drawer-food-items-layout.has-food-basket {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.recipe-planner-drawer .drawer-food-items-catalog {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
}

.recipe-planner-drawer .drawer-food-items-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 10px;
    padding: 16px 18px 10px;
}

.recipe-planner-drawer .drawer-food-items-attribution {
    display: block;
    padding: 0 18px 8px;
    color: #778792;
    font-size: 9px;
    line-height: 1.25;
}

.recipe-planner-drawer .drawer-food-items-search-wrap {
    position: relative;
}

.recipe-planner-drawer .drawer-food-items-search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    pointer-events: none;
}

.recipe-planner-drawer .modal-food-item-search,
.recipe-planner-drawer .modal-food-item-category {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid #cbdde1;
    border-radius: 10px;
    background: #fff;
    color: #10233f;
    font: inherit;
    font-size: 13px;
    outline: none;
}

.recipe-planner-drawer .modal-food-item-search {
    padding: 0 12px 0 38px;
}

.recipe-planner-drawer .modal-food-item-category {
    padding: 0 34px 0 12px;
}

.recipe-planner-drawer .modal-food-item-search:focus,
.recipe-planner-drawer .modal-food-item-category:focus {
    border-color: #5bb0bd;
    box-shadow: 0 0 0 3px rgb(91 176 189 / 14%);
}

.recipe-planner-drawer .drawer-food-items-my-baskets {
    display: inline-flex;
    min-height: 30px;
    padding: 6px 12px;
    border: 1px solid #5bb0bd;
    border-radius: 16px;
    background: #fff;
    color: #277985;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    gap: 6px;
}

.recipe-planner-drawer .drawer-food-items-my-baskets:hover,
.recipe-planner-drawer .drawer-food-items-my-baskets:focus-visible {
    background: #eaf7f9;
}

.recipe-planner-drawer .drawer-food-items-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 18px 18px;
    overflow-y: auto;
}

.recipe-planner-drawer .drawer-food-item-category-group {
    min-width: 0;
}

.recipe-planner-drawer .drawer-food-item-category-group + .drawer-food-item-category-group {
    margin-top: 14px;
}

.recipe-planner-drawer .drawer-food-item-category-heading {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    padding: 7px 2px;
    background: #f8fcfd;
    box-shadow: 0 1px 0 rgb(16 35 63 / 7%);
}

.recipe-planner-drawer .drawer-food-item-category-heading h2 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border: 1px solid rgb(16 35 63 / 10%);
    border-radius: 18px;
    color: #10233f;
    font-size: 13px;
    font-weight: 700;
    max-width: 100%;
}

.recipe-planner-drawer .drawer-food-item-category-heading h2 span {
    font-size: 15px;
    line-height: 1;
}

.recipe-planner-drawer .drawer-food-item-category-label {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.recipe-planner-drawer .drawer-food-item-category-count {
    min-width: 25px;
    padding: 3px 7px;
    border-radius: 12px;
    background: #e2f4f6;
    color: #327b86;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.recipe-planner-drawer .drawer-food-item-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

.recipe-planner-drawer .drawer-food-item-category-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 10px;
}

.recipe-planner-drawer .drawer-food-items-layout.has-food-basket .drawer-food-item-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recipe-planner-drawer .drawer-food-item-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 64px;
    box-sizing: border-box;
    padding: 11px;
    border: 1px solid #d7e6e9;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgb(16 35 63 / 4%);
    align-items: flex-start;
    flex-direction: row;
    gap: 6px;
}

.recipe-planner-drawer .drawer-food-item-card.is-family {
    min-height: 46px;
    padding: 0;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.14s ease, background-color 0.14s ease, transform 0.14s ease;
}

.recipe-planner-drawer .drawer-food-item-card.is-family:not(.is-expanded):hover {
    border-color: #8bcbd4;
    background: #f8fdfe;
    transform: translateY(-1px);
}

.recipe-planner-drawer .drawer-food-item-card.is-family.is-expanded {
    align-items: stretch;
    flex-direction: column;
    cursor: default;
}

.recipe-planner-drawer .drawer-food-family-summary {
    display: flex;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 5px 10px;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.recipe-planner-drawer .drawer-food-item-card.is-expanded .drawer-food-family-summary {
    background: #f7fcfd;
}

.recipe-planner-drawer .food-item-family-open {
    display: inline-flex;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #c7dfe3;
    border-radius: 50%;
    background: #eff9fa;
    color: #287d89;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease;
}

.recipe-planner-drawer .drawer-food-item-card.is-expanded .food-item-family-open {
    background: #dff3f6;
    transform: rotate(90deg);
}

.recipe-planner-drawer .drawer-food-items-layout.has-food-basket .drawer-food-items-grid {
    padding-right: 8px;
    padding-left: 8px;
}

.recipe-planner-drawer .drawer-food-items-layout.has-food-basket .food-item-add-btn {
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    font-size: 15px;
}

.recipe-planner-drawer .drawer-food-item-heading {
    flex: 1 1 auto;
    min-width: 0;
}

.recipe-planner-drawer .drawer-food-item-heading > div:first-child {
    min-width: 0;
}

.recipe-planner-drawer .drawer-food-item-heading h3 {
    display: block;
    min-width: 0;
    margin: 0;
    color: #10233f;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
    white-space: normal;
}

.recipe-planner-drawer .drawer-food-item-serving {
    display: block;
    margin-top: 4px;
    color: #71808d;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
    white-space: normal;
}

.recipe-planner-drawer .drawer-food-item-verified {
    color: #2f8f72;
    font-size: 10px;
    font-weight: 800;
}

.recipe-planner-drawer .drawer-food-item-card-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
}

.recipe-planner-drawer .drawer-food-item-macro-control {
    position: relative;
}

.recipe-planner-drawer .food-item-macros-btn {
    display: inline-flex;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #c7dfe3;
    border-radius: 50%;
    background: #fff;
    color: #327b86;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.recipe-planner-drawer .food-item-macros-btn:hover,
.recipe-planner-drawer .food-item-macros-btn:focus-visible {
    background: #eaf7f9;
}

.recipe-planner-drawer .food-item-macros-btn img {
    width: 14px;
    height: 14px;
    display: block;
}

.recipe-planner-drawer .food-item-add-btn {
    flex: 0 0 auto;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border: 0;
    border-radius: 17px;
    background: #5bb0bd;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.recipe-planner-drawer .food-item-add-btn:hover {
    background: #479da9;
}

.recipe-planner-drawer .food-item-add-btn.is-in-basket {
    background: #327b86;
}

.recipe-planner-drawer .food-item-add-btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

.recipe-planner-drawer .drawer-food-item-macros {
    position: absolute;
    z-index: 20;
    right: 0;
    bottom: calc(100% + 6px);
    display: grid;
    width: 220px;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1px solid #cfe2e5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgb(16 35 63 / 18%);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(3px);
    transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
    pointer-events: none;
}

.recipe-planner-drawer .drawer-food-item-macro-control.opens-below .drawer-food-item-macros {
    top: calc(100% + 6px);
    bottom: auto;
}

.recipe-planner-drawer .drawer-food-item-macro-control:hover .drawer-food-item-macros,
.recipe-planner-drawer .drawer-food-item-macro-control:focus-within .drawer-food-item-macros {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.recipe-planner-drawer .drawer-food-item-macros span,
.recipe-planner-drawer .drawer-food-item-macros small,
.recipe-planner-drawer .drawer-food-item-macros strong {
    display: block;
    min-width: 0;
}

.recipe-planner-drawer .drawer-food-item-macros strong {
    color: #10233f;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.recipe-planner-drawer .drawer-food-item-macros small {
    margin-bottom: 2px;
    color: #788590;
    font-size: 9px;
}

.recipe-planner-drawer .drawer-food-family-selector {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 9px;
    border: 0;
    border-top: 1px solid #d9e9ec;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(135deg, #fff 0%, #f5fbfc 100%);
    box-shadow: none;
}

.recipe-planner-drawer .drawer-food-item-card.is-expanded .drawer-food-family-header {
    display: none;
}

.recipe-planner-drawer .drawer-food-family-inline-state {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border-top: 1px solid #d9e9ec;
    color: #61717e;
    background: #fbfefe;
    font-size: 11px;
    text-align: center;
}

.recipe-planner-drawer .drawer-food-family-inline-state.is-error {
    color: #b54747;
    background: #fff8f8;
}

.recipe-planner-drawer .drawer-food-family-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #dfebed;
}

.recipe-planner-drawer .drawer-food-family-back {
    display: inline-flex;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #c7dfe3;
    border-radius: 50%;
    background: #fff;
    color: #287d89;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-size: 17px;
    cursor: pointer;
}

.recipe-planner-drawer .drawer-food-family-header > div {
    min-width: 0;
}

.recipe-planner-drawer .drawer-food-family-header span {
    display: block;
    margin-bottom: 2px;
    color: #4d929c;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.recipe-planner-drawer .drawer-food-family-header h2 {
    margin: 0;
    color: #10233f;
    font-size: 18px;
    line-height: 1.25;
}

.recipe-planner-drawer .drawer-food-family-header p {
    margin: 3px 0 0;
    color: #71808d;
    font-size: 11px;
}

.recipe-planner-drawer .drawer-food-family-fields {
    display: grid;
    margin-top: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
}

.recipe-planner-drawer .drawer-food-family-fields label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    color: #405264;
    font-size: 10px;
    font-weight: 700;
}

.recipe-planner-drawer .drawer-food-family-fields select,
.recipe-planner-drawer .drawer-food-family-fields input,
.recipe-planner-drawer .drawer-food-family-serving-static {
    width: 100%;
    min-height: 34px;
    box-sizing: border-box;
    padding: 6px 9px;
    border: 1px solid #cbdde1;
    border-radius: 8px;
    background: #fff;
    color: #10233f;
    font: inherit;
    font-size: 12px;
    outline: none;
}

.recipe-planner-drawer .drawer-food-family-fields select:focus,
.recipe-planner-drawer .drawer-food-family-fields input:focus {
    border-color: #5bb0bd;
    box-shadow: 0 0 0 3px rgb(91 176 189 / 14%);
}

.recipe-planner-drawer .drawer-food-family-serving-static {
    display: flex;
    align-items: center;
    color: #61717e;
}

.recipe-planner-drawer .drawer-food-family-review {
    display: flex;
    margin-top: 9px;
    padding: 8px 9px;
    border-radius: 8px;
    background: #eaf7f9;
    align-items: center;
    gap: 10px;
}

.recipe-planner-drawer .drawer-food-family-review-copy {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.recipe-planner-drawer .drawer-food-family-review-copy > span {
    color: #61717e;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.recipe-planner-drawer .drawer-food-family-review-copy strong {
    color: #10233f;
    font-size: 12px;
    line-height: 1.3;
}

.recipe-planner-drawer .drawer-food-family-add {
    min-height: 32px;
    padding: 6px 14px;
    border: 0;
    border-radius: 18px;
    background: #5bb0bd;
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.recipe-planner-drawer .drawer-food-family-add:hover {
    background: #479da9;
}

.recipe-planner-drawer .drawer-food-items-state {
    grid-column: 1 / -1;
    padding: 32px 16px;
    color: #667783;
    text-align: center;
    font-size: 13px;
}

.recipe-planner-drawer .drawer-food-items-state.is-error {
    color: #b54747;
}

.recipe-planner-drawer .drawer-food-items-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.recipe-planner-drawer .drawer-food-items-empty-state > p {
    margin: 0;
}

.recipe-planner-drawer .drawer-food-items-add-ai {
    display: inline-flex;
    min-height: 36px;
    padding: 8px 15px;
    border: 1px solid #5bb0bd;
    border-radius: 999px;
    background: #ffffff;
    color: #267a87;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.recipe-planner-drawer .drawer-food-items-add-ai:hover:not(:disabled) {
    background: #eaf7f9;
}

.recipe-planner-drawer .drawer-food-items-add-ai:focus-visible {
    outline: 3px solid rgb(91 176 189 / 28%);
    outline-offset: 2px;
}

.recipe-planner-drawer .drawer-food-items-add-ai:disabled {
    opacity: 0.72;
    cursor: default;
}

.recipe-planner-drawer .drawer-food-items-add-ai[hidden],
.recipe-planner-drawer .drawer-food-items-ai-form[hidden],
.recipe-planner-drawer .drawer-food-items-ai-review[hidden] {
    display: none;
}

.recipe-planner-drawer .drawer-food-items-add-ai img {
    width: 15px;
    height: 15px;
}

.recipe-planner-drawer .drawer-food-items-ai-error {
    color: #b54747;
    font-size: 11px;
}

.recipe-planner-drawer .drawer-food-items-ai-error[hidden] {
    display: none;
}

.recipe-planner-drawer .drawer-food-items-ai-form {
    width: min(620px, 100%);
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid #c9e1e5;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgb(30 91 101 / 8%);
    color: #10233f;
    text-align: left;
}

.recipe-planner-drawer .drawer-food-items-ai-description,
.recipe-planner-drawer .drawer-food-items-ai-fields label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #25394c;
    font-size: 10px;
    font-weight: 700;
}

.recipe-planner-drawer .drawer-food-items-ai-description textarea,
.recipe-planner-drawer .drawer-food-items-ai-fields input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbdce0;
    border-radius: 7px;
    background: #ffffff;
    color: #10233f;
    font: inherit;
    font-size: 11px;
    outline: none;
}

.recipe-planner-drawer .drawer-food-items-ai-description textarea {
    min-height: 76px;
    padding: 9px;
    resize: vertical;
}

.recipe-planner-drawer .drawer-food-items-ai-fields input {
    height: 32px;
    padding: 6px 8px;
}

.recipe-planner-drawer .drawer-food-items-ai-description textarea:focus,
.recipe-planner-drawer .drawer-food-items-ai-fields input:focus {
    border-color: #5bb0bd;
    box-shadow: 0 0 0 2px rgb(91 176 189 / 16%);
}

.recipe-planner-drawer .drawer-food-items-ai-form-actions {
    display: flex;
    margin-top: 10px;
    justify-content: flex-end;
    gap: 8px;
}

.recipe-planner-drawer .drawer-food-items-ai-form-actions button,
.recipe-planner-drawer .drawer-food-items-ai-save-shared {
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 7px;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.recipe-planner-drawer .drawer-food-items-ai-cancel {
    border: 1px solid #cbdce0;
    background: #ffffff;
    color: #526571;
}

.recipe-planner-drawer .drawer-food-items-ai-estimate,
.recipe-planner-drawer .drawer-food-items-ai-save-shared {
    border: 1px solid #358795;
    background: #358795;
    color: #ffffff;
}

.recipe-planner-drawer .drawer-food-items-ai-estimate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.recipe-planner-drawer .drawer-food-items-ai-estimate img {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
}

.recipe-planner-drawer .drawer-food-items-ai-review {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e1ecee;
}

.recipe-planner-drawer .drawer-food-items-ai-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 10px;
}

.recipe-planner-drawer .drawer-food-items-ai-fields label > div {
    position: relative;
}

.recipe-planner-drawer .drawer-food-items-ai-fields label > div input {
    padding-right: 34px;
}

.recipe-planner-drawer .drawer-food-items-ai-fields label > div small {
    position: absolute;
    top: 50%;
    right: 8px;
    color: #788590;
    font-size: 8px;
    transform: translateY(-50%);
}

.recipe-planner-drawer .drawer-food-items-ai-notice {
    margin: 10px 0;
    color: #667783;
    font-size: 10px;
    line-height: 1.4;
}

.recipe-planner-drawer .drawer-food-items-ai-save-shared {
    width: 100%;
}

.recipe-planner-drawer .drawer-food-items-ai-form button:disabled {
    opacity: 0.68;
    cursor: default;
}

.recipe-planner-drawer .drawer-food-basket {
    display: flex;
    flex: 0 0 270px;
    min-width: 0;
    min-height: 0;
    padding: 18px 16px;
    border-left: 1px solid #d7e6e9;
    background: #fff;
    flex-direction: column;
}

.recipe-planner-drawer .drawer-food-basket[hidden] {
    display: none;
}

.recipe-planner-drawer .drawer-food-basket-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6eff1;
}

.recipe-planner-drawer .drawer-food-basket-header h2,
.recipe-planner-drawer .drawer-food-basket-header p,
.recipe-planner-drawer .drawer-food-basket-totals h3 {
    margin: 0;
}

.recipe-planner-drawer .drawer-food-basket-header h2 {
    color: #10233f;
    font-size: 16px;
    font-weight: 700;
}

.recipe-planner-drawer .drawer-food-basket-header p {
    margin-top: 2px;
    color: #6c7b87;
    font-size: 11px;
}

.recipe-planner-drawer .drawer-food-basket-header > span {
    font-size: 24px;
    line-height: 1;
}

.recipe-planner-drawer .drawer-food-basket-title-wrap {
    min-width: 0;
}

.recipe-planner-drawer .drawer-food-basket-title-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
}

.recipe-planner-drawer .drawer-food-basket-title-row h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recipe-planner-drawer .drawer-food-basket-edit-name {
    display: inline-flex;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    padding: 2px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.recipe-planner-drawer .drawer-food-basket-edit-name:hover {
    background: #e7f4f6;
}

.recipe-planner-drawer .drawer-food-basket-edit-name img {
    width: 18px;
    height: 18px;
}

.recipe-planner-drawer .drawer-food-basket-title-input {
    width: min(160px, 100%);
    height: 30px;
    box-sizing: border-box;
    padding: 5px 8px;
    border: 1px solid #5bb0bd;
    border-radius: 7px;
    color: #10233f;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    outline: none;
    box-shadow: 0 0 0 2px rgb(91 176 189 / 14%);
}

.recipe-planner-drawer .drawer-food-basket-title-input[hidden],
.recipe-planner-drawer .drawer-food-basket-edit-name[hidden] {
    display: none;
}

.recipe-planner-drawer .drawer-food-basket-items {
    display: flex;
    flex: 1 1 auto;
    min-height: 100px;
    padding: 10px 0;
    overflow-y: auto;
    scrollbar-color: rgb(136 116 95 / 42%) transparent;
    scrollbar-width: thin;
    flex-direction: column;
    gap: 0;
}

.recipe-planner-drawer .drawer-food-basket-items::-webkit-scrollbar {
    width: 4px;
}

.recipe-planner-drawer .drawer-food-basket-items::-webkit-scrollbar-track {
    background: transparent;
}

.recipe-planner-drawer .drawer-food-basket-items::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgb(136 116 95 / 42%);
}

.recipe-planner-drawer .drawer-food-basket-empty {
    display: flex;
    flex: 1;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    padding: 18px;
    color: #71808d;
    text-align: center;
    flex-direction: column;
    gap: 8px;
}

.recipe-planner-drawer .drawer-food-basket-empty span {
    font-size: 30px;
}

.recipe-planner-drawer .drawer-food-basket-empty p {
    max-width: 160px;
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

.recipe-planner-drawer .drawer-food-basket-item {
    display: grid;
    align-items: start;
    column-gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 7px;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid #dfebed;
    border-radius: 0;
    background: transparent;
}

.recipe-planner-drawer .drawer-food-basket-item-info {
    min-width: 0;
}

.recipe-planner-drawer .drawer-food-basket-item-info strong,
.recipe-planner-drawer .drawer-food-basket-item-info span {
    display: block;
}

.recipe-planner-drawer .drawer-food-basket-serving {
    width: 100%;
    height: 26px;
    margin-top: 0;
    padding: 2px 24px 2px 7px;
    border: 1px solid #cfe2e5;
    border-radius: 6px;
    background: #fff;
    color: #26394f;
    font-size: 10px;
    grid-column: 1 / -1;
}

.recipe-planner-drawer .drawer-food-basket-item-info strong {
    overflow: hidden;
    color: #10233f;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recipe-planner-drawer .drawer-food-basket-item-info span {
    margin-top: 2px;
    overflow: hidden;
    color: #71808d;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recipe-planner-drawer .drawer-food-basket-item-controls {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    align-self: center;
    gap: 4px;
}

.recipe-planner-drawer .drawer-food-basket-item-controls button {
    display: inline-flex;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid #acd5da;
    border-radius: 50%;
    background: #fff;
    color: #327b86;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.recipe-planner-drawer .drawer-food-basket-quantity {
    width: 54px;
    height: 28px;
    box-sizing: border-box;
    padding: 2px 3px;
    border: 1px solid #cfe2e5;
    border-radius: 5px;
    color: #10233f;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.recipe-planner-drawer .drawer-food-basket-item-controls .drawer-food-basket-remove {
    margin-left: 2px;
    border-color: #efcccc;
    color: #b54747;
}

.recipe-planner-drawer .drawer-food-basket-totals {
    padding: 12px 0;
    border-top: 1px solid #e6eff1;
}

.recipe-planner-drawer .drawer-food-basket-totals h3 {
    margin-bottom: 8px;
    color: #10233f;
    font-size: 13px;
    font-weight: 700;
}

.recipe-planner-drawer .drawer-food-basket-macros {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 5px;
}

.recipe-planner-drawer .drawer-food-basket-macros span,
.recipe-planner-drawer .drawer-food-basket-macros small,
.recipe-planner-drawer .drawer-food-basket-macros strong {
    display: block;
    min-width: 0;
}

.recipe-planner-drawer .drawer-food-basket-macros small {
    color: #788590;
    font-size: 9px;
}

.recipe-planner-drawer .drawer-food-basket-macros strong {
    margin-top: 1px;
    color: #10233f;
    font-size: 11px;
    font-weight: 700;
}

.recipe-planner-drawer .drawer-food-basket-save {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: #327b86;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.recipe-planner-drawer .drawer-food-basket-save:hover:not(:disabled) {
    background: #286772;
}

.recipe-planner-drawer .drawer-food-basket-save-template {
    width: 100%;
    min-height: 36px;
    margin-bottom: 8px;
    padding: 8px 12px;
    border: 1px solid #327b86;
    border-radius: 9px;
    background: #fff;
    color: #327b86;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.recipe-planner-drawer .drawer-food-basket-save-template:hover:not(:disabled) {
    background: #edf8f9;
}

.recipe-planner-drawer .drawer-food-basket-save-template:disabled {
    border-color: #d5e2e4;
    color: #9aa8ad;
    cursor: not-allowed;
}

.recipe-planner-drawer .drawer-food-basket-save:disabled {
    background: #d5e2e4;
    color: #829197;
    cursor: not-allowed;
}

.recipe-planner-drawer .category-pane-food-baskets {
    padding: 0;
    background: #f8fcfd;
}

.recipe-planner-drawer .drawer-food-baskets-layout {
    display: flex;
    flex: 1;
    min-height: 0;
}

.recipe-planner-drawer .drawer-food-baskets-library {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    padding: 20px;
    flex-direction: column;
}

.recipe-planner-drawer .drawer-food-baskets-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding-bottom: 14px;
}

.recipe-planner-drawer .drawer-food-baskets-header h2,
.recipe-planner-drawer .drawer-food-baskets-header p {
    margin: 0;
}

.recipe-planner-drawer .drawer-food-baskets-header h2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #10233f;
    font-size: 20px;
    font-weight: 700;
}

.recipe-planner-drawer .drawer-food-baskets-header p {
    margin-top: 3px;
    color: #71808d;
    font-size: 11px;
}

.recipe-planner-drawer .drawer-food-baskets-title-icon {
    font-size: 22px;
    line-height: 1;
}

.recipe-planner-drawer .drawer-food-baskets-tabs {
    display: inline-flex;
    align-self: flex-start;
    padding: 2px;
    border: 1px solid #d5e4e7;
    border-radius: 17px;
    background: #fff;
    gap: 1px;
}

.recipe-planner-drawer .drawer-food-baskets-tab {
    min-width: 56px;
    padding: 5px 9px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #667783;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.recipe-planner-drawer .drawer-food-baskets-tab.active {
    background: #5bb0bd;
    color: #fff;
}

.recipe-planner-drawer .drawer-food-baskets-grid {
    display: grid;
    flex: 1;
    min-height: 0;
    margin-top: 14px;
    padding: 10px 5px 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    align-items: start;
    overflow-y: auto;
    scrollbar-color: rgb(136 116 95 / 55%) transparent;
    scrollbar-width: thin;
    gap: 14px 12px;
}

.recipe-planner-drawer
    .drawer-food-baskets-layout:has(.drawer-food-basket-library-panel:not([hidden]))
    .drawer-food-baskets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recipe-planner-drawer .drawer-food-baskets-grid::-webkit-scrollbar {
    width: 4px;
}

.recipe-planner-drawer .drawer-food-baskets-grid::-webkit-scrollbar-track {
    background: transparent;
}

.recipe-planner-drawer .drawer-food-baskets-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgb(136 116 95 / 55%);
}

.recipe-planner-drawer .drawer-food-baskets-section-divider {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 10px;
    color: #805728;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.recipe-planner-drawer .drawer-food-baskets-section-divider::after {
    height: 1px;
    background: #d9c29f;
    content: '';
    flex: 1;
}

.recipe-planner-drawer .drawer-food-basket-library-card {
    position: relative;
    display: flex;
    align-self: start;
    min-width: 0;
    margin-top: 0;
    padding: 10px 10px 8px;
    border: 1px solid #eadcc5;
    border-top: 5px solid #cc9b5c;
    border-radius: 4px 4px 12px 12px;
    background-color: #fffbf3;
    background-image:
        repeating-linear-gradient(45deg, rgb(204 155 92 / 4%) 0 5px, transparent 5px 11px),
        repeating-linear-gradient(-45deg, rgb(204 155 92 / 3%) 0 5px, transparent 5px 11px);
    box-shadow: 0 3px 10px rgb(117 80 33 / 8%);
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.recipe-planner-drawer .drawer-food-basket-library-card.is-selected {
    border-color: #cc9b5c;
    box-shadow: 0 0 0 2px rgb(204 155 92 / 18%), 0 3px 10px rgb(117 80 33 / 10%);
}

.recipe-planner-drawer .drawer-food-basket-library-rim {
    position: absolute;
    z-index: 3;
    top: -5px;
    right: 0;
    bottom: 0;
    left: 0;
    height: auto;
    border-top: 5px solid #cc9b5c;
    border-radius: 4px 4px 11px 11px;
    background-color: #fffbf3;
    background-image:
        repeating-linear-gradient(45deg, rgb(204 155 92 / 4%) 0 5px, transparent 5px 11px),
        repeating-linear-gradient(-45deg, rgb(204 155 92 / 3%) 0 5px, transparent 5px 11px);
    pointer-events: none;
}

.recipe-planner-drawer .drawer-food-basket-library-heading,
.recipe-planner-drawer .drawer-food-basket-library-totals-heading,
.recipe-planner-drawer .drawer-food-basket-library-macros,
.recipe-planner-drawer .drawer-food-basket-library-toggle {
    position: relative;
    z-index: 4;
}

.recipe-planner-drawer .drawer-food-basket-library-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.recipe-planner-drawer .drawer-food-basket-library-heading-main {
    flex: 1 1 auto;
    min-width: 0;
}

.recipe-planner-drawer .drawer-food-basket-library-title-row,
.recipe-planner-drawer .drawer-food-basket-library-meta,
.recipe-planner-drawer .drawer-food-basket-library-top-actions {
    display: flex;
    align-items: center;
}

.recipe-planner-drawer .drawer-food-basket-library-title-row {
    min-width: 0;
    gap: 4px;
}

.recipe-planner-drawer .drawer-food-basket-library-heading h3,
.recipe-planner-drawer .drawer-food-basket-library-heading p {
    margin: 0;
}

.recipe-planner-drawer .drawer-food-basket-library-heading h3 {
    min-width: 0;
    overflow: hidden;
    color: #10233f;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recipe-planner-drawer .drawer-food-basket-library-heading p {
    margin-top: 2px;
    color: #71808d;
    font-size: 10px;
}

.recipe-planner-drawer .drawer-food-basket-library-heading .drawer-food-basket-library-items-preview {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    color: #6f6254;
    font-size: 9px;
    line-height: 1.35;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.recipe-planner-drawer .drawer-food-basket-library-meta {
    margin-top: 2px;
    gap: 6px;
}

.recipe-planner-drawer .drawer-food-basket-library-meta p {
    margin-top: 0;
}

.recipe-planner-drawer .drawer-food-basket-library-meta span {
    flex: 0 0 auto;
    padding: 2px 5px;
    border-radius: 12px;
    background: #e2f4f6;
    color: #327b86;
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
}

.recipe-planner-drawer .drawer-food-basket-library-meta .is-timestamp {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #71808d;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: none;
}

.recipe-planner-drawer .drawer-food-basket-library-title-input {
    width: min(190px, 100%);
    height: 28px;
    box-sizing: border-box;
    padding: 4px 7px;
    border: 1px solid #cc9b5c;
    border-radius: 6px;
    color: #10233f;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    outline: none;
}

.recipe-planner-drawer .drawer-food-basket-library-title-input[hidden] {
    display: none;
}

.recipe-planner-drawer .drawer-food-basket-library-rename {
    display: inline-flex;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    padding: 2px;
    border: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.recipe-planner-drawer .drawer-food-basket-library-rename img {
    width: 14px;
    height: 14px;
    filter: sepia(1) saturate(1.8) hue-rotate(345deg) brightness(0.8);
}

.recipe-planner-drawer .drawer-food-basket-library-top-actions {
    flex: 0 0 auto;
    align-items: flex-end;
    flex-direction: column;
    gap: 4px;
}

.recipe-planner-drawer .drawer-food-basket-library-action-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.recipe-planner-drawer .drawer-food-basket-library-top-actions button {
    height: 30px;
    border-radius: 8px;
    font: inherit;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
}

.recipe-planner-drawer .drawer-food-basket-library-top-actions button.drawer-food-basket-library-add {
    height: 24px;
    padding: 4px 8px;
    border-radius: 7px;
    font-size: 8px;
    white-space: nowrap;
}

.recipe-planner-drawer .drawer-food-basket-library-top-actions .drawer-food-basket-library-delete {
    display: inline-flex;
    width: 30px;
    padding: 0;
    border: 1px solid #efcccc;
    border-radius: 50%;
    background: #fff;
    align-items: center;
    justify-content: center;
}

.recipe-planner-drawer .drawer-food-basket-library-totals-heading {
    display: flex;
    min-width: 0;
    margin-top: 2px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.recipe-planner-drawer .drawer-food-basket-library-totals-heading > strong,
.recipe-planner-drawer .drawer-food-basket-library-totals-heading > h3 {
    margin: 0;
    color: #10233f;
    font-size: 11px;
    font-weight: 700;
}

.recipe-planner-drawer .drawer-food-basket-library-portions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    color: #6f6254;
    font-size: 9px;
    font-weight: 700;
}

.recipe-planner-drawer .drawer-food-basket-library-portions input {
    width: 44px;
    height: 25px;
    box-sizing: border-box;
    padding: 2px 3px 2px 7px;
    border: 1px solid #d8bd94;
    border-radius: 6px;
    background: #ffffff;
    color: #10233f;
    font: inherit;
    font-size: 10px;
    text-align: center;
    outline: none;
}

.recipe-planner-drawer .drawer-food-basket-library-portions input:focus {
    border-color: #5bb0bd;
    box-shadow: 0 0 0 2px rgb(91 176 189 / 18%);
}

.recipe-planner-drawer .drawer-food-basket-totals .drawer-food-basket-library-totals-heading {
    margin: 0 0 8px;
}

.recipe-planner-drawer .drawer-food-basket-totals .drawer-food-basket-library-totals-heading h3 {
    margin-bottom: 0;
}

.recipe-planner-drawer .drawer-food-basket-library-delete img {
    width: 13px;
    height: 14px;
}

.recipe-planner-drawer .drawer-food-basket-library-macros {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    padding: 6px 0;
    border-top: 1px solid #d9c29f;
    border-bottom: 1px solid #e4d5bd;
}

.recipe-planner-drawer .drawer-food-basket-library-macros small,
.recipe-planner-drawer .drawer-food-basket-library-macros strong {
    display: block;
}

.recipe-planner-drawer .drawer-food-basket-library-macros small {
    color: #88745f;
    font-size: 8px;
}

.recipe-planner-drawer .drawer-food-basket-library-macros strong {
    margin-top: 1px;
    color: #3f3225;
    font-size: 10px;
    white-space: nowrap;
}

.recipe-planner-drawer .drawer-food-basket-library-item {
    display: flex;
    min-width: 0;
    padding: 12px 9px;
    border-bottom: 1px solid #e4d5bd;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.recipe-planner-drawer .drawer-food-basket-library-item > div:first-child {
    min-width: 0;
}

.recipe-planner-drawer .drawer-food-basket-library-item strong,
.recipe-planner-drawer .drawer-food-basket-library-item > div:first-child span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recipe-planner-drawer .drawer-food-basket-library-item strong {
    color: #3f3225;
    font-size: 10px;
}

.recipe-planner-drawer .drawer-food-basket-library-item > div:first-child span {
    margin-top: 1px;
    color: #8a7762;
    font-size: 8px;
}

.recipe-planner-drawer .drawer-food-basket-library-quantity {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
}

.recipe-planner-drawer .drawer-food-basket-library-quantity button {
    display: inline-flex;
    width: 21px;
    height: 21px;
    padding: 0;
    border: 1px solid #d6b98d;
    border-radius: 50%;
    background: #fff;
    color: #95652f;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.recipe-planner-drawer .drawer-food-basket-library-quantity > span {
    min-width: 17px;
    color: #3f3225;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.recipe-planner-drawer .drawer-food-basket-library-quantity .drawer-food-basket-library-remove-item {
    margin-left: 2px;
    border-color: #efcccc;
    color: #b54747;
}

.recipe-planner-drawer .drawer-food-basket-library-readonly-quantity {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 10px;
    background: #f1e3ce;
    color: #805728;
    font-size: 9px;
    font-weight: 700;
}

.recipe-planner-drawer .drawer-food-basket-library-toggle {
    display: flex;
    width: 100%;
    min-height: 22px;
    box-sizing: border-box;
    padding: 3px 2px 1px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #805728;
    align-items: center;
    justify-content: space-between;
    font: inherit;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
}

.recipe-planner-drawer .drawer-food-basket-library-toggle img {
    width: 14px;
    height: 14px;
    filter: sepia(1) saturate(1.4) hue-rotate(345deg) brightness(0.78);
    transition: transform 160ms ease;
}

.recipe-planner-drawer .drawer-food-basket-library-toggle.is-expanded img {
    transform: rotate(90deg);
}

.recipe-planner-drawer .drawer-food-basket-library-toggle:not(.is-expanded) img {
    transform: rotate(-90deg);
}

.recipe-planner-drawer .drawer-food-basket-library-panel {
    flex-basis: 290px;
    padding: 18px 16px;
    border-left-color: #e1cba9;
    background-color: #fffbf3;
    background-image:
        repeating-linear-gradient(45deg, rgb(204 155 92 / 3%) 0 5px, transparent 5px 11px),
        repeating-linear-gradient(-45deg, rgb(204 155 92 / 2%) 0 5px, transparent 5px 11px);
}

.recipe-planner-drawer .drawer-food-basket-library-panel-header {
    border-bottom-color: #e4d5bd;
}

.recipe-planner-drawer .drawer-food-basket-library-panel-header h2 {
    overflow: hidden;
    color: #3f3225;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recipe-planner-drawer .drawer-food-basket-library-panel-header p {
    color: #88745f;
}

.recipe-planner-drawer .drawer-food-basket-library-panel-close {
    display: inline-flex;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 6px;
    border: 1px solid #e5d2b5;
    border-radius: 50%;
    background: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.recipe-planner-drawer .drawer-food-basket-library-panel-close img {
    width: 12px;
    height: 12px;
}

.recipe-planner-drawer .drawer-food-basket-library-panel-items {
    gap: 0;
}

.recipe-planner-drawer .drawer-food-basket-library-panel-totals {
    margin: 8px 0 0;
    padding: 14px 2px 12px;
    border: 0;
    border-top: 1px solid #e4d5bd;
    border-radius: 0;
    background: transparent;
}

.recipe-planner-drawer .drawer-food-basket-library-panel-add {
    width: 100%;
    min-height: 40px;
    margin-top: 10px;
    border: 0;
    border-radius: 9px;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.recipe-planner-drawer .drawer-food-basket-library-add {
    border: 0;
    background: #cc9b5c;
    color: #fff;
}

.recipe-planner-drawer .drawer-food-basket-library-add:hover {
    background: #b98546;
}

.recipe-planner-drawer .drawer-food-baskets-empty {
    display: flex;
    min-height: 240px;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    color: #71808d;
    text-align: center;
    flex-direction: column;
    gap: 9px;
}

.recipe-planner-drawer .drawer-food-baskets-empty span {
    font-size: 34px;
}

.recipe-planner-drawer .drawer-food-baskets-empty p {
    margin: 0;
    font-size: 12px;
}

@media (max-width: 700px) {
    .recipe-planner-drawer .drawer-food-items-layout,
    .recipe-planner-drawer .drawer-food-baskets-layout {
        overflow-y: auto;
        flex-direction: column;
    }

    .recipe-planner-drawer .drawer-food-items-layout.has-food-basket {
        display: flex;
    }

    .recipe-planner-drawer .drawer-food-baskets-library {
        flex: 0 0 auto;
        min-height: 440px;
    }

    .recipe-planner-drawer .drawer-food-items-catalog {
        flex: 0 0 auto;
        min-height: 440px;
    }

    .recipe-planner-drawer .drawer-food-basket {
        flex: 0 0 auto;
        min-height: 360px;
        border-top: 1px solid #d7e6e9;
        border-left: 0;
    }

    .recipe-planner-drawer .drawer-food-items-toolbar {
        grid-template-columns: 1fr;
    }

    .recipe-planner-drawer .drawer-food-items-grid {
        gap: 14px;
    }

    .recipe-planner-drawer .drawer-food-item-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recipe-planner-drawer .drawer-food-item-macros {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 6px;
    }

    .recipe-planner-drawer .drawer-food-baskets-grid {
        grid-template-columns: 1fr;
    }

    .recipe-planner-drawer .drawer-food-basket-library-macros {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 8px;
    }
}

/* In split view the drawer changes width without changing the viewport. Keep
   its catalog and detail panes responsive to their actual available width. */
@container planner-drawer (max-width: 760px) {
    .recipe-planner-drawer .drawer-food-item-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container planner-drawer (max-width: 860px) {
    .recipe-planner-drawer .drawer-food-items-layout.has-food-basket {
        display: grid;
        overflow: hidden;
        grid-template-columns: minmax(0, 1fr) minmax(240px, 0.75fr);
    }

    .recipe-planner-drawer .drawer-food-items-layout.has-food-basket .drawer-food-items-catalog {
        min-height: 0;
    }

    .recipe-planner-drawer .drawer-food-items-layout.has-food-basket .drawer-food-basket {
        width: auto;
        max-width: none;
        min-height: 0;
        border-top: 0;
        border-left: 1px solid #d7e6e9;
    }

    .recipe-planner-drawer .drawer-food-items-layout.has-food-basket .drawer-food-item-category-grid {
        display: flex;
        align-items: stretch;
        flex-direction: column;
    }

    .recipe-planner-drawer .drawer-food-items-layout.has-food-basket .drawer-food-item-category-column {
        display: contents;
    }

    .recipe-planner-drawer .drawer-food-items-layout.has-food-basket .drawer-food-item-card {
        width: 100%;
        align-self: stretch;
        order: var(--food-item-order);
    }

}

@container planner-drawer (max-width: 680px) {
    .recipe-planner-drawer .drawer-food-items-layout,
    .recipe-planner-drawer .drawer-food-baskets-layout {
        overflow-y: auto;
        flex-direction: column;
    }

    .recipe-planner-drawer .drawer-food-items-layout.has-food-basket {
        display: grid;
        overflow: hidden;
    }

    .recipe-planner-drawer .drawer-food-baskets-library,
    .recipe-planner-drawer .drawer-food-items-catalog {
        flex: 0 0 auto;
        min-height: 400px;
    }

    .recipe-planner-drawer .drawer-food-baskets-library {
        padding: 16px;
    }

    .recipe-planner-drawer .drawer-food-basket,
    .recipe-planner-drawer .drawer-food-basket-library-panel {
        width: auto;
        max-width: none;
        min-height: 340px;
        flex: 0 0 auto;
        flex-basis: auto;
        border-top: 1px solid #d7e6e9;
        border-left: 0;
    }

    .recipe-planner-drawer .drawer-food-items-layout.has-food-basket .drawer-food-items-catalog,
    .recipe-planner-drawer .drawer-food-items-layout.has-food-basket .drawer-food-basket {
        min-height: 0;
    }

    .recipe-planner-drawer .drawer-food-items-layout.has-food-basket .drawer-food-basket {
        border-top: 0;
        border-left: 1px solid #d7e6e9;
    }

    .recipe-planner-drawer .drawer-food-items-toolbar {
        grid-template-columns: minmax(0, 1fr);
    }

    .recipe-planner-drawer .drawer-food-baskets-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .recipe-planner-drawer .drawer-food-basket-library-macros {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 7px;
    }
}

@container planner-drawer (max-width: 520px) {
    .recipe-planner-drawer .drawer-food-baskets-library,
    .recipe-planner-drawer .drawer-food-items-toolbar,
    .recipe-planner-drawer .drawer-food-items-grid {
        padding-right: 12px;
        padding-left: 12px;
    }

    .recipe-planner-drawer .drawer-food-baskets-header {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .recipe-planner-drawer .drawer-food-baskets-header h2 {
        font-size: 17px;
    }

    .recipe-planner-drawer .drawer-food-baskets-tabs {
        max-width: 100%;
        overflow-x: auto;
    }

    .recipe-planner-drawer .drawer-food-basket,
    .recipe-planner-drawer .drawer-food-basket-library-panel {
        padding: 14px 12px;
    }

    .recipe-planner-drawer .drawer-food-basket-library-totals-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .recipe-planner-drawer .drawer-food-item-category-grid {
        display: flex;
        align-items: stretch;
        flex-direction: column;
    }

    .recipe-planner-drawer .drawer-food-items-layout.has-food-basket .drawer-food-item-category-grid {
        display: flex;
        align-items: stretch;
        flex-direction: column;
    }

    .recipe-planner-drawer .drawer-food-item-category-column,
    .recipe-planner-drawer .drawer-food-items-layout.has-food-basket .drawer-food-item-category-column {
        display: contents;
    }

    .recipe-planner-drawer .drawer-food-item-card,
    .recipe-planner-drawer .drawer-food-items-layout.has-food-basket .drawer-food-item-card {
        width: 100%;
        align-self: stretch;
        order: var(--food-item-order);
    }

    .recipe-planner-drawer .drawer-food-items-layout.has-food-basket {
        grid-template-columns: minmax(0, 1fr) minmax(190px, 0.9fr);
    }

    .recipe-planner-drawer .drawer-food-item-card,
    .recipe-planner-drawer .drawer-food-item-category-heading {
        padding-right: 6px;
        padding-left: 6px;
        grid-template-columns: minmax(90px, 1.4fr) minmax(180px, 2fr) 40px;
        gap: 6px;
    }

    .recipe-planner-drawer .drawer-food-item-macros,
    .recipe-planner-drawer .drawer-food-item-macro-headings {
        gap: 4px;
    }

    .recipe-planner-drawer .drawer-food-item-heading h3 {
        font-size: 13px;
    }

    .recipe-planner-drawer .drawer-food-item-macro-headings span,
    .recipe-planner-drawer .drawer-food-item-serving {
        font-size: 8px;
    }

    .recipe-planner-drawer .drawer-food-item-macros strong {
        font-size: 9px;
    }

    .recipe-planner-drawer .food-item-add-btn {
        min-width: 28px;
        padding: 0;
        font-size: 17px;
    }
}

.fc-event.notes-event.food-item-event {
    border-color: #5bb0bd !important;
    background: #eaf7f9 !important;
    color: #174b55 !important;
}

#calendar .fc-timeGridDay-view .fc-event.notes-event.food-basket-event,
#dayCalendar .fc-timeGridDay-view .fc-event.notes-event.food-basket-event {
    border: 1px solid #eadcc5 !important;
    border-top: 4px solid #cc9b5c !important;
    border-radius: 3px 3px 9px 9px !important;
    background-color: #fffbf3 !important;
    background-image:
        repeating-linear-gradient(45deg, rgb(204 155 92 / 5%) 0 5px, transparent 5px 11px),
        repeating-linear-gradient(-45deg, rgb(204 155 92 / 4%) 0 5px, transparent 5px 11px) !important;
    box-shadow: 0 2px 6px rgb(91 59 24 / 12%);
    color: #3f3225 !important;
    overflow: visible !important;
}

#calendar .fc-timeGridDay-view .fc-event.notes-event.food-basket-event::before,
#calendar .fc-timeGridDay-view .fc-event.notes-event.food-basket-event::after,
#dayCalendar .fc-timeGridDay-view .fc-event.notes-event.food-basket-event::before,
#dayCalendar .fc-timeGridDay-view .fc-event.notes-event.food-basket-event::after {
    position: absolute;
    z-index: 3;
    top: -11px;
    width: 22px;
    height: 11px;
    box-sizing: border-box;
    border: 3px solid #cc9b5c;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    content: '';
    pointer-events: none;
}

#calendar .fc-timeGridDay-view .fc-event.notes-event.food-basket-event::before,
#dayCalendar .fc-timeGridDay-view .fc-event.notes-event.food-basket-event::before {
    left: 8px;
}

#calendar .fc-timeGridDay-view .fc-event.notes-event.food-basket-event::after,
#dayCalendar .fc-timeGridDay-view .fc-event.notes-event.food-basket-event::after {
    right: 8px;
}

#calendar .fc-event.food-basket-event .fc-event-main,
#calendar .fc-event.food-basket-event .fc-event-main-frame,
#dayCalendar .fc-event.food-basket-event .fc-event-main,
#dayCalendar .fc-event.food-basket-event .fc-event-main-frame {
    border-radius: inherit;
    background: transparent !important;
}

#calendar .fc-event.food-basket-event .fc-note-event-card,
#calendar .fc-event.food-basket-event .fc-note-card-medium,
#calendar .fc-event.food-basket-event .fc-note-compact-card,
#dayCalendar .fc-event.food-basket-event .fc-note-event-card,
#dayCalendar .fc-event.food-basket-event .fc-note-card-medium,
#dayCalendar .fc-event.food-basket-event .fc-note-compact-card {
    padding-right: 42px;
}

#calendar .fc-event.food-basket-event .fc-note-event-card,
#dayCalendar .fc-event.food-basket-event .fc-note-event-card {
    gap: 2px;
}

#calendar .fc-event.food-basket-event .fc-food-basket-item-preview,
#dayCalendar .fc-event.food-basket-event .fc-food-basket-item-preview {
    display: -webkit-box;
    flex: 1 1 auto;
    min-height: 0;
    margin: 4px 0 0;
    padding-top: 4px;
    overflow: hidden;
    border-top: 1px solid rgb(204 155 92 / 35%);
    color: #806d58;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.fc-event.food-basket-event .fc-note-header,
.fc-event.food-basket-event .fc-note-medium-label {
    color: #95652f;
}

#calendar .fc-dayGridMonth-view .fc-event.food-basket-event .month-pill,
#dayCalendar .fc-dayGridMonth-view .fc-event.food-basket-event .month-pill,
#calendar .fc-timeGridWeek-view .fc-event.food-basket-event .fc-week-pill,
#dayCalendar .fc-timeGridWeek-view .fc-event.food-basket-event .fc-week-pill {
    border-top: 3px solid #cc9b5c;
    background-color: #fffbf3 !important;
    background-image:
        repeating-linear-gradient(45deg, rgb(204 155 92 / 5%) 0 5px, transparent 5px 11px),
        repeating-linear-gradient(-45deg, rgb(204 155 92 / 4%) 0 5px, transparent 5px 11px) !important;
    color: #3f3225 !important;
}

#calendar .fc-timeGridWeek-view .fc-event.food-basket-event .fc-food-basket-pill-items,
#dayCalendar .fc-timeGridWeek-view .fc-event.food-basket-event .fc-food-basket-pill-items {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    color: #806d58;
    font-size: 9px;
    font-weight: 500;
    line-height: 12px;
    white-space: normal;
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

#weekEventHoverTooltip .week-hover-card--food-item.food-basket-event .fc-note-event-card {
    border-top: 4px solid #cc9b5c;
    background-color: #fffbf3;
    background-image:
        repeating-linear-gradient(45deg, rgb(204 155 92 / 5%) 0 5px, transparent 5px 11px),
        repeating-linear-gradient(-45deg, rgb(204 155 92 / 4%) 0 5px, transparent 5px 11px);
}

#weekEventHoverTooltip .week-hover-card--food-item.food-basket-event {
    border: 0 !important;
    background: transparent !important;
}

#weekEventHoverTooltip .week-hover-card--food-item.food-basket-event .fc-recipe-nutrition-summary {
    border: 0;
    background: #fff8eb;
    box-shadow: none;
}

#weekEventHoverTooltip .week-hover-card--food-item {
    align-items: stretch;
}

#calendar .fc-event.food-item-event .fc-event-main-frame,
#dayCalendar .fc-event.food-item-event .fc-event-main-frame {
    position: relative;
}

#calendar .fc-event.food-item-event .fc-recipe-portion-badge,
#dayCalendar .fc-event.food-item-event .fc-recipe-portion-badge {
    position: absolute;
    top: 5px;
    right: 7px;
    z-index: 2;
    color: #327b86;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

#weekEventHoverTooltip .week-hover-card--food-item .fc-note-event-card {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    padding: 12px 40px 12px 14px;
    background: #eaf7f9;
}

#weekEventHoverTooltip .week-hover-card--food-item .fc-recipe-hover-divider {
    margin-top: 9px;
}

#weekEventHoverTooltip .week-hover-card--food-item .fc-recipe-nutrition-summary {
    width: 100%;
    background: #f2fbfc;
}

#weekEventHoverTooltip .week-hover-card--food-item.food-basket-event .fc-note-event-card {
    min-height: 0;
    padding: 8px 38px 7px 12px;
    gap: 3px;
}

#weekEventHoverTooltip .week-hover-card--food-item.food-basket-event .fc-event-time-range {
    margin-top: 2px;
}

#weekEventHoverTooltip .week-hover-card--food-item.food-basket-event .fc-recipe-hover-divider {
    margin: 5px 0 3px;
}

#weekEventHoverTooltip .week-hover-card--food-item.food-basket-event .fc-recipe-nutrition-summary {
    margin-top: 4px;
    padding: 7px 12px 8px;
    column-gap: 8px;
    row-gap: 5px;
    background: #fff8eb;
}

#weekEventHoverTooltip .week-hover-card--food-item.food-basket-event .fc-recipe-nutrition-label {
    margin-bottom: 0;
    line-height: 10px;
}

#weekEventHoverTooltip .week-hover-card--food-item.food-basket-event .fc-recipe-nutrition-value {
    line-height: 13px;
}

#weekEventHoverTooltip .week-hover-card--food-basket {
    display: grid;
    width: 576px;
    min-width: 576px;
    grid-template-columns: 300px 268px;
    align-items: start;
    gap: 8px;
}

#weekEventHoverTooltip .week-hover-basket-summary {
    display: flex;
    min-width: 0;
    width: 300px;
    flex-direction: column;
    align-items: stretch;
}

#weekEventHoverTooltip .week-hover-basket-editor {
    box-sizing: border-box;
    width: 268px;
    max-height: 296px;
    overflow: hidden;
    border-top: 4px solid #cc9b5c;
    border-radius: 4px;
    background-color: #fffbf3;
    background-image:
        repeating-linear-gradient(45deg, rgb(204 155 92 / 5%) 0 5px, transparent 5px 11px),
        repeating-linear-gradient(-45deg, rgb(204 155 92 / 4%) 0 5px, transparent 5px 11px);
    color: #3f3225;
    cursor: default;
}

#weekEventHoverTooltip .week-hover-basket-editor-header {
    display: flex;
    min-height: 38px;
    box-sizing: border-box;
    padding: 9px 10px 8px;
    border-bottom: 1px solid #e4d5bd;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

#weekEventHoverTooltip .week-hover-basket-editor-header strong {
    font-size: 11px;
    line-height: 14px;
}

#weekEventHoverTooltip .week-hover-basket-editor-header span {
    color: #88745f;
    font-size: 9px;
    line-height: 12px;
    white-space: nowrap;
}

#weekEventHoverTooltip .week-hover-basket-editor-list {
    max-height: 254px;
    overflow-y: auto;
    scrollbar-color: rgb(136 116 95 / 42%) transparent;
    scrollbar-width: thin;
}

#weekEventHoverTooltip .week-hover-basket-editor-item {
    display: grid;
    min-width: 0;
    padding: 6px 7px;
    border-bottom: 1px solid #e4d5bd;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    column-gap: 6px;
    row-gap: 5px;
}

#weekEventHoverTooltip .week-hover-basket-editor-info {
    min-width: 0;
}

#weekEventHoverTooltip .week-hover-basket-editor-info strong,
#weekEventHoverTooltip .week-hover-basket-editor-info span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#weekEventHoverTooltip .week-hover-basket-editor-info strong {
    font-size: 10px;
    line-height: 13px;
}

#weekEventHoverTooltip .week-hover-basket-editor-info span {
    margin-top: 2px;
    color: #88745f;
    font-size: 8px;
    line-height: 11px;
}

#weekEventHoverTooltip .week-hover-basket-editor-controls {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 3px;
}

#weekEventHoverTooltip .week-hover-basket-editor-controls button {
    display: inline-flex;
    width: 21px;
    height: 21px;
    padding: 0;
    border: 1px solid #d6b98d;
    border-radius: 50%;
    background: #fff;
    color: #95652f;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

#weekEventHoverTooltip .week-hover-basket-editor-controls > span {
    min-width: 16px;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

#weekEventHoverTooltip .week-hover-basket-editor-controls .week-hover-basket-editor-remove {
    margin-left: 1px;
    border-color: #efcccc;
    color: #b54747;
}

#weekEventHoverTooltip .week-hover-basket-editor-controls button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

/* Note form inputs - Frame 1618875374 design specs (match event-header/note content area) */
.recipe-planner-drawer .category-pane-notes .drawer-note-form .form-input.modal-note-title-input,
.recipe-planner-drawer .category-pane-notes .drawer-note-form .form-textarea.modal-note-description-textarea {
    box-sizing: border-box;
    padding: 20px;
    width: 100%;
    min-height: 60px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    font-family:
        'Montserrat',
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: #000000;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.recipe-planner-drawer .category-pane-notes .drawer-note-form .form-textarea.modal-note-description-textarea {
    min-height: 203px;
    resize: vertical;
}

.recipe-planner-drawer .category-pane-notes .drawer-note-form .form-input.modal-note-title-input:focus,
.recipe-planner-drawer .category-pane-notes .drawer-note-form .form-textarea.modal-note-description-textarea:focus {
    outline: none;
    border-color: rgba(91, 176, 189, 1);
    box-shadow: 0 0 0 1px rgba(91, 176, 189, 1);
}

.recipe-planner-drawer .category-pane-notes .drawer-note-form .form-input.modal-note-title-input::placeholder,
.recipe-planner-drawer
    .category-pane-notes
    .drawer-note-form
    .form-textarea.modal-note-description-textarea::placeholder {
    font-family:
        'Montserrat',
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: rgba(0, 0, 0, 0.5);
}

.recipe-planner-drawer
    .category-pane-notes
    .drawer-note-form
    .form-input.modal-note-title-input::-webkit-input-placeholder,
.recipe-planner-drawer
    .category-pane-notes
    .drawer-note-form
    .form-textarea.modal-note-description-textarea::-webkit-input-placeholder,
.recipe-planner-drawer .category-pane-notes .drawer-note-form .form-input.modal-note-title-input::-moz-placeholder,
.recipe-planner-drawer
    .category-pane-notes
    .drawer-note-form
    .form-textarea.modal-note-description-textarea::-moz-placeholder {
    font-family:
        'Montserrat',
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
}

/* Note form - recipe-confirm style options and footer */
.recipe-planner-drawer .category-pane-notes .note-confirm-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    margin-top: 24px;
    gap: 10px;
}

.recipe-planner-drawer .category-pane-notes .recipe-confirm-option-card {
    min-width: 0;
    border-radius: 4px;
    background-color: rgba(240, 245, 255, 1);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.recipe-planner-drawer .category-pane-notes .recipe-confirm-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    width: 100%;
    text-align: left;
}

.recipe-planner-drawer .category-pane-notes .recipe-confirm-repeat-panel,
.recipe-planner-drawer .category-pane-notes .notify-options-panel {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recipe-planner-drawer .category-pane-notes .note-confirm-footer .note-edit-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0;
    margin: 0;
}

.recipe-planner-drawer .category-pane-notes .note-add-to-planner-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 20px;
    gap: 4px;
    width: auto;
    height: 42px;
    background: #5bb0bd;
    border-radius: 500px;
    border: none;
    font-family:
        Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: #ffffff;
    cursor: pointer;
}

.recipe-planner-drawer .category-pane-notes .note-add-to-planner-btn:hover {
    background: #4a9da9;
}

.recipe-planner-drawer .category-pane-notes .frequency-options,
.recipe-planner-drawer .category-pane-notes .notify-options-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.recipe-planner-drawer .category-pane-notes .frequency-btn,
.recipe-planner-drawer .category-pane-notes .notify-option-btn {
    padding: 8px 12px;
    border-radius: 80px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    background-color: #fff;
    color: #111827;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.recipe-planner-drawer .category-pane-notes .frequency-btn:hover,
.recipe-planner-drawer .category-pane-notes .notify-option-btn:hover {
    background-color: #f8f9fa;
}

.recipe-planner-drawer .category-pane-notes .frequency-btn--selected,
.recipe-planner-drawer .category-pane-notes .notify-option-btn--selected {
    border: 2px solid #5bb0bd;
    color: #208999;
    font-weight: 600;
}

.recipe-planner-drawer .category-pane-notes .recipe-confirm-option-header .toggle-switch {
    position: relative;
    width: 28px;
    height: 16px;
    background: #ccc;
    border-radius: 8px;
    flex-shrink: 0;
}

.recipe-planner-drawer .category-pane-notes .recipe-confirm-option-header .toggle-switch[aria-checked='true'] {
    background: #5bb0bd;
}

.recipe-planner-drawer .category-pane-notes .toggle-indicator {
    position: absolute;
    left: 1.5px;
    top: 1.5px;
    width: 13px;
    height: 13px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.recipe-planner-drawer
    .category-pane-notes
    .recipe-confirm-option-header
    .toggle-switch[aria-checked='true']
    .toggle-indicator {
    transform: translateX(12px);
}

.recipe-planner-drawer .category-pane-notes .recipe-confirm-option-label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
}

/* Note repeat custom options - copied from recipe-event-details-drawer */
.recipe-planner-drawer .category-pane-notes .note-repeat-custom-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-custom-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-custom-label {
    width: 35px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 400;
    color: #000;
    font-family:
        Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-custom-inputs {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-unit-dropdown-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-custom-inputs .note-repeat-unit-dropdown-wrapper:first-child {
    width: 90px;
    flex: none;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-unit-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background-color: #fff;
    font-size: 12px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    font-family:
        Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    text-align: left;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-unit-display {
    font-size: 12px;
    font-weight: 500;
    color: #000;
    font-family:
        Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-unit-trigger:hover {
    background-color: #f8f9fa;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-unit-arrow {
    flex-shrink: 0;
    margin-left: 8px;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-unit-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    min-width: 120px;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    flex-direction: column;
    padding: 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    font-family:
        Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    z-index: 100;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-unit-dropdown.note-repeat-unit-dropdown--open {
    display: flex;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-period-option {
    display: flex;
    width: 100%;
    align-items: center;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-period-option:not(:first-child) {
    margin-top: 6px;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-period-btn {
    color: #000;
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 400;
    font-family:
        Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-period-btn:hover {
    opacity: 0.8;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-custom-suffix {
    font-size: 12px;
    font-weight: 400;
    color: #000;
    font-family:
        Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-months-inputs,
.recipe-planner-drawer .category-pane-notes .note-repeat-years-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-days-of-week {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-day-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #595959;
    background-color: #fff;
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
    font-family:
        Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-day-btn:hover {
    border-color: rgba(91, 176, 189, 1);
    color: rgba(91, 176, 189, 1);
}

.recipe-planner-drawer .category-pane-notes .note-repeat-day-btn.note-repeat-day-btn--selected {
    background-color: rgba(91, 176, 189, 1);
    color: #fff;
    border-color: rgba(91, 176, 189, 1);
}

/* Note repeat ends date/occurrences rows - matches recipe-event-details */
.recipe-planner-drawer .category-pane-notes .note-repeat-ends-date-row .note-repeat-custom-label,
.recipe-planner-drawer .category-pane-notes .note-repeat-ends-occurrences-row .note-repeat-custom-label {
    width: auto;
    min-width: 70px;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-ends-date-input-wrapper {
    flex: 1;
    min-width: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-ends-occurrences-input-wrapper {
    width: 90px;
    flex: none;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-ends-date-input,
.recipe-planner-drawer .category-pane-notes .note-repeat-ends-occurrences-input {
    font-family:
        Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-size: 12px;
    font-weight: 500;
    height: 32px;
    border: none;
    padding: 10px;
    width: 100%;
}

.recipe-planner-drawer
    .category-pane-notes
    .note-repeat-ends-date-input-wrapper:has(.flatpickr-calendar.open)
    .note-repeat-ends-date-input,
.recipe-planner-drawer
    .category-pane-notes
    .note-repeat-ends-date-input-wrapper:has(.flatpickr-calendar)
    .note-repeat-ends-date-input {
    height: 32px;
    border: none;
    padding: 20px;
    padding-left: 35px;
    font-size: 12px;
    font-weight: 500;
    width: 100%;
}

.recipe-planner-drawer .category-pane-notes .note-repeat-ends-occurrences-input::-webkit-outer-spin-button,
.recipe-planner-drawer .category-pane-notes .note-repeat-ends-occurrences-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.recipe-planner-drawer
    .category-pane-notes
    .note-repeat-ends-date-input-wrapper[data-note-confirm-date-picker='true']
    .flatpickr-calendar {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
}

.recipe-planner-drawer
    .category-pane-notes
    .note-repeat-ends-date-input-wrapper[data-note-confirm-date-picker='true']
    .flatpickr-months
    .flatpickr-month {
    height: 12px;
}

.recipe-planner-drawer
    .category-pane-notes
    .note-repeat-ends-date-input-wrapper[data-note-confirm-date-picker='true']
    .flatpickr-day.selected,
.recipe-planner-drawer
    .category-pane-notes
    .note-repeat-ends-date-input-wrapper[data-note-confirm-date-picker='true']
    .flatpickr-day.selected:hover {
    background: rgba(91, 176, 189, 1) !important;
    color: white !important;
    border-color: rgba(91, 176, 189, 1) !important;
}

@media (max-width: 768px) {
    .recipe-planner-drawer .category-pane-workouts .drawer-workout-grid {
        grid-template-columns: 1fr;
    }

    .recipe-planner-drawer .category-pane-notes .note-confirm-options {
        grid-template-columns: 1fr;
    }

    .recipe-planner-drawer .category-pane-nutrition-videos .drawer-workout-grid {
        grid-template-columns: 1fr;
    }
}

/* === Nutrition Videos detail drawer visibility (mirrors workouts detail) === */
.recipe-planner-drawer.drawer-showing-nutrition-video .add-item-drawer-list-view {
    display: none !important;
}
.recipe-planner-drawer.drawer-showing-nutrition-video #drawerNutritionVideoDetailView {
    display: flex !important;
    flex-direction: column;
    flex: 1;
}

/* My nutrition-video detail view shares the .drawer-workout-detail-view class for inner
 * styling, but the workout-flow CSS rules `display: flex !important` on that class would
 * make this empty-during-workout-flow view fight for space. Force it hidden in those modes. */
.recipe-planner-drawer.drawer-showing-workout #drawerNutritionVideoDetailView,
.recipe-planner-drawer.drawer-showing-workout-confirm #drawerNutritionVideoDetailView,
.recipe-planner-drawer.drawer-showing-recipe #drawerNutritionVideoDetailView,
.recipe-planner-drawer.drawer-showing-nutrition-challenge #drawerNutritionVideoDetailView,
.recipe-planner-drawer.drawer-showing-wellness-rebate #drawerNutritionVideoDetailView {
    display: none !important;
}

/* === Nutrition Challenges detail drawer visibility === */
.recipe-planner-drawer.drawer-showing-nutrition-challenge .add-item-drawer-list-view {
    display: none !important;
}
.recipe-planner-drawer.drawer-showing-nutrition-challenge #drawerNutritionChallengeDetailView {
    display: flex !important;
    flex-direction: column;
    flex: 1;
}

/* Same shared-class collision protection: force-hide the empty challenge detail view in non-challenge modes. */
.recipe-planner-drawer.drawer-showing-workout #drawerNutritionChallengeDetailView,
.recipe-planner-drawer.drawer-showing-workout-confirm #drawerNutritionChallengeDetailView,
.recipe-planner-drawer.drawer-showing-recipe #drawerNutritionChallengeDetailView,
.recipe-planner-drawer.drawer-showing-nutrition-video #drawerNutritionChallengeDetailView,
.recipe-planner-drawer.drawer-showing-wellness-rebate #drawerNutritionChallengeDetailView {
    display: none !important;
}

/* === Wellness Rebates detail drawer visibility === */
.recipe-planner-drawer.drawer-showing-wellness-rebate .add-item-drawer-list-view {
    display: none !important;
}
.recipe-planner-drawer.drawer-showing-wellness-rebate #drawerWellnessRebateDetailView {
    display: flex !important;
    flex-direction: column;
    flex: 1;
}

/* Rebate detail: extra horizontal breathing room around image + title block */
#drawerWellnessRebateDetailContent .wd-image-container,
#drawerWellnessRebateDetailContent .wd-details-content {
    margin: 0 16px;
}
#drawerWellnessRebateDetailContent .wd-image-container {
    margin-bottom: 12px;
}
#drawerWellnessRebateDetailContent .wd-description-section {
    margin: 16px;
}

/* Same shared-class collision protection: force-hide the empty rebate detail view in non-rebate modes. */
.recipe-planner-drawer.drawer-showing-workout #drawerWellnessRebateDetailView,
.recipe-planner-drawer.drawer-showing-workout-confirm #drawerWellnessRebateDetailView,
.recipe-planner-drawer.drawer-showing-recipe #drawerWellnessRebateDetailView,
.recipe-planner-drawer.drawer-showing-nutrition-video #drawerWellnessRebateDetailView,
.recipe-planner-drawer.drawer-showing-nutrition-challenge #drawerWellnessRebateDetailView {
    display: none !important;
}

/* === Nutrition Videos pane — mirror Workouts pane styling === */
.recipe-planner-drawer .category-pane-nutrition-videos .drawer-workout-filter-section {
    overflow-x: auto;
    display: flex;
    margin-top: 12px;
    width: 100%;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
    padding: 0 20px;
    padding-top: 8px;
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-workout-filter-tabs {
    display: flex;
    padding-top: 8px;
    align-items: stretch;
    color: #000;
    white-space: nowrap;
    text-align: center;
    justify-content: start;
    font:
        300 12px Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-nutrition-video-filter-tab {
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    padding: 0 8px 8px;
    font:
        300 12px Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    color: #000;
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-nutrition-video-filter-tab.active {
    border-color: #000;
    font-weight: 600;
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-nutrition-video-loading,
.recipe-planner-drawer .category-pane-nutrition-videos .drawer-workout-grid .drawer-loading {
    color: #10152c;
    font-size: 14px;
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-nutrition-video-infinite-sentinel {
    min-height: 20px;
    height: 20px;
    width: 100%;
    visibility: hidden;
    pointer-events: none;
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-workout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 12px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    align-items: start;
    gap: 16px;
    padding: 0 16px 24px;
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-workout-column {
    min-width: 0;
    min-height: 0;
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-workout-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    position: relative;
    aspect-ratio: 1.781;
    min-height: 210px;
    width: 100%;
    max-width: none;
    padding: 12px;
    margin-bottom: 16px;
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-workout-card-wide {
    aspect-ratio: 3.667;
    padding: 12px 12px 66px;
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-workout-img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-workout-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
    gap: 33px;
    border-radius: 8px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0) 22%,
        rgba(0, 0, 0, 0) 69.05%,
        #000000 100%
    );
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-workout-header {
    display: flex;
    width: 100%;
    align-items: start;
    justify-content: flex-end;
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-workout-avatars {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-workout-avatar {
    width: 24px;
    height: 24px;
    border-radius: 14px;
    object-fit: cover;
    cursor: pointer;
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-workout-action-icon {
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 17px;
    padding: 5px;
    box-sizing: border-box;
    object-fit: contain;
    cursor: pointer;
    flex: none;
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-workout-action-icon[data-action='favorite'].favorited {
    background: #e2676c;
}

.recipe-planner-drawer
    .category-pane-nutrition-videos
    .drawer-workout-action-icon[data-action='add-to-recommend'].recommended {
    background: #5bb0bd;
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-workout-footer {
    display: flex;
    width: 100%;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
    font-family:
        Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    color: #fff;
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-workout-info {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: start;
    flex: 1 1 auto;
    min-width: 0;
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-workout-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-workout-duration {
    display: flex;
    margin-top: 6px;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 400;
    color: #fff;
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-workout-duration-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-workout-card .drawer-workout-add-btn {
    border-radius: 17px;
    background-color: #5bb0bd;
    display: flex;
    min-height: 24px;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    flex: 0 0 auto;
    white-space: nowrap;
}

.recipe-planner-drawer .category-pane-nutrition-videos .drawer-workout-card .drawer-workout-add-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

/* === Nutrition Challenges pane — mirror Workouts pane styling (no play avatar — handled in JS) === */
.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-workout-filter-section {
    overflow-x: auto;
    display: flex;
    margin-top: 12px;
    width: 100%;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
    padding: 0 20px;
    padding-top: 8px;
}

.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-workout-filter-tabs {
    display: flex;
    padding-top: 8px;
    align-items: stretch;
    color: #000;
    white-space: nowrap;
    text-align: center;
    justify-content: start;
    font:
        300 12px Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
}

.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-nutrition-challenge-filter-tab {
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    padding: 0 8px 8px;
    font:
        300 12px Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    color: #000;
}

.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-nutrition-challenge-filter-tab.active {
    border-color: #000;
    font-weight: 600;
}

.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-nutrition-challenge-loading,
.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-workout-grid .drawer-loading {
    color: #10152c;
    font-size: 14px;
}

.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-nutrition-challenge-infinite-sentinel {
    min-height: 20px;
    height: 20px;
    width: 100%;
    visibility: hidden;
    pointer-events: none;
}

.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-workout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 12px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    align-items: start;
    gap: 16px;
    padding: 0 16px 24px;
}

.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-workout-column {
    min-width: 0;
    min-height: 0;
}

.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-workout-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    position: relative;
    aspect-ratio: 1.781;
    min-height: 210px;
    width: 100%;
    max-width: none;
    padding: 12px;
    margin-bottom: 16px;
}

.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-workout-card-wide {
    aspect-ratio: 3.667;
    padding: 12px 12px 66px;
}

.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-workout-img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-workout-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
    gap: 33px;
    border-radius: 8px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0) 22%,
        rgba(0, 0, 0, 0) 69.05%,
        #000000 100%
    );
}

.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-workout-header {
    display: flex;
    width: 100%;
    align-items: start;
    justify-content: flex-end;
}

.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-workout-avatars {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-workout-action-icon {
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 17px;
    padding: 5px;
    box-sizing: border-box;
    object-fit: contain;
    cursor: pointer;
    flex: none;
}

.recipe-planner-drawer
    .category-pane-nutrition-challenges
    .drawer-workout-action-icon[data-action='favorite'].favorited {
    background: #e2676c;
}

.recipe-planner-drawer
    .category-pane-nutrition-challenges
    .drawer-workout-action-icon[data-action='add-to-recommend'].recommended {
    background: #5bb0bd;
}

.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-workout-footer {
    display: flex;
    width: 100%;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
    font-family:
        Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    color: #fff;
}

.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-workout-info {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: start;
    flex: 1 1 auto;
    min-width: 0;
}

.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-workout-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-workout-duration {
    display: flex;
    margin-top: 6px;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 400;
    color: #fff;
}

.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-workout-duration-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-workout-card .drawer-workout-add-btn {
    border-radius: 17px;
    background-color: #5bb0bd;
    display: flex;
    min-height: 24px;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    flex: 0 0 auto;
    white-space: nowrap;
}

.recipe-planner-drawer .category-pane-nutrition-challenges .drawer-workout-card .drawer-workout-add-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .recipe-planner-drawer .category-pane-nutrition-challenges .drawer-workout-grid {
        grid-template-columns: 1fr;
    }
}

/* === Wellness Rebates pane — mirror Workouts pane styling, plus discount pill + condition subtitle === */
.recipe-planner-drawer .category-pane-wellness-rebates .drawer-workout-filter-section {
    overflow-x: auto;
    display: flex;
    margin-top: 12px;
    width: 100%;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
    padding: 0 20px;
    padding-top: 8px;
}

.recipe-planner-drawer .category-pane-wellness-rebates .drawer-workout-filter-tabs {
    display: flex;
    padding-top: 8px;
    align-items: stretch;
    color: #000;
    white-space: nowrap;
    text-align: center;
    justify-content: start;
    font:
        300 12px Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
}

.recipe-planner-drawer .category-pane-wellness-rebates .drawer-wellness-rebate-filter-tab {
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    padding: 0 8px 8px;
    font:
        300 12px Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    color: #000;
}

.recipe-planner-drawer .category-pane-wellness-rebates .drawer-wellness-rebate-filter-tab.active {
    border-color: #000;
    font-weight: 600;
}

.recipe-planner-drawer .category-pane-wellness-rebates .drawer-wellness-rebate-loading,
.recipe-planner-drawer .category-pane-wellness-rebates .drawer-workout-grid .drawer-loading {
    color: #10152c;
    font-size: 14px;
}

.recipe-planner-drawer .category-pane-wellness-rebates .drawer-wellness-rebate-infinite-sentinel {
    min-height: 20px;
    height: 20px;
    width: 100%;
    visibility: hidden;
    pointer-events: none;
}

.recipe-planner-drawer .category-pane-wellness-rebates .drawer-workout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 12px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    align-items: start;
    gap: 16px;
    padding: 0 16px 24px;
}

.recipe-planner-drawer .category-pane-wellness-rebates .drawer-workout-column {
    min-width: 0;
    min-height: 0;
}

.recipe-planner-drawer .category-pane-wellness-rebates .drawer-workout-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    position: relative;
    aspect-ratio: 1.781;
    min-height: 210px;
    width: 100%;
    max-width: none;
    padding: 12px;
    margin-bottom: 16px;
}

.recipe-planner-drawer .category-pane-wellness-rebates .drawer-workout-card-wide {
    aspect-ratio: 3.667;
    padding: 12px 12px 66px;
}

.recipe-planner-drawer .category-pane-wellness-rebates .drawer-workout-img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.recipe-planner-drawer .category-pane-wellness-rebates .drawer-workout-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
    gap: 33px;
    border-radius: 8px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0) 22%,
        rgba(0, 0, 0, 0) 69.05%,
        #000000 100%
    );
}

.recipe-planner-drawer .category-pane-wellness-rebates .drawer-workout-header {
    display: flex;
    width: 100%;
    align-items: start;
    justify-content: space-between;
    gap: 8px;
}

.recipe-planner-drawer .category-pane-wellness-rebates .drawer-workout-avatars {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recipe-planner-drawer .category-pane-wellness-rebates .drawer-workout-action-icon {
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 17px;
    padding: 5px;
    box-sizing: border-box;
    object-fit: contain;
    cursor: pointer;
    flex: none;
}

.recipe-planner-drawer .category-pane-wellness-rebates .drawer-workout-action-icon[data-action='favorite'].favorited {
    background: #e2676c;
}

.recipe-planner-drawer
    .category-pane-wellness-rebates
    .drawer-workout-action-icon[data-action='add-to-recommend'].recommended {
    background: #5bb0bd;
}

/* Yellow discount pill (top-right of card, e.g. "10$ Off Your First Order") */
.drawer-rebate-discount-pill {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 20px;
    height: 25px;
    max-width: 60%;
    background: #f3c000;
    border-radius: 45px;
    font:
        600 12px Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    color: #10152c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
}

/* Small white condition subtitle (under the pill, e.g. "Online only") */
.drawer-rebate-condition {
    margin-top: 4px;
    font:
        500 10px Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    color: #ffffff;
    text-align: right;
    align-self: flex-end;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Stack the pill + condition vertically in the top-right corner */
.recipe-planner-drawer .category-pane-wellness-rebates .drawer-workout-rebate-corner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    flex: 0 0 auto;
    max-width: 60%;
}

.recipe-planner-drawer .category-pane-wellness-rebates .drawer-workout-footer {
    display: flex;
    width: 100%;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
    font-family:
        Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    color: #fff;
}

.recipe-planner-drawer .category-pane-wellness-rebates .drawer-workout-info {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: start;
    flex: 1 1 auto;
    min-width: 0;
}

.recipe-planner-drawer .category-pane-wellness-rebates .drawer-workout-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.recipe-planner-drawer .category-pane-wellness-rebates .drawer-workout-card .drawer-workout-add-btn {
    border-radius: 17px;
    background-color: #5bb0bd;
    display: flex;
    min-height: 24px;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    flex: 0 0 auto;
    white-space: nowrap;
}

.recipe-planner-drawer .category-pane-wellness-rebates .drawer-workout-card .drawer-workout-add-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .recipe-planner-drawer .category-pane-wellness-rebates .drawer-workout-grid {
        grid-template-columns: 1fr;
    }
}

/* === Detail-drawer promo code section (used inside Wellness Rebate detail) === */
.wd-rebate-promo-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: calc(100% - 32px);
    max-width: 480px;
    min-height: 65px;
    background: #f0f5ff;
    border: 1px dashed #000000;
    border-radius: 8px;
    overflow: hidden;
    margin: 16px;
}

.wd-rebate-promo-amount {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    min-width: 80px;
    background: #f3c000;
    color: #10152c;
    font:
        600 14px Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
}

.wd-rebate-promo-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 8px 12px;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.wd-rebate-promo-label {
    font:
        500 10px Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    margin: 0;
}

.wd-rebate-promo-code {
    font:
        600 14px Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    color: #000000;
    margin: 0;
    word-break: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
}

.wd-rebate-promo-condition {
    font:
        500 10px Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    color: rgba(0, 0, 0, 0.5);
    margin: 0;
}

.wd-rebate-promo-copy-btn {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 12px;
    gap: 6px;
    height: 30px;
    background: rgba(91, 176, 189, 0.3);
    border: 1px solid #5bb0bd;
    border-radius: 40px;
    cursor: pointer;
    font:
        600 10px Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    letter-spacing: 0.04em;
    color: #000000;
    align-self: center;
    margin-right: 12px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.wd-rebate-promo-copy-btn:hover {
    background: rgba(91, 176, 189, 0.45);
}

.wd-rebate-promo-copy-btn .wd-rebate-promo-copy-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

/* Tag pills row in detail drawer */
.wd-rebate-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.wd-rebate-tag {
    background: #f0f5ff;
    color: #10152c;
    padding: 4px 10px;
    border-radius: 16px;
    font:
        500 11px Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
}

@media (max-width: 560px) {
    .recipe-planner-drawer .drawer-food-family-selector {
        padding: 14px;
    }

    .recipe-planner-drawer .drawer-food-family-fields {
        grid-template-columns: 1fr;
    }

    .recipe-planner-drawer .drawer-food-family-review {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .recipe-planner-drawer .drawer-food-family-review-copy {
        flex-basis: calc(100% - 42px);
    }

    .recipe-planner-drawer .drawer-food-family-add {
        width: 100%;
    }
}
