/* Phone reveal gate */

.af-phone-reveal {
	display: inline-flex;
	max-width: 100%;
	vertical-align: middle;
}

.af-phone-reveal > a,
.af-phone-reveal > button {
	max-width: 100%;
}

button.af-phone-reveal__trigger {
	appearance: none;
	font: inherit;
	cursor: pointer;
	text-align: inherit;
	text-decoration: none;
	box-sizing: border-box;
}

html.af-phone-reveal-open {
	overflow: hidden;
}

.af-phone-reveal-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: grid;
	place-items: center;
	padding: 20px;
}

.af-phone-reveal-modal[hidden] {
	display: none !important;
}

.af-phone-reveal-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(4px);
}

.af-phone-reveal-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 440px);
	padding: 28px 24px 22px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
	text-align: center;
	animation: afPhoneRevealIn 0.28s ease;
}

@keyframes afPhoneRevealIn {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.af-phone-reveal-modal__x {
	position: absolute;
	top: 12px;
	left: 12px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 10px;
	background: #f1f5f9;
	color: #475569;
	cursor: pointer;
}

.af-phone-reveal-modal__x:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.af-phone-reveal-modal__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	border-radius: 16px;
	background: linear-gradient(145deg, #fff7ed, #ffedd5);
	color: #c2410c;
}

.af-phone-reveal-modal__icon svg {
	width: 28px;
	height: 28px;
}

.af-phone-reveal-modal__title {
	margin: 0 0 10px;
	font-size: 1.15rem;
	font-weight: 900;
	color: #0f172a;
	line-height: 1.4;
}

.af-phone-reveal-modal__text {
	margin: 0 0 22px;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.85;
	color: #334155;
	text-align: justify;
	text-align-last: center;
}

.af-phone-reveal-modal__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.af-phone-reveal-modal__confirm,
.af-phone-reveal-modal__cancel {
	appearance: none;
	font: inherit;
	cursor: pointer;
	border: 0;
	border-radius: 12px;
	padding: 12px 16px;
	font-weight: 800;
	line-height: 1.4;
	transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.af-phone-reveal-modal__confirm {
	background: linear-gradient(135deg, #0d9488, #0891b2);
	color: #fff;
	box-shadow: 0 8px 20px rgba(8, 145, 178, 0.28);
}

.af-phone-reveal-modal__confirm:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 24px rgba(8, 145, 178, 0.35);
}

.af-phone-reveal-modal__cancel {
	background: transparent;
	color: #64748b;
}

.af-phone-reveal-modal__cancel:hover {
	background: #f8fafc;
	color: #334155;
}

@media (max-width: 480px) {
	.af-phone-reveal-modal__dialog {
		padding: 24px 18px 18px;
		border-radius: 18px;
	}

	.af-phone-reveal-modal__text {
		font-size: 0.9rem;
	}
}
