/* ==========================================================================
   Freyja – WooCommerce alap elrendezés
   A korábbi WoodMart téma szerkezetét és alap méreteit adja vissza; a Freyja-
   színeket és kártyákat a saját pluginok rakják rá:
   - WC Freyja Kosár és Pénztár Stílus (kosár, pénztár)
   - WC Freyja Fiók Stílus (Fiókom)
   - WC Freyja Termékoldal Stílus (termékoldal)
   Ezért itt szándékosan nincsenek színes kártyák, csak elrendezés és alapok.
   ========================================================================== */

/* ---------- WooCommerce oldalak: krémszínű fejléc, szöveg Montserrattal ---------- */
.freyja-shop .site-header:not(.is-stuck):not(.site-header--dark) { background: var(--f-cream); }
.freyja-shop .site-main { padding-top: 30px; }
.freyja-shop .woocommerce { font-family: var(--f-font); }
/* A WooCommerce oldalak tartalma az .entry-content-ben van – ott ne legyen aláhúzás minden linken
   (a fiókmenün, gombokon); a szövegközi linkeket a Fiók Stílus plugin színezi. */
.freyja-shop .entry-content a { text-decoration: none; }

/* A kosár/pénztár plugin 120px felső belső margót ad minden .woocommerce elemre (a WoodMart
   átlátszó fejléce miatt kellett; a kosárnál kétszer is, egymásba ágyazva). Nálunk a fejléc
   a helyén van, ezért kinullázzuk – különben nagy üres hézag marad a lépéssáv fölött. */
body.woocommerce-cart .site-main .woocommerce,
body.woocommerce-checkout .site-main .woocommerce,
body.woocommerce-cart .site-main div.woocommerce,
body.woocommerce-checkout .site-main div.woocommerce { padding-top: 0 !important; }

