/**
 * Taste of Universe - User Dashboard Styles
 * BEM Methodology with tou- prefix
 *
 * @package TOU
 * @version 1.0.0
 */

/* =====================================
   User Dashboard Container
   ===================================== */
.tou-user-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #fff;
}

.tou-user-dashboard__login-required {
    padding: 40px 20px;
    text-align: center;
    color: #50575e;
}

.tou-user-dashboard__header {
    margin-bottom: 30px;
}

.tou-user-dashboard__title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1d2327;
}

/* =====================================
   Tabs
   ===================================== */
.tou-user-dashboard__tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e5e5;
}

.tou-user-dashboard__tab {
    padding: 12px 24px;
    background: linear-gradient(135deg, #f6f7f7 0%, #e5e5e5 100%);
    border: 2px solid #c3c4c7;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #8c8f94;
    border-bottom: 2px solid #8c8f94;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #1d2327;
    transition: all 0.3s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.08);
    position: relative;
    transform: translateY(0);
}

.tou-user-dashboard__tab::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.tou-user-dashboard__tab:hover {
    background: linear-gradient(135deg, #e5e5e5 0%, #d0d0d0 100%);
    border-color: #8c8f94;
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.tou-user-dashboard__tab:active {
    transform: translateY(0);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(0, 0, 0, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.1);
    border-top: 2px solid #8c8f94;
    border-left: 2px solid #8c8f94;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
}

.tou-user-dashboard__tab--active {
    background: linear-gradient(135deg, #D3AF38 0%, #B8952E 100%);
    color: #fff;
    border-color: #B8952E;
    border-top: 2px solid #F5D67A;
    border-left: 2px solid #F5D67A;
    border-right: 2px solid #8B6F1A;
    border-bottom: 2px solid #8B6F1A;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 3px 6px rgba(211, 175, 56, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.tou-user-dashboard__tab--active::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
}

.tou-user-dashboard__tab--active:hover {
    background: linear-gradient(135deg, #B8952E 0%, #9D7F25 100%);
    border-color: #8B6F1A;
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 5px 10px rgba(211, 175, 56, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.2);
}

.tou-user-dashboard__tab-count {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.tou-user-dashboard__tab--active .tou-user-dashboard__tab-count {
    background: rgba(255, 255, 255, 0.3);
}

.tou-user-dashboard__tab:not(.tou-user-dashboard__tab--active) .tou-user-dashboard__tab-count {
    background: #c3c4c7;
    color: #1d2327;
}

/* =====================================
   Tab Content
   ===================================== */
.tou-user-dashboard__content {
    min-height: 400px;
}

.tou-user-dashboard__tab-content {
    display: none;
}

.tou-user-dashboard__tab-content[style*="display:block"] {
    display: block;
}

/* =====================================
   Filters
   ===================================== */
.tou-user-dashboard__filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.tou-user-dashboard__filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.tou-user-dashboard__filter-item label {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
}

.tou-user-dashboard__filter-select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    color: #2c3338;
    width: 100%;
}

.tou-user-dashboard__filter-select:focus {
    outline: none;
    border-color: #D3AF38;
    box-shadow: 0 0 0 1px #D3AF38;
}

.tou-user-dashboard__filter-reset {
    padding: 8px 16px;
    font-size: 13px;
    min-height: 36px;
}

/* =====================================
   Bulk Actions
   ===================================== */
.tou-user-dashboard__bulk-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: #f9f9f9;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin-bottom: 20px;
}

.tou-user-dashboard__select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.tou-user-dashboard__checkbox {
    margin: 0;
    cursor: pointer;
}

.tou-user-dashboard__bulk-button {
    padding: 8px 16px;
    font-size: 14px;
}

.tou-user-dashboard__selected-count {
    margin-left: auto;
    font-size: 14px;
    color: #646970;
}

/* =====================================
   View Toggle (in filters)
   ===================================== */
.tou-user-dashboard__view-toggle {
    display: flex;
    gap: 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px;
}

.tou-user-dashboard__view-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: #646970;
    border-radius: 2px;
}

.tou-user-dashboard__view-btn:hover {
    background: #f0f0f0;
}

.tou-user-dashboard__view-btn--active {
    background: #D3AF38;
    color: #fff;
}

.tou-user-dashboard__view-btn svg {
    display: block;
}

/* =====================================
   Favorites List - Grid View (Default)
   ===================================== */
.tou-favorites-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tou-favorites-list .tou-recipe-card__image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f6f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tou-favorites-list .tou-recipe-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* =====================================
   Will Try List - Grid View
   ===================================== */
.tou-will-try-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tou-will-try-list .tou-recipe-card__image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f6f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tou-will-try-list .tou-recipe-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* =====================================
   Favorites List - List View
   ===================================== */
.tou-favorites-list.tou-favorites-list--list-view {
    display: block;
}

.tou-favorites-list.tou-favorites-list--list-view .tou-recipe-card {
    display: flex;
    gap: 20px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.tou-favorites-list.tou-favorites-list--list-view .tou-recipe-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tou-favorites-list.tou-favorites-list--list-view .tou-recipe-card__image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f6f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tou-favorites-list.tou-favorites-list--list-view .tou-recipe-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tou-favorites-list.tou-favorites-list--list-view .tou-recipe-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tou-favorites-list.tou-favorites-list--list-view .tou-recipe-card__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.tou-favorites-list.tou-favorites-list--list-view .tou-recipe-card__meta {
    font-size: 14px;
    color: #646970;
}

.tou-favorites-list.tou-favorites-list--list-view .tou-recipe-card__checkbox {
    position: static;
    margin-right: 15px;
}

/* Mobile responsive for list view */
@media (max-width: 768px) {
    .tou-favorites-list.tou-favorites-list--list-view .tou-recipe-card {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .tou-favorites-list.tou-favorites-list--list-view .tou-recipe-card__image {
        width: 100%;
        height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f6f7f7;
    }

    .tou-favorites-list.tou-favorites-list--list-view .tou-recipe-card__image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .tou-favorites-list.tou-favorites-list--list-view .tou-recipe-card__content {
        gap: 12px;
        overflow: hidden;
    }

    .tou-favorites-list.tou-favorites-list--list-view .tou-recipe-card__title {
        font-size: 16px;
        word-wrap: break-word;
    }

    .tou-favorites-list.tou-favorites-list--list-view .tou-recipe-card__checkbox {
        position: absolute;
        margin-right: 0;
    }

    /* Butonlar mobilde düzgün görünsün */
    .tou-favorites-list.tou-favorites-list--list-view .tou-recipe-card__actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .tou-favorites-list.tou-favorites-list--list-view .tou-recipe-card__button {
        width: 100%;
        padding: 10px;
        font-size: 13px;
        box-sizing: border-box;
        white-space: normal;
        word-wrap: break-word;
    }

    /* Butonlardaki SVG icon'ları */
    .tou-favorites-list.tou-favorites-list--list-view .tou-recipe-card__button svg {
        vertical-align: middle;
        margin-right: 6px;
    }
}

.tou-recipe-card {
    position: relative;
}

.tou-recipe-card__checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.tou-recipe-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.tou-recipe-card__button {
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tou-recipe-card__button--view {
    background: #D3AF38;
    color: #fff;
}

.tou-recipe-card__button--view:hover {
    background: #B8952E;
}

.tou-recipe-card__button--add-to-list {
    background: #00a32a;
    color: #fff;
}

.tou-recipe-card__button--add-to-list:hover {
    background: #007a20;
}

.tou-recipe-card__button--remove {
    background: #dc3232;
    color: #fff;
}

.tou-recipe-card__button--remove:hover {
    background: #b32d2e;
}

/* =====
   Menus List
   ===== */
/* =====================================
   Menu Management
   ===================================== */
.tou-user-dashboard__menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f6f7f7;
    border-radius: 8px;
}

.tou-user-dashboard__create-menu-btn {
    padding: 12px 24px;
    background: #D3AF38;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tou-user-dashboard__create-menu-btn:hover {
    background: #B8952E;
}

.tou-user-dashboard__menu-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.tou-user-dashboard__menu-stat {
    font-size: 14px;
    color: #50575e;
}

.tou-user-dashboard__menu-stat strong {
    color: #D3AF38;
    font-size: 18px;
}

.tou-menus-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tou-menu-card {
    padding: 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tou-menu-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #D3AF38;
}

.tou-menu-card h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #1d2327;
}

.tou-menu-card__meta {
    margin: 5px 0;
    font-size: 14px;
    color: #50575e;
}

.tou-menu-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.tou-menu-card__button {
    padding: 8px 16px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
    color: #2c3338;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tou-menu-card__button--view {
    background: #D3AF38;
    color: #fff;
    border-color: #D3AF38;
}

.tou-menu-card__button--view:hover {
    background: #B8952E;
    border-color: #B8952E;
}

.tou-menu-card__button--edit {
    background: #f56e28;
    color: #fff;
    border-color: #f56e28;
}

.tou-menu-card__button--edit:hover {
    background: #d45215;
    border-color: #d45215;
}

.tou-menu-card__button--shopping {
    background: #d4e157;
    color: #2c3338;
    border-color: #d4e157;
}

.tou-menu-card__button--shopping:hover {
    background: #c5cf3d;
    border-color: #c5cf3d;
}

.tou-menu-card__button--delete {
    background: #d63638;
    color: #fff;
    border-color: #d63638;
}

.tou-menu-card__button--delete:hover {
    background: #b52729;
    border-color: #b52729;
}

.tou-menu-card__button--whatsapp {
    background: #f0f0f1;
    color: transparent;
    border-color: #c3c4c7;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tou-menu-card__button--whatsapp:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tou-menu-card__button--whatsapp svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.tou-menu-card__button--telegram {
    background: #f0f0f1;
    color: transparent;
    border-color: #c3c4c7;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tou-menu-card__button--telegram:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tou-menu-card__button--telegram svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Menu Creation Modal */
.tou-menu-creation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
}

.tou-menu-creation-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tou-menu-creation-modal__content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 900px;
    max-height: 90vh;
    width: 90%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tou-menu-creation-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #c3c4c7;
}

.tou-menu-creation-modal__header h2 {
    margin: 0;
    font-size: 24px;
    color: #1d2327;
}

.tou-menu-creation-modal__close {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    font-size: 24px;
    color: #50575e;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.tou-menu-creation-modal__body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.tou-menu-creation-form__field {
    margin-bottom: 20px;
}

.tou-menu-creation-form__field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
}

.tou-menu-creation-form__input,
.tou-menu-creation-form__select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 14px;
}

