/*
 * Mirtill Editor Framework 2.1.1 – frontend blokkstílusok
 * Kizárólag a plugin saját .mmef-* elemeire hat.
 */

.mmef-intro,
.mmef-toc,
.mmef-summary,
.mmef-list-item,
.mmef-recipe,
.mmef-note,
.mmef-quote,
.mmef-checklist,
.mmef-cta,
.mmef-email-cta,
.mmef-pinterest-cta,
.mmef-reference,
.mmef-image,
.mmef-gallery,
.mmef-media-text,
.mmef-details,
.mmef-accordion,
.mmef-buttons,
.mmef-socials {
    --mmef-purple: #491d56;
    --mmef-light-purple: #d6c5e0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
}

.mmef-intro *, .mmef-toc *, .mmef-summary *, .mmef-list-item *, .mmef-recipe *,
.mmef-note *, .mmef-quote *, .mmef-checklist *, .mmef-cta *, .mmef-email-cta *,
.mmef-pinterest-cta *, .mmef-reference *, .mmef-image *, .mmef-gallery *,
.mmef-media-text *, .mmef-details *, .mmef-accordion *, .mmef-buttons *, .mmef-socials * {
    box-sizing: border-box;
}

.mmef-intro {
    padding: 28px 32px;
    border-left: 5px solid #8e6a98;
    border-radius: 0 22px 22px 0;
    background: #f7f1f8;
    color: #514856;
    font-size: 18px;
    line-height: 1.75;
}

.mmef-toc {
    display: block !important;
    padding: 24px 28px;
    border: 1px solid #e2d7e5;
    border-radius: 20px;
    background: #fff;
}

.mmef-toc__title {
    margin: 0 0 12px;
    color: #491d56;
    font-size: 19px;
    font-weight: 800;
}

.mmef-toc__list {
    margin: 0;
    padding-left: 22px;
}

