/* ZeusWeb Multishop — Business secondary SITE-WIDE dark styles
 *
 * Bármely oldalon érvényes (NEM csak cart/checkout/account), mert ezek
 * az elemek bárhol megjelenhetnek (pl. WC "X kosárba helyezve" notice
 * a shop oldalon). Csak üzleti secondary-n töltődik be, így a lakossági
 * sajátját nem érinti.
 */

/* ===== WC NOTICES (success, error, info) — site-wide ===== */

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
	background-color: #3d3d3d !important;
	border-left: 4px solid #A13AB0 !important;
	border-top: none !important;
	border-right: none !important;
	border-bottom: none !important;
	color: #f0f0f0 !important;
	border-radius: 6px !important;
	padding: 14px 18px !important;
	margin: 12px 0 !important;
	list-style: none !important;
	box-shadow: none !important;
	position: relative !important;
}

/* WC default ::before pipa/icon eltüntetése (kék pipa kavarta a layout-ot) */
.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-error::before,
.woocommerce-notices-wrapper .woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
	display: none !important;
	content: none !important;
}

/* Sikeres action (zöld accent) */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-message {
	background-color: rgba(80, 200, 120, 0.12) !important;
	border-left-color: #50c878 !important;
	color: #d8f0e0 !important;
}

/* Hiba (piros accent) */
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-error {
	background-color: rgba(255, 80, 80, 0.12) !important;
	border-left-color: #ff5050 !important;
	color: #ffd0d0 !important;
}

/* Info (brand lila) */
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-info {
	background-color: rgba(161, 58, 176, 0.12) !important;
	border-left-color: #A13AB0 !important;
	color: #e8c8f0 !important;
}

/* "Kosár" gomb a notice-ban */
.woocommerce-message .button,
.woocommerce-message .wc-forward {
	background-color: #A13AB0 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 4px !important;
	padding: 6px 14px !important;
	margin-left: 12px !important;
	font-weight: 500 !important;
	text-decoration: none !important;
	float: right !important;
}

.woocommerce-message .button:hover,
.woocommerce-message .wc-forward:hover {
	background-color: #B95DC7 !important;
}

/* Az "X" close gomb (ha van) */
.woocommerce-notices-wrapper .button-close,
.woocommerce-notices-wrapper a.notice-dismiss {
	color: #f0f0f0 !important;
}

/* ===== KOSÁR TÁBLÁZAT — site-wide (Elementor cart widget is) =====
 * A `woocommerce-cart-form__cart-item` / `cart_item` class-ok CSAK a kosár
 * táblában fordulnak elő, így itt body class nélkül is biztonságos — működik
 * akkor is ha a kosár egy Elementor oldal (ahol is_cart() esetleg false).
 */

/* Tábla fejléc (Termék / Ár / Mennyiség / Részösszeg) */
.woocommerce-cart-form .shop_table thead th,
table.cart thead th,
.woocommerce table.shop_table.cart thead th {
	color: #f0f0f0 !important;
	background-color: #404040 !important;
	border-color: #555 !important;
}

/* Minden cella szöveg fehér */
.woocommerce-cart-form__cart-item td,
tr.cart_item td,
.woocommerce-cart-form__cart-item .product-name,
.woocommerce-cart-form__cart-item .product-name a,
tr.cart_item .product-name a {
	color: #f0f0f0 !important;
	border-color: #555 !important;
}

.woocommerce-cart-form__cart-item .product-name a:hover,
tr.cart_item .product-name a:hover {
	color: #B95DC7 !important;
}

/* Ár + részösszeg + pénznem szimbólum */
.woocommerce-cart-form__cart-item .woocommerce-Price-amount,
.woocommerce-cart-form__cart-item .woocommerce-Price-currencySymbol,
tr.cart_item .woocommerce-Price-amount,
tr.cart_item .woocommerce-Price-currencySymbol,
tr.cart_item bdi {
	color: #f0f0f0 !important;
}

/* Mennyiség input — a szám LÁTHATÓ legyen (ez volt a fő gond) */
.woocommerce-cart-form__cart-item input.qty,
tr.cart_item input.qty,
.product-quantity input.qty,
.quantity input.input-text.qty {
	color: #f0f0f0 !important;
	-webkit-text-fill-color: #f0f0f0 !important;
	background-color: #404040 !important;
	border: 1px solid #555 !important;
	border-radius: 4px !important;
	opacity: 1 !important;
}

/* "X" eltávolítás gomb (SVG currentColor) */
.woocommerce-cart-form__cart-item .product-remove a.remove,
tr.cart_item .product-remove a.remove,
.woocommerce-cart-form__cart-item .product-remove .ahfb-svg-iconset,
tr.cart_item .product-remove svg {
	color: #f0f0f0 !important;
	fill: currentColor !important;
}

.woocommerce-cart-form__cart-item .product-remove a.remove:hover,
tr.cart_item .product-remove a.remove:hover {
	color: #ff7676 !important;
}

/* Termékkép sarok lekerekítés */
.woocommerce-cart-form__cart-item .product-thumbnail img,
tr.cart_item .product-thumbnail img {
	border-radius: 6px !important;
}

/* Kosár totals (Részösszeg / Végösszeg doboz) */
.cart_totals,
.cart-collaterals .cart_totals {
	color: #f0f0f0 !important;
}

.cart_totals table th,
.cart_totals table td,
.cart_totals .woocommerce-Price-amount,
.cart_totals .woocommerce-Price-currencySymbol {
	color: #f0f0f0 !important;
	border-color: #555 !important;
}

