/* ====================================================================
   myg-upload-custom.css
   RECEPTFELTÖLTŐ – LETISZTÍTOTT INDULÓ VERZIÓ
   Jelenleg megtartott részek:
   01) ELREJTÉSEK (címsor + alcím)
   02) ALAPADATOK – 4 egyforma mező és egységes elrendezés
   ==================================================================== */


/* ====================================================================
   01) ELREJTÉSEK (CÍMSOR + ALCÍM)
   Cél:
   - a WP / shortcode által kirakott felső címsor és alcím eltüntetése
   ==================================================================== */
.myg-recipe-upload-wrapper .upload-header,
.myg-recipe-upload-wrapper .myg-upload-header,
header.entry-header {
    display: none !important;
}


/* ====================================================================
   02) ALAPADATOK – 4 EGYFORMA MEZŐ ÉS EGYSÉGES ELRENDEZÉS
   Cél:
   - a "Recept alapadatok" blokk rendezett, egyforma mezős szerkezete
   - a recept neve teljes szélességben
   - alatta 4 egyforma mező egy sorban
   ITT tudod állítani:
   - oszlopköz: gap
   - név alatti label távolság: margin-bottom
   - kis mezők label távolság: margin-bottom
   - mezőmagasság: height
   ==================================================================== */

/* 1) A rács kényszerítése 4 egyenlő oszlopra */
.myg-basic-info .myg-form-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.1rem !important; 
    align-items: flex-start !important;
}

/* 2) A recept neve (első elem) teljes szélességben */
.myg-basic-info .myg-form-grid > .myg-form-group:first-child {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* 3) Receptnév label távolság */
.myg-basic-info .myg-form-grid > .myg-form-group:first-child label {
    margin-bottom: 12px !important; /* ITT tudod állítani */
    font-weight: 600 !important;
}