/* ---------- Értesítések (WoodMart-szerű: az info sima szöveg, a többi színes sáv) ---------- */
.woocommerce .woocommerce-info,
.woocommerce-page .woocommerce-info {
	background: transparent; border: 0; padding: 0; margin: 0 0 20px; color: #242424; font-size: 16px; font-weight: 600;
}
.woocommerce .woocommerce-info::before { display: none; }
.woocommerce .woocommerce-info a { color: var(--f-navy-3); text-decoration: underline; text-underline-offset: 3px; }
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error {
	border: 0; border-radius: 0; margin: 0 0 20px; padding: 14px 20px 14px 50px; color: #fff; font-weight: 600; font-size: 15px; list-style: none;
}
.woocommerce .woocommerce-message { background: #459647; }
.woocommerce .woocommerce-error { background: #e01020; }
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-error::before { color: #fff; top: 50%; transform: translateY(-50%); left: 20px; }
.woocommerce .woocommerce-message a:not(.button),
.woocommerce .woocommerce-error a { color: #fff; text-decoration: underline; }
.woocommerce .woocommerce-message .button { background: rgba(255,255,255,.2); color: #fff; border: 0; padding: 6px 14px; margin-left: 12px; float: right; }

/* ---------- Gombok (alap – a pluginok felülírják a saját oldalukon) ---------- */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit {
	background: var(--f-navy); color: #fff; border-radius: 0; font-family: var(--f-font); font-weight: 600; font-size: 13px;
	text-transform: uppercase; letter-spacing: .3px; padding: 12px 20px; border: 0; line-height: 18px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--f-navy-2); color: #fff; }
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--f-navy); color: #fff; }

/* ---------- Mennyiség +/- (mint a WoodMart) ---------- */
.woocommerce .quantity { display: inline-flex; align-items: center; gap: 4px; }
.woocommerce .quantity .minus,
.woocommerce .quantity .plus {
	display: inline-flex; align-items: center; justify-content: center; width: 25px; min-width: 25px; height: 42px; padding: 0 5px;
	background: transparent; border: 1px solid rgba(0,0,0,.1); border-radius: 0; color: var(--f-navy); font-size: 15px; line-height: 1;
	cursor: pointer; font-family: var(--f-font); box-shadow: none;
}
.woocommerce .quantity .minus:hover, .woocommerce .quantity .plus:hover { background: var(--f-navy); color: #fff; border-color: var(--f-navy); }
.woocommerce .quantity .qty { width: 60px; height: 42px; text-align: center; font-weight: 700; -moz-appearance: textfield; padding: 0; }
.woocommerce .quantity .qty::-webkit-inner-spin-button,
.woocommerce .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.woocommerce .quantity input[type="hidden"] ~ .plus,
.woocommerce .quantity:has(input[type="hidden"]) .minus { display: none; }

/* ==========================================================================
   Kosár – két oszlop (táblázat + összesítő)
   ========================================================================== */
.woocommerce-cart .cart-content-wrapper { display: flex; align-items: flex-start; gap: 30px; }
.woocommerce-cart .cart-content-wrapper > .woocommerce-cart-form { flex: 1 1 auto; min-width: 0; width: 61.5%; }
.woocommerce-cart .cart-content-wrapper > .cart-collaterals { flex: 0 0 36%; width: 36%; max-width: 36%; display: block; }
.woocommerce-cart .cart-content-wrapper .cart-collaterals .cart_totals { width: 100%; float: none; }
/* Automatikus frissítés: a „Kosár frissítése” gomb nem kell (a WoodMart is elrejtette) */
.woocommerce-cart .woocommerce-cart-form button[name="update_cart"] { display: none !important; }
.woocommerce-cart table.shop_table td.product-thumbnail img { width: 80px; height: auto; max-width: 80px; }
.woocommerce-cart table.shop_table .product-remove a.remove { font-size: 18px; width: 22px; height: 22px; line-height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.woocommerce-cart .actions .coupon { display: flex; gap: 10px; align-items: center; }
.woocommerce-cart table.cart td.actions .coupon .input-text { width: 230px !important; height: 44px; padding: 0 12px; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { display: flex !important; align-items: center; justify-content: center; text-align: center; }
@media (max-width: 1024px) {
	.woocommerce-cart .cart-content-wrapper { flex-direction: column; align-items: stretch; }
	.woocommerce-cart .cart-content-wrapper > .woocommerce-cart-form,
	.woocommerce-cart .cart-content-wrapper > .cart-collaterals { width: 100%; max-width: 100%; flex: 1 1 auto; }
}

/* ==========================================================================
   Pénztár – összesítő sorai (kép + név + nap + mennyiség + összeg)
   ========================================================================== */
/* A táblázat flexbox-szal rendezve (mint a WoodMart): fejléc 2 oszlop, terméksor teljes szélesség,
   összesítő sorok: címke 160px + érték. A plugin által rejtett sorok rejtve maradnak. */
.woocommerce-checkout-review-order-table { display: flex; flex-direction: column; }
.woocommerce-checkout-review-order-table thead,
.woocommerce-checkout-review-order-table tbody,
.woocommerce-checkout-review-order-table tfoot { display: block; width: 100%; }
.woocommerce-checkout-review-order-table thead tr,
.woocommerce-checkout-review-order-table tbody tr,
.woocommerce-checkout-review-order-table tfoot tr { display: flex; width: 100%; }
.woocommerce-checkout-review-order-table thead th { display: block; flex: 1 1 50%; }
.woocommerce-checkout-review-order-table tfoot th { display: block; flex: 0 0 160px; }
.woocommerce-checkout-review-order-table tfoot td { display: block; flex: 1 1 auto; }
.woocommerce-checkout-review-order-table td.wd-checkout-prod { display: flex; flex: 1 1 100%; align-items: center; gap: 0; padding: 12px 18px; }
.woocommerce-checkout-review-order-table .wd-checkout-remove-btn-wrapp { display: none; }
.woocommerce-checkout-review-order-table .wd-checkout-prod-img { flex: 0 0 auto; margin-right: 10px; }
.woocommerce-checkout-review-order-table .wd-checkout-prod-img img { display: block; }
.woocommerce-checkout-review-order-table .wd-checkout-prod-cont { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.woocommerce-checkout-review-order-table .wd-checkout-prod-title { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.woocommerce-checkout-review-order-table .cart-product-label-link { text-decoration: none; }
.woocommerce-checkout-review-order-table .cart-product-label { font-size: 14px; color: #333; }
.woocommerce-checkout-review-order-table .wd-checkout-prod-title .variation { order: 2; margin: 0; font-size: 12.6px; }
.woocommerce-checkout-review-order-table .wd-checkout-prod-title .quantity { order: 3; }
.woocommerce-checkout-review-order-table .wd-checkout-prod-title .variation dt,
.woocommerce-checkout-review-order-table .wd-checkout-prod-title .variation dd { display: inline; margin: 0; float: none; }
.woocommerce-checkout-review-order-table .wd-checkout-prod-title .variation dd p { display: inline; margin: 0; }
.woocommerce-checkout-review-order-table .wd-checkout-prod-total { flex: 0 0 auto; white-space: nowrap; text-align: right; font-size: 14px; }
.woocommerce-checkout-review-order-table .quantity .minus,
.woocommerce-checkout-review-order-table .quantity .plus { height: 32px; }
.woocommerce-checkout-review-order-table .quantity .qty { width: 40px; height: 44px; }

/* ==========================================================================
   Fiókom – bal oldali sáv + tartalom (mint a WoodMart)
   ========================================================================== */
.wd-my-account-wrapper { display: grid; grid-template-columns: minmax(0, 25%) minmax(0, 1fr); gap: 30px; align-items: start; }
.wd-my-account-sidebar { padding-right: 30px; border-right: 1px solid rgba(0,0,0,.105); min-width: 0; }
.woocommerce-account .woocommerce-MyAccount-title {
	margin: 0 0 20px; padding: 0 10px 10px 15px; border-bottom: 1px solid rgba(0,0,0,.105);
	font-family: var(--f-font); font-size: 18px; font-weight: 500; text-transform: uppercase; color: #242424; line-height: 1.4;
}
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content { width: auto; float: none; min-width: 0; }
.woocommerce-account .woocommerce-MyAccount-content > p:first-child { margin-top: 0; }

/* Vezérlőpult csempék (a kártya-stílust a Fiók Stílus plugin adja) */
.wd-my-account-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 25px 0 0; padding: 0; }
.wd-my-account-links li { margin: 0; }
.wd-my-account-links .wd-nav-icon { display: inline-flex; color: #777; line-height: 0; }
.wd-my-account-links a:hover .wd-nav-icon { color: var(--f-gold); }

@media (max-width: 768px) {
	.wd-my-account-wrapper { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.wd-my-account-sidebar { padding-right: 0; border-right: 0; }
	.wd-my-account-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
	.wd-my-account-links { grid-template-columns: minmax(0, 1fr); }
}

/* Belépés / regisztráció – két oszlop, regisztráció fül */
.wd-registration-page { max-width: 1000px; margin: 0 auto; }
.wd-registration-page .wd-grid-f-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wd-registration-page .wd-col { padding: 0 40px; min-width: 0; }
.wd-registration-page .col-register { display: none; }
.wd-registration-page.active-register .col-login { display: none; }
.wd-registration-page.active-register .col-register { display: block; }
.wd-registration-page:not(.wd-register-tabs) .wd-grid-f-col { grid-template-columns: minmax(0, 1fr); max-width: 540px; margin: 0 auto; }
.wd-registration-page .col-register-text { border-left: 1px solid rgba(0,0,0,.105); text-align: center; display: flex; flex-direction: column; justify-content: center; }
.wd-registration-page .wd-login-title { font-family: var(--f-font); font-size: 24px; font-weight: 500; color: #242424; margin: 0 0 20px; text-align: left; }
.wd-registration-page .col-register-text .wd-login-title { text-align: center; }
.wd-registration-page .col-register-text p { font-size: 15px; line-height: 1.7; margin: 0 0 20px; }
.wd-registration-page .wd-switch-to-register {
	align-self: center; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 5px 20px;
	background: var(--f-navy); color: #fff; border: 0; font-family: var(--f-font); font-size: 13px; font-weight: 500; text-transform: uppercase; cursor: pointer;
}
.wd-registration-page .wd-switch-to-register:hover { background: var(--f-navy-2); }
.wd-registration-page .form-row-btn button { width: 100%; }
.wd-registration-page .login-form-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; }
@media (max-width: 768px) {
	.wd-registration-page .wd-grid-f-col { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	.wd-registration-page .wd-col { padding: 0; }
	.wd-registration-page .col-register-text { border-left: 0; border-top: 1px solid rgba(0,0,0,.105); padding-top: 30px; }
}

/* ==========================================================================
   Bolt (archívum) – WoodMart „hover info” kártyák: név fent, ár lent, a képen
   ========================================================================== */
.woocommerce .woocommerce-ordering { float: right; margin: 0 0 30px; }
.woocommerce .woocommerce-ordering select { width: auto; height: 30px; padding: 5px 20px 5px 2px; border: 0; background-color: transparent; font-weight: 600; font-size: 16px; color: #242424; }
.woocommerce ul.products { clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { position: relative; width: auto !important; margin: 0 !important; float: none !important; padding: 0; text-align: left; background: transparent; transition: background .2s, box-shadow .2s; }
.woocommerce ul.products li.product:hover { background: #fff; box-shadow: 0 0 4px rgba(0,0,0,.12); z-index: 2; }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; color: inherit; text-decoration: none; }
.freyja-loop-img { position: absolute; inset: 0; display: block; }
.woocommerce ul.products li.product .freyja-loop-img > img { width: 100%; height: 100%; object-fit: contain; margin: 0; }
.freyja-loop-top { position: absolute; left: 25px; right: 90px; top: 88px; z-index: 2; display: block; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0; margin: 0 0 6px; font-family: var(--f-font); font-size: 16px; font-weight: 500; line-height: 1.4; color: #333; }
.freyja-loop-cats { display: block; font-size: 15px; color: #b17575; line-height: 1.4; }
.freyja-loop-bottom { position: absolute; left: 25px; right: 85px; bottom: 17px; z-index: 2; display: block; }
.woocommerce ul.products li.product .price { margin: 0; font-size: 16px; font-weight: 600; color: var(--f-navy-3); line-height: 1.4; display: block; }
.woocommerce ul.products li.product .price .freyja-family-hint { display: block; font-size: 1em; font-weight: 600; color: inherit; margin-top: 2px; }
.woocommerce ul.products li.product .onsale { display: none; }
@media (max-width: 860px) { .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } .freyja-loop-top { top: 64px; left: 15px; } .freyja-loop-bottom { left: 15px; } }
@media (max-width: 480px) { .woocommerce ul.products { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Termékoldal – két kártya (kép + leírás); a kártyákat a Termékoldal Stílus plugin adja
   ========================================================================== */
.woocommerce div.product { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto; float: none; margin: 0; min-width: 0; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product div.images .woocommerce-product-gallery__image img { width: 100%; height: auto; }
/* A WooCommerce galéria a JS betöltéséig átlátszó – egy képnél ne várjon rá */
.woocommerce div.product div.images.woocommerce-product-gallery { opacity: 1 !important; }
.woocommerce div.product .product_title { font-family: var(--f-font); }
.woocommerce div.product form.cart { display: none; } /* rendelés a heti tervezőben */
.woocommerce div.product .summary .price .freyja-family-hint { display: block; font-size: 20px; line-height: 1.25; margin-top: 4px; }
.woocommerce div.product .product_meta > span { display: block; margin-bottom: 2px; }
.freyja-product-nav { display: flex; gap: 6px; align-items: center; margin: 0 0 24px; color: #777; }
.freyja-product-nav a { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; color: #b17575; }
.freyja-product-nav a:hover { color: var(--f-navy); }
.woocommerce div.product .woocommerce-tabs .panel h2:first-child { display: none; }

/* „Átvételi tájékoztató” fül */
.freyja-pickup-tab { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; align-items: center; }
.freyja-pickup-tab__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.freyja-pickup-tab__gallery img { width: 100%; height: auto; border-radius: 12px; }
.freyja-pickup-tab__text h3 { font-size: 18px; margin: 0 0 12px; color: var(--f-navy); }
.freyja-pickup-tab__text h4 { font-size: 15px; margin: 18px 0 10px; color: var(--f-navy); }
@media (max-width: 860px) {
	.woocommerce div.product, .freyja-pickup-tab { grid-template-columns: minmax(0, 1fr); }
}
/* Fekvő telefonon a négyzetes termékkép teljes szélességben több képernyőnyi magas lenne –
   ott maradjon a két oszlop (kép balra, adatok jobbra). */
@media (max-width: 860px) and (min-width: 560px) and (orientation: landscape) {
	.woocommerce div.product { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; }
}

/* Freyja Family ár (wc-freyja-family-price) – a régi YITH szöveg stílusában */
.freyja-family-hint { display: block; color: var(--f-navy); font-weight: 700; }
.freyja-family-hint a { color: inherit; text-decoration: none; }
.freyja-family-badge { display: inline-block; margin-left: .4em; padding: .15em .6em; border-radius: 999px; background: var(--f-gold-soft); color: var(--f-gold-dark); font-size: .6em; font-weight: 700; vertical-align: middle; }
.freyja-family-cart-hint td { text-align: center; background: var(--f-gold-soft); font-weight: 600; }
.freyja-family-cart-hint a { color: var(--f-navy); }
.freyja-family-cart-saving th, .freyja-family-cart-saving td { color: var(--f-gold-dark); }
.woocommerce span.onsale { background: var(--f-gold); color: var(--f-navy); min-height: 0; min-width: 0; line-height: 1; padding: .55em .9em; border-radius: 999px; font-weight: 700; }

/* Heti tervező (wc-heti-etkezes-tervezo): a sticky táblázatfejléc a téma ragadó fejléce alá kerüljön */
body .wmp-wrapper { --wmp-sticky-offset: var(--freyja-header-offset, 0px); --wmp-sticky-offset-mobile: var(--freyja-header-offset, 0px); }

/* Fiókom – címek: két egyforma oszlop (WoodMart-szerűen) */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses,
.woocommerce-account .woocommerce-MyAccount-content .u-columns.addresses { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:stretch; margin-top:20px; }
.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after { display:none !important; content:none !important; }
.woocommerce-account .woocommerce-Addresses > .woocommerce-Address { float:none !important; width:auto !important; max-width:none !important; margin:0 !important; }
.woocommerce-account .woocommerce-Address-title::before,
.woocommerce-account .woocommerce-Address-title::after { display:none !important; content:none !important; }
.woocommerce-account .woocommerce-Address-title { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px 16px; }
.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3 { margin:0; }
.woocommerce-account .woocommerce-Address-title .edit { white-space:nowrap; }
@media (max-width: 768px) {
	.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses,
	.woocommerce-account .woocommerce-MyAccount-content .u-columns.addresses { grid-template-columns:minmax(0,1fr); }
}
@media (max-width: 768px) { .woocommerce ul.products { gap: 10px; } }

.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3 { font-size:16px; font-weight:700; letter-spacing:1px; color:#051334; text-transform:uppercase; }
.woocommerce-account .woocommerce-Address-title a.edit { font-size:12px; font-weight:600; letter-spacing:.8px; color:#051334; white-space:normal; text-decoration:none; }
.woocommerce-account .woocommerce-Address-title a.edit::before { content:""; display:inline-block; width:12px; height:12px; margin-right:7px; vertical-align:-1px; background:currentColor;
	-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h13a2 2 0 0 0 2-2v-6'/%3E%3Cpath d='M18.5 2.5a2.1 2.1 0 0 1 3 3L12 15l-4 1 1-4z'/%3E%3C/svg%3E") center/contain no-repeat;
	mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h13a2 2 0 0 0 2-2v-6'/%3E%3Cpath d='M18.5 2.5a2.1 2.1 0 0 1 3 3L12 15l-4 1 1-4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.woocommerce-checkout-review-order-table thead th.product-total { text-align: right; }

/* Pénztár – WoodMart-szerű címsorok, „(nem kötelező)” jelölés, fizetési blokk háttér nélkül */
.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout .woocommerce-shipping-fields > h3,
.woocommerce-checkout .woocommerce-additional-fields > h3 { font-size: 22px; font-weight: 500; text-transform: uppercase; color: #242424; margin: 0 0 20px; }
.woocommerce form .form-row label .optional { font-size: 9.6px; font-weight: 500; text-transform: uppercase; color: #bbb; letter-spacing: .4px; vertical-align: super; }
.woocommerce-checkout #payment { background: transparent !important; border-radius: 0; padding: 0; }
.woocommerce-checkout #payment ul.payment_methods { padding: 0 0 20px; border: 0; }
.woocommerce-checkout #payment div.form-row.place-order { padding: 0; margin: 0; }
.woocommerce-checkout .woocommerce-privacy-policy-text p { font-size: 16px; color: #4d4d4d; margin: 0 0 20px; }
.woocommerce-checkout-review-order-table tfoot th { white-space: normal; }
.woocommerce-checkout-review-order-table tfoot tr > th { flex: 0 0 160px !important; max-width: 160px; }
.woocommerce-checkout-review-order-table tfoot tr > th, .woocommerce-checkout-review-order-table tfoot tr > th * { white-space: normal !important; overflow-wrap: normal; line-height: 1.35; }
.woocommerce-checkout-review-order-table tfoot tr.freyja-family-cart-saving > th { font-size: 11px !important; letter-spacing: .5px !important; }

/* ==========================================================================
   Kosár – mobil (WoodMart-szerű: kép balra, adatok jobbra soronként)
   ========================================================================== */
@media (max-width: 768px) {
	.woocommerce-cart table.shop_table.cart { display: block; border: 1px solid #e6e1d9; background: #fff; }
	.woocommerce-cart table.shop_table.cart thead { display: none; }
	.woocommerce-cart table.shop_table.cart tbody { display: block; position: relative; }
	.woocommerce-cart table.shop_table.cart tr.cart_item { display: flex !important; flex-direction: column; flex-wrap: wrap; position: relative; padding: 0 0 15px 115px; background: #fff; border-top: 1px solid #e6e1d9; }
	.woocommerce-cart table.shop_table.cart tr.cart_item:first-child { border-top: 0; }
	.woocommerce-cart table.shop_table.cart tr.cart_item td { display: flex !important; align-items: center; justify-content: space-between; width: 100%; padding: 8px 12px; border: 0; text-align: right; font-size: 14px; box-sizing: border-box; }
	.woocommerce-cart table.shop_table.cart tr.cart_item td::before { float: none !important; font-size: 12px; font-weight: 600; text-transform: uppercase; color: #575b66; }
	.woocommerce-cart table.shop_table.cart tr.cart_item td.product-thumbnail { display: flex !important; position: absolute; left: 1px; top: 1px; width: 124px; padding: 8px 12px; }
	.woocommerce-cart table.shop_table.cart tr.cart_item td.product-thumbnail::before,
	.woocommerce-cart table.shop_table.cart tr.cart_item td.product-name::before,
	.woocommerce-cart table.shop_table.cart tr.cart_item td.product-remove::before { display: none !important; content: none !important; }
	.woocommerce-cart table.shop_table.cart tr.cart_item td.product-thumbnail img { width: 100px !important; height: 88px; object-fit: contain; max-width: none; }
	.woocommerce-cart table.shop_table.cart tr.cart_item td.product-remove { position: absolute; right: -5px; top: -3px; width: 44px; padding: 8px 12px 8px 10px; justify-content: center; z-index: 2; }
	.woocommerce-cart table.shop_table.cart tr.cart_item td.product-name { justify-content: flex-start; flex-wrap: wrap; text-align: left; font-weight: 600; padding-right: 36px; }
	.woocommerce-cart table.shop_table.cart tr.cart_item td.product-name dl.variation { width: 100%; margin: 4px 0 0; }
	.woocommerce-cart table.shop_table.cart tr.cart_item td.product-price,
	.woocommerce-cart table.shop_table.cart tr.cart_item td.product-quantity,
	.woocommerce-cart table.shop_table.cart tr.cart_item td.product-subtotal { background: #faf7f3; border-top: 1px solid #e6e1d9; }
	.woocommerce-cart table.shop_table.cart tr.cart_item td.product-price,
	.woocommerce-cart table.shop_table.cart tr.cart_item td.product-subtotal { font-weight: 700; }
	.woocommerce-cart table.shop_table.cart tr.cart_item td.product-subtotal { padding-right: 24px; }
	.woocommerce-cart table.shop_table.cart tr:not(.cart_item) { display: block; }
	.woocommerce-cart table.shop_table.cart td.actions { display: block; padding: 10px 12px; border-top: 1px solid #e6e1d9; }
	.woocommerce-cart table.shop_table.cart td.actions::before { display: none !important; }
	.woocommerce-cart table.shop_table.cart td.actions .coupon { display: flex; flex-direction: column; gap: 12px; float: none; width: 100%; }
	.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text { width: 100% !important; margin: 0 !important; }
	.woocommerce-cart table.shop_table.cart td.actions .coupon .button { width: 100%; margin: 0 !important; justify-content: center; }
	.woocommerce-cart .cart_totals tr.order-total th { display: none; }
	.woocommerce-cart .cart_totals tr.freyja-family-cart-saving th { display: none; }
	.woocommerce-cart .cart_totals tr.freyja-family-cart-saving td { display: flex !important; justify-content: space-between; align-items: baseline; gap: 10px; white-space: nowrap; font-size: 14px; }
	.woocommerce-cart .cart_totals tr.freyja-family-cart-saving td::before { content: attr(data-title) !important; font-weight: 600; float: none !important; white-space: normal; text-align: left; }
}

/* Pénztár összesítő – mobil: kép balra, alatta egymás alatt név, mennyiség, összeg */
@media (max-width: 768px) {
	.woocommerce-checkout-review-order-table td.wd-checkout-prod { padding: 8px 6px 8px 4px; align-items: center; }
	.woocommerce-checkout-review-order-table .wd-checkout-prod-img img { width: 88px !important; height: 88px !important; object-fit: contain; background: #fff; border: 1px solid #e6e1d9; border-radius: 8px; }
	.woocommerce-checkout-review-order-table .wd-checkout-prod-cont { display: block !important; flex: 1 1 auto; min-width: 0; text-align: left; }
	.woocommerce-checkout-review-order-table .wd-checkout-prod-title { display: flex !important; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; }
	.woocommerce-checkout-review-order-table .wd-checkout-prod-title label,
	.woocommerce-checkout-review-order-table .wd-checkout-prod-title > a { text-align: left; }
	.woocommerce-checkout-review-order-table .wd-checkout-prod .quantity { gap: 4px; }
	.woocommerce-checkout-review-order-table .wd-checkout-prod .quantity .qty { width: 44px !important; padding: 0 4px; }
	.woocommerce-checkout-review-order-table .wd-checkout-prod-total { display: block; text-align: left !important; margin-top: 8px; }
}

/* Heti tervező lebegő „Tovább a pénztárhoz” gombja: elrejtve a plugin jobbra kitolja a képernyőn
   kívülre, ami tableten / fekvő telefonon vízszintes görgetést okozott. Helyben halványítjuk el. */
@media (min-width: 641px) {
	.wmp-floating-cta.wmp-hidden { transform: none !important; visibility: hidden; }
}

/* Heti tervező fejléce nagyon keskeny telefonon (≤ 360px): ne lógjon ki a kupon / hétválasztó */
@media (max-width: 900px) {
	.wmp-wrapper .wmp-header-row { grid-template-columns: minmax(0, 1fr) !important; }
	.wmp-wrapper .wmp-header-row > * { min-width: 0; }
	.wmp-wrapper .wmp-coupon-row input[type="text"] { min-width: 0; }
}
@media (max-width: 360px) {
	.wmp-wrapper .wmp-week-picker { gap: 6px; }
	.wmp-wrapper .wmp-week-nav { width: 34px; flex: 0 0 34px; }
	.wmp-wrapper .wmp-date-box { min-width: 0; flex: 1 1 auto; }
	.wmp-wrapper .wmp-date-display { padding: 10px 10px 10px 34px !important; font-size: 14px !important; white-space: nowrap; }
	.wmp-wrapper .wmp-date-icon { left: 12px !important; }
}

/* Fiókom – rendelések táblázat keskenyebb (tablet / fekvő telefon) kijelzőn ne törjön szét */
@media (min-width: 769px) and (max-width: 1100px) {
	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.woocommerce-orders-table th,
	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.woocommerce-orders-table td { padding-left: 12px !important; padding-right: 12px !important; letter-spacing: .4px; }
	.woocommerce-account .woocommerce-orders-table .amount { white-space: nowrap; }
	.woocommerce-account .woocommerce-orders-table__cell-order-date time { white-space: nowrap; }
	.woocommerce-account .wd-my-account-wrapper { grid-template-columns: 200px minmax(0, 1fr); }
	.woocommerce-account .wd-my-account-sidebar { padding-right: 20px; }
}
.woocommerce .amount { white-space: nowrap; }

/* Fiókom – rendelések: a műveletgombok (Megtekintés, Újrarendelés) egymás mellett */
.woocommerce-account .woocommerce-orders-table__cell-order-actions { white-space: nowrap; }
.woocommerce-account .woocommerce-orders-table__cell-order-actions .button { margin: 3px 6px 3px 0 !important; }
.woocommerce-account .woocommerce-orders-table__cell-order-actions .button:last-child { margin-right: 0 !important; }
.woocommerce-account .woocommerce-orders-table__cell-order-date time { white-space: nowrap; }
@media (max-width: 768px) {
	.woocommerce-account .woocommerce-orders-table__cell-order-actions { white-space: normal; }
}
.wmp-order-again { margin-top: 20px; }
@media (max-width: 1100px) {
	.woocommerce-account .woocommerce-orders-table__cell-order-actions { white-space: normal; }
	.woocommerce-account .woocommerce-orders-table__cell-order-actions .button { display: block; text-align: center; margin: 4px 0 !important; }
	.woocommerce-account .woocommerce-orders-table__cell-order-date time { white-space: normal; }
}
@media (max-width: 768px) {
	.woocommerce-account .woocommerce-orders-table__cell-order-actions { display: flex !important; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
	.woocommerce-account .woocommerce-orders-table__cell-order-actions::before { margin-right: auto; }
	.woocommerce-account .woocommerce-orders-table__cell-order-actions .button { display: inline-flex; margin: 0 !important; }
}
