/* Button that replaces the email address */
.ccsai-cp-btn {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	padding: .5em 1em;
	border: 2px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: .9em;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.ccsai-cp-btn:hover,
.ccsai-cp-btn:focus-visible {
	background: #1d3557;
	border-color: #1d3557;
	color: #fff;
}
.ccsai-cp-btn:focus-visible { outline: 3px solid #f4a261; outline-offset: 2px; }

/* Modal */
html.ccsai-cp-lock { overflow: hidden; }
.ccsai-cp-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, .6);
}
.ccsai-cp-overlay[hidden] { display: none; }
.ccsai-cp-dialog {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 28px 28px 24px;
	border-radius: 12px;
	background: #fff;
	color: #1f2933;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
	text-align: left;
}
.ccsai-cp-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #52606d;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.ccsai-cp-close:hover { background: #f0f2f5; color: #1f2933; }
.ccsai-cp-title { margin: 0 32px 4px 0; font-size: 1.4rem; line-height: 1.25; }
.ccsai-cp-sub { margin: 0 0 18px; color: #52606d; font-size: .95rem; }
.ccsai-cp-field {
	display: block;
	margin-bottom: 14px;
	font-size: .9rem;
	font-weight: 600;
}
.ccsai-cp-field[hidden] { display: none; }
.ccsai-cp-opt { font-weight: 400; color: #7b8794; }
.ccsai-cp-field input,
.ccsai-cp-field textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: 5px;
	padding: 10px 12px;
	border: 1px solid #cbd2d9;
	border-radius: 6px;
	background: #fff;
	color: #1f2933;
	font: inherit;
	font-weight: 400;
}
.ccsai-cp-field input:focus,
.ccsai-cp-field textarea:focus {
	border-color: #1d3557;
	outline: 2px solid rgba(29, 53, 87, .25);
}
.ccsai-cp-submit {
	padding: 11px 22px;
	border: 0;
	border-radius: 6px;
	background: #1d3557;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.ccsai-cp-submit[hidden] { display: none; }
.ccsai-cp-submit:disabled { opacity: .6; cursor: default; }
.ccsai-cp-status { min-height: 1.2em; margin: 0 0 12px; font-size: .95rem; }
.ccsai-cp-status.is-ok { color: #1b7f3b; font-weight: 600; }
.ccsai-cp-status.is-error { color: #b42318; }
.ccsai-cp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