/* 4) A 4 kis mező belső elrendezése */
.myg-basic-info .myg-form-grid > .myg-form-group:not(:first-child) {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

/* 5) A 4 kis mező label formázása */
.myg-basic-info .myg-form-grid > .myg-form-group:not(:first-child) label {
    display: block !important;
    margin-bottom: 8px !important; /* ITT tudod állítani */
    min-height: 1.2rem !important; 
    font-weight: 600 !important;
    font-size: 1rem !important;
}

/* 6) A 4 kis mező input/select alap stílusa */
.myg-basic-info .myg-form-grid .myg-form-group input,
.myg-basic-info .myg-form-grid .myg-form-group select {
    width: 100% !important;
    height: 48px !important; /* ITT tudod állítani */
    padding: 0 12px !important;
    border-radius: 15px !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box !important;
}

/* ====================================================================
   03) SZEKCIÓCÍMEK – IKONMENTES, SZOLIDABB, ELEGÁNSABB VERZIÓ
   Cél:
   - minden szekciócím előtti ikon eltüntetése
   - egységes, finomabb, kevésbé vastag címsorok
   - a meglévő narancs alsó vonal megmaradjon
   ITT tudod állítani:
   - címsor méret: font-size
   - címsor vastagság: font-weight
   - cím és narancs vonal köze: margin-bottom / padding-bottom
   ==================================================================== */

/* Szekciók függőleges ritmusa */
.myg-form-section {
    margin-top: 2.6rem !important;
    clear: both !important;
}

.myg-form-section:first-of-type {
    margin-top: 0 !important;
}

/* Közös címsorlogika */
.myg-form-section > h2,
.myg-form-section > h3,
.myg-section-header {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    margin: 0 0 1.35rem 0 !important;
    padding: 0 0 0.55rem 0 !important;
    border-bottom: 3px solid #ff8a3d !important;

    font-size: clamp(1.6rem, 0.7vw + 1rem, 2rem) !important; ITT tudod állítani */
    line-height: 1.12 !important;
    font-weight: 600 !important; /* ITT tudod állítani */
    letter-spacing: -0.02em !important;
    color: #2f2f33 !important;
}

/* Minden címsor előtti emoji / ikon / kép eltüntetése */
.myg-form-section > h2 img,
.myg-form-section > h3 img,
.myg-section-header img,
.myg-form-section > h2 .emoji,
.myg-form-section > h3 .emoji,
.myg-section-header .emoji,
.myg-form-section > h2 svg,
.myg-form-section > h3 svg,
.myg-section-header svg,
.myg-form-section > h2 i,
.myg-form-section > h3 i,
.myg-section-header i,
.myg-form-section > h2::before,
.myg-form-section > h3::before,
.myg-section-header::before {
    display: none !important;
    content: none !important;
}

/* Ha a theme vagy plugin inline elemmé tesz valamit a címen belül */
.myg-form-section > h2 > *,
.myg-form-section > h3 > *,
.myg-section-header > * {
    vertical-align: middle !important;
}

/* Kis finomítás a kisebb desktop / tablet sávra */
@media (max-width: 1100px) {
    .myg-form-section > h2,
    .myg-form-section > h3,
    .myg-section-header {
        font-size: clamp(1.7rem, 1vw + 1rem, 2.2rem) !important;
        margin-bottom: 1.15rem !important;
    }
}

/* ====================================================================
   04) HOZZÁVALÓK KERESŐ + MIKROFON
   Cél:
   - a mikrofon a keresőmező ELÉ kerüljön
   - a mező és a mikrofon magassága egyezzen az alapadatok mezőivel
   - ne legyen bumfordi, túl magas megjelenés
   ITT tudod állítani:
   - mikrofon oszlop szélessége: grid-template-columns első értéke
   - mikrofon és input köze: column-gap
   - input magasság: height
   - mikrofon gomb mérete: width / height
   - mikrofon gomb kerekítése: border-radius
   - ikon mérete: svg width / height
   ==================================================================== */

/* Külső keresőblokk */
.myg-ingredients-section .myg-ingredient-search {
    display: block !important;
    width: 100% !important;
}

/* Belső sor: mikrofon balra, input jobbra, találatok alul */
.myg-ingredients-section .myg-search-wrapper {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important; /* ITT tudod állítani */
    grid-template-areas:
        "mic input"
        "suggestions suggestions" !important;
    column-gap: 10px !important; /* ITT tudod állítani */
    row-gap: 10px !important;
    align-items: stretch !important;
    width: 100% !important;
    position: relative !important;
}

/* Input – ugyanakkora magasság, mint az alapadatok mezői */
.myg-ingredients-section .myg-search-wrapper #ingredient-search,
.myg-ingredients-section .myg-search-wrapper .myg-input {
    grid-area: input !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;      /* ITT tudod állítani */
    min-height: 48px !important;  /* ITT tudod állítani */
    padding: 0 16px !important;
    border-radius: 15px !important;
    box-sizing: border-box !important;
}

/* Mikrofon gomb – ugyanakkora magasság, mint az input */
.myg-ingredients-section .myg-search-wrapper #voice-search-btn,
.myg-ingredients-section .myg-search-wrapper .myg-voice-btn,
.myg-ingredients-section .myg-search-wrapper .voice-search-button {
    grid-area: mic !important;
    width: 48px !important;       /* ITT tudod állítani */
    height: 48px !important;      /* ITT tudod állítani */
    min-width: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #ff8a3d !important;
    border: 0 !important;
    border-radius: 15px !important; /* ITT tudod állítani */
    box-shadow: 0 8px 18px rgba(255, 138, 61, 0.22) !important;
    cursor: pointer !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
}

/* Hover */
.myg-ingredients-section .myg-search-wrapper #voice-search-btn:hover,
.myg-ingredients-section .myg-search-wrapper .myg-voice-btn:hover,
.myg-ingredients-section .myg-search-wrapper .voice-search-button:hover {
    background: #f07d29 !important;
    transform: translateY(-1px) !important;
}

/* SVG ikon mérete */
.myg-ingredients-section .myg-search-wrapper #voice-search-btn svg,
.myg-ingredients-section .myg-search-wrapper .myg-voice-btn svg,
.myg-ingredients-section .myg-search-wrapper .voice-search-button svg {
    width: 18px !important;   /* ITT tudod állítani */
    height: 18px !important;  /* ITT tudod állítani */
    display: block !important;
}

.myg-ingredients-section .myg-search-wrapper #voice-search-btn svg path,
.myg-ingredients-section .myg-search-wrapper .myg-voice-btn svg path,
.myg-ingredients-section .myg-search-wrapper .voice-search-button svg path {
    fill: #ffffff !important;
}

/* Találati lista teljes szélességben alul */
.myg-ingredients-section .myg-search-wrapper #ingredient-suggestions,
.myg-ingredients-section .myg-search-wrapper .myg-ingredient-suggestions {
    grid-area: suggestions !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Screen reader status ne kavarjon bele */
.myg-ingredients-section .myg-search-wrapper #search-status {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

/* Kisebb desktop / tablet finomítás */
@media (max-width: 1100px) {
    .myg-ingredients-section .myg-search-wrapper {
        grid-template-columns: 46px minmax(0, 1fr) !important;
        column-gap: 10px !important;
    }

    .myg-ingredients-section .myg-search-wrapper #voice-search-btn,
    .myg-ingredients-section .myg-search-wrapper .myg-voice-btn,
    .myg-ingredients-section .myg-search-wrapper .voice-search-button,
    .myg-ingredients-section .myg-search-wrapper #ingredient-search,
    .myg-ingredients-section .myg-search-wrapper .myg-input {
        height: 46px !important;
        min-height: 46px !important;
    }
}

/* ====================================================================
   05) HOZZÁADOTT ALAPANYAG KÁRTYÁK + ÖSSZESÍTŐ DOBOZ
   Cél:
   - az Áron által berakott drag fogantyú rendesen a sor elején maradjon
   - a plugin eredeti, szebb narancs bal oldali szegélyét NEM piszkáljuk
   - nincs saját ::before narancs csík
   - desktop nézet rendezése
   ==================================================================== */

/* Lista */
.myg-ingredients-list .myg-ingredient-items {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

/* Külső lista wrapper */
#ingredients-list.myg-ingredients-list {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Egy hozzávaló sora */
.myg-ingredients-list .myg-ingredient-item {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 12px !important;

    padding: 12px 16px !important;
    margin: 0 !important;

    background: #ffffff !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: hidden !important;
}

/* FONTOS: saját narancs csík teljesen kikapcsolva */
.myg-ingredients-list .myg-ingredient-item::before {
    content: none !important;
    display: none !important;
}

/* Drag fogantyú / rendező gomb */
.myg-ingredients-list .myg-ingredient-item__drag,
.myg-ingredients-list .myg-ingredient-item__handle,
.myg-ingredients-list .myg-drag-handle,
.myg-ingredients-list .drag-handle,
.myg-ingredients-list [class*="drag"],
.myg-ingredients-list [class*="handle"] {
    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 12px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,.06) !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.05) !important;

    color: #8f8f8f !important;
    font-size: 22px !important;
    line-height: 1 !important;

    cursor: grab !important;
    box-sizing: border-box !important;
}

.myg-ingredients-list .myg-ingredient-item__drag:active,
.myg-ingredients-list .myg-ingredient-item__handle:active,
.myg-ingredients-list .myg-drag-handle:active,
.myg-ingredients-list .drag-handle:active,
.myg-ingredients-list [class*="drag"]:active,
.myg-ingredients-list [class*="handle"]:active {
    cursor: grabbing !important;
}

/* Info blokk */
.myg-ingredient-item__info {
    grid-column: 2 !important;
    min-width: 0 !important;
    line-height: 1.3 !important;
}

/* Mennyiség */
.myg-ingredient-item__quantity {
    color: #ff8a3d !important;
    font-weight: 600 !important;
    margin-right: 8px !important;
    white-space: nowrap !important;
    font-size: 1rem !important;
}

/* Név */
.myg-ingredient-item__name {
    color: #2f2f33 !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
}

/* Makró chip */
.myg-ingredient-item__macros {
    grid-column: 3 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 7px 11px !important;
    border-radius: 10px !important;
    background: rgba(0,0,0,.045) !important;
    color: #666 !important;

    font-size: 0.9rem !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
}

/* Gombok */
.myg-ingredient-item__actions {
    grid-column: 4 !important;

    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Közös akciógomb */
.myg-correction-btn,
.myg-ingredient-item__remove {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 1px solid rgba(0,0,0,.06) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.05) !important;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease !important;
    cursor: pointer !important;
}

.myg-correction-btn:hover {
    background: #fff7f1 !important;
    border-color: rgba(255,138,61,.24) !important;
    box-shadow: 0 4px 12px rgba(255,138,61,.10) !important;
    transform: translateY(-1px) !important;
}

.myg-ingredient-item__remove:hover {
    background: #fff4f4 !important;
    border-color: rgba(230,90,90,.18) !important;
    box-shadow: 0 4px 12px rgba(230,90,90,.08) !important;
    transform: translateY(-1px) !important;
}

/* Ikonok */
.myg-correction-btn .myg-icon,
.myg-ingredient-item__remove .myg-icon {
    width: 20px !important;
    height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
}

.myg-correction-btn .myg-icon,
.myg-correction-btn .myg-icon::before,
.myg-correction-btn .myg-icon::after {
    color: #ff8a3d !important;
}

.myg-ingredient-item__remove .myg-icon,
.myg-ingredient-item__remove .myg-icon::before,
.myg-ingredient-item__remove .myg-icon::after {
    color: #e45858 !important;
}

/* Disabled */
.myg-ingredient-item__remove[disabled],
.myg-ingredient-item__remove:disabled {
    opacity: .55 !important;
    cursor: not-allowed !important;
    background: #f7f7f7 !important;
    box-shadow: none !important;
}

/* Üres állapot */
.myg-empty-message {
    margin: 0 !important;
    padding: 22px 16px !important;
    text-align: center !important;
    color: #9b9b9b !important;
    font-style: italic !important;
    border: 1px solid rgba(0,0,0,.07) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
}

/* Összesítő doboz */
#total-kcal-display {
    margin-top: 14px !important;
    padding: 12px 16px !important;
    display: block !important;

    background: #ffffff !important;
    background-image: none !important;
    color: #ff8a3d !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    line-height: 1.2 !important;

    border: 1px solid rgba(255,138,61,.40) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

#total-kcal-display span {
    color: #ff8a3d !important;
    font-weight: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

#total-kcal-display[style] {
    background: #ffffff !important;
    background-image: none !important;
    color: #ff8a3d !important;
    border: 1px solid rgba(255,138,61,.40) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

/* Kisebb desktop / tablet */
@media (max-width: 1200px) {
    .myg-ingredients-list .myg-ingredient-item {
        grid-template-columns: 48px minmax(0, 1fr) auto auto !important;
        gap: 10px !important;
    }

    .myg-ingredient-item__info {
        grid-column: 2 !important;
    }

    .myg-ingredient-item__macros {
        grid-column: 3 !important;
        justify-self: end !important;
    }

    .myg-ingredient-item__actions {
        grid-column: 4 !important;
    }
}

/* ====================================================================
   05/A) RECEPT ÖSSZESÍTŐ – FINOM, EGYBEN TARTOTT VERZIÓ
   ==================================================================== */

.myg-nutrition-summary__label {
    margin: 34px 0 6px 0 !important;

    text-align: center !important;
    font-size: 0.92rem !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
    color: #6f6f75 !important;

    letter-spacing: -0.005em !important;
}

/* Összesítő sáv */
#myg-nutrition-summary-bar,
.myg-nutrition-summary__bar {
    width: 100% !important;
    box-sizing: border-box !important;

    padding: 12px 18px !important;
    border-radius: 13px !important;

    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.98) 0%,
        rgba(255,248,242,0.98) 100%
    ) !important;

    border: 1px solid rgba(255,138,61,.24) !important;

    color: #ff7f32 !important;

    text-align: center !important;
    font-size: 0.98rem !important;
    line-height: 1.2 !important;
    font-weight: 750 !important;

    box-shadow:
        0 2px 8px rgba(255,138,61,.045),
        inset 0 1px 0 rgba(255,255,255,.9) !important;
}

