/* Weselne Alkohole - koszyk-zapytanie (Etap 1). Tokeny --eaw-* zostaną uogólnione w Etapie 4. */

:root {
	--eaw-ink: #1c1c1c;
	--eaw-muted: #666;
	--eaw-line: #e6e3dd;
	--eaw-bg-soft: #faf8f4;
	--eaw-accent: #ffcb70;
	--eaw-accent-ink: #1c1c1c;
	--eaw-ok: #1f7a3d;
	--eaw-error: #b3261e;
	--eaw-radius: 8px;
	--eaw-shadow: 0 10px 40px rgba(0, 0, 0, .18);
}

.eaw-no-scroll { overflow: hidden; }

/* ------------------------------------------------------------ elementy wspólne */

.eaw-stepper {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--eaw-line);
	border-radius: var(--eaw-radius);
	overflow: hidden;
	background: #fff;
}
.eaw-stepper__btn {
	width: 38px;
	border: 0;
	background: transparent;
	color: var(--eaw-ink);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}
.eaw-stepper__btn:hover { background: var(--eaw-bg-soft); }
.eaw-stepper__btn:focus-visible { outline: 2px solid var(--eaw-ink); outline-offset: -2px; }
.eaw-stepper__input {
	width: 52px;
	height: 40px;
	border: 0 !important;
	border-left: 1px solid var(--eaw-line) !important;
	border-right: 1px solid var(--eaw-line) !important;
	border-radius: 0 !important;
	text-align: center;
	font-size: 15px;
	padding: 0 !important;
	margin: 0 !important;
	background: #fff;
	-moz-appearance: textfield;
}
.eaw-stepper__input::-webkit-outer-spin-button,
.eaw-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.eaw-stepper--sm .eaw-stepper__btn { width: 32px; }
.eaw-stepper--sm .eaw-stepper__input { width: 42px; height: 34px; font-size: 14px; }

.eaw-remove {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--eaw-muted);
	font-size: 14px;
	text-decoration: none;
}
.eaw-remove:hover { color: var(--eaw-error); }
.eaw-remove--link { text-decoration: underline; text-underline-offset: 2px; }

.eaw-min {
	padding: 12px 14px;
	margin: 0 0 16px;
	border-radius: var(--eaw-radius);
	background: var(--eaw-bg-soft);
	border: 1px solid var(--eaw-line);
	font-size: 14px;
}
.eaw-min p { margin: 0 0 8px; }
.eaw-min__bar { height: 4px; border-radius: 2px; background: var(--eaw-line); overflow: hidden; }
.eaw-min__bar span { display: block; height: 100%; background: var(--eaw-accent); transition: width .3s; }
.eaw-min.is-ok .eaw-min__bar span { background: var(--eaw-ok); }

.is-busy { opacity: .6; pointer-events: none; transition: opacity .15s; }
.is-removing { opacity: .4; }

/* --------------------------------------------------------- karta produktu */

.single-product form.cart .single_add_to_cart_button.loading { opacity: .7; cursor: progress; }
.eaw-product-note {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--eaw-muted);
	max-width: 440px;
}
.eaw-add-msg { margin: 10px 0 0; font-size: 14px; }
.eaw-add-msg.is-error { color: var(--eaw-error); }

/* ------------------------------------------------------ wysuwany koszyk */

