/* Trigger button ----------------------------------------------------------- */
.helpsite-subs-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid #1463FF;
	background: #1463FF;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
	width: 100%;
}
.helpsite-subs-trigger:hover,
.helpsite-subs-trigger:focus {
	background: #1e40af;
	border-color: #1e40af;
	color: #fff;
	outline: none;
}
.helpsite-subs-trigger svg {
	flex-shrink: 0;
}

/* Modal -------------------------------------------------------------------- */
.helpsite-subs-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}
.helpsite-subs-modal[hidden] {
	display: none;
}

.helpsite-subs-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	cursor: pointer;
}

body.helpsite-subs-modal-open {
	overflow: hidden;
}

.helpsite-subs-dialog {
	position: relative;
	background: #fff;
	width: 100%;
	max-width: 440px;
	margin: 16px;
	padding: 32px 28px 28px;
	border-radius: 10px;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
	box-sizing: border-box;
}

.helpsite-subs-close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: transparent;
	border: 0;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #90A0B4;
	padding: 6px 10px;
}
.helpsite-subs-close:hover,
.helpsite-subs-close:focus {
	color: #27313F;
	outline: none;
}

.helpsite-subs-title {
	margin: 0 0 6px 0;
	font-size: 20px;
	font-weight: 700;
	color: #27313F;
}
.helpsite-subs-intro {
	margin: 0 0 18px 0;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.5;
}

/* Form fields -------------------------------------------------------------- */
#top .helpsite-subs-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
}
#top .helpsite-subs-field label {
	font-size: 13px;
	font-weight: 600;
	color: #27313F;
}
#top .helpsite-subs-field input {
	padding: 10px 12px;
	border: 1px solid #D9E0E8;
	border-radius: 6px;
	font-size: 14px;
	background: #fff;
	color: #27313F;
	line-height: 1.4;
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	margin-bottom: 0;
}
#top .helpsite-subs-field input {
    border-color: #757a85 !important;
}
.banner-action span {
    color: #fff;
}
#top .helpsite-subs-field input:focus {
	outline: none;
	border-color: #1463FF;
	box-shadow: 0 0 0 3px rgba(20, 99, 255, 0.15);
}
#top .helpsite-subs-field.has-error input {
	border-color: #d92d20;
	box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}
#top .helpsite-subs-error {
	color: #d92d20;
	font-size: 12px;
	min-height: 1em;
}

/* Submit + messages -------------------------------------------------------- */
.helpsite-subs-actions {
	margin-top: 18px;
}
.helpsite-subs-submit {
	width: 100%;
	padding: 11px 18px;
	border: 0;
	border-radius: 8px;
	background: #1463FF;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.helpsite-subs-submit:hover {
	background: #1e40af;
}
.helpsite-subs-submit:disabled,
.helpsite-subs-submit.is-loading {
	opacity: 0.7;
	cursor: wait;
}

.helpsite-subs-message {
	margin-top: 14px;
	font-size: 13px;
	min-height: 1em;
}
.helpsite-subs-message.is-success {
	color: #079455;
}
.helpsite-subs-message.is-error {
	color: #d92d20;
}

@media (max-width: 480px) {
	.helpsite-subs-dialog {
		padding: 28px 20px 22px;
	}
	.helpsite-subs-title {
		font-size: 18px;
	}
}
