/* WooCommerce-Grundpreis ausblenden — nur der Artikel-Grundpreis, nicht der Rechner */
body.tma-am-hide-wc-price.single-product .entry-summary > .price,
body.tma-am-hide-wc-price.single-product .summary > .price,
body.tma-am-hide-wc-price.single-product .product-summary > .price,
body.tma-am-hide-wc-price.single-product .woocommerce-product-price,
body.tma-am-hide-wc-price.single-product .summary > .wc-gzd-product-price-label,
body.tma-am-hide-wc-price.single-product .summary > .price-including-tax,
body.tma-am-hide-wc-price.single-product .summary > .price-excluding-tax {
	display: none !important;
}

/* Sicherheit: berechnete Preise im Anzeigen-Rechner immer anzeigen */
body.tma-am-hide-wc-price.single-product .tma-am-calculator .woocommerce-Price-amount,
body.tma-am-hide-wc-price.single-product .tma-am-calculator .amount,
body.tma-am-hide-wc-price.single-product .tma-am-price-preview .woocommerce-Price-amount,
body.tma-am-hide-wc-price.single-product .tma-am-price-preview .amount {
	display: inline !important;
	visibility: visible !important;
}

.tma-am-calculator {
	margin: 1.5em 0;
	padding: 1em;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fafafa;
}

.tma-am-heading {
	margin-top: 0;
}

.tma-am-is-hidden {
	display: none !important;
}

.tma-am-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
}

.tma-am-chiffre-text-wrap {
	margin-top: 0.75em;
}

.tma-am-chiffre-text-wrap label {
	display: block;
	margin-bottom: 0.35em;
	font-weight: 600;
}

.tma-am-chiffre-text {
	width: 100%;
	max-width: 420px;
}

.tma-am-fixed-group {
	margin: 0;
}

.tma-am-selected-summary {
	margin-top: 0.5em;
	font-size: 0.95em;
}

.tma-am-muted {
	color: #777;
}

.tma-am-appearance-date select {
	min-width: 220px;
}

/* Buchungskalender */
.tma-am-calendar-picker {
	max-width: 320px;
	margin-top: 0.5em;
	padding: 12px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
}

.tma-am-calendar-picker.is-disabled {
	opacity: 0.65;
}

.tma-am-calendar-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	gap: 8px;
}

.tma-am-cal-month-label {
	flex: 1;
	text-align: center;
	font-size: 1.05em;
}

.tma-am-calendar-nav .button {
	min-width: 36px;
	padding: 2px 10px;
	line-height: 1.6;
}

.tma-am-calendar-weekdays,
.tma-am-calendar-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.tma-am-cal-weekday {
	text-align: center;
	font-size: 0.8em;
	font-weight: 600;
	color: #666;
	padding: 4px 0;
}

.tma-am-cal-day {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 4px;
	background: #f5f5f5;
	color: #999;
	font-size: 0.95em;
	cursor: default;
}

.tma-am-cal-day.is-outside {
	opacity: 0.35;
}

.tma-am-cal-day.is-unavailable {
	background: #f5f5f5;
	color: #bbb;
}

.tma-am-cal-day.is-available {
	background: #e8f4fc;
	color: #1d2327;
	cursor: pointer;
	font-weight: 600;
}

.tma-am-cal-day.is-available:hover,
.tma-am-cal-day.is-available:focus {
	background: #2271b1;
	color: #fff;
	outline: none;
}

.tma-am-cal-day.is-selected {
	background: #2271b1;
	color: #fff;
	box-shadow: inset 0 0 0 2px #135e96;
}

.tma-am-calendar-status {
	margin: 8px 0 0;
	min-height: 1.2em;
}

.tma-am-calendar-selected {
	margin: 0.35em 0 0;
	font-weight: 600;
}

.tma-am-appearance-hint {
	margin-top: 0.35em;
	font-size: 0.9em;
	color: #666;
}

.tma-am-color-mode label.tma-am-radio {
	display: inline-block;
	margin-right: 1.5em;
}

.tma-am-price-preview {
	margin-top: 1em;
	padding-top: 1em;
	border-top: 1px solid #ddd;
}

.tma-am-preview-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.35em;
}

.tma-am-preview-total {
	font-size: 1.1em;
	font-weight: 700;
	padding-top: 0.5em;
	border-top: 1px dashed #ccc;
}

/* Modal */
.tma-am-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.tma-am-modal-overlay.is-open {
	display: flex;
}

body.tma-am-modal-open {
	overflow: hidden;
}

.tma-am-modal {
	background: #fff;
	border-radius: 6px;
	max-width: 900px;
	width: 100%;
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.tma-am-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid #eee;
}

.tma-am-modal-header h3 {
	margin: 0;
}

.tma-am-modal-close {
	background: none;
	border: none;
	font-size: 1.5em;
	cursor: pointer;
	line-height: 1;
	padding: 0 4px;
}

.tma-am-modal-body {
	padding: 16px 20px;
	overflow-y: auto;
	flex: 1;
	min-height: 200px;
}

.tma-am-appearance-intro {
	margin: 0.35em 0 0.75em;
}

.tma-am-location-date-list {
	margin-top: 1em;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tma-am-location-date-list.is-disabled {
	opacity: 0.65;
	pointer-events: none;
}

.tma-am-location-date-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
}

.tma-am-location-date-name {
	min-width: 140px;
}

.tma-am-location-date-select {
	min-width: 220px;
	max-width: 100%;
}

