/* =========================
   MODAL CONTENT BASE STYLE
========================= */

#new-addcart-modal .modal-body,
#nn-collection-modal .modal-body {
    color: #2B2B2B;
}

/* =========================
   PRODUCT CONTENT (CKEditor REPLACEMENT)
========================= */

/* Headings */
#new-addcart-modal .product_brief h2,
#new-addcart-modal .product_brief h3,
#nn-collection-modal .product_brief h2,
#nn-collection-modal .product_brief h3 {
    color: #2B2B2B !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

#new-addcart-modal .product_brief h2,
#nn-collection-modal .product_brief h2 {
    font-size: 1.625rem !important;
    margin: 2.8rem 0 1.25rem !important;
}

#new-addcart-modal .product_brief h3,
#nn-collection-modal .product_brief h3 {
    font-size: 1.5rem !important;
    margin: 2rem 0 0.875rem !important;
}

/* Text */
#new-addcart-modal .product_brief p,
#new-addcart-modal .product_brief ul,
#new-addcart-modal .product_brief li,
#nn-collection-modal .product_brief p,
#nn-collection-modal .product_brief ul,
#nn-collection-modal .product_brief li {
    line-height: 1.6 !important;
    color: #2B2B2B !important;
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
}

/* UL safety reset (VERY IMPORTANT for CKEditor broken DOM) */
#new-addcart-modal .product_brief ul,
#nn-collection-modal .product_brief ul {
    padding-left: 1.2rem;
    margin: 0 0 0.75rem 0;
}

/* =========================
   FLEX LIST HANDLING (ROBUST)
========================= */

#new-addcart-modal .product_brief ul[style*="flex"],
#nn-collection-modal .product_brief ul[style*="flex"] {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px;
}

#new-addcart-modal .product_brief ul[style*="flex"] li,
#nn-collection-modal .product_brief ul[style*="flex"] li {
    display: inline-block !important;
    margin: 0 !important;
}

/* =========================
   TABLE STYLE
========================= */

#new-addcart-modal .product_brief table,
#nn-collection-modal .product_brief table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: 1px solid #B1B1B1 !important;
    margin-bottom: 1.25rem !important;
}

#new-addcart-modal .product_brief th,
#new-addcart-modal .product_brief td,
#nn-collection-modal .product_brief th,
#nn-collection-modal .product_brief td {
    padding: 10px !important;
    border: 1px solid #B1B1B1 !important;
    font-size: 0.95rem !important;
}

#new-addcart-modal .product_brief td:first-child,
#nn-collection-modal .product_brief td:first-child {
    font-weight: bold !important;
}

/* =========================
   IMAGES
========================= */

#new-addcart-modal .product_brief img,
#nn-collection-modal .product_brief img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 0.5rem !important;
    margin-top: 1.25rem;
}

#new-addcart-modal .product_brief figure,
#nn-collection-modal .product_brief figure {
    font-size: 1rem !important;
}

#new-addcart-modal .product_brief figcaption,
#nn-collection-modal .product_brief figcaption {
    margin-top: 0.75rem !important;
}

/* =========================
   EXP DATE
========================= */

.exp-date-container {
    max-width: 1200px;
    margin: 0 auto !important;
    text-align: center !important;
}

.exp-date {
    background-color: #fafafa;
    border-radius: 0.5rem;
    padding: 15px;
    display: inline-block;
    margin-top: 2rem;
    color: #2B2B2B !important;
    border: 1px solid #ececec;
}

/* =========================
   REPORT GRID
========================= */

.report-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: center !important;
    max-width: 1200px;
    margin: 20px auto !important;
}

.report-grid img {
    width: 23% !important;
    max-width: 280px !important;
    height: auto !important;
}

/* =========================
   BRAND FOOTER
========================= */

.brand-footer-container {
    background-color: #fafafa !important;
    border-radius: 15px !important;
    border: 1.5px solid #ececec !important;
    padding: 0 20px 25px !important;
    margin-top: 2.8rem !important;
}

.brand-footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text-wrapper {
    flex: 3;
    min-width: 300px;
}

.footer-text-wrapper ul li {
    margin-bottom: 4px !important;
    line-height: 1.5 !important;
}

.footer-logos-wrapper {
    flex: 1;
    min-width: 280px;
}

/* =========================
   LOGOS
========================= */

.logos-desktop {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.logos-desktop img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.logos-mobile {
    display: none;
}

/* =========================
   ACCORDION / RECIPE
========================= */

.recipe-item,
.accordion-item {
    margin-bottom: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f8f9fa;
}

.recipe-item input[type="radio"],
.accordion-item input[type="radio"] {
    display: none;
}

.recipe-question,
.accordion-question {
    position: relative;
    padding: 1.2rem 3rem 1.2rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
    line-height: 1.4;
}

.recipe-question span.toggle,
.accordion-question span.toggle {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

.recipe-answer,
.accordion-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.2rem;
    transition: all 0.4s ease;
}

.recipe-item input:checked ~ .recipe-answer,
.accordion-item input:checked ~ .accordion-answer {
    max-height: 9999px;
    padding: 1.2rem;
    background: #fff;
}

/* =========================
   PAGINATION
========================= */

.paging.row {
    display: flex;
    justify-content: center;
}

/* =========================
   TABLET
========================= */

@media (max-width: 768px) {

.report-grid img {
    width: calc(50% - 8px) !important;
}

.footer-text-wrapper,
.footer-logos-wrapper {
    flex: 1 1 100% !important;
}
}

/* =========================
   SMALL PHONE
========================= */

@media (max-width: 400px) {

.brand-footer-grid {
    gap: 15px !important;
}

.report-grid {
    gap: 5px !important;
}

.report-grid img {
    max-width: calc(50% - 5px) !important;
}

.logos-desktop {
    display: none !important;
}

.logos-mobile {
    display: flex !important;
    justify-content: center;
    gap: 15px;
    margin-top: 5px;
}

.logos-mobile img {
    width: 100px !important;
    height: 60px !important;
}

.ckeditor div[style*="flex:1"],
.ckeditor div[style*="flex:3"] {
    min-width: 100% !important;
}
}

.hidden-dot {
    display: none !important;
}