/* PAGEONE Newsletter Manager — front end */
.p1nm, .p1nm * { box-sizing: border-box; }
.p1nm { margin: 2em 0; font-family: inherit; }

.p1nm .p1nm-banner {
	background: var(--p1nm-bg, #F7941D);
	color: var(--p1nm-text, #0B0B0B);
	border-radius: 14px;
	padding: 28px 24px;
	text-align: center;
}
.p1nm .p1nm-banner-icon { color: var(--p1nm-text, #0B0B0B); line-height: 0; margin-bottom: 8px; }
.p1nm .p1nm-banner-title {
	margin: 0 0 6px; font-size: 1.3em; font-weight: 700; line-height: 1.3;
	color: var(--p1nm-text, #0B0B0B);
}
.p1nm .p1nm-banner-desc {
	margin: 0 auto 18px; max-width: 520px; font-size: 0.95em; line-height: 1.6;
	color: var(--p1nm-text, #0B0B0B);
}

.p1nm .p1nm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; max-width: 420px; min-height: 48px; padding: 12px 22px;
	background: var(--p1nm-btn-bg, #0B0B0B); color: var(--p1nm-btn-text, #FFFFFF);
	border: 0; border-radius: 10px; cursor: pointer;
	font: inherit; font-size: 1em; font-weight: 600; line-height: 1.2; text-transform: none; letter-spacing: normal;
	box-shadow: none; transition: transform .08s ease, opacity .15s ease;
}
.p1nm .p1nm-btn:hover { opacity: .9; }
.p1nm .p1nm-btn:active { transform: scale(.98); }
.p1nm .p1nm-btn:focus-visible { outline: 3px solid var(--p1nm-bg, #F7941D); outline-offset: 2px; }
.p1nm .p1nm-btn[disabled] { opacity: .6; cursor: progress; }

/* Pop-up — mobile first (compact) */
.p1nm-overlay {
	position: fixed; inset: 0; z-index: 999999;
	background: rgba(11, 11, 11, .6);
	display: flex; align-items: flex-end; justify-content: center;
	padding: 10px;
}
.p1nm-overlay[hidden] { display: none; }
body.p1nm-lock { overflow: hidden; }

.p1nm .p1nm-modal {
	background: #fff; color: #2C2C2A;
	width: 100%; max-width: 440px;
	max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); overflow-y: auto;
	border-radius: 16px; padding: 16px 16px 18px;
	text-align: left; position: relative;
	animation: p1nm-in .18s ease-out;
	-webkit-overflow-scrolling: touch;
}
@keyframes p1nm-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.p1nm .p1nm-modal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.p1nm .p1nm-pill {
	font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
	background: var(--p1nm-bg, #F7941D); color: var(--p1nm-text, #0B0B0B);
}
.p1nm .p1nm-close {
	background: transparent; border: 0; color: #5F5E5A; cursor: pointer;
	font-size: 26px; line-height: 1; padding: 0 4px; width: auto; min-height: 0; box-shadow: none;
}
.p1nm .p1nm-close:hover { color: #0B0B0B; background: transparent; }

.p1nm .p1nm-info { border-bottom: 1px solid #E5E3DA; padding-bottom: 12px; margin-bottom: 12px; }
.p1nm .p1nm-modal-title { margin: 0 0 6px; font-size: 17px; font-weight: 700; line-height: 1.3; color: #0B0B0B; }
.p1nm .p1nm-modal-desc { margin: 0; font-size: 12px; line-height: 1.55; color: #5F5E5A; }

.p1nm .p1nm-row { margin: 0 0 8px; }
.p1nm .p1nm-row label { display: block; font-size: 12px; font-weight: 600; color: #444441; margin: 0 0 3px; line-height: 1.3; }
.p1nm .p1nm-row input {
	display: block; width: 100%; height: 36px; margin: 0; padding: 0 10px;
	font: inherit; font-size: 16px; /* 16px stops iPhone from zooming in */
	color: #0B0B0B; background: #fff;
	border: 1px solid #D3D1C7; border-radius: 8px; box-shadow: none;
}
.p1nm .p1nm-row input::placeholder { font-size: 14px; color: #888780; }
.p1nm .p1nm-row input:focus { outline: none; border-color: var(--p1nm-bg, #F7941D); box-shadow: 0 0 0 3px rgba(247, 148, 29, .25); }
.p1nm .p1nm-row.p1nm-invalid input { border-color: #A32D2D; }

.p1nm .p1nm-err { margin: 3px 0 0; font-size: 12px; color: #A32D2D; line-height: 1.3; }
.p1nm .p1nm-err:empty { display: none; }

.p1nm .p1nm-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; line-height: 1.45; color: #5F5E5A; margin: 4px 0 0; cursor: pointer; }
.p1nm .p1nm-consent input { width: 15px; height: 15px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--p1nm-btn-bg, #0B0B0B); }
.p1nm .p1nm-consent a { color: inherit; text-decoration: underline; }

.p1nm .p1nm-actions { margin-top: 12px; }
.p1nm .p1nm-actions .p1nm-form-err { text-align: center; margin-bottom: 8px; }
.p1nm .p1nm-submit { max-width: none; min-height: 42px; font-size: 14px; }

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

.p1nm .p1nm-done { text-align: center; padding: 14px 0 6px; }
.p1nm .p1nm-done[hidden] { display: none; }
.p1nm .p1nm-done-icon {
	width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 12px;
	display: flex; align-items: center; justify-content: center;
	background: var(--p1nm-bg, #F7941D); color: var(--p1nm-text, #0B0B0B);
}
.p1nm .p1nm-done-title { margin: 0 0 2px; font-size: 1.15em; font-weight: 700; color: #0B0B0B; }
.p1nm .p1nm-done-file { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #444441; }
.p1nm .p1nm-done-msg { margin: 0; font-size: 14px; line-height: 1.6; color: #5F5E5A; }
.p1nm .p1nm-done-link { display: inline-block; margin-top: 12px; font-size: 13px; color: #5F5E5A; }
.p1nm .p1nm-done-link[hidden] { display: none; }

@media (max-width: 480px) {
	.p1nm .p1nm-banner { padding: 22px 18px; }
}

/* Desktop — two columns, button centered at the bottom */
@media (min-width: 769px) {
	.p1nm-overlay { align-items: center; padding: 24px; }
	.p1nm .p1nm-modal { max-width: 800px; padding: 22px 26px 24px; border-radius: 14px; max-height: calc(100vh - 48px); }
	.p1nm .p1nm-modal-top { margin-bottom: 14px; }
	.p1nm .p1nm-pill { font-size: 12px; padding: 4px 12px; }

	.p1nm .p1nm-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; }
	.p1nm .p1nm-info { border-bottom: 0; border-right: 1px solid #E5E3DA; padding: 0 26px 0 0; margin: 0; }
	.p1nm .p1nm-modal-title { font-size: 21px; margin-bottom: 10px; }
	.p1nm .p1nm-modal-desc { font-size: 14px; line-height: 1.65; }

	.p1nm .p1nm-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	.p1nm .p1nm-row { margin-bottom: 10px; }
	.p1nm .p1nm-row input { height: 38px; font-size: 14px; }
	.p1nm .p1nm-consent { font-size: 12px; }
	.p1nm .p1nm-consent input { width: 16px; height: 16px; }

	.p1nm .p1nm-actions { border-top: 1px solid #E5E3DA; margin-top: 18px; padding-top: 18px; text-align: center; }
	.p1nm .p1nm-submit { width: auto; min-width: 280px; min-height: 46px; padding: 12px 40px; font-size: 15px; }
	.p1nm .p1nm-done { padding: 30px 0 16px; }
}
@media (prefers-reduced-motion: reduce) { .p1nm .p1nm-modal { animation: none; } }