/* Mobil */
@media (max-width: 700px) {

    .myg-nutrition-summary__label {
        margin: 28px 0 7px 0 !important;
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        font-weight: 500 !important;
        padding: 0 8px !important;
    }

    #myg-nutrition-summary-bar,
    .myg-nutrition-summary__bar {
        padding: 12px 14px !important;
        border-radius: 15px !important;
        font-size: 0.94rem !important;
        line-height: 1.3 !important;
    }
}

/* ====================================================================
   05/B) HOZZÁVALÓK LISTA – ÜRES ÁLLAPOT SZÖVEGE
   Cél:
   - külön felső infósáv nélkül jelezni, hogy a hozzávalók átrendezhetők
   - csak akkor látszik, amikor még nincs hozzáadott alapanyag
   - HTML módosítás nélkül
   ==================================================================== */

/* A korábbi felső infósáv teljes kikapcsolása */
#ingredients-list.myg-ingredients-list::before {
    content: none !important;
    display: none !important;
}

/* Üres állapot szövegének elrejtése */
#ingredients-list.myg-ingredients-list .empty-message {
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    margin: 14px 0 0 0 !important;
    text-align: center !important;
}

/* Saját üres állapot szöveg */
#ingredients-list.myg-ingredients-list .empty-message::before {
    content: "Itt jelennek meg a hozzáadott alapanyagok. A sorrendjüket később átrendezheted." !important;

    display: block !important;
    color: #8a8a8a !important;

    font-size: 1rem !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;

    text-align: center !important;
}

