/*
 * Schuster Mietshop: funktionale Grundstile für die Plugin-Bausteine.
 * Das eigentliche Design (Tokens der Hauptseite) kommt aus dem Child-Theme estore-child.
 * Hier nur Werte mit Fallback, damit es auch ohne Child-Theme sauber aussieht.
 */

.smt-period,
.smt-cart-period,
.smt-cart-options,
.smt-day-prices,
.smt-summary,
.smt-next {
	--smt-text: var(--color-text, #141416);
	--smt-muted: var(--color-muted, #5c5c61);
	--smt-line: var(--color-divider, #dfdfdc);
	--smt-soft: var(--color-bg, #f5f5f4);
	--smt-surface: var(--color-surface, #fdfdfd);
	--smt-primary: var(--color-primary, #2e2e31);
	--smt-radius: 16px;
}

.smt-period { display: grid; gap: 14px; margin: 0 0 4px; width: 100%; padding: 16px 18px; border-radius: 18px; background: var(--smt-soft); }
.smt-period__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.smt-period__head strong { display: block; font-variant-numeric: tabular-nums; }
.smt-period__head .smt-link { flex: none; min-height: 0; padding: 10px 4px; margin: -6px -4px 0 0; }
.smt-period .smt-period__result { padding: 14px 0 0; border-top: 1px solid var(--smt-line); border-radius: 0; background: none; align-items: baseline; }
.smt-period .smt-period__result strong { font-size: 1.125rem; }
.smt-period .smt-field input[type="date"] { background: var(--smt-surface); }
.smt-period fieldset,
.smt-options { border: 0; margin: 0; padding: 0; min-width: 0; }
.smt-period legend,
.smt-options legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.smt-period__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.smt-period__fields > * { min-width: 0; }
.smt-field { display: grid; gap: 6px; margin: 0; }
.smt-field label { font-weight: 600; font-size: .9375rem; }
.smt-field input[type="date"] { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #cfcfcc; border-radius: 14px; background: var(--smt-surface); font: inherit; }
.smt-help { font-size: .875rem; color: var(--smt-muted); margin: 6px 0 0; }
.smt-period__result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 14px 16px; border-radius: var(--smt-radius); background: var(--smt-soft); margin: 0; font-variant-numeric: tabular-nums; }
.smt-period__result:empty { display: none; }
.smt-period__result strong { white-space: nowrap; }
.smt-period__label { display: block; font-size: .8125rem; color: var(--smt-muted); }
.smt-link { background: none; border: 0; padding: 8px; min-height: 44px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; color: var(--smt-text); }
.smt-unit { font-size: .8125rem; font-weight: 400; color: var(--smt-muted); }
.smt-days { display: block; font-size: .8125rem; color: var(--smt-muted); }
.smt-on-request { font-weight: 600; }

.smt-hints { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: .875rem; color: var(--smt-muted); }

.smt-cart-period,
.smt-cart-options { display: grid; gap: 12px; margin: 0 0 24px; padding: 24px; border-radius: 22px; background: var(--smt-surface); box-shadow: inset 0 0 0 1px rgba(20, 20, 22, .07); }
.smt-cart-options { margin-top: 24px; gap: 24px; }
.smt-cart-period h2 { font-size: 1.25rem; margin: 0; }
.smt-options { display: grid; gap: 10px; }
.smt-option { display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 18px; background: var(--smt-surface); box-shadow: inset 0 0 0 1px var(--smt-line); cursor: pointer; }
.smt-option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--smt-primary); }
.smt-option input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--smt-primary); }
.smt-option__text strong { display: block; }
.smt-option__text span { font-size: .875rem; color: var(--smt-muted); }
.smt-option em { font-style: normal; font-size: .8125rem; color: var(--smt-muted); white-space: nowrap; }

.smt-day-prices { clear: both; display: grid; gap: 12px; margin: 40px 0; }
.smt-day-prices h2 { margin: 0; }
.smt-day-prices__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.smt-day-prices__list li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: var(--smt-radius); background: var(--smt-surface); box-shadow: inset 0 0 0 1px rgba(20, 20, 22, .07); font-variant-numeric: tabular-nums; }
.smt-day-prices__list li span { color: var(--smt-muted); }
@media (min-width: 900px) { .smt-day-prices__list { grid-template-columns: repeat(4, 1fr); } }

.smt-summary { display: grid; gap: 10px; margin: 0 0 12px; }
.smt-summary > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.smt-summary dt { color: var(--smt-muted); }
.smt-summary dd { margin: 0; }
.smt-request-notice { padding: 16px 18px; border-radius: 18px; background: var(--smt-soft, #f5f5f4); margin: 0 0 24px; }
.smt-tax-note { font-size: .8125rem; color: var(--smt-muted, #5c5c61); margin: 12px 0 0; }
.smt-next ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

@media (max-width: 479px) {
	.smt-period__fields { grid-template-columns: 1fr; }
	.smt-summary > div { grid-template-columns: 1fr; gap: 2px; }
	.smt-option { grid-template-columns: 24px 1fr; }
	.smt-option em { grid-column: 2; }
}

/* Herleitung der Mehrtagespreise */
.smt-day-prices__list li { flex-wrap: wrap; align-items: baseline; row-gap: 2px; }
.smt-day-prices__list li small { flex-basis: 100%; font-size: .8125rem; color: var(--smt-muted); }
.smt-period__calc,
.smt-period__result .smt-calc { flex-basis: 100%; font-size: .8125rem; color: var(--smt-muted); }
.smt-calc { display: block; font-size: .8125rem; font-weight: 400; color: var(--smt-muted); white-space: nowrap; }
.smt-calc .woocommerce-Price-amount { font-weight: 400; }
.smt-saving { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--smt-soft); font-size: .875rem; color: var(--smt-text); }
.smt-request-note { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--smt-soft, #f5f5f4); font-size: .875rem; color: var(--smt-muted, #5c5c61); }