.tma-am-modal-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.tma-am-tab.is-active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.tma-am-location-map {
	height: 420px;
	width: 100%;
	border: 1px solid #ddd;
	border-radius: 6px;
	z-index: 1;
}

.tma-am-map-hint {
	margin: 0 0 8px;
}

.tma-am-map-attribution {
	margin: 8px 0 0;
	font-size: 0.85em;
}

.tma-am-district-title {
	font-weight: 700;
	margin: 1em 0 0.5em;
}

.tma-am-district-group:first-child .tma-am-district-title {
	margin-top: 0;
}

.tma-am-location-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 6px 12px;
	margin-bottom: 1em;
}

.tma-am-location-item {
	display: block;
	cursor: pointer;
}

.tma-am-badge-bw-only {
	display: inline-block;
	margin-left: 0.35em;
	padding: 0.1em 0.45em;
	font-size: 0.75em;
	font-weight: 600;
	color: #555;
	background: #eee;
	border-radius: 3px;
	vertical-align: middle;
}

.tma-am-location-bw-only {
	color: #444;
}

.tma-am-info-notice {
	margin-top: 0.5em;
	padding: 0.65em 0.85em;
	border-left: 3px solid #dba617;
	background: #fff8e5;
	color: #533f03;
}

.tma-am-location-bw-only-note {
	display: block;
	margin-top: 0.25em;
	font-size: 0.85em;
	color: #996800;
}

.tma-am-location-date-row .tma-am-location-bw-only-note {
	margin-left: 0;
}

.tma-am-full-coverage-overview {
	margin-top: 1em;
	padding: 0.75em 1em;
	border-left: 3px solid #135e96;
	background: #e8f4fc;
	color: #1d2327;
}

.tma-am-full-coverage-overview-title {
	display: block;
	margin-bottom: 0.35em;
	font-size: 1em;
}

.tma-am-full-coverage-overview-intro {
	margin: 0 0 0.5em;
	font-size: 0.9em;
}

.tma-am-full-coverage-overview-list {
	margin: 0;
	padding-left: 1.25em;
	font-size: 0.9em;
}

.tma-am-full-coverage-overview-list li {
	margin: 0.2em 0;
}

.tma-am-location-full-coverage-note {
	display: block;
	margin-top: 0.25em;
	font-size: 0.85em;
	font-weight: 600;
	color: #135e96;
}

.tma-am-location-date-row .tma-am-location-full-coverage-note {
	margin-left: 0;
}

.tma-am-cal-day.is-full-coverage.is-available {
	box-shadow: inset 0 -3px 0 #135e96;
}

.tma-am-modal-footer {
	padding: 12px 20px;
	border-top: 1px solid #eee;
	text-align: right;
}

.tma-am-modal-footer .button {
	margin-left: 8px;
}

/* Portal */
.tma-am-portal {
	max-width: 100%;
	overflow-x: auto;
}

.tma-am-portal-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
	margin-bottom: 1.5em;
}

.tma-am-portal-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9em;
}

.tma-am-portal-table th,
.tma-am-portal-table td {
	border: 1px solid #ddd;
	padding: 8px 10px;
	text-align: left;
}

.tma-am-portal-table th {
	background: #f5f5f5;
}

.tma-am-notice {
	padding: 1em;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
}

.tma-am-admin-order-meta {
	font-size: 12px;
	line-height: 1.5;
}

.tma-am-chiffre-portal {
	margin: 1.5em 0;
}

.tma-am-chiffre-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: start;
}

@media (max-width: 900px) {
	.tma-am-chiffre-layout {
		grid-template-columns: 1fr;
	}
}

.tma-am-chiffre-card {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 12px 14px;
	margin-bottom: 12px;
	background: #fff;
	overflow: hidden;
}

.tma-am-chiffre-card-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.tma-am-chiffre-card-preview a {
	display: block;
	flex: 1 1 120px;
	max-width: 220px;
}

.tma-am-chiffre-preview-box {
	min-height: 48px;
	margin: 0 0 12px;
	padding: 10px;
	border: 1px dashed #ccd0d4;
	border-radius: 4px;
	background: #fff;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tma-am-chiffre-preview-box.is-empty {
	align-items: center;
}

.tma-am-chiffre-preview-link {
	display: block;
}

.tma-am-chiffre-preview-img {
	display: block;
	max-width: 100%;
	height: auto;
	max-height: 220px;
	border: 1px solid #ddd;
	border-radius: 3px;
	background: #fff;
}

.tma-am-chiffre-card.is-selected {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.tma-am-chiffre-card-header {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: baseline;
	margin-bottom: 8px;
}

.tma-am-chiffre-number {
	color: #135e96;
}

.tma-am-chiffre-product {
	font-size: 0.9em;
	color: #666;
}

.tma-am-chiffre-form-wrap {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 16px;
	background: #fafafa;
}

.tma-am-chiffre-form input[type="text"],
.tma-am-chiffre-form input[type="email"],
.tma-am-chiffre-form select,
.tma-am-chiffre-form textarea {
	width: 100%;
	max-width: 100%;
}

.tma-am-chiffre-email-wrap {
	margin-top: 0.75em;
}

.tma-am-chiffre-email-wrap label {
	display: block;
	margin-bottom: 0.35em;
	font-weight: 600;
}

.tma-am-chiffre-reply-email {
	width: 100%;
	max-width: 420px;
}

.tma-am-notice-success {
	background: #d5f5e3;
	border-color: #46b450;
}

.tma-am-notice-error {
	background: #fcf0f1;
	border-color: #d63638;
}