.tou-menu-day {
    margin-bottom: 30px;
    padding: 20px;
    background: #f6f7f7;
    border-radius: 8px;
    border: 1px solid #c3c4c7;
}

.tou-menu-day h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #1d2327;
}

.tou-menu-meal-section {
    margin-bottom: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.tou-menu-meal-section h5 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #D3AF38;
    text-transform: capitalize;
}

.tou-menu-meal-recipes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tou-menu-recipe-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f6f7f7;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tou-menu-recipe-item:hover {
    background: #e5e5e5;
}

.tou-menu-recipe-item input[type="checkbox"] {
    margin-right: 12px;
    cursor: pointer;
}

.tou-menu-recipe-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tou-menu-recipe-image {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.tou-menu-creation-modal__footer {
    padding: 20px 30px;
    border-top: 1px solid #c3c4c7;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.tou-menu-week {
    margin-bottom: 40px;
    padding: 20px;
    background: #f6f7f7;
    border-radius: 8px;
    border: 2px solid #c3c4c7;
}

.tou-menu-week h3 {
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #D3AF38;
    font-size: 20px;
    color: #D3AF38;
}

/* =====
   Pantry List
   ===== */
.tou-pantry-list {
    display: block;
}

.tou-pantry-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .tou-pantry-layout {
        grid-template-columns: 1fr;
    }
}

/* Pantry Section */
.tou-pantry-section {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    max-height: 80vh;
    overflow-y: auto;
}

/* Left and right column styles handled via grid layout */

.tou-pantry-section h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 600;
    color: #1d2327;
    padding-bottom: 15px;
    border-bottom: 2px solid #D3AF38;
}

.tou-pantry-section-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.tou-pantry-section-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #1d2327;
}

.tou-pantry-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .tou-pantry-actions {
        flex-direction: row;
        justify-content: center;
    }

    .tou-pantry-actions .button {
        flex: 1;
        min-width: 0;
        padding: 10px 12px;
        font-size: 13px;
    }
}

.tou-pantry-stats {
    display: flex;
    gap: 30px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.tou-pantry-stats span {
    font-size: 14px;
    color: #50575e;
}

.tou-pantry-stats strong {
    color: #D3AF38;
    font-weight: 600;
    font-size: 16px;
}

.tou-pantry-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tou-pantry-category {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tou-pantry-category:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tou-pantry-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #f6f7f7;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.tou-pantry-category-header:hover {
    background: #edeff0;
}

.tou-pantry-category-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tou-pantry-category-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.tou-pantry-category-select-all {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    background: #fff;
    color: #D3AF38;
    border: 1px solid #D3AF38;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tou-pantry-category-select-all:hover {
    background: #D3AF38;
    color: #fff;
}

.tou-pantry-toggle {
    font-size: 14px;
    color: #D3AF38;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.tou-pantry-category-content {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.tou-pantry-ingredients {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.tou-pantry-ingredient-checkbox {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tou-pantry-ingredient-checkbox:hover {
    background: #e9ecef;
    border-color: #D3AF38;
}

.tou-pantry-ingredient-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #D3AF38;
}

.tou-pantry-ingredient-checkbox span {
    font-size: 14px;
    color: #2c3338;
}

.tou-pantry-ingredient-checkbox input[type="checkbox"]:checked+span {
    color: #D3AF38;
    font-weight: 500;
}

.tou-pantry-category-extra {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #e0e0e0;
}

.tou-pantry-category-extra label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #50575e;
}

.tou-pantry-category-extra strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #50575e;
}