.eaw-drawer { position: fixed; inset: 0; z-index: 100000; }
.eaw-drawer[hidden] { display: none; }
.eaw-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .4);
	opacity: 0;
	transition: opacity .25s;
}
.eaw-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(420px, 100%);
	display: flex;
	flex-direction: column;
	background: #fff;
	color: var(--eaw-ink);
	box-shadow: var(--eaw-shadow);
	transform: translateX(100%);
	transition: transform .25s ease;
	outline: none;
}
.eaw-drawer.is-open .eaw-drawer__overlay { opacity: 1; }
.eaw-drawer.is-open .eaw-drawer__panel { transform: none; }
.eaw-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid var(--eaw-line);
}
.eaw-drawer__title { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 600; color: var(--eaw-ink, #1c1c1c); }
.eaw-drawer__close {
	display: inline-flex;
	padding: 6px;
	border: 0;
	background: transparent;
	color: var(--eaw-ink);
	cursor: pointer;
	border-radius: 50%;
}
.eaw-drawer__close:hover { background: var(--eaw-bg-soft); }
.eaw-drawer__status {
	margin: 0;
	padding: 10px 20px;
	background: #eef7f0;
	color: var(--eaw-ok);
	font-size: 14px;
}
.eaw-drawer__status[hidden] { display: none; }
.eaw-drawer__body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.eaw-loading { padding: 20px; color: var(--eaw-muted); }

.eaw-mini { list-style: none; margin: 0; padding: 4px 20px; flex: 1; }
.eaw-mini__item {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--eaw-line);
}
.eaw-mini__item:last-child { border-bottom: 0; }
.eaw-mini__thumb img { width: 64px; height: 64px; object-fit: contain; display: block; }
.eaw-mini__name { display: block; color: var(--eaw-ink); font-weight: 600; font-size: 15px; line-height: 1.35; text-decoration: none; }
.eaw-mini__name:hover { text-decoration: underline; }
.eaw-mini__info dl.variation { margin: 4px 0 0; font-size: 13px; color: var(--eaw-muted); }
.eaw-mini__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.eaw-mini__foot { padding: 16px 20px 20px; border-top: 1px solid var(--eaw-line); background: #fff; }
.eaw-mini__cta { display: block !important; width: 100%; text-align: center; }
.eaw-mini__continue {
	display: block;
	width: 100%;
	margin-top: 10px;
	padding: 8px;
	border: 0;
	background: transparent;
	color: var(--eaw-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	font-size: 14px;
}
.eaw-mini__note { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--eaw-muted); }
.eaw-mini__empty { padding: 32px 20px; text-align: center; }

/* Pusty kontener rozwijanego mini-koszyka i boczny panel koszyka z widgetu nagłówka (zastępuje je #eaw-drawer). */
.rt-cart-box .cart-overlay.cart-block,
.rt-cart-box .mobile-slider,
.rt-cart-box > .filter { display: none !important; }
.rt-cart-box .cart-icon, .rt-cart-box .menu-mobile-icon, .header-cart-bar-icon { cursor: pointer; }
.eaw-clear { display: inline-block; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--eaw-muted, #777); font-size: 13px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.eaw-clear:hover { color: #b32d2e; }
.eaw-mini__foot .eaw-clear { display: block; margin: 8px auto 0; }
.cart-count:empty { display: none; }

/* ------------------------------------------------------------ strona koszyka */

.eaw-cart {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	margin: 8px 0 48px;
	color: var(--eaw-ink);
}
.eaw-cart__title { margin: 0 0 20px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
.eaw-cart__back { display: inline-block; margin-top: 20px; color: var(--eaw-ink); }
.eaw-cart__side {
	position: sticky;
	top: 110px;
	padding: 24px;
	border: 1px solid var(--eaw-line);
	border-radius: 12px;
	background: #fff;
}

.eaw-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--eaw-line); }
.eaw-item {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr) auto auto;
	gap: 18px;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid var(--eaw-line);
}
.eaw-item__thumb img { width: 88px; height: 88px; object-fit: contain; display: block; }
.eaw-item__name { color: var(--eaw-ink); font-weight: 600; font-size: 16px; line-height: 1.35; text-decoration: none; }
.eaw-item__name:hover { text-decoration: underline; }
.eaw-item__info dl.variation { margin: 4px 0 0; font-size: 13px; color: var(--eaw-muted); }
.eaw-item__note { margin: 4px 0 0; font-size: 13px; color: var(--eaw-muted); }

.eaw-cart-empty, .eaw-thanks { max-width: 620px; margin: 24px auto 64px; text-align: center; color: var(--eaw-ink); }
.eaw-thanks__icon { color: var(--eaw-ok); margin-bottom: 8px; }
.eaw-thanks__title { font-size: clamp(26px, 3vw, 34px); margin: 0 0 12px; }
.eaw-thanks__lead { font-size: 17px; line-height: 1.6; }
.eaw-thanks__items {
	list-style: none;
	margin: 24px 0;
	padding: 0;
	text-align: left;
	border: 1px solid var(--eaw-line);
	border-radius: var(--eaw-radius);
}
.eaw-thanks__items li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--eaw-line); }
.eaw-thanks__items li:last-child { border-bottom: 0; }
.eaw-thanks__contact { color: var(--eaw-muted); }

/* ------------------------------------------------------- formularz zamówienia */

.eaw-inquiry__title { margin: 0 0 6px; font-size: 22px; line-height: 1.25; }
.eaw-inquiry__lead { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--eaw-muted); }
.eaw-inquiry__alert {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: var(--eaw-radius);
	background: #fdeceb;
	color: var(--eaw-error);
	font-size: 14px;
}
.eaw-inquiry__alert[hidden] { display: none; }

