.bibelkort-generator-wrap {
	max-width: 960px;
	font-family: inherit;
}

.bibelkort-generator-wrap :is(h1, h2, h3, h4, h5, h6, p, label, small, textarea, .description),
.bibelkort-generator-wrap table.bibelkort-history.shop_table,
.bibelkort-generator-wrap table.bibelkort-history.shop_table :is(th, td, span, a, button, small, .bibelkort-status-badge, .bibelkort-theme-text, .bibelkort-status-reason) {
	font-family: inherit !important;
}

.bibelkort-thankyou-downloads,
.bibelkort-thankyou-downloads :is(h1, h2, h3, h4, h5, h6, p, span, a, button, label) {
	font-family: inherit;
}

.bibelkort-product-theme,
.bibelkort-product-theme :is(label, textarea, .description) {
	font-family: inherit;
}

.bibelkort-order-download,
.bibelkort-order-status {
	font-family: inherit;
}

.bibelkort-product-theme {
	margin-bottom: 1.25em;
}

.bibelkort-product-theme label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35em;
}

.bibelkort-product-theme .required {
	color: #b32d2e;
}

.bibelkort-product-theme textarea {
	width: 100%;
	max-width: 100%;
	resize: vertical;
	min-height: 4.5em;
}

.bibelkort-product-theme .description {
	display: block;
	font-size: 0.9em;
	color: #666;
	margin-top: 0.35em;
}

/* Mine ConnectSpill-kort – tabell */

