/*
 * Gemeinsames Design fuer alle Stornopool-Frontend-Formulare
 * (Reise anbieten, Storno-Anbieter-Registrierung, ...). Beide Formulare
 * teilen sich diese Klassen (sp-trip-form/sp-fieldset/form-row), damit sie
 * optisch zusammenpassen. Die Farben kommen aus Storno Marketplace >
 * Einstellungen > Farben (CSS-Variablen --sg-*, im <head> ausgegeben); ohne
 * Einstellung gelten die gruenen Rueckfallwerte.
 */

.sp-trip-form {
	--sp-border: #dcdcde;
	--sp-border-strong: #c3c4c7;
	--sp-accent: var(--sg-primary, #2e7d32);
	--sp-accent-hover: var(--sg-primary-dark, #246227);
	--sp-text-muted: #666;
	max-width: 640px;
}

/* Honeypot: fuer Menschen unsichtbar, aber nicht via display:none (manche
   Bots ueberspringen das gezielt) - stattdessen weit ausserhalb des
   sichtbaren Bereichs positioniert. */
.sp-hp-field {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: 0;
}

.sp-trip-form fieldset.sp-fieldset {
	border: 1px solid var(--sp-border);
	border-radius: 6px;
	padding: 1.25em 1.5em 1.5em;
	margin-bottom: 1.5em;
	background: #fafafa;
}

.sp-trip-form legend {
	font-weight: 600;
	font-size: 1.05em;
	padding: 0 0.5em;
}

.sp-trip-form .form-row {
	margin-bottom: 1.1em;
}

.sp-trip-form .form-row:last-child {
	margin-bottom: 0;
}

.sp-trip-form .form-row label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35em;
}

.sp-trip-form input[type="text"],
.sp-trip-form input[type="email"],
.sp-trip-form input[type="tel"],
.sp-trip-form input[type="number"],
.sp-trip-form input[type="password"],
.sp-trip-form input[type="datetime-local"],
.sp-trip-form select,
.sp-trip-form textarea {
	width: 100%;
	max-width: 480px;
	padding: 0.55em 0.7em;
	border: 1px solid var(--sp-border-strong);
	border-radius: 4px;
	font-size: 1em;
	box-sizing: border-box;
}

.sp-trip-form textarea {
	min-height: 5em;
}

.sp-trip-form input:focus,
.sp-trip-form select:focus,
.sp-trip-form textarea:focus {
	outline: none;
	border-color: var(--sp-accent);
	box-shadow: 0 0 0 1px var(--sp-accent);
}

.sp-trip-form .sp-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1.5em;
	align-items: center;
}

.sp-trip-form .sp-radio-group label {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-weight: 600;
	margin-bottom: 0;
}

.sp-trip-form .description {
	color: var(--sp-text-muted);
	font-size: 0.9em;
	margin-top: 0.5em;
}

.sp-trip-form button.button {
	cursor: pointer;
	border-radius: 4px;
	padding: 0.7em 1.6em;
	font-size: 1em;
}