.mmef-toc__list li + li { margin-top: 8px; }
.mmef-toc__list .is-subheading { margin-left: 18px; }
.mmef-toc__list a { color: #491d56; text-decoration: none; }
.mmef-toc__empty { color: #7b707e; font-style: italic; }

.mmef-summary {
    display: block !important;
    padding: 28px 32px;
    border-radius: 24px;
    background: #491d56 !important;
    color: #fff !important;
}

.mmef-summary h2 {
    margin: 0 0 12px !important;
    color: #fff !important;
}

.mmef-summary > div {
    display: block;
    color: #fff !important;
    line-height: 1.7;
}

.mmef-paragraph,
.mmef-basic-list {
    color: #403942;
    font-size: 17px;
    line-height: 1.8;
}

.mmef-heading { color: #491d56; }

.mmef-list-item {
    display: grid !important;
    grid-template-columns: minmax(240px, 38%) minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    padding: 24px;
    border: 1px solid #e5dce7;
    border-radius: 24px;
    background: #fff;
}

.mmef-list-item.has-no-image,
.mmef-list-item:not(:has(.mmef-list-item__media)) {
    grid-template-columns: minmax(0, 1fr);
}

.mmef-list-item__media,
.mmef-list-item__content {
    align-self: start;
    min-width: 0;
}

.mmef-list-item__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    border-radius: 18px;
}

.mmef-list-item__content h2 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    color: #491d56;
}

.mmef-list-item__number {
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 0 9px;
    border-radius: 999px;
    background: #491d56;
    color: #fff;
    font-weight: 800;
}

.mmef-recipe {
    display: block !important;
    padding: 24px 26px;
    border: 1px solid #dfd2e2;
    border-radius: 28px;
    background: #fff;
}

.mmef-recipe__image {
    width: 100%;
    max-height: 520px;
    display: block;
    object-fit: cover;
    border-radius: 20px;
}

.mmef-recipe > h2 {
    margin: 20px 0 14px !important;
    color: #491d56;
    font-size: clamp(27px, 4vw, 38px);
}

.mmef-recipe__meta {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px !important;
}

.mmef-recipe__chip {
    min-width: 0;
    padding: 12px 14px;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    border-radius: 15px;
    background: #f5eef7 !important;
}

.mmef-recipe__chip > span {
    display: inline-flex;
    color: #7b4c87;
    font-family: Arial, sans-serif;
    font-size: 21px;
    line-height: 1;
}

.mmef-recipe__chip small,
.mmef-recipe__chip strong { display: block; }
.mmef-recipe__chip small { color: #786b7b; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.mmef-recipe__chip strong { color: #491d56; }

.mmef-recipe__section { margin-top: 24px !important; }
.mmef-recipe__section h3 { margin: 0 0 12px !important; color: #491d56; }

.mmef-ingredients,
.mmef-checklist ul {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    list-style: none;
}

.mmef-ingredients label,
.mmef-checklist label {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    cursor: pointer;
}

.mmef-ingredients input,
.mmef-checklist input {
    width: 19px;
    height: 19px;
    margin: 3px 0 0;
    accent-color: #491d56;
}

.mmef-ingredients input:checked + span,
.mmef-checklist input:checked + span { color: #8c838e; text-decoration: line-through; }

.mmef-steps {
    counter-reset: mmef-step;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
    list-style: none !important;
}

.mmef-steps li {
    counter-increment: mmef-step;
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
    margin: 0 !important;
    padding: 0 !important;
}

.mmef-steps li::before {
    content: counter(mmef-step) !important;
    width: 36px;
    height: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #491d56 !important;
    color: #fff !important;
    font-weight: 800;
    line-height: 1;
}

.mmef-note {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 17px;
    padding: 22px 24px;
    border: 1px solid #e2d7e5;
    border-radius: 20px;
    background: #fbf8fc;
}

.mmef-note__icon {
    width: 44px;
    height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #491d56 !important;
    color: #fff !important;
    font-family: Arial, sans-serif !important;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.mmef-note__title { margin-bottom: 6px; color: #491d56; font-weight: 800; }
.mmef-note.is-warning { background: #fff8f5; border-color: #dec8c3; }
.mmef-note.is-info { background: #f2f6f4; }
.mmef-note.is-thought { background: #f7f1f8; }
.mmef-note.is-custom { border-style: dashed; }

.mmef-quote {
    padding: 28px 32px;
    border-left: 5px solid #491d56;
    background: #f8f4f9;
    color: #491d56;
    font-size: 22px;
    line-height: 1.6;
}
.mmef-quote cite { display: block; margin-top: 12px; color: #746979; font-size: 14px; }

.mmef-checklist {
    display: block !important;
    padding: 22px 26px;
    border-radius: 22px;
    background: #f5eef7 !important;
}

.mmef-checklist h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px !important;
    color: #491d56;
}

.mmef-checklist h2::before {
    content: '✓';
    width: 34px;
    height: 34px;
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #491d56;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 18px;
}

.mmef-cta,
.mmef-email-cta,
.mmef-pinterest-cta {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    border-radius: 24px;
}

.mmef-cta {
    background: #491d56 !important;
    color: #fff !important;
}

.mmef-cta h2,
.mmef-cta__eyebrow,
.mmef-cta > div { color: #fff !important; }
.mmef-cta h2 { margin: 4px 0 8px !important; }
.mmef-cta__eyebrow { margin-bottom: 5px; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.mmef-button {
    min-height: 46px;
    padding: 12px 22px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #fff !important;
    color: #491d56 !important;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
}

.mmef-email-cta,
.mmef-pinterest-cta {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 0 !important;
    color: #491d56;
}

.mmef-email-cta { border: 1px solid #d9c9de; background: #f6eff8 !important; }
.mmef-pinterest-cta { border: 1px solid #e2ced2; background: #fff7f7 !important; }
.mmef-email-cta h2,
.mmef-pinterest-cta h2 { margin: 0 0 6px !important; color: #491d56; }
.mmef-email-cta .mmef-button,
.mmef-pinterest-cta .mmef-button { background: #491d56 !important; color: #fff !important; }

.mmef-cta__icon,
.mmef-pinterest-cta__mark {
    width: 50px;
    height: 50px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #491d56 !important;
    color: #fff !important;
    font-family: Arial, sans-serif !important;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.mmef-reference {
    display: grid !important;
    grid-template-columns: minmax(240px, 38%) minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    padding: 24px;
    border: 1px solid #e5dce7;
    border-radius: 24px;
    background: #fff;
}
.mmef-reference__image,
.mmef-reference__placeholder { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; border-radius: 18px; background: #f1eaf3; }
.mmef-reference h2 { margin-top: 0 !important; }
.mmef-reference h2 a { color: #491d56; text-decoration: none; }
.mmef-reference .mmef-button { margin-top: 14px; background: #491d56 !important; color: #fff !important; }

.mmef-image img { width: 100%; height: auto; display: block; border-radius: 20px; }
.mmef-image figcaption { margin-top: 8px; color: #776e79; font-size: 13px; text-align: center; }

.mmef-gallery { display: grid; grid-template-columns: repeat(var(--mmef-columns, 3), minmax(0, 1fr)); gap: 12px; }
.mmef-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; }

.mmef-media-text { display: grid; grid-template-columns: minmax(280px, 42%) minmax(0, 1fr); align-items: start; gap: 30px; }
.mmef-media-text.is-image-right .mmef-media-text__media { order: 2; }
.mmef-media-text__media img { width: 100%; display: block; border-radius: 20px; }
.mmef-media-text__content h2 { margin-top: 0 !important; color: #491d56; }

.mmef-details,
.mmef-accordion__item { border: 1px solid #dfd4e2; border-radius: 18px; background: #fff; }
.mmef-details summary,
.mmef-accordion summary { padding: 19px 23px; color: #491d56; font-weight: 800; cursor: pointer; }
.mmef-details__content,
.mmef-accordion__content { padding: 0 23px 22px; }
.mmef-accordion { display: grid; gap: 12px; }

.mmef-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.mmef-buttons .mmef-button { background: #491d56 !important; color: #fff !important; }
.mmef-separator { border: 0; border-top: 1px solid #d8cddd; }

.mmef-socials { padding: 22px; text-align: center; }
.mmef-socials__title { margin-bottom: 15px; color: #491d56; font-weight: 800; }
.mmef-socials__icons { display: flex; align-items: center; justify-content: center; gap: 10px; }
.mmef-socials__icons a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #491d56; color: #fff; }
.mmef-socials__icons svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 1.7; }

@media (max-width: 760px) {
    .mmef-list-item,
    .mmef-reference,
    .mmef-media-text { grid-template-columns: 1fr; }

    .mmef-media-text.is-image-right .mmef-media-text__media { order: 0; }
    .mmef-recipe__meta { grid-template-columns: 1fr; }

    .mmef-cta,
    .mmef-email-cta,
    .mmef-pinterest-cta {
        grid-template-columns: 1fr;
        justify-items: start;
        padding: 22px;
    }

    .mmef-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* 2.2.0 – végleges ikon- és tartalomjegyzék-finomhangolás */
.mmef-note__icon .mmef-ui-icon,
.mmef-cta__icon .mmef-ui-icon,
.mmef-pinterest-cta__mark .mmef-ui-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.mmef-note__icon {
    box-shadow: 0 8px 20px rgba(73, 29, 86, .14);
}

.mmef-note.is-recipe-tip .mmef-note__icon { background: #edf5ee !important; color: #477650 !important; }
.mmef-note.is-tip .mmef-note__icon { background: #f2eaf5 !important; color: #6f3b7b !important; }
.mmef-note.is-info .mmef-note__icon { background: #eef3f8 !important; color: #45627a !important; }
.mmef-note.is-warning .mmef-note__icon { background: #fff2e7 !important; color: #a75b28 !important; }
.mmef-note.is-thought .mmef-note__icon { background: #f8edf3 !important; color: #96546f !important; }
.mmef-note.is-custom .mmef-note__icon { background: #491d56 !important; color: #fff !important; }

.mmef-toc__list .is-subheading {
    margin-left: 20px;
    font-size: .95em;
}

.mmef-cta__icon,
.mmef-pinterest-cta__mark {
    font-size: 0 !important;
}

.mmef-socials__icons a {
    color: #fff !important;
}
.mmef-socials__icons svg {
    width: 21px;
    height: 21px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.mmef-socials__icons a.is-filled svg {
    fill: currentColor;
    stroke: none;
}
.mmef-socials__icons a:hover {
    transform: translateY(-2px);
}
.mmef-socials__icons a {
    transition: transform .18s ease, opacity .18s ease;
}


/* 2.2.1 – vizuálisabb kiemelőikonok és GyIK blokk */
.mmef-note__icon {
    width: 48px;
    height: 48px;
}
.mmef-note__icon .mmef-ui-icon {
    width: 30px;
    height: 30px;
    stroke-width: 2.65 !important;
}
.mmef-note.is-warning .mmef-note__icon .mmef-ui-icon {
    width: 32px;
    height: 32px;
    stroke-width: 2.9 !important;
}
.mmef-note.is-thought .mmef-note__icon .mmef-ui-icon,
.mmef-note.is-custom .mmef-note__icon .mmef-ui-icon {
    fill: currentColor;
    fill-opacity: .12;
}

.mmef-faq {
    padding: 28px;
    border: 1px solid #e2d7e5;
    border-radius: 24px;
    background: #fbf8fc;
}
.mmef-faq__title {
    margin: 0 0 20px;
    color: #491d56;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 800;
}
.mmef-faq__items {
    display: grid;
    gap: 12px;
}
.mmef-faq__item {
    overflow: hidden;
    border: 1px solid #dfd4e2;
    border-radius: 18px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.mmef-faq__item[open] {
    border-color: #cdb8d3;
    box-shadow: 0 8px 24px rgba(73, 29, 86, .07);
}
.mmef-faq__item summary {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 13px;
    padding: 18px 20px;
    color: #491d56;
    cursor: pointer;
    list-style: none;
}
.mmef-faq__item summary::-webkit-details-marker { display: none; }
.mmef-faq__question-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0e7f3;
    color: #491d56;
    font-size: 20px;
    font-weight: 900;
}
.mmef-faq__question {
    font-size: 17px;
    font-weight: 800;
}
.mmef-faq__toggle {
    position: relative;
    width: 22px;
    height: 22px;
}
.mmef-faq__toggle::before,
.mmef-faq__toggle::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 4px;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: #491d56;
    transition: transform .18s ease;
}
.mmef-faq__toggle::after { transform: rotate(90deg); }
.mmef-faq__item[open] .mmef-faq__toggle::after { transform: rotate(0); }
.mmef-faq__answer {
    padding: 0 20px 20px 69px;
    color: #514b54;
    line-height: 1.7;
}
@media (max-width: 600px) {
    .mmef-faq { padding: 20px 16px; }
    .mmef-faq__item summary { grid-template-columns: 32px minmax(0, 1fr) 22px; gap: 10px; padding: 16px; }
    .mmef-faq__question-icon { width: 30px; height: 30px; font-size: 18px; }
    .mmef-faq__answer { padding: 0 16px 18px 58px; }
}


/* 2.2.4 – GyIK: a sablon általános section szabályai ne okozzanak nagy üres területet. */
.entry-content .mmef-faq,
.elementor-widget-theme-post-content .mmef-faq,
.mmef-faq {
    box-sizing: border-box !important;
    min-height: 0 !important;
    height: auto !important;
    padding-top: 28px !important;
}
.entry-content .mmef-faq__title,
.elementor-widget-theme-post-content .mmef-faq__title,
.mmef-faq__title {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
@media (max-width: 600px) {
    .entry-content .mmef-faq,
    .elementor-widget-theme-post-content .mmef-faq,
    .mmef-faq {
        padding-top: 20px !important;
    }
}
