/* Annuaire CF7 × WooCommerce Bridge — UI styles */

#acwb-wrapper {
	margin: 32px 0 20px;
}

/* ── Section titles ──────────────────────────────────────────────────────── */

.acwb-section {
	margin-bottom: 28px;
}

.acwb-section-title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 14px;
	color: #333;
}

/* ── Currency buttons ────────────────────────────────────────────────────── */

.acwb-currency-btns {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.acwb-cur-btn {
	padding: 9px 22px;
	border: 2px solid #ccc;
	border-radius: 8px;
	background: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.18s, background 0.18s, color 0.18s;
	color: #555;
	line-height: 1;
}

.acwb-cur-btn:hover {
	border-color: #888;
	color: #111;
}

.acwb-cur-btn.is-active {
	border-color: #2271b1;
	background: #2271b1;
	color: #fff;
}

/* ── Plan cards ──────────────────────────────────────────────────────────── */

.acwb-plans {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

@media (max-width: 580px) {
	.acwb-plans {
		grid-template-columns: 1fr;
	}
}

.acwb-plan {
	position: relative;
	padding: 22px 20px 18px;
	border: 2px solid #ddd;
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.18s, box-shadow 0.18s;
	user-select: none;
	outline: none;
}

.acwb-plan:hover {
	border-color: #aaa;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
}

.acwb-plan.is-selected {
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.18);
}

.acwb-plan:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 3px;
}

/* Checkmark circle */

.acwb-plan-check {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid #ccc;
	background: #fff;
	transition: all 0.18s;
	flex-shrink: 0;
}

.acwb-plan.is-selected .acwb-plan-check {
	background: #2271b1;
	border-color: #2271b1;
}

.acwb-plan.is-selected .acwb-plan-check::after {
	content: '';
	display: block;
	position: absolute;
	top: 3px;
	left: 6px;
	width: 5px;
	height: 9px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg);
}

/* Plan title */

.acwb-plan-title {
	margin: 0 28px 14px 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #222;
	line-height: 1.3;
}

/* Plan price */

.acwb-plan-price {
	display: flex;
	align-items: baseline;
	gap: 2px;
	margin-bottom: 10px;
}

.acwb-sym {
	font-size: 1.15rem;
	font-weight: 700;
	color: #2271b1;
}

.acwb-amt {
	font-size: 2.4rem;
	font-weight: 800;
	color: #2271b1;
	line-height: 1;
	letter-spacing: -0.5px;
}

.acwb-period {
	font-size: 0.82rem;
	color: #888;
	margin-left: 2px;
}

/* Plan description */

.acwb-plan-desc {
	margin: 0;
	font-size: 0.83rem;
	color: #777;
	line-height: 1.5;
}

/* ── Validation notice ───────────────────────────────────────────────────── */

.acwb-notice {
	margin-top: 16px;
	padding: 12px 16px;
	border-left: 4px solid #d63638;
	background: #fef0f0;
	color: #d63638;
	border-radius: 4px;
	font-size: 0.88rem;
	line-height: 1.5;
}

.acwb-notice[hidden] {
	display: none;
}

/* ── Loader overlay ──────────────────────────────────────────────────────── */

#acwb-loader {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10, 20, 40, 0.72);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

#acwb-loader.is-visible {
	opacity: 1;
	pointer-events: all;
}

.acwb-loader-box {
	text-align: center;
	padding: 48px 56px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
	min-width: 300px;
	max-width: 90vw;
	animation: acwb-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes acwb-pop {
	from { transform: scale(0.88); opacity: 0; }
	to   { transform: scale(1);    opacity: 1; }
}

/* ── Spinner ── */

.acwb-spinner {
	position: relative;
	width: 56px;
	height: 56px;
	margin: 0 auto 24px;
}

.acwb-spinner span {
	position: absolute;
	inset: 0;
	border: 3px solid transparent;
	border-top-color: #2271b1;
	border-radius: 50%;
	animation: acwb-spin 1s linear infinite;
}

.acwb-spinner span:nth-child(2) {
	inset: 8px;
	border-top-color: #5ba4d4;
	animation-duration: 0.75s;
	animation-direction: reverse;
}

.acwb-spinner span:nth-child(3) {
	inset: 16px;
	border-top-color: #a8cde8;
	animation-duration: 0.55s;
}

.acwb-spinner span:nth-child(4) {
	inset: 24px;
	border-top-color: #daeaf6;
	animation-duration: 0.4s;
	animation-direction: reverse;
}

@keyframes acwb-spin {
	to { transform: rotate(360deg); }
}

/* ── Texts ── */

.acwb-loader-title {
	margin: 0 0 8px;
	font-size: 1.15rem;
	font-weight: 700;
	color: #1a1a2e;
	letter-spacing: -0.2px;
}

.acwb-loader-step {
	margin: 0 0 20px;
	font-size: 0.88rem;
	color: #666;
	min-height: 1.4em;
	transition: opacity 0.3s ease;
}

/* ── Animated dots ── */

.acwb-loader-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
}

.acwb-loader-dots span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #2271b1;
	animation: acwb-bounce 1.2s ease-in-out infinite;
	opacity: 0.3;
}

.acwb-loader-dots span:nth-child(1) { animation-delay: 0s;    }
.acwb-loader-dots span:nth-child(2) { animation-delay: 0.2s;  }
.acwb-loader-dots span:nth-child(3) { animation-delay: 0.4s;  }

@keyframes acwb-bounce {
	0%, 80%, 100% { transform: scale(0.7); opacity: 0.3; }
	40%            { transform: scale(1.1); opacity: 1;   }
}
