.notice-box {
    display: none;
}
.meal-details-container {
    padding: 40px;
    max-width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    position: absolute;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px 0 0 0;
    top: 0;
}

/* Apply different border-radius if the language is Arabic */
[dir="rtl"] .spinner-overlay {
    border-radius: 0 8px 0 0;
}


.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #7c5e36;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

.generate-image, .try-again-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    background-color: #7c5e36;
    border-radius: 0.5rem;
    padding: 0.5rem;
    color: #fff;
    text-align: center;
}

.generate-image:hover {
    background-color: #5e4529;
}

.ai-generated-label {
    position: absolute;
    bottom: 0;
    right: 0;
    color: #7c5e36;
    padding: 5px 10px;
    background-color: #e3cbb5;
    border-radius: 5px 0 0 0;
    font-size: small;
    z-index: 10;
}

/* Apply different border-radius if the language is Arabic */
[dir="rtl"] .ai-generated-label {
    left: 0;
    right: unset;
    border-radius: 0 5px 0 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.cooking-image-text {
    font-size: 18px;
    color: #7c5e36;
    margin-top: 10px;
    text-align: center;
}

.meal-details-wrapper {
    margin: 0 auto;
    background-color: #e3cbb5;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
    min-height: 70vh;
}

.meal-image-section {
    width: 50%;
    padding: 0;
    position: relative;
}

.meal-description {
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 20px;
    padding-left: 1rem;
}

.meal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 0 0 0;
}

/* Apply different border-radius if the language is Arabic */
[dir="rtl"] .meal-img {
    border-radius: 0 8px 0 0;
}

.meal-info-overlay {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    border-radius: 0 8px 0 0;
    padding: 1rem;
    background: rgba(209, 179, 138, 0.5);
}
/* Apply different border-radius if the language is Arabic */
[dir="rtl"] .meal-info-overlay {
    border-radius: 8px 0 0 0;
}

.meal-title {
    font-size: 2rem;
    margin: 0;
}

.meal-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.icon-label {
    display: flex;
    align-items: center;
    margin: 5px 15px;
}

.icon-label i,
.icon-label img {
    margin-right: 5px;
    margin-left: 5px;
}

.icon-label i {
    font-size: 1.5rem;
    color: #4b3621;
}

.icon-label img {
    width: 18px;
}

.icon-label.time {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.icon-label.time svg {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    margin-left: 5px;
}

.total-line {
    border-top: 1px solid #7c5e36;
    width: 250px;
    margin: 5px 0;
}

.tags .tag,
.info-pills .tag {
    background-color: #b5651d;
    padding: 5px 10px;
    margin-right: 5px;
    margin-left: 5px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #fff;
}

.portion-size {
    margin: 20px 0;
}

.portion-serving {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
}

.portion-icon {
    width: 24px;
    height: auto;
}

.meal-details-section {
    padding: 1.5rem;
    flex-grow: 1;
    width: 50%;
    display: flex;
    flex-direction: column;
    background-color: #e3cbb5;

}

.box {
    background-color: transparent;
    padding: 20px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box h4 {
    margin-bottom: 20px;
    color: #4b3621;
    font-size: 24px;
    flex-wrap: nowrap;
}



.ingredients-list,
.recipe-steps {
}

.ingredients-list {
    list-style: none;
    padding-left: 0;
}

.cart {
    width: 20px;
}
.ingredients-list .ingredient-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #4b3621;
}

.ingredients-list .ingredient-item img {
    cursor: pointer;
    margin-right: 10px;
    margin-left: 10px;
}

.recipe-steps {
    padding: 0 20px;
    color: #4b3621;
}

.back-button-bottom {
    margin-bottom: 20px;
}

.btn.back-btn {
    background-color: #7c5e36;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn.back-btn:hover {
    background-color: #5e4529;
}

@media (max-width: 1024px) {
    .meal-details-container, .box-wrapper, .meal-details-wrapper {
        padding: 0;
        border-radius: 0;
    }
    .meal-details-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .meal-image-section,
    .meal-details-section,
    .meal-info-section {
        width: 100%;
    }
    .meal-info-section, .meal-info-overlay {
        border-radius: 0;
        min-height: 500px;
    }
    .meal-img {
        border-radius: 0;
    }
    .ingredients-section, .recipe-section {
        width: 100%;
        padding-left: 20px;
    }
    .meal-details {
        align-items: normal;
    }
    .recipe-steps {
        padding-left: 0;
    }
    .meal-image-section {
    }

    .meal-img {
    }

    .spinner-overlay, .disclaimer-box {
        border-radius: 0!important;
        margin: 10px 0!important;
    }

    .bookmark-icon-container {
        scale: 70%;
    }
}

@media (max-width: 768px) {
    .meal-title {
        font-size: 1.5rem;
    }

    .icon-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .meal-title {
        font-size: 1.2rem;
    }

    .icon-label {
        font-size: 0.8rem;
    }

    .meal-details-section {
        padding: 0.5rem;
    }
}

/* Disclaimer box styling */
.disclaimer-box {
    background-color: #e3cbb5; /* Same background color as the right section */
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto 0 auto;
    width: 100%;
    max-width: 1200px;
    color: #4b3621; /* Text color to match the rest of the page */
    text-align: center;
}

.portion-size {
    margin: 10px 0;
}


.portion-text {
    color: #4b3621; /* Match other text styles */
    font-weight: bold;
    font-size: 1rem;
}


.logo-inline {
    height: 35px; /* Adjust the size as needed */
    margin-right: 8px; /* Space between heading and logo */
    margin-left: 8px; /* Space between heading and logo */
    vertical-align: middle; /* Aligns logo with the heading text */
}

.bookmark-icon-container {
    z-index: 10;
    position: absolute;
    top: 10px;
    right: 10px;
}

.bookmark-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #e3cbb5;
    opacity: 0.8;
    padding: 10px;
    border-radius: 50%;
}

.bookmark-icon {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}
