/* ISHAWS - avvisi dello store in una finestra, come il popup di accesso. */

.ish-np {
	--np-navy: var(--e-global-color-primary, #1c244b);
	--np-text: var(--e-global-color-text, #324a6d);
	--np-bg: #eaf0fe;
	--np-fg: #2456c4;
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	background: rgba(17, 24, 52, .55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	font-family: "Poppins", system-ui, sans-serif;
	animation: ish-np-fade .18s ease-out;
}

.ish-np--error { --np-bg: #fdf3f2; --np-fg: #b3261e; }
.ish-np--success { --np-bg: #e7f3eb; --np-fg: #1e6b3a; }

.ish-np * { box-sizing: border-box; }

.ish-np-box {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	width: min(440px, 100%);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 34px 34px 28px;
	border-top: 5px solid var(--np-navy);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(17, 24, 52, .28);
	text-align: center;
	animation: ish-np-rise .2s ease-out;
}

.ish-np .ish-np-x {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f3f5f8;
	color: var(--np-navy);
	box-shadow: none;
	cursor: pointer;
}

.ish-np .ish-np-x:hover,
.ish-np .ish-np-x:focus-visible { background: #e3e9ef; color: var(--np-navy); }

.ish-np-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--np-bg);
	color: var(--np-fg);
}

.ish-np .ish-np-title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 21px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: -.2px;
	text-transform: none;
	color: var(--np-navy);
}

.ish-np .ish-np-text {
	margin: 0 0 8px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--np-text);
}

.ish-np .ish-np-list {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 8px;
	padding: 14px 16px 14px 34px;
	border: 1px solid #f1c7c3;
	border-radius: 10px;
	background: #fdf3f2;
	color: #8c1d18;
	font-size: 14px;
	line-height: 1.6;
	text-align: left;
	list-style: disc;
}

.ish-np--success .ish-np-list,
.ish-np--info .ish-np-list {
	border-color: #dbe1ec;
	background: #f9fafd;
	color: var(--np-text);
}

.ish-np .ish-np-list li { margin: 0; padding: 0; list-style: disc; }

.ish-np .ish-np-btn {
	align-self: stretch;
	display: block;
	padding: 15px 20px;
	border: 0;
	border-radius: 8px;
	background: var(--np-navy);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
}

.ish-np .ish-np-btn:hover,
.ish-np .ish-np-btn:focus-visible { background: #10173a; color: #fff; }

.ish-np .ish-np-btn:focus-visible,
.ish-np .ish-np-x:focus-visible { outline: 3px solid #467ff7; outline-offset: 2px; }

/* L'avviso originale, quando basta la finestra. */
.ish-np-hidden { display: none !important; }

html.ish-np-open { overflow: hidden; }

@media (max-width: 480px) {
	.ish-np-box { padding: 34px 22px 22px; }
	.ish-np .ish-np-title { font-size: 20px; }
}

@keyframes ish-np-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ish-np-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.ish-np, .ish-np-box { animation: none; }
}