.sp-trip-form button.button.alt {
	background: var(--sp-accent);
	border-color: var(--sp-accent);
	color: var(--sg-on-primary, #fff);
}

.sp-trip-form button.button.alt:hover,
.sp-trip-form button.button.alt:focus {
	background: var(--sp-accent-hover);
	border-color: var(--sp-accent-hover);
	color: var(--sg-on-primary, #fff);
}

.sp-business-only {
	display: none;
}

.sp-component-row-frontend {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 0.5em;
	margin-bottom: 0.75em;
	padding-bottom: 0.75em;
	border-bottom: 1px dashed var(--sp-border-strong);
}

.sp-component-row-frontend input,
.sp-component-row-frontend select,
.sp-component-row-frontend textarea {
	width: 100%;
	max-width: none;
}

.sp-notice {
	padding: 1em 1.25em;
	margin-bottom: 1.5em;
	border-left: 4px solid #999;
	border-radius: 0 4px 4px 0;
}

.sp-notice-success {
	border-color: #46b450;
	background: var(--sg-primary-tint, #ecf7ed);
}

.sp-notice-error {
	border-color: #dc3232;
	background: #fbeaea;
}

.sp-selling-price-note {
	color: var(--sp-text-muted);
	font-weight: normal;
}

@media (max-width: 600px) {
	.sp-component-row-frontend {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---- [stornopool_angebote]: Liste, Kacheln, Tabelle, Filterleiste ----
   Farben aus Einstellungen > Farben (--sg-*), Schrift und Grundfarben vom Theme. */

.sp-offers {
	--sp-cols: 3;
	--sp-primary: var(--sg-primary, #2e7d32);
	--sp-primary-dark: var(--sg-primary-dark, #1b5e20);
	--sp-tint: var(--sg-primary-tint, #e8f5e9);
	--sp-on-primary: var(--sg-on-primary, #fff);
	--sp-text: var(--sg-text, inherit);
	--sp-line: rgba(0, 0, 0, 0.12);
}

/* Links in den Angebotslisten: nie unterstrichen (auch nicht beim Darueberfahren, auch nicht gegen
   Theme-Regeln wie .entry-content a). Klickbar zeigen wir durch Zeiger und kraeftigere Farbe. */
html body .sp-offers a,
html body .sp-offers a:hover,
html body .sp-offers a:focus,
html body .sp-offers a:active,
html body .sp-offers a:visited {
	text-decoration: none !important;
	box-shadow: none !important;
}

html body .sp-offers a:not(.button) {
	border-bottom: 0 !important;
	background-image: none !important;
}

.sp-offers a,
.sp-offers [data-href] {
	cursor: pointer;
}

.sp-offers ins {
	text-decoration: none;
}

.sp-offers-empty {
	color: #666;
}

/* Preise */
.sp-price-old {
	color: #999;
	font-weight: 400;
	font-size: 0.85em;
	text-decoration: line-through;
	margin-right: 0.3em;
}

.sp-price-new {
	color: var(--sp-primary-dark);
	font-weight: 700;
	font-size: 1.15em;
	text-decoration: none;
	white-space: nowrap;
}

.sp-save {
	display: inline-block;
	margin-left: 0.2em;
	padding: 0.05em 0.5em;
	border-radius: 999px;
	background: var(--sp-primary);
	color: var(--sp-on-primary);
	font-size: 0.75em;
	font-weight: 700;
	line-height: 1.6;
	white-space: nowrap;
}

/* Hinweisschilder */
.sp-offer-badge {
	display: inline-block;
	margin-left: 0.4em;
	padding: 0.1em 0.6em;
	border-radius: 999px;
	font-size: 0.65em;
	font-weight: 700;
	line-height: 1.6;
	vertical-align: middle;
	white-space: nowrap;
}

.sp-offer-badge--new {
	background: var(--sp-primary);
	color: var(--sp-on-primary);
}

.sp-offer-badge--soon {
	background: #fcf0c8;
	color: #5c4400;
}

/* Gemeinsame Bausteine von Liste und Kachel */
.sp-offer-title {
	margin: 0 0 0.35em;
	font-size: 1.1em;
	font-weight: 700;
	line-height: 1.3;
}

.sp-offers .sp-offer-link {
	position: static !important;
	color: inherit;
	transition: color 0.12s;
}

.sp-offers .sp-offer-title {
	position: static !important;
}

/* Mehr Farbe statt Unterstreichung, sobald der Block oder die Zeile angefasst wird */
.sp-offer-card:hover .sp-offer-link,
.sp-offer-row:hover .sp-offer-link,
.sp-offer-tr:hover .sp-offer-link,
.sp-offers .sp-offer-link:hover,
.sp-offers .sp-offer-link:focus {
	color: var(--sp-primary);
}

.sp-offer-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em;
	margin-bottom: 0.4em;
}

.sp-chip {
	padding: 0.1em 0.65em;
	border-radius: 999px;
	background: var(--sp-tint);
	color: var(--sp-text);
	font-size: 0.75em;
}

.sp-offer-meta {
	margin-bottom: 0.4em;
	color: #666;
	font-size: 0.9em;
	line-height: 1.45;
}

.sp-offer-fact {
	display: block;
}

.sp-offer-label {
	opacity: 0.85;
}

.sp-offer-price {
	margin: 0.2em 0 0.4em;
}

.sp-offer-valid-until {
	color: #999;
	font-size: 0.78em;
}

.sp-offer-valid-until--soon {
	color: #a05a00;
}

/* Der ganze Block ist klickbar: der Titel-Link spannt sich ueber die Karte/Zeile */
.sp-offer-card,
.sp-offer-row {
	position: relative;
}

.sp-offer-card .sp-offer-link::after,
.sp-offer-row .sp-offer-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Liste */
.sp-offers-list {
	display: flex;
	flex-direction: column;
	gap: 0.9em;
	max-width: 760px;
}

.sp-offer-row {
	display: flex;
	align-items: flex-start;
	gap: 1.25em;
	padding: 1em 1.25em;
	border: 1px solid var(--sp-line);
	border-radius: 8px;
	background: #fff;
	transition: box-shadow 0.15s, border-color 0.15s;
}

.sp-offer-row:hover,
.sp-offer-card:hover {
	border-color: var(--sp-primary);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sp-offer-image {
	flex: 0 0 auto;
	line-height: 0;
}

.sp-offer-image img {
	display: block;
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 6px;
}

.sp-offer-body {
	flex: 1 1 auto;
	min-width: 0;
}

/* Kacheln */
.sp-offers--kacheln .sp-offers-items {
	display: grid;
	grid-template-columns: repeat(var(--sp-cols, 3), minmax(0, 1fr));
	gap: 1.25em;
}

.sp-offer-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--sp-line);
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	transition: box-shadow 0.15s, border-color 0.15s;
}

.sp-offer-card__image {
	line-height: 0;
}

.sp-offer-card__image img {
	display: block;
	width: 100%;
	height: 190px;
	object-fit: cover;
}

.sp-offer-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 0.9em 1em 1.1em;
}

.sp-offer-card .sp-offer-price {
	margin-top: auto;
	padding-top: 0.3em;
}

.sp-offer-card__button {
	position: relative;
	z-index: 2;
	margin-top: 0.75em;
	padding: 0.55em 1em;
	border-radius: 6px;
	background: var(--sp-primary);
	color: var(--sp-on-primary);
	font-weight: 600;
	text-align: center;
	cursor: pointer;
}

/* Tabelle: schneller Ueberblick */
.sp-offers-tablewrap {
	overflow-x: auto;
	border: 1px solid var(--sp-line);
	border-radius: 8px;
	background: #fff;
}

.sp-offers-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	border: 0;
	font-size: 0.95em;
	line-height: 1.35;
}

.sp-offers-table th {
	padding: 0.65em 0.7em;
	background: var(--sp-tint);
	border: 0;
	border-bottom: 2px solid var(--sp-primary);
	color: var(--sp-text);
	font-size: 0.85em;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-align: left;
	text-transform: none;
	white-space: nowrap;
}

.sp-offers-table th a {
	color: inherit;
}

.sp-offers-table th a:hover,
.sp-offers-table th a:focus,
.sp-offers-table th.is-sorted a {
	color: var(--sp-primary);
}

.sp-sort-arrow {
	font-size: 0.8em;
	color: var(--sp-primary);
}

.sp-offers-table td {
	padding: 0.55em 0.7em;
	border: 0;
	border-bottom: 1px solid var(--sp-line);
	vertical-align: middle;
	background: transparent;
}

.sp-offers-table tbody tr:last-child td {
	border-bottom: 0;
}

.sp-offers-table .sp-offer-tr {
	cursor: pointer;
	transition: background 0.1s;
}

.sp-offers-table .sp-offer-tr:hover {
	background: var(--sp-tint);
}

.sp-offers-table .sp-col--titel {
	min-width: 12em;
	font-weight: 600;
}

.sp-offers-table .sp-col--abflughafen,
.sp-offers-table .sp-col--flugstrecke,
.sp-offers-table .sp-col--zielort,
.sp-offers-table .sp-col--personen {
	min-width: 7.5em;
}

.sp-offers-table .sp-col--gueltig_bis,
.sp-offers-table .sp-col--abreise,
.sp-offers-table .sp-col--restzeit {
	white-space: nowrap;
}

.sp-offers-table .sp-col--num {
	text-align: right;
	white-space: nowrap;
}

.sp-offers-table .sp-price-new {
	font-size: 1em;
}

.sp-offers-table .sp-offer-badge {
	font-size: 0.7em;
}

.sp-offers-table .sp-empty {
	color: #bbb;
}

.sp-offers-table .sp-soon {
	color: #a05a00;
	font-weight: 600;
}

.sp-offer-thumb {
	display: inline-block;
	width: 52px;
	height: 40px;
	margin-right: 0.7em;
	vertical-align: middle;
	overflow: hidden;
	border-radius: 4px;
	line-height: 0;
}

.sp-offer-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Filterleiste, Weitere laden, Seitenzahlen */
.sp-offers-filter {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px 16px;
	align-items: end;
	margin: 0 0 1.25em;
	padding: 16px 18px;
	border: 1px solid var(--sp-line);
	border-radius: 12px;
	background: var(--sp-tint);
}

.sp-filter-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.sp-filter-field > span {
	font-size: 0.8em;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #50575e;
}

/* Alle Felder gleich: gleiche Hoehe, Rundung und Farbe - unabhaengig vom Theme. */
.sp-offers .sp-offers-filter select,
.sp-offers .sp-offers-filter input[type="search"] {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 10px;
	background-color: #fff;
	color: var(--sp-text, #1d2327);
	font: inherit;
	font-size: 15px;
	line-height: 1.2;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.sp-offers .sp-offers-filter select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2350575e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px 8px;
	cursor: pointer;
}

.sp-offers .sp-offers-filter input[type="search"] {
	padding-left: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2350575e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 14px center;
}

.sp-offers .sp-offers-filter select:focus,
.sp-offers .sp-offers-filter input[type="search"]:focus {
	border-color: var(--sp-primary);
	outline: 2px solid var(--sp-primary);
	outline-offset: 0;
}

.sp-filter-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	grid-column: 1 / -1;
}

/* Zuruecksetzen und Link kopieren: gleiche, ruhige Schaltflaechen (der Filtern-Button bleibt die Hauptschaltflaeche). */
.sp-offers .sp-offers-filter .sp-filter-reset,
.sp-offers .sp-offers-filter .sp-filter-copy {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	height: 40px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 10px;
	background: #fff;
	color: var(--sp-primary-dark, var(--sp-primary));
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	opacity: 1;
}

.sp-offers .sp-offers-filter .sp-filter-reset:hover,
.sp-offers .sp-offers-filter .sp-filter-reset:focus,
.sp-offers .sp-offers-filter .sp-filter-copy:hover,
.sp-offers .sp-offers-filter .sp-filter-copy:focus {
	border-color: var(--sp-primary);
	background: var(--sp-tint);
	text-decoration: none;
}

.sp-offers .sp-offers-filter .sp-filter-copy {
	color: #50575e;
	font-weight: 500;
}

.sp-offers-more-wrap,
.sp-offers-pages {
	margin-top: 1.25em;
	text-align: center;
}

.sp-offers-pages .page-numbers {
	display: inline-block;
	margin: 0 0.15em;
	padding: 0.3em 0.7em;
	border: 1px solid var(--sp-line);
	border-radius: 4px;
}

.sp-offers-pages .page-numbers.current {
	background: var(--sp-primary);
	border-color: var(--sp-primary);
	color: var(--sp-on-primary);
}

@media (max-width: 900px) {
	.sp-offers--kacheln .sp-offers-items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	/* Tabelle wird zu gestapelten Karten */
	.sp-offers-tablewrap {
		border: 0;
		background: transparent;
	}

	.sp-offers-table thead {
		display: none;
	}

	.sp-offers-table,
	.sp-offers-table tbody,
	.sp-offers-table tr,
	.sp-offers-table td {
		display: block;
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
	}

	.sp-offers-table .sp-offer-tr {
		margin-bottom: 0.8em;
		border: 1px solid var(--sp-line);
		border-radius: 8px;
		background: #fff;
	}

	.sp-offers-table td {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 1em;
		padding: 0.4em 0.9em;
		border-bottom: 1px solid var(--sp-line);
		text-align: right;
	}

	.sp-offers-table td:last-child {
		border-bottom: 0;
	}

	.sp-offers-table td::before {
		content: attr(data-label);
		flex: 0 0 auto;
		color: #777;
		font-size: 0.85em;
		font-weight: 600;
		text-align: left;
	}

	/* Leere Angaben brauchen auf dem Handy keine eigene Zeile */
	.sp-offers-table td.is-empty {
		display: none;
	}

	.sp-offers-table .sp-col--titel {
		display: block;
		text-align: left;
	}

	.sp-offers-table .sp-col--titel::before {
		display: none;
	}
}

@media (max-width: 560px) {
	.sp-offers--kacheln .sp-offers-items {
		grid-template-columns: minmax(0, 1fr);
	}

	.sp-offer-row {
		flex-wrap: wrap;
	}

	.sp-offer-image img {
		width: 88px;
		height: 88px;
	}
}

.sp-buy-form {
	margin-top: 1em;
}

.sp-offer-unavailable {
	color: #999;
	font-weight: 600;
}

/* ---- Kaufseite und Kauf-Box ---- */

.sp-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sp-buy-box {
	margin: 1em 0;
}

.sp-buy-box .sp-buy-button {
	font-size: 1.1em;
	padding: 0.8em 2em;
}

.sp-price-table {
	width: 100%;
	max-width: 420px;
	border-collapse: collapse;
	margin: 0.5em 0;
}

.sp-price-table th,
.sp-price-table td {
	padding: 0.35em 0;
	text-align: left;
	border-bottom: 1px solid #e5e5e5;
	font-weight: normal;
}

.sp-price-table td {
	text-align: right;
	white-space: nowrap;
}

.sp-price-table .sp-price-total th,
.sp-price-table .sp-price-total td {
	font-weight: 700;
	font-size: 1.15em;
	border-bottom: 2px solid #333;
}

.sp-price-note {
	font-size: 0.9em;
	color: #666;
	margin: 0.25em 0 1em;
}

.sp-buy-page .sp-buy-summary {
	display: flex;
	gap: 1.5em;
	align-items: flex-start;
	margin-bottom: 1.5em;
}

.sp-buy-summary__image {
	flex: 0 0 200px;
}

.sp-buy-summary__image img {
	width: 100%;
	height: auto;
}

.sp-buy-summary__body {
	flex: 1;
}

.sp-buy-summary__body h2 {
	margin-top: 0;
}

.sp-buy-summary__details {
	list-style: none;
	margin: 0 0 0.75em;
	padding: 0;
}

.sp-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1em;
}

.sp-form-grid--address {
	grid-template-columns: 1fr 2fr;
}

.sp-buy-form input[type="text"],
.sp-buy-form input[type="email"],
.sp-buy-form input[type="tel"],
.sp-buy-form select {
	width: 100%;
}

/* Hinweis auf die E-Mail-Bestaetigung: bewusst auffaellig. */
.sp-confirm-alert {
	background: #fff4e5;
	border: 3px solid #e67e22;
	border-radius: 6px;
	padding: 1.1em 1.4em;
	margin: 1.2em 0;
	color: #4a2c00;
	font-size: 1.05em;
}

.sp-confirm-alert h2 {
	margin-top: 0;
	color: #b34700;
}

.sp-confirm-alert--preview {
	font-size: 1em;
	padding: 0.8em 1.1em;
}

.sp-notice h2 {
	margin-top: 0;
}

.sp-confirm-alert--queue {
	background: #fdecea;
	border-color: #c0392b;
	color: #4a0f0a;
}

.sp-confirm-alert--queue h3 {
	margin-top: 0;
	color: #a1281c;
}

.sp-queue-live {
	margin: 0.8em 0;
	padding: 0.6em 0.9em;
	background: rgba(255, 255, 255, 0.7);
	border-left: 4px solid #e67e22;
	border-radius: 3px;
}

.sp-queue-live p {
	margin: 0.2em 0;
}

.sp-queue-live [hidden] {
	display: none;
}

.sp-confirm-button {
	font-size: 1.15em;
	padding: 0.7em 1.6em;
}

/* Bestaetigungsseite: Pflicht-Haken AGB und Verpflichtung zu Uebernahme und Zahlung */
.sp-confirm-terms {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 8px;
	background: var(--sg-primary-tint, #e8f5e9);
	cursor: pointer;
}

.sp-confirm-terms input {
	margin-top: 4px;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

.sp-confirm-error {
	margin: 0 0 10px;
	color: #b32d2e;
	font-weight: 600;
}

/* Abstand ueber den Hauptbuttons der Bestaetigungsseite, damit sie nicht am Text kleben */
.sp-confirm-form {
	margin-top: 1.6em;
}

.sp-confirm-actions {
	margin-top: 1.4em;
}

.sp-confirm-button {
	margin-top: 0.4em;
}

/* Drucken und PDF unter der Uebersicht */
.sp-doc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7em;
	margin-top: 1.6em;
}

.sp-doc-actions .button {
	display: inline-block;
	margin: 0;
	text-decoration: none;
}

@media (max-width: 640px) {
	.sp-buy-page .sp-buy-summary {
		flex-direction: column;
	}

	.sp-buy-summary__image {
		flex-basis: auto;
		max-width: 260px;
	}

	.sp-form-grid,
	.sp-form-grid--address {
		grid-template-columns: 1fr;
	}
}

/* Reservierungs-Nr. und Korrektur-Code auf der Bestaetigungsseite */
.sp-res-box {
	border: 2px dashed #888;
	border-radius: 6px;
	padding: 1em 1.4em;
	margin: 1.2em 0;
	background: #fafafa;
}

.sp-res-box h3 {
	margin-top: 0;
}

.sp-res-ids {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 2em;
	font-size: 1.15em;
}

.sp-res-ids strong {
	font-family: monospace;
	letter-spacing: 0.05em;
}

@media print {
	.sp-doc-actions,
	.sp-print-button,
	.sp-correction-form,
	.sp-res-box h4 {
		display: none !important;
	}
}

/* Druck-Hinweis "noch nicht bestaetigt": nur im Ausdruck sichtbar */
.sp-print-status {
	display: none;
}

.sp-summary-print {
	border: 2px solid var(--sg-primary, #2e7d32);
	border-radius: 6px;
	padding: 1em 1.4em;
	margin: 1.2em 0;
}

.sp-contact-card {
	border: 2px solid var(--sg-primary, #2e7d32);
	border-radius: 6px;
	padding: 0.8em 1.2em;
	background: var(--sg-primary-tint, #f1f8f2);
}

.sp-contact-pending {
	border: 2px dashed #e67e22;
	border-radius: 6px;
	padding: 0.8em 1.2em;
	background: #fff4e5;
}

@media print {
	.sp-print-status {
		display: block;
		border: 4px solid #000;
		padding: 0.8em 1em;
		margin: 0 0 1em;
		font-size: 1.2em;
		font-weight: 700;
		text-transform: uppercase;
	}

	.sp-confirm-alert,
	.sp-res-box,
	.sp-contact-card,
	.sp-contact-pending,
	.sp-summary-print {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
}

/* Kauf- und Frage-Button nebeneinander */
.sp-buy-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em;
	align-items: center;
}

.sp-buy-actions .button {
	margin: 0;
}

.sp-question-button {
	background-color: transparent !important;
	color: inherit !important;
	border: 2px solid currentColor !important;
}

.sp-form-wide textarea {
	width: 100%;
}

/* --- Haupt-Buttons der Kauf- und Fragenseite --------------------------------
 * Hintergrund und Schrift ausdruecklich setzen: Themes geben oft
 * `button { color: #fff }` vor, das waere auf hellen Flaechen unlesbar. */
.sp-buy-box .button.alt,
.sp-buy-page .button.alt,
.sp-buy-actions .button.alt {
	background: var(--sg-primary, #2e7d32);
	border-color: var(--sg-primary, #2e7d32);
	color: var(--sg-on-primary, #fff);
}

.sp-buy-box .button.alt:hover,
.sp-buy-box .button.alt:focus,
.sp-buy-page .button.alt:hover,
.sp-buy-page .button.alt:focus,
.sp-buy-actions .button.alt:hover,
.sp-buy-actions .button.alt:focus {
	background: var(--sg-primary-dark, #246227);
	border-color: var(--sg-primary-dark, #246227);
	color: var(--sg-on-primary, #fff);
}

/* ---- Mein Konto (Anbieter): Startseite, Reiter, Kennzahlen ---- */

.sp-account-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 0.75em;
	margin: 1em 0;
}

.sp-account-card {
	display: flex;
	flex-direction: column;
	gap: 0.15em;
	padding: 0.9em 1em;
	border: 1px solid currentColor;
	border-color: rgba(0, 0, 0, 0.15);
	border-radius: 6px;
	text-decoration: none;
	color: inherit;
}

.sp-account-card:hover {
	border-color: currentColor;
}

.sp-account-card__count {
	font-size: 1.8em;
	font-weight: 700;
	line-height: 1.1;
}

.sp-account-card__label {
	font-size: 0.85em;
	opacity: 0.8;
}

.sp-account-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em 1.2em;
	margin: 0 0 1em;
	padding: 0;
	list-style: none;
}

.sp-account-tabs a {
	text-decoration: none;
}

.sp-account-tabs .is-active a {
	font-weight: 700;
	text-decoration: underline;
}

.sp-account-count {
	opacity: 0.65;
	font-size: 0.85em;
}

.sp-account-actions .sp-account-send {
	margin-top: 0.5em;
	font-size: 0.9em;
}

.sp-account-provider {
	margin: 1.5em 0;
	padding: 0.5em 1em 1em;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 6px;
}

.sp-account-hint {
	font-size: 0.9em;
	opacity: 0.8;
}

/* ---- Team-Ansichten (Admin-Dashboard, Anbieter-Dashboard fuer Support) ---- */

.sp-account-card__hint {
	font-size: 0.75em;
	opacity: 0.65;
}

.sp-admin-support-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	align-items: center;
	margin: 0 0 1em;
}

.sp-admin-support-form select {
	max-width: 100%;
	min-width: 16em;
}

.sp-admin-dash h3,
.sp-admin-support h3 {
	margin: 1.2em 0 0.5em;
}

.sp-admin-stats th {
	text-align: left;
	font-weight: 600;
}

/* ---------------------------------------------------------------
   Icons in den Angebotslisten (icons="ja" | "beides")
   Farbe: Plugin-Hauptfarbe; Beschriftungen bleiben fuer Screenreader.
   --------------------------------------------------------------- */
.sp-offers .sp-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sp-offers .sp-ico {
	display: inline-flex;
	flex: none;
	margin-right: 0.35em;
	color: var(--sp-primary);
	vertical-align: -0.2em;
}

.sp-offers .sp-ico-svg {
	display: block;
	width: 1.15em;
	height: 1.15em;
}

.sp-offers .sp-offer-meta--icons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25em 1.1em;
}

.sp-offers .sp-offer-meta--icons .sp-offer-fact {
	display: inline-flex;
	align-items: center;
}

.sp-offers .sp-chip--icon {
	display: inline-flex;
	align-items: center;
}

.sp-offers .sp-chip--icon .sp-ico {
	margin-right: 0.3em;
}

.sp-offers .sp-offer-valid-until--icons {
	display: flex;
	align-items: center;
}

.sp-offers .sp-offer-valid-until--icons .sp-ico {
	color: inherit;
}

.sp-offers .sp-offers-table th.sp-col--icon .sp-ico {
	margin-right: 0;
}

.sp-offers .sp-offers-table th.sp-col--icon .sp-ico + * {
	margin-left: 0.35em;
}

.sp-offers .sp-cell-icon {
	display: inline-flex;
	align-items: center;
}

.sp-offers .sp-offer-meta--icons .sp-offer-label {
	margin-right: 0.3em;
}

/* ---- Angebotslisten: Live-Filter ---- */
.sp-offers-count {
	margin: 0.4em 0 0.8em;
	font-weight: 600;
}

.sp-offers-filter.is-js .sp-filter-submit {
	display: none;
}

.sp-offers.is-loading .sp-offers-items,
.sp-offers.is-loading .sp-offers-pager {
	opacity: 0.45;
	transition: opacity 0.15s;
}

.sp-offers-filter select option:disabled {
	color: #8c8f94;
}

.sp-offers-empty-row td {
	text-align: center;
}

/* Bildnachweis der Produktseite: wandert per JS unter das grosse Bild */
.sp-image-credits {
	clear: both;
	margin: 0.75em 0 1.5em;
	font-size: 0.8125em;
	line-height: 1.45;
	color: #646970;
}

.woocommerce-product-gallery .sp-image-credits {
	margin-bottom: 0;
}

.woocommerce-product-gallery .sp-image-credits--live {
	margin: 0.5em 0 0;
	padding-bottom: 20px;
}

.sp-image-credits--live .sp-image-credits__title {
	display: none;
}

.sp-image-credits__title {
	margin: 0 0 0.15em;
	font-weight: 600;
}

.sp-image-credits__day {
	display: block;
	font-weight: 600;
}

.sp-image-credits ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sp-image-credits a {
	color: inherit;
	text-decoration: underline;
}

.sp-dashboard-login {
	margin-bottom: 1.5em;
}

.sp-dashboard-register summary {
	cursor: pointer;
	font-weight: 600;
	margin-bottom: 1em;
}

/* Angebotsnummer und Kurzlink auf der Produktseite (Bereich mit SKU und Kategorien) */
.product_meta .sp-offer-number,
.product_meta .sp-short-link {
	display: block;
}
.product_meta .sp-offer-number strong {
	letter-spacing: 0.05em;
}

/* Reiseverlauf einer Kreuzfahrt in der Beschreibung (XMLteam-Übernahme, 0.62.0) */
.sp-cruise-itinerary { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
.sp-cruise-itinerary th, .sp-cruise-itinerary td { text-align: left; padding: .4em .6em .4em 0; border-bottom: 1px solid rgba( 0, 0, 0, .1 ); vertical-align: top; }
.sp-cruise-itinerary th { font-weight: 600; }
@media ( max-width: 600px ) {
	.sp-cruise-itinerary { font-size: .9em; }
	.sp-cruise-itinerary th:nth-child( 4 ), .sp-cruise-itinerary td:nth-child( 4 ) { white-space: nowrap; }
}