.eaw-field { margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.eaw-field[hidden] { display: none; }
.eaw-field label, .eaw-field legend { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--eaw-ink, #1c1c1c); }
.eaw-field abbr { color: var(--eaw-error); text-decoration: none; border: 0; }
.eaw-field small { font-weight: 400; color: var(--eaw-muted); }
.eaw-field input[type="text"],
.eaw-field input[type="email"],
.eaw-field input[type="tel"],
.eaw-field input[type="date"],
.eaw-field input[type="number"],
.eaw-field textarea {
	width: 100%;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #cfcac1;
	border-radius: var(--eaw-radius);
	background: #fff;
	color: var(--eaw-ink);
	font-size: 15px;
	line-height: 1.4;
	box-shadow: none;
}
.eaw-field input:focus, .eaw-field textarea:focus { border-color: var(--eaw-ink); outline: 2px solid var(--eaw-accent); outline-offset: 0; }
.eaw-field [aria-invalid="true"] { border-color: var(--eaw-error); }
.eaw-field__error { display: block; margin-top: 5px; font-size: 13px; color: var(--eaw-error); }
.eaw-field__error[hidden] { display: none; }
.eaw-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eaw-field-row--postcode { grid-template-columns: 150px 1fr; }
.eaw-address[hidden] { display: none; }

.eaw-choice__opt {
	display: flex !important;
	gap: 10px;
	align-items: flex-start;
	margin: 0 0 8px !important;
	padding: 10px 12px;
	border: 1px solid var(--eaw-line);
	border-radius: var(--eaw-radius);
	font-weight: 400 !important;
	cursor: pointer;
}
.eaw-choice__opt:has(input:checked) { border-color: var(--eaw-ink); background: var(--eaw-bg-soft); }
.eaw-choice__opt input { margin-top: 3px; }
.eaw-choice__opt small { display: block; }

.eaw-check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; line-height: 1.5; }
.eaw-check input { margin-top: 3px; flex: none; }

.eaw-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.eaw-inquiry__submit { width: 100%; margin-top: 6px; }
.eaw-inquiry__submit.loading { opacity: .7; cursor: progress; }
.eaw-inquiry__foot { margin: 12px 0 0; font-size: 13px; text-align: center; color: var(--eaw-muted); }

/* ------------------------------------------------------------------ mobile */

@media (max-width: 900px) {
	.eaw-cart { grid-template-columns: 1fr; gap: 28px; }
	.eaw-cart__side { position: static; padding: 18px; }
}
@media (max-width: 560px) {
	.eaw-item { grid-template-columns: 64px minmax(0, 1fr); gap: 10px 14px; }
	.eaw-item__thumb { grid-row: span 2; }
	.eaw-item__thumb img { width: 64px; height: 64px; }
	.eaw-item__qty, .eaw-item__remove { grid-column: 2; }
	.eaw-item__remove { justify-self: start; }
	.eaw-item__qty { display: flex; }
	.eaw-field-row { grid-template-columns: 1fr; gap: 0; }
	.eaw-field-row--postcode { grid-template-columns: 130px 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.eaw-drawer__panel, .eaw-drawer__overlay, .eaw-min__bar span { transition: none; }
}

/* ------------------------------------------------------------------------
 * Odporność na style motywu (Emart centruje li/etykiety, kapitalizuje nagłówki
 * i dodaje dekoracje do h2). Zakres: tylko nasze komponenty.
 * --------------------------------------------------------------------- */

.eaw-cart, .eaw-drawer, .eaw-thanks, .eaw-cart-empty { text-align: left; }
.eaw-thanks, .eaw-cart-empty { text-align: center; }
.eaw-cart h2, .eaw-cart h3, .eaw-drawer h2, .eaw-thanks h2, .eaw-cart-empty h2,
.eaw-cart .button, .eaw-drawer .button, .eaw-thanks .button, .eaw-cart-empty .button { text-transform: none; letter-spacing: normal; }
.eaw-cart h2::before, .eaw-cart h2::after, .eaw-drawer h2::before, .eaw-drawer h2::after { content: none !important; display: none !important; }

.eaw-items, .eaw-mini, .eaw-thanks__items { list-style: none !important; margin-left: 0 !important; padding-left: 0 !important; }
.eaw-mini { padding: 4px 20px !important; }
.eaw-item, .eaw-mini__item, .eaw-thanks__items li { margin: 0 !important; text-align: left; list-style: none; }
.eaw-item::before, .eaw-mini__item::before, .eaw-thanks__items li::before { content: none !important; }
.eaw-item__thumb, .eaw-mini__thumb { background: none; padding: 0; }
.eaw-thanks__items li span:last-child { white-space: nowrap; }

.eaw-drawer__title { flex: 1; text-align: left; font-size: 20px !important; }
.eaw-drawer__head { border-bottom: 1px solid var(--eaw-line) !important; }

.eaw-field input, .eaw-field textarea, .eaw-field select, .eaw-stepper__input { font-family: inherit !important; }
.eaw-field textarea { min-height: 88px; resize: vertical; }
.eaw-field input[type="radio"], .eaw-field input[type="checkbox"] {
	width: auto !important;
	height: auto;
	flex: none;
	margin: 3px 0 0 !important;
	accent-color: var(--eaw-ink);
}
.eaw-choice__opt { justify-content: flex-start; text-align: left; }
.eaw-choice__opt span { flex: 1; }
.eaw-choice__opt strong { font-weight: 600; }
.eaw-check label { text-align: left; }

/* Główne przyciski - kolor marki, niezależnie od ustawień Customizera/Woo. */
.eaw-inquiry__submit.button,
.eaw-mini__cta.button,
.eaw-cart-empty .button.alt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 24px !important;
	border: 0 !important;
	border-radius: var(--eaw-radius) !important;
	background: var(--eaw-accent) !important;
	color: var(--eaw-accent-ink) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	text-decoration: none;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color .15s;
}
.eaw-inquiry__submit.button:hover,
.eaw-mini__cta.button:hover,
.eaw-cart-empty .button.alt:hover { background: #f5b94d !important; color: var(--eaw-accent-ink) !important; }
.eaw-inquiry__submit.button:focus-visible,
.eaw-mini__cta.button:focus-visible { outline: 2px solid var(--eaw-ink) !important; outline-offset: 2px; }
.eaw-inquiry__submit.button { display: flex; width: 100%; }
.eaw-mini__cta.button { display: flex !important; }

@media (max-width: 560px) {
	.eaw-item { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "thumb info info" "thumb qty remove"; align-items: center; }
	.eaw-item__thumb { grid-area: thumb; grid-row: auto; align-self: start; }
	.eaw-item__info { grid-area: info; }
	.eaw-item__qty { grid-area: qty; grid-column: auto; }
	.eaw-item__remove { grid-area: remove; grid-column: auto; justify-self: end; }
	.eaw-item__remove .eaw-remove span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.eaw-item, .eaw-mini__item { padding-left: 0 !important; padding-right: 0 !important; }
.eaw-item__info, .eaw-mini__info, .eaw-item__name, .eaw-mini__name, .eaw-drawer__title { text-align: left !important; }
.eaw-drawer__title { border: 0 !important; padding: 0 !important; width: auto !important; }
/* Motyw nadaje <div> w li automatyczne marginesy (centrowanie) - wymuszamy pełną szerokość komórek. */
.eaw-item > div, .eaw-mini__item > div { margin: 0 !important; min-width: 0; }
.eaw-item__info, .eaw-mini__info { width: 100%; justify-self: stretch !important; }
.eaw-item__qty { justify-self: start; }
.eaw-item__remove { justify-self: end; }
.eaw-drawer__head { width: auto !important; max-width: none !important; margin: 0 !important; }
.eaw-mini__row > *, .eaw-stepper, .eaw-item__qty > * { margin: 0 !important; }
.eaw-mini__row { justify-content: flex-start; gap: 16px; }

@media (max-width: 560px) {
	.eaw-item { grid-template-columns: 64px minmax(0, 1fr) auto !important; grid-template-areas: none !important; }
	.eaw-item__thumb { grid-column: 1 !important; grid-row: 1 / span 2 !important; }
	.eaw-item__info { grid-column: 2 / span 2 !important; grid-row: 1 !important; }
	.eaw-item__qty { grid-column: 2 !important; grid-row: 2 !important; }
	.eaw-item__remove { grid-column: 3 !important; grid-row: 2 !important; }
}

/* Linki w formularzu i podziękowaniu - kolor jak w treści (weselne.css). */
.eaw-inquiry a, .eaw-thanks a:not(.button), .eaw-mini a.eaw-mini__name ~ a {
	color: var(--eaw-link, #8a5300);
	text-decoration-color: var(--eaw-accent);
	text-underline-offset: 3px;
}

/* Większe, czytelne −/+ w koszyku i szufladzie (spójnie z kartą produktu, 2.24.4). */
.eaw-stepper { border-color: #d6d1c7; border-radius: 10px; }
.eaw-stepper__btn { width: 44px; min-height: 44px; background: #f6f3ee; font-size: 22px; font-weight: 500; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; }
.eaw-stepper__btn:hover { background: #ece6db; }
.eaw-stepper__btn:active { background: #e2d9c9; }
.eaw-stepper__input { width: 56px; height: 44px; font-size: 17px !important; font-weight: 700 !important; color: var(--eaw-ink); }
.eaw-stepper--sm .eaw-stepper__btn { width: 40px; min-height: 40px; font-size: 20px; }
.eaw-stepper--sm .eaw-stepper__input { width: 50px; height: 40px; font-size: 16px !important; }
.eaw-wmix .eaw-stepper__btn { width: 44px; }