/* Mobilon rövidebb, konkrétabb */
@media (max-width: 700px) {
    #ingredients-list.myg-ingredients-list .empty-message {
        margin: 14px 0 0 0 !important;
        padding: 0 8px !important;
    }

    #ingredients-list.myg-ingredients-list .empty-message::before {
        content: "Itt jelennek meg a hozzáadott alapanyagok. A kártyákat húzással rendezheted át." !important;

        font-size: 0.9rem !important;
        line-height: 1.35 !important;
    }
}

/* ====================================================================
   05/C) HOZZÁVALÓ KÁRTYÁK – KERET VISSZAHOZÁSA
   Cél:
   - visszahozza a hozzávaló kártyák finom keretét
   - megmaradjon az Áron-féle bal narancs szegély
   - nem piszkálja a drag fogantyút és az összesítő sávot
   ==================================================================== */

.myg-ingredients-list .myg-ingredient-item {
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.035) !important;
}



/* ====================================================================
   06) ELKÉSZÍTÉSI LÉPÉSEK – EGYSZERŰ, STABIL VERZIÓ
   Régi jól működő logika alapján újraírva a MOSTANI HTML-hez.
   Cél:
   - balra sorszám
   - középen textarea
   - jobbra kompakt akcióoszlop
   - ne legyen szétesés több lépésnél sem
   ITT tudod állítani:
   - lépésblokk belső térköz: padding
   - textarea minimum magasság: min-height
   - akciógomb méret: width / height
   - gombok közti távolság: gap
   ==================================================================== */

