/* ==========================================================
   Hlášky (úspech, info, upozornenie, chyba) – doplnok k Oxygen stylesheetu „obchod-minikosik“.
   Krížik na zavretie (pridáva ho minikosik.js) a rozloženie na mobile (Bali 24. 11. 2026):
   na mobile už nie 4 stĺpce vedľa seba (ikona | text | tlačidlo | krížik), ale
   ikona + text na celú šírku s krížikom vpravo hore a tlačidlo pod textom.
   ========================================================== */
.inc-notice-x {
	order: 9;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: -4px -6px 0 6px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
	align-self: flex-start;
}
.inc-notice-x:hover { background: rgba(255, 255, 255, .16); }
.inc-notice-x:focus { outline: none; }
.inc-notice-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* tlačidlo v hláške: biely obrys a biely text namiesto bielej výplne – menej vtieravé (Bali 24. 11.) */
html body .woocommerce-message .button,
html body .woocommerce-info .button {
	background: transparent !important;
	color: #fff !important;
	border: 1px solid #fff !important;
	box-shadow: none !important;
	padding: 8px 16px !important;
	white-space: nowrap !important;
	flex: none;
	line-height: 1.2 !important;
	transition: background .2s ease, color .2s ease;
}
html body .woocommerce-message .button:hover,
html body .woocommerce-info .button:hover { background: #fff !important; color: #2B2B2B !important; }

@media (max-width: 767px) {
	html body .wc-block-components-notice-banner,
	html body .woocommerce-message,
	html body .woocommerce-info,
	html body .woocommerce-error {
		display: grid !important;
		grid-template-columns: 34px minmax(0, 1fr) 32px;
		column-gap: 12px !important;
		row-gap: 12px !important;
		align-items: start !important;
		padding: 14px 12px 14px 14px !important;
		font-size: 15px !important;
		line-height: 1.45 !important;
	}
	/* ikona vľavo hore */
	html body .wc-block-components-notice-banner > svg,
	html body .woocommerce-message::before,
	html body .woocommerce-info::before,
	html body .woocommerce-error::before { grid-column: 1; grid-row: 1; align-self: start !important; }
	/* text na celú zvyšnú šírku */
	html body .wc-block-components-notice-banner__content { grid-column: 2; grid-row: 1; padding-top: 6px; }
	html body .woocommerce-error > li { grid-column: 2; margin: 0 !important; padding-top: 6px; }
	/* krížik vpravo hore */
	html body .wc-block-components-notice-banner > .wc-block-components-button,
	html body .wc-block-components-notice-banner__dismiss,
	html body .inc-notice-x { grid-column: 3; grid-row: 1; justify-self: end; align-self: start !important; margin: -2px -4px 0 0 !important; }
	/* tlačidlo (napr. Zobraziť košík) pod textom, zarovnané s textom, len na šírku nápisu (Bali 24. 11.) */
	html body .woocommerce-message .button,
	html body .woocommerce-info .button {
		grid-column: 2 / -1;
		grid-row: 2;
		justify-self: start;
		width: auto;
		margin: 0 !important;
		text-align: center;
		justify-content: center;
		box-sizing: border-box;
	}
	html body .woocommerce-message .button br,
	html body .woocommerce-info .button br { display: none; }
	html body .woocommerce-message .button,
	html body .woocommerce-info .button { white-space: nowrap; }
}
