/* Public styles for Ace the Catch */

.catch-the-ace__wrapper .notice {
	margin: 12px 0 18px;
	padding: 12px 14px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-left-width: 4px;
	border-radius: 12px;
	background: #f8fafc;
	color: #0f172a;
}

.catch-the-ace__wrapper .notice p {
	margin: 0 0 6px;
}

.catch-the-ace__wrapper .notice p:last-child {
	margin-bottom: 0;
}

.catch-the-ace__wrapper .notice-success {
	border-left-color: #16a34a;
	background: #f0fdf4;
	color: #14532d;
}

.catch-the-ace__wrapper .notice-error {
	border-left-color: #dc2626;
	background: #fef2f2;
	color: #7f1d1d;
}

.catch-the-ace__wrapper .notice-warning {
	border-left-color: #d97706;
	background: #fffbeb;
	color: #7c2d12;
}

.ace-checkout-success-content {
	margin: 0 0 20px;
}

.ace-checkout-form {
	max-width: 700px;
	margin: 0 0 24px;
	padding: 16px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.ace-checkout-form__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

@media (min-width: 640px) {
	.ace-checkout-form__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.ace-checkout-form__field {
	margin: 0;
}

.ace-checkout-form__field--full {
	grid-column: 1 / -1;
}

.ace-checkout-form__field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: #0f172a;
}

.ace-checkout-form__field input[type="text"],
.ace-checkout-form__field input[type="email"],
.ace-checkout-form__field input[type="tel"],
.ace-checkout-form__field input[type="number"],
.ace-checkout-form__field select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid rgba(15, 23, 42, 0.18);
	border-radius: 12px;
	background: #ffffff;
	color: #0f172a;
	font-size: 16px;
	line-height: 1.25;
}

.ace-checkout-form__field input[type="text"]:focus,
.ace-checkout-form__field input[type="email"]:focus,
.ace-checkout-form__field input[type="tel"]:focus,
.ace-checkout-form__field input[type="number"]:focus,
.ace-checkout-form__field select:focus {
	outline: none;
	border-color: rgba(37, 99, 235, 0.9);
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.ace-checkout-form__help {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: #475569;
}

.ace-checkout-form__terms label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	line-height: 1.35;
	font-weight: 500;
}

.ace-checkout-form__terms input[type="checkbox"] {
	margin-top: 3px;
}

.ace-checkout-form__payment {
	display: block;
}

.ace-checkout-form__stripe-card {
	padding: 12px;
	border: 1px solid rgba(15, 23, 42, 0.18);
	border-radius: 12px;
	background: #ffffff;
}

.ace-checkout-form__error {
	margin-top: 8px;
	font-size: 14px;
	color: #b91c1c;
}

.ace-checkout-form__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 6px;
}

/* Countdown shortcode styling (match card table header) */
.ace-countdown .simply-countdown {
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 0.4rem;
	font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.ace-countdown .simply-countdown > .simply-section {
	width: 46px;
	height: 46px;
	padding: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(226, 232, 240, 0.8);
	border-radius: 0.85rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03), 0 0 0 1px rgba(0, 0, 0, 0.02);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	backdrop-filter: blur(10px);
}

.ace-countdown .simply-countdown > .simply-section > div {
	display: flex;
	flex-direction: column;
	line-height: 1;
	align-items: center;
}

.ace-countdown .simply-countdown .simply-amount {
	font-size: 1rem;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.ace-countdown .simply-countdown .simply-word {
	font-size: 0.5rem;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

@media (min-width: 640px) {
	.ace-countdown .simply-countdown > .simply-section {
		width: 54px;
		height: 54px;
		padding: 0.9rem;
	}

	.ace-countdown .simply-countdown .simply-amount {
		font-size: 1.1rem;
	}

	.ace-countdown .simply-countdown .simply-word {
		font-size: 0.55rem;
	}
}

@media (min-width: 1024px) {
	.ace-countdown .simply-countdown > .simply-section {
		width: 58px;
		height: 58px;
		padding: 1rem;
	}

	.ace-countdown .simply-countdown .simply-amount {
		font-size: 1.2rem;
	}

	.ace-countdown .simply-countdown .simply-word {
		font-size: 0.6rem;
	}
}

/* Mini cards shortcode */
.cta-mini-cards {
	margin: 0 auto;
}

.cta-mini-cards .cta-mini-cards__table {
	grid-template-areas: none;
	grid-auto-rows: auto;
	gap: 5px;
}

.cta-mini-cards .envelope {
	pointer-events: none;
	cursor: default;
}

.cta-mini-cards .envelope:hover {
	box-shadow: none;
	scale: 1;
	cursor: default;
}

.cta-mini-cards .envelope .__card,
.cta-mini-cards .envelope .__front,
.cta-mini-cards .envelope .__back {
	border-radius: 8px;
}

.cta-mini-cards .envelope .__card {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.cta-mini-cards .envelope .__back::after {
	font-size: clamp(0.1rem, 2.2vw, 1rem);
	text-shadow: 0 2px 2px rgba(0, 0, 0, 0.8);
}

/* Geo block details table (SweetAlert2) */
.swal2-popup .ace-geo-details-wrap {
	margin-top: 12px;
}

.swal2-popup .ace-geo-details {
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	border-collapse: collapse;
	font-size: 13px;
}

.swal2-popup .ace-geo-details th,
.swal2-popup .ace-geo-details td {
	padding: 6px 8px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	vertical-align: top;
}

.swal2-popup .ace-geo-details th {
	width: 42%;
	text-align: left;
	background: #f8fafc;
	color: #0f172a;
	font-weight: 600;
}

.swal2-popup .ace-geo-details td {
	text-align: left;
	color: #334155;
	word-break: break-word;
}

/* Card table navigation buttons */
.card-table-actions {
	flex-wrap: wrap;
}

.card-table-actions .card-table-header__btn {
	min-width: 125px;
	width: auto;
	flex: 0 0 auto;
	white-space: nowrap;
}

/* Add space between the card table and the cart */
.card-table-wrap .ace-cart {
	margin-top: 72px;
}