/* Lépések teljes listája */
.myg-recipe-upload-wrapper #preparation-steps,
.myg-recipe-upload-wrapper .myg-steps-container {
    margin-top: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* Egy lépés sora */
.myg-recipe-upload-wrapper .myg-step-item,
.myg-recipe-upload-wrapper .step-item {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) 40px !important;
    grid-column-gap: 10px !important;
    align-items: start !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Sorszám */
.myg-recipe-upload-wrapper .myg-step-number,
.myg-recipe-upload-wrapper .step-number {
    grid-column: 1 / 2 !important;
    align-self: start !important;
    justify-self: start !important;
    padding-top: 12px !important;
    margin: 0 !important;

    font-weight: 600 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    color: #ff8630 !important;
}

/* Textarea – ez a fő mező */
.myg-recipe-upload-wrapper .myg-step-content,
.myg-recipe-upload-wrapper .step-content,
.myg-recipe-upload-wrapper textarea[name^="steps"] {
    grid-column: 2 / 3 !important;
    width: 100% !important;
    min-height: 108px !important; /* ITT tudod állítani */
    border-radius: 16px !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    background: #ffffff !important;
    padding: 14px 16px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    resize: vertical !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    margin: 0 !important;
    display: block !important;
}

/* Jobb oldali akcióoszlop */
.myg-recipe-upload-wrapper .myg-step-controls,
.myg-recipe-upload-wrapper .step-controls {
    grid-column: 3 / 4 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important; /* ITT tudod állítani */
    align-items: center !important;
    justify-content: flex-start !important;
    padding-top: 2px !important;
    margin: 0 !important;
}

/* Közös akciógomb alap */
.myg-recipe-upload-wrapper .myg-step-controls button,
.myg-recipe-upload-wrapper .step-controls button {
    width: 40px !important;   /* ITT tudod állítani */
    height: 40px !important;  /* ITT tudod állítani */
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 1px solid rgba(0,0,0,.06) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.05) !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

/* Fel / le nyilak */
.myg-recipe-upload-wrapper .myg-step-controls .move-up,
.myg-recipe-upload-wrapper .myg-step-controls .move-down,
.myg-recipe-upload-wrapper .step-controls .move-up,
.myg-recipe-upload-wrapper .step-controls .move-down {
    color: #ff8630 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

/* Törlés */
.myg-recipe-upload-wrapper .myg-step-controls .remove-step,
.myg-recipe-upload-wrapper .step-controls .remove-step,
.myg-recipe-upload-wrapper .remove-step.myg-btn-danger {
    color: #e45858 !important;
    font-size: 22px !important;
    font-weight: 500 !important;
    border-color: rgba(228,88,88,.14) !important;
}

/* Hover – finoman */
.myg-recipe-upload-wrapper .myg-step-controls .move-up:hover,
.myg-recipe-upload-wrapper .myg-step-controls .move-down:hover,
.myg-recipe-upload-wrapper .step-controls .move-up:hover,
.myg-recipe-upload-wrapper .step-controls .move-down:hover {
    background: #fff7f1 !important;
    border-color: rgba(255,138,61,.22) !important;
    box-shadow: 0 4px 12px rgba(255,138,61,.10) !important;
    transform: translateY(-1px) !important;
}

.myg-recipe-upload-wrapper .myg-step-controls .remove-step:hover,
.myg-recipe-upload-wrapper .step-controls .remove-step:hover,
.myg-recipe-upload-wrapper .remove-step.myg-btn-danger:hover {
    background: #fff4f4 !important;
    border-color: rgba(228,88,88,.20) !important;
    box-shadow: 0 4px 12px rgba(228,88,88,.08) !important;
    transform: translateY(-1px) !important;
}

/* Disabled állapot */
.myg-recipe-upload-wrapper .myg-step-controls .move-up[disabled],
.myg-recipe-upload-wrapper .myg-step-controls .move-down[disabled],
.myg-recipe-upload-wrapper .step-controls .move-up[disabled],
.myg-recipe-upload-wrapper .step-controls .move-down[disabled],
.myg-recipe-upload-wrapper .myg-step-controls .move-up:disabled,
.myg-recipe-upload-wrapper .myg-step-controls .move-down:disabled,
.myg-recipe-upload-wrapper .step-controls .move-up:disabled,
.myg-recipe-upload-wrapper .step-controls .move-down:disabled {
    opacity: .42 !important;
    cursor: not-allowed !important;
    background: #f7f7f7 !important;
    box-shadow: none !important;
    color: #d5b39a !important;
}

/* Új lépés gomb – finomabb */
#add-step,
.myg-btn.myg-btn-secondary {
    min-height: 46px !important;
    padding: 10px 18px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.06) !important;
    font-weight: 600 !important;
}

/* ====================================================================
   06/B) ELKÉSZÍTÉSI LÉPÉSEK – FÓKUSZ + GOMBFINOMÍTÁS
   Cél:
   - textarea fókuszban narancssárga keretet kapjon
   - fel/le gombok erősebbek legyenek
   - törlés gomb jobban igazodjon a hozzávalóknál használt stílushoz
   FONTOS:
   - ez KIEGÉSZÍTÉS a meglévő 06-os blokkhoz
   - az alap layoutot nem bántja
   ==================================================================== */

/* ----------------------------------------------------
   1) TEXTAREA FÓKUSZ – narancssárga keret + finom glow
   ---------------------------------------------------- */
.myg-recipe-upload-wrapper .myg-step-content:focus,
.myg-recipe-upload-wrapper .step-content:focus,
.myg-recipe-upload-wrapper textarea[name^="steps"]:focus,
.myg-recipe-upload-wrapper .myg-step-content:focus-visible,
.myg-recipe-upload-wrapper .step-content:focus-visible,
.myg-recipe-upload-wrapper textarea[name^="steps"]:focus-visible {
    outline: none !important;
    border-color: #ff8a3d !important;
    box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.14) !important;
}

/* ----------------------------------------------------
   2) FEL / LE GOMB – erősebb narancs, jobban látszódjon
   ITT tudod állítani:
   - ikon méret: font-size
   - ikon vastagságérzet: font-weight
   - ikon szín: color
   ---------------------------------------------------- */
.myg-recipe-upload-wrapper .myg-step-controls .move-up,
.myg-recipe-upload-wrapper .myg-step-controls .move-down,
.myg-recipe-upload-wrapper .step-controls .move-up,
.myg-recipe-upload-wrapper .step-controls .move-down {
    color: #ff8a3d !important;       /* ITT tudod állítani */
    font-size: 22px !important;      /* ITT tudod állítani */
    font-weight: 700 !important;     /* ITT tudod állítani */
    line-height: 1 !important;
    opacity: 1 !important;
}

/* Hover – finoman, de jobban látszódjon */
.myg-recipe-upload-wrapper .myg-step-controls .move-up:hover,
.myg-recipe-upload-wrapper .myg-step-controls .move-down:hover,
.myg-recipe-upload-wrapper .step-controls .move-up:hover,
.myg-recipe-upload-wrapper .step-controls .move-down:hover {
    color: #f07d29 !important;
    background: #fff7f1 !important;
    border-color: rgba(255,138,61,.24) !important;
    box-shadow: 0 4px 12px rgba(255,138,61,.12) !important;
}

