/* ISTT | Notificări ca toast (tot site-ul). Vezi assets/toasts.js. */

/* Notificările originale nu se mai văd înainte de toast. Clasa istt-tst e pusă din <head> doar când rulează JavaScript. */
html.istt-tst :is(.woocommerce-notices-wrapper, .woocommerce-NoticeGroup, .istt-pg__notices) > :is(.woocommerce-error, .woocommerce-message, .woocommerce-info),
html.istt-tst .wc-block-components-notice-banner,
html.istt-tst .wc-block-components-notice-snackbar {
	display: none !important;
}

.istt-ck-toasts {
	--p: #1b6a63; --red: #8e191c; --blue: #3f6670; --tx: #1d1d1b; --mu: #5c5b55; --sec: #efece3;
	position: fixed; right: 24px; bottom: 24px; z-index: 100000;
	display: flex; flex-direction: column-reverse; gap: 10px;
	width: 400px; max-width: calc(100vw - 32px);
	pointer-events: none;
	font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.istt-ck-toast {
	position: relative; overflow: hidden; pointer-events: auto;
	display: flex; gap: 12px; align-items: flex-start;
	padding: 16px 52px 18px 16px;
	background: #fff; color: var(--tx);
	border: 1px solid #e3dfd3; border-radius: 14px;
	box-shadow: 0 12px 32px rgba(29, 29, 27, .14);
	font-size: 15px; line-height: 1.5; text-align: left;
	animation: istt-ck-in .2s cubic-bezier(.23, 1, .32, 1);
}
.istt-ck-toast--error { border-color: #ebc8c9; }
.istt-ck-toast--success { border-color: #cfe1dd; }
.istt-ck-toast__i { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--blue); }
.istt-ck-toast--error .istt-ck-toast__i { color: var(--red); }
.istt-ck-toast--success .istt-ck-toast__i { color: var(--p); }
.istt-ck-toast__body { min-width: 0; overflow-wrap: anywhere; }
.istt-ck-toast__body > :is(p, ul, ol, div) { margin: 0; padding: 0; list-style: none; }
.istt-ck-toast__body a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Butoanele din notificări (ex. „Vezi coșul”) apar ca link după text. */
.istt-ck-toast__body :is(a.button, a.wc-forward) {
	float: none; display: inline; margin: 0 0 0 6px; padding: 0;
	background: none; border: 0; box-shadow: none; color: var(--p);
	font: inherit; font-weight: 600; text-transform: none; letter-spacing: 0;
}
/* Pe plată și mulțumire, butoanele din notificări nu au sens (pagina are deja acțiunile ei). */
body.istt-ck .istt-ck-toast__body :is(.button, a.wc-forward) { display: none; }
.istt-ck-toast__x {
	position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; padding: 0;
	display: grid; place-items: center; border: 0; border-radius: 50%;
	background: transparent; color: var(--mu); cursor: pointer;
	transition: background-color .15s ease-out, color .15s ease-out;
}
.istt-ck-toast__x:hover { background: var(--sec); color: var(--tx); }
.istt-ck-toast__x:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; }
.istt-ck-toast__x svg { width: 18px; height: 18px; }
.istt-ck-toast__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--blue); transform-origin: left; }
.istt-ck-toast--error .istt-ck-toast__bar { background: var(--red); }
.istt-ck-toast--success .istt-ck-toast__bar { background: var(--p); }
.istt-ck-toast.is-running .istt-ck-toast__bar { animation: istt-ck-bar var(--istt-t, 6000ms) linear forwards; }
.istt-ck-toast.is-paused .istt-ck-toast__bar { animation-play-state: paused; }
.istt-ck-toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity .2s ease-out, transform .2s ease-out; }
@keyframes istt-ck-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes istt-ck-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (max-width: 767px) {
	.istt-ck-toasts { right: 16px; left: 16px; bottom: 16px; width: auto; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
	.istt-ck-toast { animation: none; }
	.istt-ck-toast.is-leaving { transform: none; }
}
