/**
 * The delete confirmation - assets/js/ap-confirm.js.
 *
 * Headings and buttons restate font, size, spacing, border and shadow two
 * classes deep with !important: the theme italicises every <button> and the
 * Elementor kit styles h2 and button from `.elementor-kit-296 …`, two classes
 * deep (CLAUDE.md 4.1).
 */

.ap-confirm {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 20px;
	background: rgba(17, 20, 28, 0.5);
	animation: ap-confirm-in 0.12s ease-out;
}

.ap-confirm__box {
	box-sizing: border-box;
	width: 100%;
	max-width: 380px;
	padding: 24px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	color: #1e2132;
	text-align: left;
}

.ap-confirm .ap-confirm__title {
	margin: 0 0 8px !important;
	padding: 0 !important;
	color: #1e2132 !important;
	font-family: inherit !important;
	font-size: 18px !important;
	font-style: normal !important;
	font-weight: 600 !important;
	letter-spacing: normal !important;
	line-height: 1.3 !important;
	text-transform: none !important;
}

.ap-confirm .ap-confirm__text {
	margin: 0 !important;
	color: #4b4f58;
	font-size: 15px;
	line-height: 1.45;
}

.ap-confirm__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 22px;
}

.ap-confirm .ap-confirm__cancel,
.ap-confirm .ap-confirm__ok {
	flex: 0 0 auto;
	width: auto !important;
	min-width: 96px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 11px 18px !important;
	border: 0 !important;
	border-radius: 100px !important;
	box-shadow: none !important;
	font-family: inherit !important;
	font-size: 15px !important;
	font-style: normal !important;
	font-weight: 600 !important;
	letter-spacing: normal !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.ap-confirm .ap-confirm__cancel {
	background: #f1f2f4 !important;
	color: #1e2132 !important;
}

.ap-confirm .ap-confirm__cancel:hover {
	background: #e4e6ea !important;
}

/* Fades in over the half-second in which it cannot be pressed. */
.ap-confirm .ap-confirm__ok {
	background: #d63638 !important;
	color: #fff !important;
	animation: ap-confirm-arm 0.5s ease-in both;
}

.ap-confirm .ap-confirm__ok:hover {
	background: #b32d2e !important;
}

.ap-confirm .ap-confirm__cancel:focus-visible,
.ap-confirm .ap-confirm__ok:focus-visible {
	outline: 2px solid #1e2132 !important;
	outline-offset: 2px;
}

/* A phone: two buttons of equal width across the box. */
@media (max-width: 600px) {

	.ap-confirm .ap-confirm__cancel,
	.ap-confirm .ap-confirm__ok {
		flex: 1 1 0;
		min-width: 0 !important;
		padding: 13px 16px !important;
	}
}

@keyframes ap-confirm-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes ap-confirm-arm {
	from { opacity: 0.4; }
	to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {

	.ap-confirm {
		animation: none;
	}
}