/* Disabled – maradjon visszafogott, de azért látható */
.myg-recipe-upload-wrapper .myg-step-controls .move-up[disabled],
.myg-recipe-upload-wrapper .myg-step-controls .move-down[disabled],
.myg-recipe-upload-wrapper .step-controls .move-up[disabled],
.myg-recipe-upload-wrapper .step-controls .move-down[disabled],
.myg-recipe-upload-wrapper .myg-step-controls .move-up:disabled,
.myg-recipe-upload-wrapper .myg-step-controls .move-down:disabled,
.myg-recipe-upload-wrapper .step-controls .move-up:disabled,
.myg-recipe-upload-wrapper .step-controls .move-down:disabled {
    opacity: .38 !important;
    color: #d9b8a2 !important;
    background: #fafafa !important;
    box-shadow: none !important;
}

/* ----------------------------------------------------
   3) TÖRLÉS GOMB – közelebb a hozzávalóknál lévő X-hez
   ITT tudod állítani:
   - X méret: font-size
   - X szín: color
   ---------------------------------------------------- */
.myg-recipe-upload-wrapper .myg-step-controls .remove-step,
.myg-recipe-upload-wrapper .step-controls .remove-step,
.myg-recipe-upload-wrapper .remove-step.myg-btn-danger {
    color: #e45858 !important;       /* ITT tudod állítani */
    font-size: 21px !important;      /* ITT tudod állítani */
    font-weight: 600 !important;
    line-height: 1 !important;

    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,.06) !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.05) !important;
}

/* Törlés hover – ugyanaz a család, mint fent a hozzávalóknál */
.myg-recipe-upload-wrapper .myg-step-controls .remove-step:hover,
.myg-recipe-upload-wrapper .step-controls .remove-step:hover,
.myg-recipe-upload-wrapper .remove-step.myg-btn-danger:hover {
    color: #e45858 !important;
    background: #fff4f4 !important;
    border-color: rgba(230,90,90,.18) !important;
    box-shadow: 0 4px 12px rgba(230,90,90,.08) !important;
    transform: translateY(-1px) !important;
}

/* ====================================================================
   06/C) ELKÉSZÍTÉSI LÉPÉSEK – MAGASSÁG SZINKRON + DESKTOP NYÍL FINOMÍTÁS
   Cél:
   - a jobb oldali 3 gomb egyforma méretű legyen
   - a köztük lévő levegő kicsi és egyforma legyen
   - a textarea magassága igazodjon a 3 gomb teljes magasságához
   - desktopon a nyilak maradjanak vastagabb hatásúak
   FONTOS:
   - ezt a blokkot csak a fájl VÉGÉRE tedd
   - a 06 és 06/B blokkokat nem kell bántani
   ITT tudod állítani:
   - gombméret: --myg-step-btn-size
   - gombköz: --myg-step-btn-gap
   - textarea min. magasság: --myg-step-field-min-height
   ==================================================================== */

:root {
    --myg-step-btn-size: 36px;         /* ITT tudod állítani */
    --myg-step-btn-gap: 6px;           /* ITT tudod állítani */
    --myg-step-field-min-height: 120px; /* ITT tudod állítani */
}

/* Egyforma, kicsi levegő a jobb oldali oszlopban */
.myg-recipe-upload-wrapper .myg-step-controls,
.myg-recipe-upload-wrapper .step-controls {
    gap: var(--myg-step-btn-gap) !important;
    padding-top: 0 !important;
    justify-content: flex-start !important;
    align-self: start !important;
}

