/* HostBill Prijstabellen — front-end stijl.
 * Kleuren komen als CSS-variabelen binnen (met fallbacks hieronder), zodat
 * zowel de globale instellingenpagina als per-widget Elementor-stijlcontroles
 * hetzelfde uiterlijk kunnen aansturen.
 */

.hb-price-table, .hb-domain-table {
	--hb-card-bg: #ffffff;
	--hb-card-border: #e5e7eb;
	--hb-featured-from: #4f46e5;
	--hb-featured-to: #2563eb;
	--hb-featured-scale: 1.04;
	--hb-price-color: #111827;
	--hb-text-color: #4b5563;
	--hb-check-color: #22c55e;
	--hb-button-bg: #2563eb;
	--hb-button-text: #ffffff;
	--hb-accent: #2563eb;

	box-sizing: border-box;
}
.hb-price-table *, .hb-domain-table * { box-sizing: border-box; }

/* ---------- Termijn-toggle ---------- */
.hb-cycle-toggle {
	display: inline-flex;
	gap: 4px;
	background: #eef2ff;
	padding: 4px;
	border-radius: 999px;
	margin: 0 auto 28px;
	justify-content: center;
}
.hb-price-table { text-align: center; }
.hb-cycle-btn {
	border: none;
	background: transparent;
	padding: 8px 20px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	color: #4338ca;
	transition: background-color .15s ease, color .15s ease;
}
.hb-cycle-btn.is-active {
	background: var(--hb-accent);
	color: #fff;
}

/* ---------- Kaarten grid ---------- */
.hb-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
	align-items: stretch;
	text-align: left;
}
@media (max-width: 782px) {
	.hb-cards { grid-template-columns: 1fr; }
}

.hb-card {
	position: relative;
	background: var(--hb-card-bg);
	border: 1px solid var(--hb-card-border);
	border-radius: 16px;
	padding: 32px 28px;
	display: flex;
	flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
}

.hb-card-featured {
	border-color: transparent;
	background:
		linear-gradient(var(--hb-card-bg), var(--hb-card-bg)) padding-box,
		linear-gradient(135deg, var(--hb-featured-from), var(--hb-featured-to)) border-box;
	border: 2px solid transparent;
	transform: scale(var(--hb-featured-scale));
	box-shadow: 0 20px 40px -12px rgba(37, 99, 235, .35);
	z-index: 1;
}
@media (max-width: 782px) {
	.hb-card-featured { transform: none; }
}

.hb-badge {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, var(--hb-featured-from), var(--hb-featured-to));
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
	padding: 6px 16px;
	border-radius: 999px;
	white-space: nowrap;
	box-shadow: 0 6px 14px rgba(37,99,235,.35);
}

.hb-card-title {
	margin: 8px 0 6px;
	font-size: 22px;
	font-weight: 700;
	color: var(--hb-price-color);
	text-align: center;
}

.hb-card-desc {
	margin: 0 0 18px;
	font-size: 14px;
	color: var(--hb-text-color);
	text-align: center;
	line-height: 1.5;
}

/* ---------- Prijs ---------- */
.hb-price-wrap {
	text-align: center;
	margin-bottom: 6px;
}
.hb-price-prefix {
	display: block;
	font-size: 13px;
	color: var(--hb-text-color);
	margin-bottom: 2px;
}
.hb-price-line {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
}
.hb-price-was {
	font-size: 16px;
	color: #9ca3af;
	text-decoration: line-through;
}
.hb-price-main {
	font-size: 42px;
	font-weight: 800;
	color: var(--hb-price-color);
	line-height: 1;
}
.hb-price-currency { font-size: 20px; font-weight: 700; vertical-align: top; margin-right: 1px; }
.hb-price-dec { font-size: 20px; font-weight: 700; vertical-align: top; }
.hb-price-suffix {
	font-size: 14px;
	color: var(--hb-text-color);
	align-self: flex-end;
}
.hb-price-quote {
	display: block;
	font-size: 28px;
	font-weight: 800;
	color: var(--hb-price-color);
	margin: 10px 0;
}
.hb-savings-badge {
	display: inline-block;
	margin: 8px 0 4px;
	background: #dcfce7;
	color: #16a34a;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
}
.hb-setup-fee {
	text-align: center;
	font-size: 13px;
	color: var(--hb-text-color);
	margin: 0 0 18px;
}

/* ---------- Knop ---------- */
.hb-button {
	display: block;
	text-align: center;
	background: var(--hb-button-bg);
	color: var(--hb-button-text);
	font-weight: 700;
	font-size: 15px;
	padding: 12px 20px;
	border-radius: 8px;
	text-decoration: none;
	border: 2px solid var(--hb-button-bg);
	margin: 4px 0 20px;
	transition: opacity .15s ease;
}
.hb-button:hover, .hb-button:focus {
	opacity: .9;
	color: var(--hb-button-text);
}

/* ---------- Divider & features ---------- */
.hb-divider {
	border: none;
	border-top: 1px solid var(--hb-card-border);
	margin: 4px 0 18px;
}
.hb-features {
	list-style: none;
	margin: 0;
	padding: 0;
	flex-grow: 1;
}
.hb-features li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: var(--hb-text-color);
	margin-bottom: 12px;
	line-height: 1.4;
}
.hb-check {
	color: var(--hb-check-color);
	font-weight: 700;
	flex-shrink: 0;
}

.hb-vat-note {
	text-align: center;
	font-size: 12px;
	color: #9ca3af;
	margin-top: 24px;
}

.hb-empty {
	padding: 20px;
	text-align: center;
	color: #9ca3af;
	border: 1px dashed #d1d5db;
	border-radius: 8px;
}

/* ---------- Domeinprijzen tabel ---------- */
.hb-dt-table {
	width: 100%;
	border-collapse: collapse;
}
.hb-dt-table th, .hb-dt-table td {
	border: 1px solid var(--hb-card-border);
	padding: 12px 16px;
	text-align: left;
}
.hb-dt-table thead th {
	background: #f4f4f5;
	font-weight: 700;
}
.hb-dt-highlight { background: #eef2ff; }
.hb-dt-badge {
	display: inline-block;
	margin-left: 8px;
	background: #4f46e5;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
	vertical-align: middle;
}
