/* LTV Commerce – Thông báo popup: vòng xoay rồi hiện dấu tích / ! / ×. Màu đổi qua biến trên :root của theme. */
.ltv-np-gone { display: none !important; }
.ltv-np {
	--np-ok: var(--ltv-np-ok, #16a34a);
	--np-info: var(--ltv-np-info, #2563eb);
	--np-err: var(--ltv-np-err, #dc2626);
	--np-c: var(--np-ok);
	position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 16px;
	font-family: inherit;
}
.ltv-np[hidden] { display: none; }
.ltv-np--info { --np-c: var(--np-info); }
.ltv-np--err { --np-c: var(--np-err); }
.ltv-np__backdrop { position: absolute; inset: 0; background: rgba(15, 18, 24, .38); opacity: 0; transition: opacity .18s ease; }
.ltv-np__box {
	position: relative; width: min(380px, 100%); max-height: calc(100vh - 32px); overflow: auto;
	padding: 30px 24px 20px; border-radius: 18px; background: #fff; color: #1f2430; text-align: center;
	box-shadow: 0 24px 60px rgba(15, 18, 24, .28); outline: none;
	opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .18s ease, transform .22s cubic-bezier(.2, .9, .3, 1.2);
}
.ltv-np.is-on .ltv-np__backdrop { opacity: 1; }
.ltv-np.is-on .ltv-np__box { opacity: 1; transform: none; }
.ltv-np__x { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #6b7280; font-size: 24px; line-height: 1; cursor: pointer; }
.ltv-np__x:hover, .ltv-np__x:focus-visible { background: #f3f4f6; color: #111827; }

/* Biểu tượng: vòng xoay (quét cung + quay) rồi khép kín, sau đó vẽ dấu */
.ltv-np__icon { display: block; width: 76px; height: 76px; margin: 0 auto 14px; overflow: visible; }
.ltv-np__ring { fill: none; stroke: var(--np-c); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 145; stroke-dashoffset: 145; transform-origin: 26px 26px; }
.ltv-np__mark { fill: none; stroke: var(--np-c); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.ltv-np.is-on .ltv-np__ring { animation: ltv-np-spin .7s cubic-bezier(.6, .1, .3, 1) forwards; }
.ltv-np.is-on .ltv-np__mark { animation: ltv-np-draw .32s ease-out .62s forwards; }
.ltv-np.is-on .ltv-np__mark--2 { animation-delay: .78s; }
.ltv-np.is-on .ltv-np__mark--dot { animation-delay: .86s; }
.ltv-np.is-on .ltv-np__icon { animation: ltv-np-pop .3s ease-out .9s; }
@keyframes ltv-np-spin {
	0% { stroke-dashoffset: 145; transform: rotate(-90deg); }
	60% { stroke-dashoffset: 40; transform: rotate(200deg); }
	100% { stroke-dashoffset: 0; transform: rotate(270deg); }
}
@keyframes ltv-np-draw { to { stroke-dashoffset: 0; } }
@keyframes ltv-np-pop { 50% { transform: scale(1.08); } }

.ltv-np__title { margin: 0 0 6px; font-size: 19px; font-weight: 700; line-height: 1.35; color: #111827; }
.ltv-np__msg { font-size: 15px; line-height: 1.55; color: #374151; overflow-wrap: anywhere; }
.ltv-np__msg p { margin: 0 0 4px; }
.ltv-np__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.ltv-np__btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
	border: 1.5px solid #d1d5db; border-radius: 999px; background: #fff; color: #111827;
	font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.ltv-np__btn:hover { border-color: #9ca3af; }
.ltv-np__btn--main { border-color: var(--an-primary, var(--np-c)); background: var(--an-primary, var(--np-c)); color: var(--an-cta-text, #fff); }
.ltv-np__btn--main:hover { filter: brightness(.95); }
.ltv-np__btn:focus-visible, .ltv-np__x:focus-visible { outline: 3px solid color-mix(in srgb, var(--np-c) 45%, transparent); outline-offset: 2px; }

@media (max-width: 480px) {
	.ltv-np { align-items: end; padding: 12px; }
	.ltv-np__box { width: 100%; border-radius: 18px; padding: 26px 18px 16px; }
	.ltv-np__btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
	.ltv-np__box, .ltv-np__backdrop { transition: none; }
	.ltv-np.is-on .ltv-np__ring, .ltv-np.is-on .ltv-np__mark, .ltv-np.is-on .ltv-np__icon { animation: none; stroke-dashoffset: 0; }
}