.tou-pantry-extra-input {
    width: 100%;
    min-height: 80px;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.tou-pantry-extra-input:focus {
    outline: none;
    border-color: #D3AF38;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

.tou-pantry-user-lists {
    margin-top: 20px;
}

.tou-pantry-user-lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.tou-pantry-user-list-card {
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tou-pantry-user-list-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #D3AF38;
    transform: translateY(-2px);
}

.tou-pantry-user-list-card h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.tou-pantry-user-list-card p {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #646970;
}

.tou-pantry-user-list-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.tou-pantry-user-list-actions .button {
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.tou-pantry-user-list-actions .button-link-delete {
    color: #b32d2e;
    border-color: #b32d2e;
}

.tou-pantry-user-list-actions .button-link-delete:hover {
    background: #b32d2e;
    color: #fff;
    border-color: #b32d2e;
}

/* Pantry Modal Styles */
.tou-pantry-modal-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.tou-pantry-modal-item {
    padding: 12px 15px;
    background: #f6f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.tou-pantry-modal-item strong {
    color: #D3AF38;
    margin-right: 8px;
}

/* Edit Pantry Modal Styles */
.tou-edit-pantry-ingredients {
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.tou-edit-pantry-category {
    margin-bottom: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.tou-edit-pantry-category-title {
    margin: 0;
    padding: 12px 16px;
    background: #D3AF38;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.tou-edit-pantry-category-title:hover {
    background: #B8952E;
}

.tou-category-toggle-icon {
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.2s;
    font-size: 12px;
}

.tou-edit-pantry-items {
    padding: 10px;
    max-height: none;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.tou-edit-pantry-items--collapsed {
    max-height: 0;
    padding: 0;
    overflow: hidden;
}

.tou-edit-pantry-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.tou-edit-pantry-item:hover {
    background: #f6f7f7;
    border-color: #c3c4c7;
}

.tou-edit-pantry-item-name {
    flex: 1;
    font-size: 14px;
    color: #1d2327;
}

.tou-edit-pantry-item-remove {
    background: none;
    border: none;
    color: #d63638;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tou-edit-pantry-item-remove:hover {
    background: #fff0f0;
}

.tou-edit-pantry-item-remove .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.tou-pantry-loader {
    text-align: center;
    padding: 40px;
    color: #646970;
    font-size: 14px;
}

/* Button styles for pantry */
.tou-pantry-actions .button {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tou-pantry-actions .button-small {
    padding: 8px 16px;
    font-size: 13px;
}

.tou-pantry-actions .button-primary {
    background: linear-gradient(135deg, #D3AF38 0%, #B8952E 100%);
    color: #fff;
    border: 2px solid transparent;
    border-top: 2px solid #F5D67A;
    border-left: 2px solid #F5D67A;
    border-right: 2px solid #8B6F1A;
    border-bottom: 2px solid #8B6F1A;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.tou-pantry-actions .button-primary::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.tou-pantry-actions .button-primary:hover {
    background: linear-gradient(135deg, #B8952E 0%, #9D7F25 100%);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(211, 175, 56, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.15);
}

.tou-pantry-actions .button-primary:active {
    transform: translateY(0);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.1);
    border-top: 2px solid #8B6F1A;
    border-left: 2px solid #8B6F1A;
    border-right: 2px solid #F5D67A;
    border-bottom: 2px solid #F5D67A;
}

.tou-pantry-actions .button:not(.button-primary) {
    background: linear-gradient(135deg, #fff 0%, #f6f7f7 100%);
    color: #2c3338;
    border: 2px solid #c3c4c7;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #8c8f94;
    border-bottom: 2px solid #8c8f94;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.08);
    position: relative;
}

.tou-pantry-actions .button:not(.button-primary)::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.tou-pantry-actions .button:not(.button-primary):hover {
    background: linear-gradient(135deg, #f0f0f1 0%, #e5e5e5 100%);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.tou-pantry-actions .button:not(.button-primary):active {
    transform: translateY(0);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(0, 0, 0, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.1);
    border-top: 2px solid #8c8f94;
    border-left: 2px solid #8c8f94;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
}

/* =====
   Add Recipe Toggle
   ===== */
.tou-add-recipe-container {
    margin: 40px 0;
}

.tou-add-recipe-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 24px;
    background: #D3AF38;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tou-add-recipe-toggle:hover {
    background: #B8952E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.tou-add-recipe-toggle__icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.tou-add-recipe-form-wrapper {
    margin-top: 20px;
    padding: 40px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Frontend Recipe Form Styles */
.tou-add-recipe-form-wrapper .tou-recipe-form {
    max-width: 100%;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f1;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__section-title {
    margin: 0 0 24px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    padding-bottom: 12px;
    border-bottom: 3px solid #D3AF38;
    display: inline-block;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__group {
    margin-bottom: 24px;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #646970;
    font-style: italic;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__input,
.tou-add-recipe-form-wrapper .tou-recipe-form__select,
.tou-add-recipe-form-wrapper .tou-recipe-form__textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #d0d0d1;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: #fff;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__input:focus,
.tou-add-recipe-form-wrapper .tou-recipe-form__select:focus,
.tou-add-recipe-form-wrapper .tou-recipe-form__textarea:focus {
    outline: none;
    border-color: #D3AF38;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.tou-add-recipe-form-wrapper .tou-recipe-form__input:hover,
.tou-add-recipe-form-wrapper .tou-recipe-form__select:hover,
.tou-add-recipe-form-wrapper .tou-recipe-form__textarea:hover {
    border-color: #a7aaad;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__service-order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__service-order-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #d0d0d1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__service-order-item:hover {
    border-color: #D3AF38;
    background: #f0f6fc;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.15);
}

.tou-add-recipe-form-wrapper .tou-recipe-form__service-order-item input[type="checkbox"]:checked+span {
    font-weight: 600;
    color: #D3AF38;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__checkbox-label:hover {
    background: #f6f7f7;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #D3AF38;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__button {
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__button--save {
    background: #D3AF38;
    color: #fff;
    border-color: #D3AF38;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__button--save:hover {
    background: #B8952E;
    border-color: #B8952E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.tou-add-recipe-form-wrapper .tou-recipe-form__button--cancel {
    background: #f6f7f7;
    color: #1d2327;
    border-color: #c3c4c7;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__button--cancel:hover {
    background: #e5e5e5;
    border-color: #a7aaad;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__button--add {
    background: #00a32a;
    color: #fff;
    border-color: #00a32a;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__button--add:hover {
    background: #008a20;
    border-color: #008a20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 163, 42, 0.3);
}

.tou-add-recipe-form-wrapper .tou-recipe-form__button--remove {
    background: #dc3232;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__button--remove:hover {
    background: #a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 50, 50, 0.3);
}

.tou-add-recipe-form-wrapper .tou-recipe-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f1;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__item {
    margin-bottom: 12px;
    padding: 16px;
    background: #f9f9f9;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__item:hover {
    border-color: #D3AF38;
    background: #f0f6fc;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__item-row textarea {
    grid-column: 1 / -2;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__item-row .tou-recipe-form__button--remove {
    grid-column: -1;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__image-preview {
    margin-top: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #d0d0d1;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__image-preview img {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Recipe Form Map for Frontend */
.tou-add-recipe-form-wrapper .tou-recipe-form__map {
    width: 100%;
    height: 450px;
    border: 2px solid #d0d0d1;
    border-radius: 8px;
    margin-top: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tou-add-recipe-form-wrapper #tou-recipe-map {
    width: 100%;
    height: 450px;
}

/* Cooking Methods Categories */
.tou-add-recipe-form-wrapper .tou-recipe-form__cooking-methods-category {
    margin-bottom: 24px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px solid #e5e5e5;
}

.tou-add-recipe-form-wrapper .tou-recipe-form__cooking-methods-category h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #D3AF38;
}

/* Responsive */
@media (max-width: 768px) {
    .tou-add-recipe-form-wrapper {
        padding: 24px;
    }

    .tou-add-recipe-form-wrapper .tou-recipe-form__row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tou-add-recipe-form-wrapper .tou-recipe-form__service-order-grid {
        grid-template-columns: 1fr;
    }

    .tou-add-recipe-form-wrapper .tou-recipe-form__item-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tou-add-recipe-form-wrapper .tou-recipe-form__item-row .tou-recipe-form__button--remove {
        grid-column: 1;
    }

    .tou-add-recipe-form-wrapper .tou-recipe-form__actions {
        flex-direction: column;
    }

    .tou-add-recipe-form-wrapper .tou-recipe-form__actions .tou-recipe-form__button {
        width: 100%;
    }

    .tou-add-recipe-form-wrapper .tou-recipe-form__map,
    .tou-add-recipe-form-wrapper #tou-recipe-map {
        height: 350px;
    }
}

/* =====
   AI Menu Creator
   ===== */
.tou-ai-menu-creator-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
}

.tou-ai-menu-creator-header {
    margin-bottom: 30px;
    text-align: center;
}

.tou-ai-menu-creator-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #1d2327;
}

.tou-ai-menu-creator-header p {
    margin: 0;
    font-size: 14px;
    color: #646970;
}

.tou-ai-menu-creator-form {
    background: #fff;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tou-ai-menu-creator-field {
    margin-bottom: 25px;
}

.tou-ai-menu-creator-field label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.tou-ai-menu-creator-field small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #646970;
}

.tou-ai-menu-creator-select,
.tou-ai-menu-creator-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    background: #fff;
    color: #2c3338;
    transition: all 0.3s ease;
}

.tou-ai-menu-creator-select:focus,
.tou-ai-menu-creator-input:focus {
    outline: none;
    border-color: #D3AF38;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

.tou-ai-menu-creator-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
}

.tou-ai-menu-creator-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #D3AF38;
}

.tou-ai-menu-creator-checkbox-label span {
    font-size: 14px;
    color: #2c3338;
    user-select: none;
}

#tou-pantry-list-selector {
    margin-top: 10px;
}

#tou-pantry-list-selector label {
    font-weight: 600;
}

#tou-pantry-list-selector select {
    margin-top: 5px;
}

#tou-pantry-list-selector small {
    display: block;
    margin-top: 8px;
    color: #646970;
    font-size: 12px;
    line-height: 1.4;
}

.tou-ai-menu-creator-meal-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tou-ai-menu-creator-meals {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.tou-ai-menu-creator-meals label {
    font-weight: 600;
    margin-bottom: 15px;
}

.tou-ai-menu-creator-actions {
    margin-top: 30px;
    text-align: center;
}

.tou-ai-menu-creator-button {
    padding: 15px 40px;
    background: #D3AF38;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tou-ai-menu-creator-button:hover {
    background: #B8952E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.tou-ai-menu-result {
    margin-top: 30px;
    padding: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

.tou-ai-menu-loading {
    text-align: center;
    padding: 40px;
    color: #646970;
    font-size: 14px;
}

.tou-ai-menu-generated {
    margin-top: 30px;
}

.tou-ai-menu-day {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.tou-ai-menu-day h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #D3AF38;
    padding-bottom: 15px;
    border-bottom: 2px solid #D3AF38;
}

.tou-ai-menu-meals {
    display: grid;
    gap: 20px;
}

.tou-ai-menu-meal {
    background: #fff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.tou-ai-menu-meal h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #D3AF38;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tou-ai-menu-meal h5 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #1d2327;
}

.tou-ai-menu-meal p {
    margin: 8px 0;
    font-size: 14px;
    color: #50575e;
    line-height: 1.6;
}

.tou-ai-menu-meal strong {
    color: #1d2327;
    font-weight: 600;
}

.tou-ai-menu-error {
    padding: 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
}

.tou-ai-menu-raw {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    white-space: pre-wrap;
    overflow-x: auto;
}

/* =====
   Shopping Lists
   ===== */
.tou-shopping-lists {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tou-shopping-list-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tou-shopping-list-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.tou-shopping-list-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f6f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tou-shopping-list-card__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tou-shopping-list-card__content {
    padding: 20px;
}

.tou-shopping-list-card__title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

.tou-shopping-list-card__meta {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #50575e;
}

.tou-shopping-list-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tou-shopping-list-card__button {
    padding: 10px 16px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tou-shopping-list-card__button--view-ingredients {
    background: #D3AF38;
    color: #fff;
}

.tou-shopping-list-card__button--view-ingredients:hover {
    background: #B8952E;
}

.tou-shopping-list-card__button--view {
    background: #f0f0f1;
    color: #1d2327;
}

.tou-shopping-list-card__button--view:hover {
    background: #c3c4c7;
}

.tou-shopping-list-card__button--remove {
    background: #d63638;
    color: #fff;
}

.tou-shopping-list-card__button--remove:hover {
    background: #b32729;
}

/* =====
   Shopping List Popup
   ===== */
.tou-shopping-list-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tou-shopping-list-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.tou-shopping-list-popup__content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.tou-shopping-list-popup__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.tou-shopping-list-popup__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #c3c4c7;
    flex-shrink: 0;
}

.tou-shopping-list-popup__header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
}

.tou-shopping-list-popup__close {
    background: none;
    border: none;
    font-size: 28px;
    color: #50575e;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tou-shopping-list-popup__close:hover {
    background: #f0f0f1;
    color: #1d2327;
}

.tou-shopping-list-popup__ingredients {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tou-shopping-list-popup__ingredient {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f1;
}

.tou-shopping-list-popup__ingredient:last-child {
    border-bottom: none;
}

.tou-shopping-list-popup__ingredient span {
    font-size: 15px;
    color: #1d2327;
}

.tou-shopping-list-popup__remove {
    background: none;
    border: none;
    font-size: 20px;
    color: #d63638;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.tou-shopping-list-popup__remove:hover {
    background: #f0f0f1;
}

/* =====
   Brand Suggestions in Shopping List
   ===== */
.tou-shopping-list-popup__brand-suggestions {
    padding: 10px 20px;
    background: #f6f7f7;
    border-top: 1px solid #f0f0f1;
}

.tou-brand-suggestions {
    font-size: 13px;
}

.tou-brand-suggestions__label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d2327;
}

.tou-brand-suggestions__list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tou-brand-suggestion {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.tou-brand-suggestion:hover {
    border-color: #D3AF38;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tou-brand-suggestion--featured {
    border-color: #f56e28;
    background: #fff5f0;
}

.tou-brand-suggestion__badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f56e28;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
}

.tou-brand-suggestion__logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 2px;
}

.tou-brand-suggestion__name {
    font-weight: 500;
    color: #1d2327;
}

.tou-brand-suggestion__country {
    font-size: 12px;
    color: #646970;
}

.tou-brand-loading,
.tou-brand-empty {
    font-size: 13px;
    color: #646970;
    font-style: italic;
}

/* =====
   Store Suggestions in Shopping List
   ===== */
.tou-store-suggestions {
    padding: 10px 20px;
    background: #f0f5ff;
    border-top: 1px solid #d0e0ff;
}

.tou-store-suggestions__label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d2327;
}

.tou-store-suggestions__list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tou-store-suggestion {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #8bb8e8;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.tou-store-suggestion:hover {
    border-color: #D3AF38;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tou-store-suggestion--featured {
    border-color: #D3AF38;
    background: #e8f4fd;
}

.tou-store-suggestion__badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #D3AF38;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
}

.tou-store-suggestion__logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 2px;
}

.tou-store-suggestion__name {
    font-weight: 500;
    color: #1d2327;
}

.tou-store-suggestion__city {
    font-size: 12px;
    color: #646970;
}

.tou-store-loading,
.tou-store-empty {
    font-size: 13px;
    color: #646970;
    font-style: italic;
}

.tou-brand-loading {
    color: #D3AF38;
}

/* =====
   Brand Selection State
   ===== */
.tou-brand-suggestion--selected {
    background: #D3AF38 !important;
    color: #fff !important;
    border-color: #D3AF38 !important;
}

.tou-brand-suggestion--selected .tou-brand-suggestion__name,
.tou-brand-suggestion--selected .tou-brand-suggestion__country {
    color: #fff !important;
}

/* =====
   Store Search Button
   ===== */
.tou-store-search-btn {
    margin-top: 8px;
    padding: 8px 16px;
    background: #D3AF38;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}

.tou-store-search-btn .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    line-height: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    visibility: visible !important;
    font-family: dashicons !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
}

.tou-store-search-btn:hover:not(:disabled) {
    background: #B8952E;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(232, 30, 99, 0.3);
}

.tou-store-search-btn--disabled {
    background: #c3c4c7 !important;
    color: #646970 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.tou-store-search-btn--disabled .dashicons {
    color: #646970 !important;
    opacity: 1 !important;
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    line-height: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    visibility: visible !important;
}

.tou-store-search-btn--disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.tou-store-search-btn--active {
    background: #B8952E !important;
    box-shadow: 0 2px 8px rgba(232, 30, 99, 0.4) !important;
}

.tou-store-search-btn--loading {
    opacity: 0.7;
    cursor: wait !important;
    pointer-events: none;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.tou-store-suggestion--selected {
    border-color: #D3AF38 !important;
    background: #fff5f8 !important;
}

/* =====
   Store Popup Modal
   ===== */
.tou-store-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tou-store-popup-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.tou-store-popup-modal__content {
    position: relative;
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    max-height: 900px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10001;
}

.tou-store-popup-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: #f9f9f9;
    flex-shrink: 0;
}

.tou-store-popup-modal__header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
}

.tou-store-popup-modal__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tou-store-popup-modal__external-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.tou-store-popup-modal__external-link:hover {
    background: #e91e63;
    color: #fff;
    border-color: #e91e63;
    transform: scale(1.1);
}

.tou-store-popup-modal__close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: #646970;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.tou-store-popup-modal__close:hover {
    background: #e5e5e5;
    color: #1d2327;
}

.tou-store-popup-modal__body {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.tou-store-popup-modal__iframe-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.tou-store-popup-modal__iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.tou-store-popup-modal__iframe-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    z-index: 10;
}

.tou-store-popup-modal__error-content {
    text-align: center;
    padding: 40px;
    max-width: 500px;
}

.tou-store-popup-modal__error-content p {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.tou-store-popup-modal__error-link {
    display: inline-block;
    padding: 12px 24px;
    background: #e91e63;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 16px;
}

.tou-store-popup-modal__error-link:hover {
    background: #c2185b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

/* =====
   Shopping List Popup Actions (Share Buttons)
   ===== */
.tou-shopping-list-popup__footer {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: #f9f9f9;
    flex-shrink: 0;
}

.tou-shopping-list-popup__share {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    min-width: 0;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tou-shopping-list-popup__share--whatsapp {
    background: #f0f0f1;
    color: #1d2327;
}

.tou-shopping-list-popup__share--whatsapp:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tou-shopping-list-popup__share--telegram {
    background: #f0f0f1;
    color: #1d2327;
}

.tou-shopping-list-popup__share--telegram:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tou-shopping-list-popup__share svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    fill: #fff;
}

/* Remove text since we only show icons */
.tou-shopping-list-popup__share {
    color: transparent;
}

/* WhatsApp icon - green (original color) */
.tou-shopping-list-popup__share--whatsapp svg {
    fill: #25D366 !important;
}

/* Telegram icon - blue (original color) */
.tou-shopping-list-popup__share--telegram svg {
    fill: #0088cc !important;
}

/* =====================================
   Store Popup Modal Responsive
   ===================================== */
@media (max-width: 768px) {
    .tou-store-popup-modal__content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .tou-store-popup-modal__header {
        padding: 16px;
    }

    .tou-store-popup-modal__header h2 {
        font-size: 18px;
    }
}

/* =====================================
   Responsive
   ===================================== */
@media (max-width: 768px) {
    .tou-user-dashboard__tabs {
        flex-wrap: wrap;
    }

    .tou-user-dashboard__tab {
        flex: 1;
        min-width: calc(50% - 5px);
    }

    /* Recipe detail modal responsive */
    .tou-recipe-detail-modal__content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
    }

    .tou-recipe-detail-modal__body {
        max-height: 100vh;
    }

    .tou-recipe-detail__content-wrapper {
        padding: 20px;
        max-height: calc(100vh - 100px);
    }

    .tou-recipe-detail__image {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f6f7f7 !important;
    }

    .tou-recipe-detail__image img {
        max-width: 100% !important;
        max-height: 250px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .tou-recipe-detail__title {
        font-size: 20px;
        margin: 15px 0;
    }

    .tou-recipe-detail__info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tou-recipe-detail__section {
        margin-bottom: 20px;
    }

    .tou-recipe-detail__footer {
        position: sticky;
        bottom: 0;
        z-index: 100;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        border-radius: 0;
    }

    .tou-favorites-list,
    .tou-menus-list,
    .tou-pantry-list,
    .tou-shopping-lists {
        grid-template-columns: 1fr;
    }
}

/* =====================================
   Menu View & Edit Modal
   ===================================== */
.tou-menu-view-modal,
.tou-menu-edit-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.tou-menu-view-modal-content,
.tou-menu-edit-modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.tou-menu-view-modal-header,
.tou-menu-edit-modal-header {
    padding: 20px 30px;
    background: #f6f7f7;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.tou-menu-view-modal-header h3,
.tou-menu-edit-modal-header h3 {
    margin: 0;
    color: #1d2327;
    font-size: 20px;
}

.tou-menu-view-modal-close,
.tou-menu-edit-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    line-height: 1;
    transition: color 0.2s;
}

.tou-menu-view-modal-close:hover,
.tou-menu-edit-modal-close:hover {
    color: #000;
}

.tou-menu-view-modal-body,
.tou-menu-edit-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

/* Menu View Styles */
.tou-menu-view__days {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tou-menu-view__day {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.tou-menu-view__day-date {
    margin: 0 0 15px 0;
    color: #1d2327;
    font-size: 16px;
    font-weight: 600;
}

.tou-menu-view__meals {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tou-menu-view__meal {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.tou-menu-view__meal-type {
    min-width: 120px;
    font-weight: 600;
    color: #D3AF38;
}

.tou-menu-view__meal-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tou-menu-view__meal-item {
    padding: 6px 12px;
    background: #e7f3ff;
    color: #D3AF38;
    border-radius: 4px;
    font-size: 14px;
}

/* Menu Edit Styles */
.tou-menu-edit__days {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tou-menu-edit__day {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.tou-menu-edit__day-date {
    margin: 0 0 15px 0;
    color: #1d2327;
    font-size: 16px;
    font-weight: 600;
}

.tou-menu-edit__meals {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tou-menu-edit__meal-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tou-menu-edit__meal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    gap: 15px;
}

.tou-menu-edit__meal-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.tou-menu-edit__meal-type {
    min-width: 120px;
    font-weight: 600;
    color: #D3AF38;
}

.tou-menu-edit__meal-name {
    flex: 1;
    color: #1d2327;
}

.tou-menu-edit__remove-meal {
    padding: 6px 12px;
    background: #dc3232;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.tou-menu-edit__remove-meal:hover {
    background: #b52729;
}

.tou-menu-edit__add-meal {
    padding: 8px 16px;
    background: #D3AF38;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.tou-menu-edit__add-meal:hover {
    background: #B8952E;
}

.tou-menu-view-modal-footer,
.tou-menu-edit-modal-footer {
    padding: 20px 30px;
    background: #f6f7f7;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-radius: 0 0 8px 8px;
}

/* =====================================
   AI Menu Generator Modal
   ===================================== */
.tou-ai-menu-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.tou-ai-menu-modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.tou-ai-menu-modal-header {
    padding: 20px 30px;
    background: #f6f7f7;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.tou-ai-menu-modal-header h3 {
    margin: 0;
    color: #1d2327;
    font-size: 20px;
}

.tou-ai-menu-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    line-height: 1;
    transition: color 0.2s;
}

.tou-ai-menu-modal-close:hover {
    color: #000;
}

.tou-ai-menu-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.tou-ai-menu-modal-day {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.tou-ai-menu-modal-day-header {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
    color: #1d2327;
    font-size: 18px;
    font-weight: 600;
}

.tou-ai-menu-modal-meal {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
}

.tou-ai-menu-modal-meal-type {
    min-width: 100px;
    font-weight: 600;
    color: #1d2327;
    text-transform: capitalize;
}

.tou-ai-menu-recipe-select {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.tou-ai-menu-remove-meal {
    padding: 8px 16px;
    background: #dc3232;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.tou-ai-menu-remove-meal:hover {
    background: #a00;
}

.tou-ai-menu-add-meal {
    width: 100%;
    padding: 12px;
    background: #D3AF38;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
    margin-top: 10px;
}

.tou-ai-menu-add-meal:hover {
    background: #B8952E;
}

.tou-ai-menu-modal-footer {
    padding: 20px 30px;
    background: #f6f7f7;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-radius: 0 0 8px 8px;
}

.tou-ai-menu-button {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

#tou-ai-menu-save {
    background: #D3AF38;
    color: #fff;
}

#tou-ai-menu-save:hover {
    background: #B8952E;
}

#tou-ai-menu-regenerate {
    background: #00a32a;
    color: #fff;
}

#tou-ai-menu-regenerate:hover {
    background: #007026;
}

.tou-ai-menu-button-cancel {
    background: #757575;
    color: #fff;
}

.tou-ai-menu-button-cancel:hover {
    background: #5a5a5a;
}

@media (max-width: 768px) {
    .tou-ai-menu-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
    }

    .tou-ai-menu-modal-header,
    .tou-ai-menu-modal-body,
    .tou-ai-menu-modal-footer {
        padding: 15px;
    }

    .tou-ai-menu-modal-footer {
        flex-direction: column;
    }

    .tou-ai-menu-button {
        width: 100%;
    }
}

/* =====================================
   Saved Menus Section
   ===================================== */
.tou-saved-menus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tou-saved-menu-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s;
}

.tou-saved-menu-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.tou-saved-menu-card h4 {
    margin: 0 0 15px 0;
    color: #1d2327;
    font-size: 18px;
}

.tou-saved-menu-card p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.tou-saved-menu-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.tou-button-small {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.tou-button-view {
    background: #D3AF38;
    color: #fff;
}

.tou-button-view:hover {
    background: #B8952E;
}

.tou-button-delete {
    background: #dc3232;
    color: #fff;
}

.tou-button-delete:hover {
    background: #a00;
}

.tou-button-whatsapp {
    background: #f0f0f1;
    color: transparent;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tou-button-whatsapp:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tou-button-whatsapp svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.tou-button-telegram {
    background: #f0f0f1;
    color: transparent;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tou-button-telegram:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tou-button-telegram svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* =====================================
   Mobile Responsive - Complete Optimization
   ===================================== */

/* Mobile: 768px and below (Tablets & Phones) */
@media (max-width: 768px) {

    /* =====================================
       Global Dashboard Container
       ===================================== */
    .tou-user-dashboard {
        padding: 20px 10px;
        max-width: 100%;
    }

    .tou-user-dashboard__header {
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .tou-user-dashboard__title {
        font-size: 24px;
    }

    /* =====================================
       Tabs - Already optimized, enhanced
       ===================================== */
    .tou-user-dashboard__tabs {
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 10px;
    }

    .tou-user-dashboard__tab {
        flex: 1;
        min-width: calc(33.333% - 6px);
        max-width: calc(50% - 4px);
        padding: 10px 12px;
        font-size: 13px;
    }

    /* 2 columns for 3rd tab and below */
    .tou-user-dashboard__tab:nth-child(n+3) {
        min-width: calc(50% - 4px);
        max-width: calc(50% - 4px);
    }

    .tou-user-dashboard__tab-count {
        display: inline-block;
        margin-left: 4px;
        padding: 2px 6px;
        font-size: 11px;
        min-width: 18px;
    }

    /* =====================================
       Filters - Complete Redesign
       ===================================== */
    .tou-user-dashboard__filters {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        margin: 0 10px 20px;
        align-items: stretch;
    }

    .tou-user-dashboard__filter-item {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .tou-user-dashboard__filter-item label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .tou-user-dashboard__filter-select {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 42px;
    }

    .tou-user-dashboard__filter-reset {
        width: 100%;
        padding: 10px;
        font-size: 14px;
        min-height: 42px;
    }

    /* =====================================
       Bulk Actions - Stack Layout
       ===================================== */
    .tou-user-dashboard__bulk-actions {
        flex-direction: column;
        gap: 12px;
        padding: 12px 15px;
        margin: 0 10px 15px;
    }

    .tou-user-dashboard__select-all {
        width: 100%;
        padding: 8px 0;
        justify-content: center;
    }

    .tou-user-dashboard__checkbox {
        margin-right: 8px;
        width: 18px;
        height: 18px;
    }

    .tou-user-dashboard__bulk-button {
        width: 100%;
        padding: 10px;
        font-size: 14px;
        min-height: 42px;
    }

    .tou-user-dashboard__selected-count {
        margin-left: 0;
        text-align: center;
        font-size: 13px;
    }

    /* =====================================
       View Toggle - Smaller on Mobile
       ===================================== */
    .tou-user-dashboard__view-toggle {
        padding: 1px;
    }

    .tou-user-dashboard__view-btn {
        padding: 6px 8px;
        font-size: 12px;
    }

    /* =====================================
       Recipe Cards Grid - Single Column
       ===================================== */
    .tou-favorites-list,
    .tou-menus-list,
    .tou-pantry-list,
    .tou-shopping-lists {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }

    /* Ensure Favorites grid view images are centered on mobile */
    .tou-favorites-list .tou-recipe-card__image {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f6f7f7;
    }

    .tou-favorites-list .tou-recipe-card__image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    /* =====================================
       Menu Cards - Mobile Optimized
       ===================================== */
    .tou-menu-card {
        padding: 15px;
    }

    .tou-menu-card h3 {
        font-size: 18px;
    }

    .tou-menu-card__meta {
        font-size: 13px;
    }

    .tou-menu-card__actions {
        flex-direction: column;
        gap: 8px;
    }

    .tou-menu-card__button {
        width: 100%;
        padding: 10px;
        font-size: 13px;
        text-align: center;
    }

    /* =====================================
       Menu Header - Stack Layout
       ===================================== */
    .tou-user-dashboard__menu-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        margin: 0 10px 20px;
    }

    .tou-user-dashboard__create-menu-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    .tou-user-dashboard__menu-stats {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .tou-user-dashboard__menu-stat {
        text-align: center;
        font-size: 13px;
    }

    .tou-user-dashboard__menu-stat strong {
        font-size: 16px;
    }

    /* =====================================
       Menu Creation Modal - Full Screen
       ===================================== */
    .tou-menu-creation-modal__content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .tou-menu-creation-modal__header {
        padding: 15px 20px;
    }

    .tou-menu-creation-modal__header h2 {
        font-size: 20px;
    }

    .tou-menu-creation-modal__body {
        padding: 20px 15px;
        max-height: calc(100vh - 200px);
    }

    .tou-menu-creation-form__field {
        margin-bottom: 15px;
    }

    .tou-menu-creation-form__field label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .tou-menu-creation-form__input,
    .tou-menu-creation-form__select {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 42px;
    }

    .tou-menu-day {
        margin-bottom: 20px;
        padding: 15px;
    }

    .tou-menu-day h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .tou-menu-meal-section {
        margin-bottom: 12px;
        padding: 12px;
    }

    .tou-menu-meal-section h5 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .tou-menu-recipe-item {
        padding: 8px;
    }

    .tou-menu-recipe-image {
        width: 35px;
        height: 35px;
    }

    .tou-menu-creation-modal__footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 8px;
    }

    .tou-menu-creation-modal__footer .button {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }

    /* =====================================
       Pantry - Complete Mobile Redesign
       ===================================== */
    .tou-pantry-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0 10px 30px;
    }

    .tou-pantry-section {
        padding: 20px;
        max-height: none;
        overflow-y: visible;
    }

    .tou-pantry-section h3 {
        font-size: 20px;
        padding-bottom: 12px;
    }

    .tou-pantry-stats {
        flex-direction: column;
        gap: 15px;
        padding: 12px 15px;
        margin-bottom: 15px;
    }

    .tou-pantry-stats span {
        text-align: center;
        font-size: 13px;
    }

    .tou-pantry-stats strong {
        font-size: 14px;
    }

    .tou-pantry-category-header {
        padding: 15px 16px;
    }

    .tou-pantry-category-header h4 {
        font-size: 15px;
    }

    .tou-pantry-category-select-all {
        padding: 4px 10px;
        font-size: 11px;
    }

    .tou-pantry-category-content {
        padding: 15px;
    }

    .tou-pantry-ingredients {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tou-pantry-ingredient-checkbox {
        padding: 10px;
    }

    .tou-pantry-ingredient-checkbox input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }

    .tou-pantry-ingredient-checkbox span {
        font-size: 13px;
    }

    .tou-pantry-category-extra label,
    .tou-pantry-category-extra strong {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .tou-pantry-extra-input {
        min-height: 70px;
        padding: 10px;
        font-size: 14px;
    }

    .tou-pantry-user-lists-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tou-pantry-user-list-card {
        padding: 15px;
    }

    .tou-pantry-user-list-card h4 {
        font-size: 15px;
    }

    .tou-pantry-user-list-card p {
        font-size: 13px;
    }

    .tou-pantry-user-list-actions {
        flex-direction: column;
        gap: 8px;
    }

    .tou-pantry-user-list-actions .button {
        width: 100%;
        min-width: 100%;
    }

    /* =====================================
       Shopping List Popup - Mobile Fullscreen
       ===================================== */
    .tou-shopping-list-popup__content {
        max-width: 100%;
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .tou-shopping-list-popup__header {
        padding: 15px;
    }

    .tou-shopping-list-popup__header h2 {
        font-size: 18px;
    }

    .tou-shopping-list-popup__body {
        padding: 15px;
        max-height: calc(100vh - 250px);
    }

    .tou-shopping-list-popup__ingredient {
        padding: 12px 15px;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .tou-shopping-list-popup__ingredient span {
        font-size: 14px;
    }

    .tou-shopping-list-popup__remove {
        font-size: 16px;
        padding: 4px 8px;
    }

    .tou-shopping-list-popup__brand-suggestions {
        padding: 12px 15px;
    }

    .tou-brand-suggestions {
        font-size: 12px;
    }

    .tou-brand-suggestions__label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .tou-brand-suggestion {
        padding: 6px 10px;
        gap: 6px;
    }

    .tou-brand-suggestion__logo {
        width: 20px;
        height: 20px;
    }

    .tou-brand-suggestion__name {
        font-size: 12px;
    }

    .tou-brand-suggestion__country {
        font-size: 11px;
    }

    /* Store Suggestions in Shopping List Popup - Mobile */
    .tou-shopping-list-popup__store-suggestions {
        padding: 12px 15px;
    }

    .tou-shopping-list-popup__store-suggestions .tou-store-suggestions__list {
        flex-direction: column;
        gap: 8px;
    }

    .tou-shopping-list-popup__store-suggestions .tou-store-suggestion {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tou-shopping-list-popup__store-suggestions .tou-store-search-btn {
        width: 100%;
        margin-top: 8px;
    }

    .tou-shopping-list-popup__store-suggestions .tou-store-search-btn .dashicons {
        font-size: 18px !important;
        width: 18px !important;
        height: 18px !important;
        line-height: 1 !important;
        display: inline-block !important;
        vertical-align: middle !important;
        visibility: visible !important;
    }

    .tou-shopping-list-popup__store-suggestions .tou-store-search-btn--disabled .dashicons {
        color: #646970 !important;
        opacity: 1 !important;
    }

    .tou-shopping-list-popup__footer {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }

    .tou-shopping-list-popup__share {
        width: 100%;
        padding: 12px;
        min-height: 48px;
    }

    .tou-shopping-list-popup__share svg {
        width: 28px;
        height: 28px;
        fill: #fff;
    }

    /* WhatsApp icon - green (original color) */
    .tou-shopping-list-popup__share--whatsapp svg {
        fill: #25D366 !important;
    }

    /* Telegram icon - blue (original color) */
    .tou-shopping-list-popup__share--telegram svg {
        fill: #0088cc !important;
    }

    /* =====================================
       Shopping List Cards
       ===================================== */
    .tou-shopping-list-card__image {
        height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f6f7f7;
    }

    .tou-shopping-list-card__image img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .tou-shopping-list-card__content {
        padding: 15px;
    }

    .tou-shopping-list-card__title {
        font-size: 16px;
    }

    .tou-shopping-list-card__meta {
        font-size: 13px;
    }

    .tou-shopping-list-card__actions {
        flex-direction: column;
        gap: 8px;
    }

    .tou-shopping-list-card__button {
        width: 100%;
        padding: 10px;
        font-size: 13px;
        text-align: center;
    }

    /* =====================================
       AI Menu Generator - Mobile Optimized
       ===================================== */
    .tou-ai-menu-creator-container {
        padding: 20px 15px;
    }

    .tou-ai-menu-creator-header {
        margin-bottom: 20px;
    }

    .tou-ai-menu-creator-header h2 {
        font-size: 22px;
    }

    .tou-ai-menu-creator-header p {
        font-size: 13px;
    }

    .tou-ai-menu-creator-form {
        padding: 20px 15px;
    }

    .tou-ai-menu-creator-field {
        margin-bottom: 20px;
    }

    .tou-ai-menu-creator-field label {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .tou-ai-menu-creator-select,
    .tou-ai-menu-creator-input {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 42px;
    }

    .tou-ai-menu-creator-checkbox-label {
        gap: 8px;
    }

    .tou-ai-menu-creator-checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .tou-ai-menu-creator-checkbox-label span {
        font-size: 13px;
    }

    .tou-ai-menu-creator-meal-options {
        flex-direction: column;
        gap: 15px;
    }

    .tou-ai-menu-creator-meals {
        padding: 15px;
    }

    .tou-ai-menu-creator-actions {
        margin-top: 20px;
    }

    .tou-ai-menu-creator-button {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }

    .tou-ai-menu-result {
        margin-top: 20px;
        padding: 20px 15px;
    }

    .tou-ai-menu-day {
        padding: 20px 15px;
        margin-bottom: 15px;
    }

    .tou-ai-menu-day h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .tou-ai-menu-meal {
        padding: 15px;
        margin-bottom: 12px;
    }

    .tou-ai-menu-meal h4 {
        font-size: 13px;
    }

    .tou-ai-menu-meal h5 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .tou-ai-menu-meal p {
        font-size: 13px;
    }

    /* =====================================
       Saved Menus
       ===================================== */
    .tou-saved-menus-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 15px;
        padding: 0 10px;
    }

    .tou-saved-menu-card {
        padding: 15px;
    }

    .tou-saved-menu-card h4 {
        font-size: 16px;
    }

    .tou-saved-menu-card p {
        font-size: 13px;
    }

    .tou-saved-menu-actions {
        flex-direction: column;
        gap: 8px;
    }

    .tou-button-small {
        width: 100%;
        padding: 10px;
        font-size: 13px;
    }

    /* =====================================
       Add Recipe Toggle
       ===================================== */
    .tou-add-recipe-toggle {
        padding: 14px 18px;
        font-size: 14px;
    }

    .tou-add-recipe-form-wrapper {
        margin-top: 15px;
        padding: 20px 15px;
    }

    /* =====================================
       AI Menu Modal - Already optimized, enhanced
       ===================================== */
    .tou-ai-menu-modal-content {
        width: 95%;
        margin: 2.5% auto;
        max-height: 95vh;
    }

    .tou-ai-menu-modal-header,
    .tou-ai-menu-modal-body,
    .tou-ai-menu-modal-footer {
        padding: 15px;
    }

    .tou-ai-menu-modal-day {
        padding: 15px;
        margin-bottom: 20px;
    }

    .tou-ai-menu-modal-day-header {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .tou-ai-menu-modal-meal {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

    .tou-ai-menu-modal-meal-type {
        min-width: 100%;
        font-size: 13px;
    }

    .tou-ai-menu-recipe-select {
        width: 100%;
        padding: 8px;
        font-size: 13px;
    }

    .tou-ai-menu-remove-meal {
        width: 100%;
        padding: 8px;
        font-size: 12px;
    }

    .tou-ai-menu-add-meal {
        padding: 10px;
        font-size: 13px;
    }

    .tou-ai-menu-modal-footer {
        flex-direction: column;
        gap: 8px;
    }

    .tou-ai-menu-button {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }
}

/* Mobile: 480px and below (Small Phones) */
@media (max-width: 480px) {

    /* =====================================
       Extra Small Adjustments
       ===================================== */
    .tou-user-dashboard {
        padding: 15px 5px;
    }

    .tou-user-dashboard__title {
        font-size: 20px;
    }

    .tou-user-dashboard__tab {
        font-size: 12px;
        padding: 8px 10px;
        min-height: 40px;
    }

    .tou-user-dashboard__tab-count {
        font-size: 10px;
        padding: 2px 5px;
    }

    .tou-user-dashboard__filter-item label {
        font-size: 11px;
    }

    .tou-user-dashboard__filter-select {
        font-size: 13px;
        min-height: 40px;
    }

    .tou-user-dashboard__filter-reset {
        font-size: 13px;
        min-height: 40px;
    }

    .tou-user-dashboard__bulk-actions {
        padding: 10px 12px;
    }

    .tou-user-dashboard__bulk-button {
        font-size: 13px;
        min-height: 40px;
    }

    .tou-menu-card__actions {
        gap: 6px;
    }

    .tou-menu-card__button {
        font-size: 12px;
        padding: 8px;
    }

    .tou-pantry-section {
        padding: 15px;
    }

    .tou-pantry-section h3 {
        font-size: 18px;
    }

    .tou-pantry-category-header {
        padding: 12px 14px;
    }

    .tou-pantry-category-header h4 {
        font-size: 14px;
    }

    .tou-pantry-ingredient-checkbox {
        padding: 8px;
    }

    .tou-pantry-ingredient-checkbox span {
        font-size: 12px;
    }

    .tou-shopping-list-popup__header h2 {
        font-size: 16px;
    }

    .tou-shopping-list-popup__ingredient span {
        font-size: 13px;
    }

    .tou-ai-menu-creator-header h2 {
        font-size: 20px;
    }

    .tou-ai-menu-day h3 {
        font-size: 16px;
    }

    .tou-ai-menu-meal h5 {
        font-size: 15px;
    }
}

/* =====
   Edit Pantry List Modal - Mobile Optimization
   ===== */
.tou-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 20px;
    overflow-y: auto;
}

.tou-modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    z-index: 1;
}

.tou-modal__content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: calc(100vh - 120px);
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.tou-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #c3c4c7;
    flex-shrink: 0;
}

.tou-modal__title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
}

.tou-modal__close {
    background: none;
    border: none;
    font-size: 28px;
    color: #50575e;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tou-modal__close:hover {
    background: #f0f0f1;
    color: #1d2327;
}

.tou-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.tou-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #c3c4c7;
    flex-shrink: 0;
}

.tou-modal__button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tou-modal__button--cancel {
    background: #fff;
    color: #2c3338;
    border: 1px solid #c3c4c7;
}

.tou-modal__button--cancel:hover {
    background: #f0f0f1;
    border-color: #8c8f94;
}

.tou-modal__button--save {
    background: #D3AF38;
    color: #fff;
}

.tou-modal__button--save:hover {
    background: #B8952E;
}

/* =====================================
   Dismiss Modal Styles
   ===================================== */
.tou-dismiss-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tou-dismiss-modal--active {
    opacity: 1;
    visibility: visible;
}

.tou-dismiss-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.tou-dismiss-modal__content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10;
    padding: 30px;
    margin: 20px;
}

.tou-dismiss-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #50575e;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    line-height: 1;
}

.tou-dismiss-modal__close:hover {
    background: #f0f0f1;
    color: #1d2327;
}

.tou-dismiss-modal__title {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 600;
    color: #1d2327;
    padding-right: 40px;
}

.tou-dismiss-modal__description {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #50575e;
}

.tou-dismiss-modal__select {
    width: 100%;
    padding: 12px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
    background: #fff;
    color: #1d2327;
}

.tou-dismiss-modal__select:focus {
    outline: none;
    border-color: #D3AF38;
    box-shadow: 0 0 0 2px rgba(211, 175, 56, 0.2);
}

.tou-dismiss-modal__textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.tou-dismiss-modal__textarea:focus {
    outline: none;
    border-color: #D3AF38;
    box-shadow: 0 0 0 2px rgba(211, 175, 56, 0.2);
}

.tou-dismiss-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.tou-dismiss-modal__submit,
.tou-dismiss-modal__cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tou-dismiss-modal__submit {
    background: #D3AF38;
    color: #fff;
}

.tou-dismiss-modal__submit:hover {
    background: #B8952E;
}

.tou-dismiss-modal__cancel {
    background: #fff;
    color: #2c3338;
    border: 1px solid #c3c4c7;
}

.tou-dismiss-modal__cancel:hover {
    background: #f0f0f1;
    border-color: #8c8f94;
}

/* =====================================
   Dismiss Items List Styles
   ===================================== */
.tou-dismiss-items {
    padding: 20px 0;
}

.tou-dismiss-items__header {
    margin-bottom: 20px;
}

.tou-dismiss-items__title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
}

.tou-dismiss-items__description {
    margin: 0;
    font-size: 14px;
    color: #646970;
}

.tou-dismiss-items__filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.tou-dismiss-items__filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tou-dismiss-items__filter-group label {
    font-size: 13px;
    font-weight: 500;
    color: #1d2327;
}

.tou-dismiss-items__filter {
    padding: 8px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    min-width: 150px;
}

.tou-dismiss-items__search {
    padding: 8px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.tou-dismiss-items__section {
    margin-bottom: 30px;
}

.tou-dismiss-items__section-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

.tou-dismiss-items__loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    color: #646970;
    font-size: 14px;
}

.tou-dismiss-items__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tou-dismiss-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tou-dismiss-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #8c8f94;
}

.tou-dismiss-item--dismissed {
    background: #f9f9f9;
    border-color: #d63638;
}

.tou-dismiss-item__logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 4px;
    background: #f6f7f7;
    padding: 10px;
    flex-shrink: 0;
}

.tou-dismiss-item__logo-placeholder {
    width: 150px;
    height: 150px;
    background: #f6f7f7;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tou-dismiss-item__logo-placeholder::before {
    content: 'No Logo';
    font-size: 12px;
    color: #8c8f94;
}

.tou-dismiss-item__content {
    flex: 1;
    min-width: 0;
}

.tou-dismiss-item__name {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.tou-dismiss-item__country,
.tou-dismiss-item__location {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #646970;
}

.tou-dismiss-item__badges {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.tou-dismiss-item__badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    background: #D3AF38;
    color: #fff;
}

.tou-dismiss-item__badge--dismissed {
    background: #d63638;
}

.tou-dismiss-item__reason {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #50575e;
}

.tou-dismiss-item__reason strong {
    color: #1d2327;
}

.tou-dismiss-item__reason-date {
    color: #8c8f94;
    font-size: 12px;
}

.tou-dismiss-item__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.tou-dismiss-item__dismiss,
.tou-dismiss-item__undismiss {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-weight: 500;
    position: relative;
    transform: translateY(0);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.1);
}

.tou-dismiss-item__dismiss {
    background: linear-gradient(135deg, #D3AF38 0%, #B8952E 100%);
    color: #fff;
    border-top: 2px solid #F5D67A;
    border-left: 2px solid #F5D67A;
    border-right: 2px solid #8B6F1A;
    border-bottom: 2px solid #8B6F1A;
}

.tou-dismiss-item__dismiss::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.tou-dismiss-item__dismiss:hover {
    background: linear-gradient(135deg, #B8952E 0%, #9D7F25 100%);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(211, 175, 56, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.15);
}

.tou-dismiss-item__dismiss:active {
    transform: translateY(0);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.1);
    border-top: 2px solid #8B6F1A;
    border-left: 2px solid #8B6F1A;
    border-right: 2px solid #F5D67A;
    border-bottom: 2px solid #F5D67A;
}

.tou-dismiss-item__undismiss {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    border-top: 2px solid #5B9BD5;
    border-left: 2px solid #5B9BD5;
    border-right: 2px solid #0A4A6B;
    border-bottom: 2px solid #0A4A6B;
}

.tou-dismiss-item__undismiss::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.tou-dismiss-item__undismiss:hover {
    background: linear-gradient(135deg, #135e96 0%, #0A4A6B 100%);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(34, 113, 177, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.15);
}

.tou-dismiss-item__undismiss:active {
    transform: translateY(0);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.1);
    border-top: 2px solid #0A4A6B;
    border-left: 2px solid #0A4A6B;
    border-right: 2px solid #5B9BD5;
    border-bottom: 2px solid #5B9BD5;
}

.tou-dismiss-items__empty {
    padding: 40px 20px;
    text-align: center;
    color: #646970;
    font-size: 14px;
}

/* Edit Pantry Brand and Store Suggestions */
.tou-edit-pantry-brand-suggestions,
.tou-edit-pantry-store-suggestions {
    margin-top: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.tou-edit-pantry-brand-suggestions .tou-brand-suggestions__label,
.tou-edit-pantry-store-suggestions .tou-store-suggestions__label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13px;
    color: #1d2327;
}

.tou-edit-pantry-brand-suggestions .tou-brand-suggestions__list,
.tou-edit-pantry-store-suggestions .tou-store-suggestions__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Mobile Optimization for Edit Pantry Modal */
@media (max-width: 768px) {
    .tou-modal {
        padding-top: 20px;
        align-items: flex-start;
    }

    .tou-modal__content {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 40px);
        border-radius: 12px 12px 0 0;
        margin-top: 0;
    }

    .tou-modal__header {
        padding: 15px;
    }

    .tou-modal__title {
        font-size: 18px;
    }

    .tou-modal__body {
        padding: 15px;
    }

    .tou-modal__footer {
        padding: 15px;
        flex-direction: column-reverse;
    }

    .tou-modal__button {
        width: 100%;
    }

    /* Brand and Store Suggestions - Stack vertically on mobile */
    .tou-edit-pantry-brand-suggestions,
    .tou-edit-pantry-store-suggestions {
        margin-top: 10px;
        padding: 10px;
    }

    .tou-edit-pantry-brand-suggestions .tou-brand-suggestions__list,
    .tou-edit-pantry-store-suggestions .tou-store-suggestions__list {
        flex-direction: column;
        gap: 8px;
    }

    .tou-brand-suggestion,
    .tou-store-suggestion {
        width: 100%;
        margin: 0;
    }

    .tou-store-suggestion {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tou-store-search-btn {
        width: 100%;
        margin-top: 8px;
    }

    .tou-store-search-btn .dashicons {
        font-size: 18px !important;
        width: 18px !important;
        height: 18px !important;
        line-height: 1 !important;
        display: inline-block !important;
        vertical-align: middle !important;
        visibility: visible !important;
    }

    .tou-store-search-btn--disabled .dashicons {
        color: #646970 !important;
        opacity: 1 !important;
    }

    .tou-edit-pantry-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tou-edit-pantry-item-name {
        width: 100%;
    }

    .tou-edit-pantry-item-remove {
        align-self: flex-end;
        margin-left: 0;
    }
}