/* Homer Patuach - Newsletter: bottom banner + login-page strip */

.hpn-banner {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 9999;
	display: flex;
	justify-content: center;
	pointer-events: none;
	transform: translateY(120%);
	transition: transform .35s ease;
}

.hpn-banner.is-visible {
	transform: translateY(0);
}

.hpn-banner-card {
	pointer-events: auto;
	width: 100%;
	max-width: 640px;
	margin: 0 16px 16px;
	background: #1f2430;
	color: #f4f5f7;
	border-radius: 18px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
	padding: 14px 16px;
	font-size: 14px;
	line-height: 1.5;
}

.hpn-banner-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hpn-banner-text {
	flex: 1;
}

.hpn-close {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	border: none;
	background: rgba(255, 255, 255, .12);
	color: #f4f5f7;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .15s ease;
}

.hpn-close:hover,
.hpn-close:focus-visible {
	background: rgba(255, 255, 255, .25);
}

.hpn-close svg {
	width: 18px;
	height: 18px;
}

.hpn-pill {
	border: none;
	border-radius: 999px;
	padding: 9px 18px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: transform .1s ease, opacity .15s ease;
}

.hpn-pill:active {
	transform: scale(.97);
}

.hpn-pill-primary {
	background: #6c8cff;
	color: #10131a;
}

.hpn-pill-primary:hover {
	opacity: .9;
}

.hpn-panel {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.hpn-panel-intro {
	opacity: .8;
	font-size: 13px;
	margin: 0 0 10px;
}

.hpn-group-label {
	font-size: 12px;
	font-weight: 700;
	opacity: .7;
	margin: 12px 0 6px;
}

.hpn-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-height: 120px;
	overflow-y: auto;
	padding-inline-end: 2px;
}

.hpn-chip {
	border: 1px solid rgba(255, 255, 255, .25);
	background: transparent;
	color: #f4f5f7;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12px;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}

.hpn-chip.is-selected {
	background: #6c8cff;
	border-color: #6c8cff;
	color: #10131a;
	font-weight: 600;
}

.hpn-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
}

.hpn-status-msg {
	font-size: 12px;
	opacity: .85;
}

.hpn-status-msg.is-error {
	color: #ff9c9c;
}

.hpn-banner-card.is-thanks .hpn-panel,
.hpn-banner-card.is-thanks .hpn-actions {
	display: none;
}

/* Login page strip */
body.login .hpn-login-strip {
	max-width: 320px;
	margin: 18px auto 0;
	background: #eef1ff;
	border: 1px solid #c7d2ff;
	border-radius: 16px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
	color: #2b3350;
}

body.login .hpn-login-strip-icon {
	color: #4a5bd4;
}

body.login .hpn-login-strip-text {
	font-size: 13px;
	line-height: 1.5;
}

body.login .hpn-login-strip-cta {
	border: none;
	border-radius: 999px;
	background: #4a5bd4;
	color: #fff;
	font-weight: 600;
	font-size: 13px;
	padding: 8px 20px;
	cursor: pointer;
}

body.login .hpn-login-strip-cta:disabled {
	opacity: .7;
	cursor: default;
}

body.login .hpn-login-strip {
	transition: background .25s ease, border-color .25s ease;
}

body.login .hpn-login-strip.is-confirmed {
	background: #e8f7ee;
	border-color: #8fdcae;
	color: #175b34;
}

body.login .hpn-login-strip.is-confirmed .hpn-login-strip-icon {
	color: #1d9a55;
}

body.login .hpn-login-strip.is-confirmed .hpn-login-strip-cta {
	background: #1d9a55;
}