.bibelkort-history-wrap {
	width: 100%;
	margin-top: 1.5em;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

table.bibelkort-history {
	width: 100% !important;
	table-layout: fixed !important;
	border-collapse: collapse;
	margin: 0;
	border: 1px solid #e0e0e0;
	background: #fff;
}

table.bibelkort-history th,
table.bibelkort-history td {
	padding: 12px 14px;
	vertical-align: middle;
	text-align: left;
	overflow-wrap: break-word;
	word-wrap: break-word;
	border-bottom: 1px solid #e8e8e8;
}

table.bibelkort-history thead th {
	background: #f5f7f6;
	font-weight: 700;
}

table.bibelkort-history tbody tr:nth-child(even) {
	background: #fafafa;
}

table.bibelkort-history tbody tr:last-child td {
	border-bottom: 0;
}

.bibelkort-col-category {
	width: 12%;
	white-space: nowrap;
}

.bibelkort-col-theme {
	width: 34%;
	white-space: normal;
}

.bibelkort-col-status {
	width: 14%;
	white-space: nowrap;
}

.bibelkort-col-date {
	width: 22%;
	white-space: nowrap;
}

.bibelkort-col-actions {
	width: 18%;
	white-space: nowrap;
	text-align: right;
}

.bibelkort-theme-text {
	display: block;
	white-space: normal;
	word-break: normal;
	overflow-wrap: break-word;
}

.bibelkort-status-badge {
	display: inline-block !important;
	padding: 0.2em 0.7em !important;
	border-radius: 999px !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	white-space: nowrap !important;
}

.bibelkort-status-badge--delivered {
	background: #edfaef !important;
	color: #007017 !important;
	border: 1px solid #b8e6c1 !important;
}

.bibelkort-status-badge--pending {
	background: #f0f6fc !important;
	color: #2271b1 !important;
	border: 1px solid #c5d9ed !important;
}

.bibelkort-status-badge--rejected {
	background: #fcebea !important;
	color: #8a2424 !important;
	border: 1px solid #f1c0c0 !important;
}

.bibelkort-status-badge--generated,
.bibelkort-status-badge--approved {
	background: #f6f7f7 !important;
	color: #50575e !important;
	border: 1px solid #dcdcde !important;
}

.bibelkort-status-reason {
	display: block;
	margin-top: 0.35em;
	color: #8a2424;
}

.bibelkort-history-download-btn {
	display: inline-block !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	padding: 0.45em 0.85em !important;
	font-size: 0.8125rem !important;
	line-height: 1.4 !important;
	font-weight: 600 !important;
	border-radius: 4px !important;
	white-space: nowrap !important;
}

.bibelkort-download-btn {
	font-weight: 600;
}

@media (max-width: 768px) {
	table.bibelkort-history.shop_table_responsive thead {
		display: none;
	}

	table.bibelkort-history.shop_table_responsive {
		table-layout: auto !important;
	}

	table.bibelkort-history.shop_table_responsive tbody tr {
		display: block;
		margin-bottom: 1rem;
		padding: 0.75rem 0;
		border: 1px solid #e0e0e0;
		border-radius: 4px;
		background: #fff;
	}

	table.bibelkort-history.shop_table_responsive tbody tr:nth-child(even) {
		background: #fafafa;
	}

	table.bibelkort-history.shop_table_responsive tbody td {
		display: block;
		width: auto !important;
		padding: 0.5rem 1rem;
		border-bottom: 0;
		text-align: left !important;
	}

	table.bibelkort-history.shop_table_responsive tbody td::before {
		content: attr(data-title) ": ";
		font-weight: 700;
		display: inline;
	}

	table.bibelkort-history.shop_table_responsive .bibelkort-col-category,
	table.bibelkort-history.shop_table_responsive .bibelkort-col-date,
	table.bibelkort-history.shop_table_responsive .bibelkort-col-status,
	table.bibelkort-history.shop_table_responsive .bibelkort-col-actions {
		white-space: nowrap;
	}

	table.bibelkort-history.shop_table_responsive .bibelkort-col-theme,
	table.bibelkort-history.shop_table_responsive .bibelkort-theme-text {
		white-space: normal;
		word-break: normal;
		overflow-wrap: break-word;
	}

	table.bibelkort-history.shop_table_responsive .bibelkort-col-actions {
		text-align: left;
		padding-top: 0.75rem;
	}
}

.bibelkort-thankyou-downloads {
	margin: 0 0 2.75rem;
	padding: 1.5em 1.75em;
	background: #fff;
	border: 2px solid #2271b1;
	border-radius: 6px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.bibelkort-thankyou-downloads h2 {
	margin: 0 0 1.5em;
	font-size: 1.35em;
	line-height: 1.3;
}

.bibelkort-thankyou-item {
	margin-top: 1.25em;
	padding-top: 1.25em;
	border-top: 1px solid #e0e0e0;
}

.bibelkort-thankyou-item:first-of-type {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.bibelkort-thankyou-product {
	margin: 0 0 0.75em;
	font-size: 1.05em;
	text-align: center;
}

.bibelkort-thankyou-state--pending {
	margin-top: 0.25em;
}

.bibelkort-thankyou-pending {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.25em;
	padding: 2rem 1.5rem;
	text-align: center;
	background: linear-gradient(180deg, #edf9f0 0%, #e8f4fc 100%);
	border: 2px solid #007017;
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(0, 112, 23, 0.12);
	animation: bibelkort-pending-pulse 2.4s ease-in-out infinite;
}

.bibelkort-thankyou-pending-lead {
	margin: 0;
	max-width: 28em;
	font-size: 1.4em;
	font-weight: 700;
	line-height: 1.35;
	color: #1d2327;
}

.bibelkort-thankyou-pending-sub {
	margin: 0;
	max-width: 26em;
	font-size: 0.95em;
	line-height: 1.5;
	color: #50575e;
}

.bibelkort-thankyou-error {
	margin: 0;
	color: #8a2424;
}

.bibelkort-thankyou-download-btn {
	font-weight: 700;
	letter-spacing: 0.02em;
}

.bibelkort-thankyou-loader {
	display: block;
	width: 200px;
	height: 200px;
	object-fit: contain;
}

@keyframes bibelkort-pending-pulse {
	0%,
	100% {
		box-shadow: 0 4px 16px rgba(0, 112, 23, 0.12);
		border-color: #007017;
	}

	50% {
		box-shadow: 0 6px 24px rgba(0, 112, 23, 0.22);
		border-color: #00a32a;
	}
}

.bibelkort-order-download,
.bibelkort-order-status {
	margin-top: 0.5em;
}

/* Skjul kort produktbeskrivelse i handlekurv/kasse (behold «Spørsmål lages ut fra»). */
.woocommerce-cart .wc-block-components-product-metadata__description,
.woocommerce-checkout .wc-block-components-product-metadata__description {
	display: none;
}
