/* Vandklar-blokkene i bannere: Nedtælling (4 designs) og Periode-knap.
   Indlæses på sitet og i banner-editoren. */

.vtp-period-button-wrap {
	display: flex;
}

.vtp-period-button-wrap.is-full {
	display: block;
}

.vtp-period-button {
	display: inline-block;
	padding: 14px 24px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	text-align: center;
}

.vtp-period-button-wrap.is-full .vtp-period-button {
	display: block;
}

.vtp-period-button:hover,
.vtp-period-button:focus {
	filter: brightness( 1.08 );
	text-decoration: none;
}

.vtp-period-texts > .vtp-period-heading,
.vtp-period-texts > .vtp-period-text {
	margin: 0;
	color: inherit;
}

.vtp-period-texts > .vtp-period-heading {
	line-height: 1.15;
}

.vtp-period-texts > [hidden],
.vtp-period-button[hidden],
.vtp-period-content[hidden],
.vtp-countdown [hidden],
.vtp-countdown[hidden] {
	display: none !important;
}

/* ── Nedtælling ─────────────────────────────────────────────────── */
.vtp-countdown {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	color: inherit;
}

.vtp-countdown__label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 3px;
	color: #f7c531;
}

.vtp-countdown__units {
	display: flex;
	gap: 12px;
}

.vtp-countdown__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.vtp-countdown__num {
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.vtp-countdown__lbl {
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	opacity: 0.8;
}

.vtp-countdown__expired {
	font-weight: 600;
}

/* 1. Guld-bokse */
.vtp-countdown--gold .vtp-countdown__unit {
	width: 84px;
	padding: 12px 0;
	border-radius: 12px;
	background: rgba( 0, 0, 0, 0.6 );
	border: 1px solid rgba( 247, 197, 49, 0.55 );
	gap: 4px;
}

.vtp-countdown--gold .vtp-countdown__num {
	font-size: 34px;
}

/* 2. Minimal linje */
.vtp-countdown--minimal .vtp-countdown__units {
	gap: 18px;
}

.vtp-countdown--minimal .vtp-countdown__unit {
	flex-direction: row;
	align-items: baseline;
	gap: 4px;
}

.vtp-countdown--minimal .vtp-countdown__num {
	font-size: 22px;
	font-weight: 600;
}

/* 3. Store tal */
.vtp-countdown--big .vtp-countdown__units {
	gap: 22px;
}

.vtp-countdown--big .vtp-countdown__num {
	font-size: 64px;
	color: #ffd54a;
}

/* 4. Kompakt pille */
.vtp-countdown--pill {
	flex-direction: row;
	display: inline-flex;
	padding: 8px 16px;
	border-radius: 999px;
	background: #f7c531;
	color: #1a1300;
}

.vtp-countdown--pill .vtp-countdown__label {
	color: inherit;
	letter-spacing: 1px;
}

.vtp-countdown--pill .vtp-countdown__units {
	gap: 6px;
}

.vtp-countdown--pill .vtp-countdown__unit {
	flex-direction: row;
	align-items: baseline;
	gap: 2px;
}

.vtp-countdown--pill .vtp-countdown__num {
	font-size: 16px;
}

.vtp-countdown--pill .vtp-countdown__lbl {
	font-size: 10px;
}

@media ( max-width: 767px ) {
	.vtp-countdown--gold .vtp-countdown__unit {
		width: 64px;
	}

	.vtp-countdown--gold .vtp-countdown__num {
		font-size: 26px;
	}

	.vtp-countdown--big .vtp-countdown__num {
		font-size: 42px;
	}
}

/* Kun i editoren: forhåndsvisningens links kan ikke klikkes (klik vælger blokken). */
.vtp-block-preview a {
	pointer-events: none;
	cursor: default;
}

/* Kun i editoren: knappens perioder i sidepanelet. */
.vtp-inspector-row {
	margin: 0 0 12px;
	padding: 10px 12px 2px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #f6f7f7;
}

.vtp-inspector-row__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
	font-weight: 600;
}

.vtp-inspector-heading {
	margin: 16px 0 8px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #50575e;
}

/* Kun i editoren: Periode-indhold får en stiplet ramme og en etiket. */
.vtp-period-content-editor {
	outline: 1px dashed rgba( 247, 197, 49, 0.8 );
	outline-offset: 4px;
}

.vtp-period-content-label {
	display: inline-block;
	margin-bottom: 6px;
	padding: 2px 8px;
	border-radius: 4px;
	background: #f7c531;
	color: #1a1300;
	font-size: 11px;
	font-weight: 600;
}

/* Kun i editoren: forklaring når en blok mangler indstillinger. */
.vtp-block-note {
	padding: 10px 12px;
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	color: #50575e;
	background: #fff;
	font-size: 13px;
}