/* Kupon mező + mennyiség körüli címkék */
.woocommerce-cart-form .coupon input.input-text,
.woocommerce-cart-form input.input-text {
	color: #f0f0f0 !important;
	background-color: #404040 !important;
	border: 1px solid #555 !important;
}

/* ===== FIÓK — ASTRA orders tábla (ast-orders-table) site-wide =====
 * Az Astra saját rendelés-tábla layout-ja `ast-orders-table__*` class-okkal.
 * A korábbi .woocommerce-orders-table szabályok ezt nem fogták → fehér háttér,
 * láthatatlan szöveg. Ezek a class-ok csak a Fiókom rendelések oldalon vannak.
 */
.ast-orders-table,
.ast-orders-table__row {
	background-color: #3d3d3d !important;
	border: 1px solid #555555 !important;
	border-radius: 6px !important;
}

.ast-orders-table__row {
	margin-bottom: 10px !important;
	padding: 6px 4px !important;
}

/* Fejléc sor (ha van) */
.ast-orders-table__head,
.ast-orders-table__header {
	background-color: #404040 !important;
	color: #f0f0f0 !important;
}

/* Minden cella + tartalom világos szöveg */
.ast-orders-table__cell,
.ast-orders-table__cell *,
.ast-orders-table__cell .ast-woo-order-date,
.ast-orders-table__cell time,
.ast-orders-table__cell .woocommerce-Price-amount,
.ast-orders-table__cell .woocommerce-Price-currencySymbol,
.ast-orders-table__cell bdi {
	color: #f0f0f0 !important;
}

/* "Megtekintés" link/gomb — magas specificitás, hogy az Astra téma link-színét felülírja */
body .ast-orders-table .ast-orders-table__cell a.view,
body .ast-orders-table__cell-order-actions a,
body .ast-orders-table__cell-order-actions a.view,
body .ast-orders-table__cell-order-actions a.button,
.ast-orders-table__cell a.view,
.ast-orders-table__cell-order-actions a {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	background-color: #A13AB0 !important;
	border: none !important;
	border-radius: 4px !important;
	padding: 6px 14px !important;
	text-decoration: none !important;
	display: inline-block !important;
}

/* Bármely gyermek elem (span, stb.) is fehér */
body .ast-orders-table__cell-order-actions a *,
.ast-orders-table__cell a.view * {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

body .ast-orders-table .ast-orders-table__cell a.view:hover,
body .ast-orders-table__cell-order-actions a:hover,
.ast-orders-table__cell a.view:hover,
.ast-orders-table__cell-order-actions a:hover {
	background-color: #B95DC7 !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

/* data-title címkék (responsive nézet "Rendelés:", "Dátum:" stb.) */
.ast-orders-table__cell[data-title]::before {
	color: #b8b8b8 !important;
}

/* =========================================================================
   Mennyiségválasztó (Astra „buttons_added" +/- gombok) a kosárban
   -------------------------------------------------------------------------
   Ha az Astra saját elrendező CSS-e nem érvényesül, a .minus / input / .plus
   blokk-elemként külön sorba esik (a felhasználó „3 sorban van" panasza).
   Határozott vízszintes flex-elrendezés + a screen-reader címkék kivétele a
   folyamból. A business dark témához illő sötét gombokkal.
   ========================================================================= */
.woocommerce .quantity.buttons_added,
.quantity.buttons_added {
	display: inline-flex !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	gap: 0 !important;
	position: relative !important;
	float: none !important;
	width: auto !important;
	max-width: 100% !important;
	vertical-align: middle;
}

/* A rejtett (képernyőolvasó) span/label ne foglaljon helyet → ne törjön sort */
.quantity.buttons_added .screen-reader-text,
.quantity.buttons_added label.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.quantity.buttons_added a.minus,
.quantity.buttons_added a.plus {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 38px !important;
	min-width: 38px !important;
	height: 40px !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	position: static !important;
	box-sizing: border-box !important;
	font-size: 18px !important;
	line-height: 1 !important;
	text-decoration: none !important;
	cursor: pointer !important;
	color: #f0f0f0 !important;
	-webkit-text-fill-color: #f0f0f0 !important;
	background-color: #404040 !important;
	border: 1px solid #555 !important;
	user-select: none !important;
}

.quantity.buttons_added a.minus { border-radius: 6px 0 0 6px !important; border-right: 0 !important; }
.quantity.buttons_added a.plus  { border-radius: 0 6px 6px 0 !important; border-left: 0 !important; }

.quantity.buttons_added a.minus:hover,
.quantity.buttons_added a.plus:hover {
	background-color: #A13AB0 !important;
	border-color: #A13AB0 !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

/* A középső szám: fix szélesség, középre, a gombok közé simulva (nincs dupla keret) */
.quantity.buttons_added input.qty,
.quantity.buttons_added input.input-text.qty {
	display: inline-flex !important;
	width: 52px !important;
	min-width: 52px !important;
	height: 40px !important;
	margin: 0 !important;
	padding: 0 6px !important;
	float: none !important;
	text-align: center !important;
	border-radius: 0 !important;
	border-left: 1px solid #555 !important;
	border-right: 1px solid #555 !important;
	box-sizing: border-box !important;
	-moz-appearance: textfield !important;
}
.quantity.buttons_added input.qty::-webkit-outer-spin-button,
.quantity.buttons_added input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}