/* A 3 gomb legyen pontosan egyforma */
.myg-recipe-upload-wrapper .myg-step-controls button,
.myg-recipe-upload-wrapper .step-controls button,
.myg-recipe-upload-wrapper .myg-step-controls .move-up,
.myg-recipe-upload-wrapper .myg-step-controls .move-down,
.myg-recipe-upload-wrapper .myg-step-controls .remove-step,
.myg-recipe-upload-wrapper .step-controls .move-up,
.myg-recipe-upload-wrapper .step-controls .move-down,
.myg-recipe-upload-wrapper .step-controls .remove-step,
.myg-recipe-upload-wrapper .remove-step.myg-btn-danger {
    width: var(--myg-step-btn-size) !important;
    height: var(--myg-step-btn-size) !important;
    min-width: var(--myg-step-btn-size) !important;
    min-height: var(--myg-step-btn-size) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* A törlés ne kapjon külön plusz levegőt */
.myg-recipe-upload-wrapper .myg-step-controls .remove-step,
.myg-recipe-upload-wrapper .step-controls .remove-step,
.myg-recipe-upload-wrapper .remove-step.myg-btn-danger {
    margin-top: 0 !important;
    font-size: 18px !important;   /* ITT tudod állítani */
    font-weight: 600 !important;
}

/* A textarea magassága menjen össze a 3 gombos oszloppal */
.myg-recipe-upload-wrapper .myg-step-content,
.myg-recipe-upload-wrapper .step-content,
.myg-recipe-upload-wrapper textarea[name^="steps"] {
    min-height: var(--myg-step-field-min-height) !important;
}

/* Desktopon a nyíl maradjon optikailag vastagabb */
@media (min-width: 981px) {
    .myg-recipe-upload-wrapper .myg-step-controls .move-up,
    .myg-recipe-upload-wrapper .myg-step-controls .move-down,
    .myg-recipe-upload-wrapper .step-controls .move-up,
    .myg-recipe-upload-wrapper .step-controls .move-down {
        color: #ff8a3d !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        text-shadow:
            0.35px 0 currentColor,
           -0.35px 0 currentColor,
            0 0.35px currentColor,
            0 -0.35px currentColor !important; /* ITT tudod állítani */
    }

    .myg-recipe-upload-wrapper .myg-step-controls .move-up[disabled],
    .myg-recipe-upload-wrapper .myg-step-controls .move-down[disabled],
    .myg-recipe-upload-wrapper .step-controls .move-up[disabled],
    .myg-recipe-upload-wrapper .step-controls .move-down[disabled],
    .myg-recipe-upload-wrapper .myg-step-controls .move-up:disabled,
    .myg-recipe-upload-wrapper .myg-step-controls .move-down:disabled,
    .myg-recipe-upload-wrapper .step-controls .move-up:disabled,
    .myg-recipe-upload-wrapper .step-controls .move-down:disabled {
        text-shadow: none !important;
    }
}

/* ====================================================================
   07) MOBIL FINOMHANGOLÁS – LEPEDŐ SZÉLESÍTÉS + ALAPADATOK 1 OSZLOP
   Cél:
   - mobilon a külső lepedő legyen szélesebb
   - a belső tartalom NE fusson ki teljesen a lepedő széléig
   - az alapadatok 4 mezője kerüljön egymás alá
   FONTOS:
   - csak ezt a blokkot használd a korábbi 07 helyett
   ITT tudod állítani:
   - külső lepedő szélessége: width / margin-left / margin-right
   - belső tartalmi párna: padding
   - mezők közti távolság: gap
   - mobil mezőmagasság: height
   ==================================================================== */

@media (max-width: 700px) {

    /* ----------------------------------------------------
       1) KÜLSŐ LEPEDŐ – szélesebb, kevesebb tapéta látszódjon
       ---------------------------------------------------- */
    .mygasztro-upload-container.myg-recipe-upload-wrapper,
    .myg-recipe-upload-wrapper {
        width: calc(100vw - 16px) !important;
        max-width: none !important;
        margin-left: calc(50% - 50vw + 8px) !important;
        margin-right: calc(50% - 50vw + 8px) !important;

        box-sizing: border-box !important;
    }

    /* ----------------------------------------------------
       2) BELSŐ HASZNOS TARTALOM – maradjon szép pereme a lepedőnek
       ---------------------------------------------------- */
    .myg-recipe-upload-wrapper .recipe-form,
    .myg-recipe-upload-wrapper .myg-recipe-form {
        padding: 18px 18px 22px 18px !important; /* ITT tudod állítani */
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* ----------------------------------------------------
       3) SZEKCIÓCÍMEK – mobilon kicsit kisebb
       ---------------------------------------------------- */
    .myg-form-section > h2,
    .myg-form-section > h3,
    .myg-section-header {
        font-size: 1.28rem !important; /* ITT tudod állítani */
        line-height: 1.15 !important;
        margin-bottom: 1rem !important;
        padding-bottom: 0.45rem !important;
    }

    /* ----------------------------------------------------
       4) ALAPADATOK – 1 oszlop mobilon
       ---------------------------------------------------- */
    .myg-basic-info .myg-form-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important; /* ITT tudod állítani */
    }

    .myg-basic-info .myg-form-grid > .myg-form-group:first-child {
        grid-column: auto !important;
    }

    .myg-basic-info .myg-form-grid > .myg-form-group,
    .myg-basic-info .myg-form-grid > .myg-form-group:not(:first-child) {
        grid-column: auto !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    /* ----------------------------------------------------
       5) LABEL-EK – ne essenek szét idétlenül
       ---------------------------------------------------- */
    .myg-basic-info .myg-form-grid > .myg-form-group label,
    .myg-basic-info .myg-form-grid > .myg-form-group:not(:first-child) label,
    .myg-basic-info .myg-form-grid > .myg-form-group:first-child label {
        display: block !important;
        min-height: auto !important;
        margin-bottom: 8px !important;
        font-size: 0.96rem !important; /* ITT tudod állítani */
        line-height: 1.3 !important;
        font-weight: 600 !important;

        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }

    .myg-basic-info .myg-form-grid > .myg-form-group:first-child label {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }

    /* ----------------------------------------------------
       6) MOBIL MEZŐK – egységes, kényelmes méret
       ---------------------------------------------------- */
    .myg-basic-info .myg-form-grid .myg-form-group input,
    .myg-basic-info .myg-form-grid .myg-form-group select,
    .myg-basic-info .myg-form-grid .myg-form-group .myg-input,
    .myg-basic-info .myg-form-grid .myg-form-group .myg-select {
        width: 100% !important;
        height: 50px !important; /* ITT tudod állítani */
        min-height: 50px !important;
        padding: 0 14px !important;
        font-size: 1rem !important;
        border-radius: 16px !important;
        box-sizing: border-box !important;
    }

    /* ----------------------------------------------------
       7) KARAKTERSZÁMLÁLÓ – maradjon a helyén
       ---------------------------------------------------- */
    .myg-char-counter,
    .char-counter {
        margin-top: 6px !important;
        text-align: right !important;
        font-size: 0.92rem !important;
    }
}

/* ====================================================================
   08) MOBIL FINOMHANGOLÁS – HOZZÁVALÓ KÁRTYÁK FELVITT TÉTELNÉL
   Cél:
   - a név kapjon normális 3 soros teret
   - a név az ikonok alatti helyet is használja ki
   - a makró stabilan alul legyen
   - a név vége lehessen ...
   - a mennyiség és a név azonos méretű legyen
   FONTOS:
   - csak mobilon fut
   - desktophoz nem nyúl
   ITT tudod állítani:
   - kártya min. magasság
   - név betűméret
   - makró betűméret
   - gombok mérete/pozíciója
   ==================================================================== */

@media (max-width: 700px) {

    /* ----------------------------------------------------
       1) KÁRTYA ALAP
       ---------------------------------------------------- */
    .myg-ingredients-list .myg-ingredient-item {
        position: relative !important;
        display: block !important;
        padding: 12px 12px 52px 12px !important; /* alul hely a makrónak */
        min-height: 142px !important;            /* ITT tudod állítani */
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* ----------------------------------------------------
       2) FELSŐ AKCIÓGOMBOK – maradnak jobb felül
       ---------------------------------------------------- */
    .myg-ingredients-list .myg-ingredient-item__actions {
        position: absolute !important;
        top: 12px !important;     /* ITT tudod állítani */
        right: 12px !important;   /* ITT tudod állítani */

        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        align-items: flex-start !important;
        justify-content: flex-end !important;
        margin: 0 !important;
        z-index: 3 !important;
    }

    .myg-ingredients-list .myg-correction-btn,
    .myg-ingredients-list .myg-ingredient-item__remove {
        width: 42px !important;      /* ITT tudod állítani */
        height: 42px !important;     /* ITT tudod állítani */
        min-width: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
        margin: 0 !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        border-radius: 12px !important;
        box-sizing: border-box !important;
    }

    .myg-ingredients-list .myg-correction-btn .myg-icon,
    .myg-ingredients-list .myg-ingredient-item__remove .myg-icon {
        transform: scale(0.92) !important;
        transform-origin: center !important;
    }

    /* ----------------------------------------------------
       3) INFO BLOKK
       A név kapjon saját teret, de ne zárjuk le végig jobbról,
       csak a felső zónában hagyjunk helyet a gomboknak.
       ---------------------------------------------------- */
    .myg-ingredients-list .myg-ingredient-item__info {
        display: block !important;
        min-height: 74px !important;
        padding-right: 112px !important; /* felső soroknál hely a gomboknak */
        box-sizing: border-box !important;
    }

    /* mennyiség és név: azonos méret */
    .myg-ingredients-list .myg-ingredient-item__quantity,
    .myg-ingredients-list .myg-ingredient-item__name {
        font-size: 0.94rem !important;   /* ITT tudod állítani */
        line-height: 1.22 !important;
    }

    .myg-ingredients-list .myg-ingredient-item__quantity {
        display: inline !important;
        white-space: nowrap !important;
        margin-right: 6px !important;
        vertical-align: top !important;
        font-weight: 600 !important;
    }

    /* ----------------------------------------------------
       4) NÉV – 3 sor, utána ...
       Trükk:
       - blokkosítjuk
       - a 3 soros clamp miatt nem lóg szét
       - a szöveg használhatja a teljes szélességet az alsóbb sorokban
       ---------------------------------------------------- */
    .myg-ingredients-list .myg-ingredient-item__name {
        display: -webkit-box !important;
        display: box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 3 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;

        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;

        max-width: 100% !important;
        vertical-align: top !important;
    }

    /* ----------------------------------------------------
       5) MAKRÓK – fixen alul
       ---------------------------------------------------- */
    .myg-ingredients-list .myg-ingredient-item__macros {
        position: absolute !important;
        left: 12px !important;
        right: 12px !important;
        bottom: 12px !important;      /* ITT tudod állítani */

        display: block !important;
        width: auto !important;
        max-width: none !important;
        box-sizing: border-box !important;

        margin: 0 !important;
        padding: 7px 10px !important;
        border-radius: 10px !important;

        font-size: 0.76rem !important;  /* ITT tudod állítani */
        line-height: 1.15 !important;
        text-align: left !important;

        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* ----------------------------------------------------
       6) SZŰKEBB MOBIL – picit kompaktabb
       ---------------------------------------------------- */
    @media (max-width: 420px) {
        .myg-ingredients-list .myg-ingredient-item {
            padding: 11px 11px 50px 11px !important;
            min-height: 138px !important;
        }

        .myg-ingredients-list .myg-ingredient-item__actions {
            top: 11px !important;
            right: 11px !important;
            gap: 6px !important;
        }

        .myg-ingredients-list .myg-correction-btn,
        .myg-ingredients-list .myg-ingredient-item__remove {
            width: 40px !important;
            height: 40px !important;
            min-width: 40px !important;
            min-height: 40px !important;
        }

        .myg-ingredients-list .myg-ingredient-item__info {
            padding-right: 100px !important;
        }

        .myg-ingredients-list .myg-ingredient-item__quantity,
        .myg-ingredients-list .myg-ingredient-item__name {
            font-size: 0.92rem !important;
        }

        .myg-ingredients-list .myg-ingredient-item__macros {
            left: 11px !important;
            right: 11px !important;
            bottom: 11px !important;
            font-size: 0.74rem !important;
            padding: 6px 9px !important;
        }
    }
}