/* =====================================================================
   MasterKeys – egyedi child theme CSS
   A korábbi functions.php-beli inline <style> blokkok összevonva.

   Tartalom:
   1. Checkout – jogi checkbox doboz
   2. Checkout – céges mezők alapból rejtve
   3. Checkout – "(nem kötelező)" felirat elrejtése a céges mezőknél
   4. Termékoldal – értékelések (reviews) megjelenés + űrlap
   5. Globális – "kosárba téve" pipa elrejtése
   6. My account – rendelés gombok sora
   7. Termékoldal – ár melletti megtakarítás badge
   8. Thank you oldal – e-mail kézbesítési figyelmeztetés
   9. Single product – nemrég megtekintett termékek
   ===================================================================== */

/* ---------------------------------------------------------------------
   Termékoldal loop kártyák reviews eltüntetése ami BeTheme WP alapú.
   --------------------------------------------------------------------- */

.woocommerce ul.products.mfn-stars-visible-rate .wc-rating-with-text {
    display: none;
}

/* ---------------------------------------------------------------------
   5. GLOBÁLIS – "kosárba téve" pipa elrejtése
   --------------------------------------------------------------------- */

.added_to_cart.wc-forward,
.woocommerce a.added_to_cart,
.woocommerce-page a.added_to_cart,
.product .button.added::after,
.product .add_to_cart_button.added::after {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    content: none !important;
}


/* ---------------------------------------------------------------------
   6. MY ACCOUNT – rendelés gombok sora
   --------------------------------------------------------------------- */

#custom-order-actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

#custom-order-actions-bar .button {
    margin: 0 !important;
}


/* ---------------------------------------------------------------------
   7. TERMÉKOLDAL – ár melletti megtakarítás badge
   --------------------------------------------------------------------- */

.mk-price-with-saving {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 6px;
    max-width: 100%;
    vertical-align: middle;
}

.mk-price-main {
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
    min-height: 1em;
}

.mk-price-main del,
.mk-price-main ins,
.mk-price-main bdi,
.mk-price-main .woocommerce-Price-amount,
.mk-price-main .amount {
    line-height: 1 !important;
}

.mk-price-main ins {
    text-decoration: none;
}

.mk-price-saving-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    padding: 10px;
    border-radius: 5px;
    background-color: rgba(255, 17, 0, 0.08);
    color: #FF1100;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    top: 2.5px;
}

@media (max-width: 767px) {
    .mk-price-with-saving {
        column-gap: 8px;
        row-gap: 5px;
    }
    .mk-price-saving-badge {
        font-size: 12px;
        padding: 5px 10px;
        top: 1px;
    }
}

/*
 * Elso interakcio kapu.
 * A BeTheme mar oldalbetolteskor felteszi a mfn-cookies-open body class-t,
 * ezert a bannert itt tartjuk rejtve addig, amig az mk-custom.js nem igazol
 * valodi felhasznaloi interakciot.
 */
html:not(.mk-interacted) .mfn-cookies,
html:not(.mk-interacted) #mfn-consent-mode,
html:not(.mk-interacted) .mfn-cookies-reopen,
html:not(.mk-interacted) #mk-sticky-menu {
    display: none !important;
}

/* Cookie újranyitó gomb 50px-el feljebb mobilon és tableten */
@media (max-width: 1024px) {
    .mfn-cookies-reopen {
        transform: translate(-15px) !important;
    }
}


/* ---------------------------------------------------------------------
   8. THANK YOU OLDAL – e-mail kézbesítési figyelmeztetés
   (Markup: functions.php -> mk_thankyou_mail_notice)
   --------------------------------------------------------------------- */

.mk-mail-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 26px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 17, 0, 0.22);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 17, 0, 0.05), rgba(255, 17, 0, 0.02));
    text-align: left;
    transition: transform .25s ease, box-shadow .25s ease;
}

.mk-mail-notice:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px -18px rgba(255, 17, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .mk-mail-notice {
        transition: none;
    }
    .mk-mail-notice:hover {
        transform: none;
    }
}

.mk-mail-notice-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin-top: 2px;
    border-radius: 12px;
    background: rgba(255, 17, 0, 0.09);
    color: #FF1100;
}

.mk-mail-notice-body {
    min-width: 0;
}

.mk-mail-notice-title {
    display: block;
    margin: 0 0 8px;
    color: #081c3f;
    font-size: 15.5px;
    font-weight: 750;
    line-height: 1.35;
}

