﻿.cap-otp-lock {
	overflow: hidden;
}

.cap-otp-layer {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	background: rgba(8, 43, 51, 0.72);
	backdrop-filter: blur(2px);
}

.cap-otp-layer.is-active {
	display: block !important;
}

.cap-otp-dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	width: min(430px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	transform: translate(-50%, -50%);
	background: #ffffff;
	border: 1px solid rgba(27, 177, 220, 0.34);
	box-shadow: 0 28px 75px rgba(8, 43, 51, 0.26);
	color: #343434;
}

.cap-otp-head {
	position: relative;
	padding: 24px 54px 22px;
	text-align: center;
	background: #073341;
	border-top: 4px solid #1bb1dc;
}

.cap-otp-brand {
	margin-bottom: 4px;
	color: #1bb1dc;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.cap-otp-title {
	margin: 0;
	color: #ffffff;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 600;
}

.cap-otp-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.cap-otp-close:hover,
.cap-otp-close:focus {
	background: #1bb1dc;
	outline: none;
}

.cap-otp-body {
	padding: 30px 30px 32px;
	text-align: center;
}

.cap-otp-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	margin-bottom: 22px;
	background: #f2fbfd;
	border: 1px solid rgba(27, 177, 220, 0.38);
	color: #1bb1dc;
	font-size: 30px;
}

.cap-otp-body h3 {
	margin: 0 0 10px;
	color: #073341;
	font-size: 23px;
	line-height: 1.25;
	font-weight: 600;
	text-transform: uppercase;
}

.cap-otp-body p {
	margin: 0 auto 20px;
	max-width: 330px;
	color: #6e7678;
	font-size: 15px;
	line-height: 1.65;
}

.cap-otp-email {
	display: block;
	color: #073341;
	font-weight: 600;
}

.cap-otp-digits {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
	margin: 22px 0 18px;
}

.cap-otp-digit {
	width: 100%;
	aspect-ratio: 1 / 1.08;
	border: 1px solid #d6e9ee;
	background: #ffffff;
	color: #073341;
	font-size: 24px;
	font-weight: 600;
	line-height: 1;
	text-align: center;
}

.cap-otp-digit:focus {
	border-color: #1bb1dc;
	box-shadow: 0 0 0 3px rgba(27, 177, 220, 0.16);
	outline: none;
}

.cap-otp-action,
.cap-otp-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	border: 1px solid #1bb1dc;
	background: #1bb1dc;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 180ms ease;
}

.cap-otp-action:hover,
.cap-otp-action:focus {
	background: #073341;
	border-color: #073341;
	color: #ffffff;
	outline: none;
}

.cap-otp-action:disabled,
.cap-otp-secondary:disabled {
	cursor: not-allowed;
	opacity: 0.68;
}

.cap-otp-secondary {
	margin-top: 14px;
	background: transparent;
	color: #1bb1dc;
}

.cap-otp-secondary:hover,
.cap-otp-secondary:focus {
	background: #f2fbfd;
	color: #073341;
	outline: none;
}

.cap-otp-message,
.cap-form-notice {
	min-height: 20px;
	margin-top: 12px;
	color: #c0392b;
	font-size: 13px;
	line-height: 1.45;
	text-align: center;
}

.cap-otp-message.is-success,
.cap-form-notice.is-success {
	color: #138a52;
}

.cap-form-notice {
	width: 100%;
	margin-top: 10px;
	text-align: left;
}

.cap-success-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: 20px;
	background: #1bb1dc;
	color: #ffffff;
	font-size: 34px;
	border-radius: 50%;
	box-shadow: 0 12px 24px rgba(27, 177, 220, 0.24);
}

@media only screen and (max-width: 480px) {
	.cap-otp-head {
		padding: 22px 48px 20px;
	}

	.cap-otp-title {
		font-size: 21px;
	}

	.cap-otp-body {
		padding: 26px 20px 28px;
	}

	.cap-otp-digits {
		gap: 6px;
	}

	.cap-otp-digit {
		font-size: 20px;
	}
}