.mk-mail-notice-body p {
    margin: 0 0 10px;
    color: #4b5568;
    font-size: 13.5px;
    line-height: 1.6;
}

.mk-mail-notice-body p:last-child {
    margin-bottom: 0;
}

.mk-mail-notice-body a {
    color: #FF1100;
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .mk-mail-notice {
        gap: 12px;
        padding: 16px;
        border-radius: 14px;
    }
    .mk-mail-notice-ico {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }
    .mk-mail-notice-title {
        font-size: 14.5px;
    }
    .mk-mail-notice-body p {
        font-size: 13px;
    }
}


/* ---------------------------------------------------------------------
   9. SINGLE PRODUCT – nemrég megtekintett termékek
   (Markup: includes/mk-recent-products.php, JS: assets/js/mk-recent.js.
    A kartyak a gyari [products] loopbol jonnek, sajat stilust nem
    igenyelnek, itt csak a szekcio kerete van.)
   --------------------------------------------------------------------- */

/* Preserve the component's hidden state over its block/flex layout rules. */
.mk-recent[hidden],
.mk-recent .mk-recent-pager[hidden] {
    display: none !important;
}

.mk-recent {
    display: block;
    width: 100%;
    margin: 48px 0 8px;
    text-align: left;
}

.mk-recent-head {
    margin: 0 0 22px;
}

.mk-recent-title {
    margin: 0 0 6px;
    color: #0b1a48;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.25;
}

.mk-recent-sub {
    margin: 0;
    color: #7b8494;
    font-size: 14.5px;
    line-height: 1.5;
}

/* Fejlec: cim balra, lapozo jobbra */
.mk-recent-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

/* Recent products retain their native responsive pager grid.
   Card appearance is shared in mk-catalog-cards.css. */
.mk-recent .mk-recent-body ul.products {
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
    width:100%;
    margin:0!important;
    padding:0!important;
    list-style:none;
}
.mk-recent .mk-recent-body ul.products > li.product {
    width:100%!important;
    margin:0!important;
    float:none!important;
    opacity:1!important;
    visibility:visible!important;
    position:relative!important;
    inset:auto!important;
    transform:none!important;
}
.mk-recent .mk-recent-body ul.products > li.product[hidden]{display:none!important}
.mk-recent .mk-recent-body .products_wrapper{height:auto!important}
/* --- Lapozo ---
   FONTOS: a BeTheme globalis button szabalyai (pl. button:hover
   background: var(--mfn-button-bg-hover) -> zold) minden gombra
   ravetulnek, ezert itt MINDEN allapotot explicit, !important-tal
   definialunk. --- */
.mk-recent-pager {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mk-recent-nav,
.mk-recent-nav:focus,
.mk-recent-nav:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #e4e9f1 !important;
    border-radius: 50% !important;
    background: #fff !important;
    background-image: none !important;
    color: #0b1a48 !important;
    box-shadow: none !important;
    line-height: 1 !important;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.mk-recent-nav:hover:not(:disabled) {
    background: #fff !important;
    background-image: none !important;
    border-color: #ff1100 !important;
    color: #ff1100 !important;
    transform: translateY(-1px);
}

.mk-recent-nav:disabled {
    opacity: .35 !important;
    cursor: default;
}

/* BeTheme gomb-animacios ::after retegek kiiktatasa */
.mk-recent-nav::after,
.mk-recent-nav::before,
.mk-recent-dot::after,
.mk-recent-dot::before {
    content: none !important;
    display: none !important;
}

.mk-recent-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.mk-recent-dot,
.mk-recent-dot:focus,
.mk-recent-dot:active {
    width: 8px !important;
    height: 8px !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 100px !important;
    background: #d4dae4 !important;
    background-image: none !important;
    box-shadow: none !important;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background .2s ease, width .2s ease;
}

.mk-recent-dot:hover {
    background: #aeb8c6 !important;
    background-image: none !important;
}

.mk-recent-dot.is-active,
.mk-recent-dot.is-active:hover,
.mk-recent-dot.is-active:focus {
    width: 22px !important;
    background: #ff1100 !important;
    background-image: none !important;
}

@media (max-width: 1023px) {
    .mk-recent .mk-recent-body ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 767px) {
    .mk-recent {
        margin-top: 36px;
    }
    .mk-recent-title {
        font-size: 22px;
        letter-spacing: -.5px;
    }
    .mk-recent .mk-recent-body ul.products {
        grid-template-columns: minmax(0, 1fr);
    }
    .mk-recent-nav {
        width: 36px;
        height: 36px;
    }
}
