/* ==========================================================================
   Pfarrgasse — MotoPress Hotel Booking override
   --------------------------------------------------------------------------
   Restyles the MotoPress (mphb_) booking pages to match the Pfarrgasse
   brand (Hearth & Hollow design tokens). Drop into your child theme as
   `motopress-override.css` and enqueue it AFTER the plugin's own stylesheet:

     wp_enqueue_style(
       'pfarrgasse-mphb-override',
       get_stylesheet_directory_uri() . '/css/motopress-override.css',
       ['mphb-styles'],   // plugin handle
       '1.0.0'
     );

   Pages covered:
     - Checkout (guest details + payment)         body.mphb-checkout-page
     - Booking confirmation / success              body.mphb-booking-confirmation-page
     - Booking failed / error                      body.mphb-booking-failed-page
     - My bookings (account)                       body.mphb-account-page

   Strategy: medium-touch. Keeps MotoPress' DOM structure and JS hooks
   intact, restyles surface, type, spacing, forms, buttons, calendar.

   Pfarrgasse adaptation: fonts remapped to the theme's self-hosted Lora +
   Outfit (DSGVO compliance — no Google CDN). Optical-size variation
   settings stripped because Lora is a single-axis (wght-only) face here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens — scoped to .mphb so we never leak into your theme
   -------------------------------------------------------------------------- */
.mphb,
.mphb-checkout-form,
.mphb-booking-confirmation,
.mphb-booking-failed,
.mphb-account,
[class*="mphb_"],
[class*="mphb-"] {
  --pf-bg:        #f4f7f5;
  --pf-surface:   #ffffff;
  --pf-sunken:    #ecf0ed;
  --pf-ink-1:     #171e1a;
  --pf-ink-2:     #3a4441;
  --pf-ink-3:     #6b7672;
  --pf-ink-4:     #c5cdc8;
  --pf-ink-5:     #e4e9e5;
  --pf-accent:    #ad6449;
  --pf-accent-dk: #8e4f38;
  --pf-accent-soft: #f5e7df;
  --pf-nature:    #9caf88;
  --pf-nature-soft: #e6ece0;
  --pf-star:      #d4a017;
  --pf-star-soft: #f7ecc9;
  --pf-danger:    #b04434;
  --pf-danger-soft: #f5e0db;

  --pf-font-display: 'Lora', 'Iowan Old Style', Georgia, serif;
  --pf-font-body:    'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --pf-radius-sm: 4px;
  --pf-radius-md: 6px;
  --pf-radius-lg: 12px;
  --pf-radius-pill: 999px;

  --pf-shadow-1: 0 1px 0 rgba(23,30,26,0.06);
  --pf-shadow-2: 0 12px 32px -12px rgba(23,30,26,0.18), 0 2px 6px -2px rgba(23,30,26,0.08);
  --pf-shadow-focus: 0 0 0 3px rgba(173,100,73,0.28);

  --pf-ease: cubic-bezier(0.32, 0.72, 0, 1);
}

/* --------------------------------------------------------------------------
   2. Page wrapper — every plugin page sits in a generous editorial container
   -------------------------------------------------------------------------- */
.mphb-checkout-form,
.mphb-booking-confirmation,
.mphb-booking-failed,
.mphb-account,
.mphb_sc_checkout_form,
.mphb_sc_booking_confirmation,
.mphb_sc_booking_failed,
.mphb_sc_account_bookings {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 32px 96px;
  font-family: var(--pf-font-body);
  color: var(--pf-ink-1);
  font-size: 16px;
  line-height: 1.5;
}

/* Page eyebrow + headline — wrap MotoPress page titles */
.mphb-page-title,
.mphb-checkout-form h1,
.mphb-booking-confirmation h1,
.mphb-booking-failed h1,
.mphb-account h1 {
  font-family: var(--pf-font-display);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--pf-ink-1);
}

.mphb-page-eyebrow,
.pf-eyebrow {
  font-family: var(--pf-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pf-accent);
  margin: 0 0 14px;
}

.mphb-page-lead,
.pf-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--pf-ink-2);
  max-width: 56ch;
  margin: 0 0 40px;
}

/* All h2/h3 inside MotoPress pages */
.mphb-checkout-form h2, .mphb-booking-confirmation h2, .mphb-booking-failed h2, .mphb-account h2,
.mphb_sc_checkout_form h2, .mphb-checkout-form h3, .mphb-booking-confirmation h3,
.mphb-account h3 {
  font-family: var(--pf-font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--pf-ink-1);
}
.mphb-checkout-form h3, .mphb-booking-confirmation h3, .mphb-account h3 {
  font-size: 22px;
}

.mphb-checkout-form p, .mphb-booking-confirmation p, .mphb-booking-failed p, .mphb-account p {
  color: var(--pf-ink-2);
  font-size: 16px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   3. Two-column checkout layout (form + summary card)
   -------------------------------------------------------------------------- */
.mphb-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) {
  .mphb-checkout-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* --------------------------------------------------------------------------
   4. Cards (summary, confirmation, sections)
   -------------------------------------------------------------------------- */
.mphb-card,
.mphb-checkout-summary,
.mphb-booking-summary,
.mphb-confirmation-card {
  background: var(--pf-surface);
  border: 1px solid var(--pf-ink-5);
  border-radius: var(--pf-radius-md);
  padding: 28px;
}

.mphb-summary-card {
  position: sticky;
  top: 24px;
}

/* Section block — used to group form areas */
.mphb-section {
  background: var(--pf-surface);
  border: 1px solid var(--pf-ink-5);
  border-radius: var(--pf-radius-md);
  padding: 28px 32px;
  margin: 0 0 20px;
}

/* Hairline divider */
.mphb-divider, .mphb hr {
  border: 0;
  border-top: 1px solid var(--pf-ink-5);
  margin: 24px 0;
}

/* --------------------------------------------------------------------------
   5. Forms — bordered inputs, 6px radius, focus ring
   -------------------------------------------------------------------------- */
.mphb-field > label,
.mphb-checkout-form .mphb-field > label,
.mphb-account .mphb-field > label,
.mphb_form .mphb-field > label,
label.mphb-form-label {
  display: block;
  font-family: var(--pf-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pf-ink-3);
  margin: 0 0 8px;
}

.mphb-checkout-form input[type="text"],
.mphb-checkout-form input[type="email"],
.mphb-checkout-form input[type="tel"],
.mphb-checkout-form input[type="number"],
.mphb-checkout-form input[type="password"],
.mphb-checkout-form input[type="date"],
.mphb-checkout-form select,
.mphb-checkout-form textarea,
.mphb-account input[type="text"],
.mphb-account input[type="email"],
.mphb-account input[type="password"],
input.mphb-form-field,
select.mphb-form-field,
textarea.mphb-form-field {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--pf-font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--pf-ink-1);
  background: var(--pf-surface);
  border: 1px solid var(--pf-ink-4);
  border-radius: var(--pf-radius-md);
  box-shadow: none;
  outline: none;
  transition: border-color 180ms var(--pf-ease), box-shadow 180ms var(--pf-ease);
  appearance: none;
  -webkit-appearance: none;
}
.mphb-checkout-form textarea, textarea.mphb-form-field { min-height: 120px; resize: vertical; }

.mphb-checkout-form input:focus,
.mphb-checkout-form select:focus,
.mphb-checkout-form textarea:focus,
.mphb-account input:focus,
input.mphb-form-field:focus,
select.mphb-form-field:focus,
textarea.mphb-form-field:focus {
  border-color: var(--pf-accent);
  box-shadow: var(--pf-shadow-focus);
}

.mphb-checkout-form input::placeholder,
.mphb-checkout-form textarea::placeholder { color: var(--pf-ink-3); }

.mphb-checkout-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7672' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* Field row (two side-by-side inputs) */
.mphb-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.mphb-field { margin-bottom: 16px; }
@media (max-width: 540px) { .mphb-field-row { grid-template-columns: 1fr; } }

/* Required marker */
.mphb-required, .mphb_required { color: var(--pf-accent); font-weight: 500; margin-left: 2px; }

/* Help text */
.mphb-help, .mphb_help { font-size: 13px; color: var(--pf-ink-3); margin-top: 6px; line-height: 1.5; }

/* Checkbox / radio */
.mphb-checkout-form input[type="checkbox"],
.mphb-checkout-form input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--pf-ink-4);
  border-radius: var(--pf-radius-sm);
  background: var(--pf-surface);
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
  transition: border-color 180ms var(--pf-ease), background 180ms var(--pf-ease);
}
.mphb-checkout-form input[type="radio"] { border-radius: 999px; }

.mphb-checkout-form input[type="checkbox"]:checked,
.mphb-checkout-form input[type="radio"]:checked {
  background: var(--pf-accent);
  border-color: var(--pf-accent);
}
.mphb-checkout-form input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px; left: 6px;
  width: 4px; height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.mphb-checkout-form input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, -50%);
}

/* --------------------------------------------------------------------------
   6. Buttons — terracotta primary, outline secondary
   -------------------------------------------------------------------------- */
.mphb-button,
.mphb_btn,
.mphb-checkout-form button[type="submit"],
.mphb-account button,
input[type="submit"].mphb-button,
button.mphb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--pf-font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--pf-radius-md);
  background: var(--pf-accent);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms var(--pf-ease), transform 80ms var(--pf-ease);
}
.mphb-button:hover, .mphb_btn:hover,
.mphb-checkout-form button[type="submit"]:hover { background: var(--pf-accent-dk); color: #fff; text-decoration: none; }
.mphb-button:active, .mphb_btn:active { transform: scale(0.98); }
.mphb-button:focus-visible { outline: none; box-shadow: var(--pf-shadow-focus); }

.mphb-button--secondary, .mphb_btn--secondary {
  background: transparent;
  color: var(--pf-ink-1);
  border-color: var(--pf-ink-4);
}
.mphb-button--secondary:hover { background: var(--pf-sunken); border-color: var(--pf-ink-3); color: var(--pf-ink-1); }

.mphb-button--ghost {
  background: transparent;
  color: var(--pf-ink-1);
  border: 0;
  padding: 10px 12px;
}
.mphb-button--ghost:hover { background: var(--pf-sunken); }

/* Full width on mobile / inside cards */
.mphb-button--block { width: 100%; }

/* --------------------------------------------------------------------------
   7. Summary card — line items, totals
   -------------------------------------------------------------------------- */
.mphb-summary-card .mphb-summary__title {
  font-family: var(--pf-font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.mphb-summary-card .mphb-summary__sub { font-size: 13px; color: var(--pf-ink-3); margin: 0 0 18px; }

.mphb-summary-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--pf-radius-sm);
  object-fit: cover;
  background: var(--pf-sunken);
  margin: 0 0 18px;
  display: block;
}

.mphb-line-items {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--pf-ink-5);
}
.mphb-line-items li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pf-ink-5);
  font-size: 14px;
}
.mphb-line-items .mphb-line-label { color: var(--pf-ink-2); }
.mphb-line-items .mphb-line-value { color: var(--pf-ink-1); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

.mphb-line-items .mphb-line--total {
  border-bottom: 0;
  padding-top: 18px;
  font-family: var(--pf-font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--pf-ink-1);
}
.mphb-line-items .mphb-line--total .mphb-line-label { color: var(--pf-ink-1); }

/* --------------------------------------------------------------------------
   8. Date range / stay strip
   -------------------------------------------------------------------------- */
.mphb-stay-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  background: var(--pf-bg);
  border: 1px solid var(--pf-ink-5);
  border-radius: var(--pf-radius-md);
  margin: 0 0 20px;
}
.mphb-stay-strip__cell .l {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pf-ink-3);
  margin-bottom: 4px;
}
.mphb-stay-strip__cell .v {
  font-family: var(--pf-font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--pf-ink-1);
  line-height: 1.2;
}
.mphb-stay-strip__arrow {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  color: var(--pf-accent);
}

/* --------------------------------------------------------------------------
   9. Calendar / date picker (overrides MotoPress' jQuery UI datepicker)
   -------------------------------------------------------------------------- */
.ui-datepicker, .mphb-datepick {
  font-family: var(--pf-font-body) !important;
  background: var(--pf-surface) !important;
  border: 1px solid var(--pf-ink-5) !important;
  border-radius: var(--pf-radius-md) !important;
  box-shadow: var(--pf-shadow-2) !important;
  padding: 14px !important;
  width: auto !important;
}
.ui-datepicker-header {
  background: transparent !important;
  border: 0 !important;
  padding: 4px 0 12px !important;
  position: relative;
}
.ui-datepicker-title {
  font-family: var(--pf-font-display) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--pf-ink-1) !important;
  text-align: center;
}
.ui-datepicker-prev, .ui-datepicker-next {
  border: 0 !important;
  background: transparent !important;
  cursor: pointer;
  width: 28px; height: 28px;
  border-radius: var(--pf-radius-sm);
  color: var(--pf-ink-2);
  top: 4px !important;
}
.ui-datepicker-prev:hover, .ui-datepicker-next:hover { background: var(--pf-sunken) !important; }
.ui-datepicker th {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pf-ink-3) !important;
  padding: 8px 0 !important;
  text-align: center;
}
.ui-datepicker td { padding: 2px !important; }
.ui-datepicker td a, .ui-datepicker td span {
  display: block;
  padding: 8px 0 !important;
  text-align: center;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--pf-ink-1) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: var(--pf-radius-sm) !important;
}
.ui-datepicker td a:hover { background: var(--pf-sunken) !important; }
.ui-datepicker td.ui-state-disabled span,
.ui-datepicker td .ui-state-disabled {
  color: var(--pf-ink-4) !important;
  text-decoration: line-through;
  cursor: not-allowed;
}
.ui-datepicker .ui-state-active,
.ui-datepicker .ui-state-highlight,
.ui-datepicker td a.ui-state-active {
  background: var(--pf-accent) !important;
  color: #fff !important;
}
.ui-datepicker .mphb-date-in-range a,
.ui-datepicker td.mphb-date-in-range a {
  background: var(--pf-accent-soft) !important;
  color: var(--pf-accent-dk) !important;
}

/* --------------------------------------------------------------------------
   10. Notices — success / error / info
   -------------------------------------------------------------------------- */
.mphb-notice,
.mphb_message,
.mphb-message {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--pf-radius-md);
  border: 1px solid var(--pf-ink-5);
  background: var(--pf-surface);
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--pf-ink-2);
}
.mphb-notice__icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--pf-ink-3); }

.mphb-notice--success, .mphb_message--success {
  background: var(--pf-nature-soft);
  border-color: color-mix(in srgb, var(--pf-nature) 40%, transparent);
  color: #3d4a32;
}
.mphb-notice--success .mphb-notice__icon { color: #4a5b3e; }

.mphb-notice--error, .mphb_message--error {
  background: var(--pf-danger-soft);
  border-color: color-mix(in srgb, var(--pf-danger) 30%, transparent);
  color: #6b2a20;
}
.mphb-notice--error .mphb-notice__icon { color: var(--pf-danger); }

.mphb-notice--info {
  background: var(--pf-accent-soft);
  border-color: color-mix(in srgb, var(--pf-accent) 25%, transparent);
  color: #6e3b27;
}

/* Field-level errors */
.mphb-field--error input,
.mphb-field--error select,
.mphb-field--error textarea,
input.mphb-field-error {
  border-color: var(--pf-danger);
  box-shadow: 0 0 0 3px rgba(176, 68, 52, 0.18);
}
.mphb-field-error-msg {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--pf-danger);
}

/* --------------------------------------------------------------------------
   11. Pills / tags
   -------------------------------------------------------------------------- */
.mphb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--pf-radius-pill);
  background: var(--pf-nature-soft);
  color: #4a5b3e;
}
.mphb-pill--accent { background: var(--pf-accent-soft); color: #6e3b27; }
.mphb-pill--star { background: var(--pf-star-soft); color: #7a5c0d; }
.mphb-pill--muted { background: var(--pf-sunken); color: var(--pf-ink-2); }

/* --------------------------------------------------------------------------
   12. Payment method selector (radio cards)
   -------------------------------------------------------------------------- */
.mphb-payment-methods, .mphb_gateways {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.mphb-payment-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--pf-ink-4);
  border-radius: var(--pf-radius-md);
  background: var(--pf-surface);
  cursor: pointer;
  transition: border-color 180ms var(--pf-ease), background 180ms var(--pf-ease);
}
.mphb-payment-method:hover { border-color: var(--pf-ink-3); }
.mphb-payment-method.is-selected,
.mphb-payment-method:has(input:checked) {
  border-color: var(--pf-accent);
  background: var(--pf-accent-soft);
}
.mphb-payment-method__label {
  font-weight: 500;
  font-size: 15px;
  color: var(--pf-ink-1);
  flex: 1;
}
.mphb-payment-method__desc {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--pf-ink-3);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   13. My bookings — table + booking row
   -------------------------------------------------------------------------- */
.mphb-bookings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--pf-surface);
  border: 1px solid var(--pf-ink-5);
  border-radius: var(--pf-radius-md);
  overflow: hidden;
}
.mphb-bookings-table th {
  font-family: var(--pf-font-body);
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pf-ink-3);
  padding: 16px 20px;
  background: var(--pf-bg);
  border-bottom: 1px solid var(--pf-ink-5);
}
.mphb-bookings-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--pf-ink-5);
  font-size: 15px;
  color: var(--pf-ink-1);
  vertical-align: middle;
}
.mphb-bookings-table tr:last-child td { border-bottom: 0; }
.mphb-bookings-table .mphb-booking-id { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--pf-ink-3); }

.mphb-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--pf-radius-pill);
}
.mphb-status::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.mphb-status--confirmed { background: var(--pf-nature-soft); color: #4a5b3e; }
.mphb-status--pending   { background: var(--pf-star-soft); color: #7a5c0d; }
.mphb-status--cancelled { background: var(--pf-sunken); color: var(--pf-ink-3); }
.mphb-status--failed    { background: var(--pf-danger-soft); color: #6b2a20; }

/* --------------------------------------------------------------------------
   14. Confirmation hero — large terracotta moment
   -------------------------------------------------------------------------- */
.mphb-confirmation-hero {
  background: var(--pf-surface);
  border: 1px solid var(--pf-ink-5);
  border-radius: var(--pf-radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.mphb-confirmation-hero__cover {
  aspect-ratio: 16 / 7;
  background-size: cover;
  background-position: center;
  background-color: var(--pf-sunken);
}
.mphb-confirmation-hero__body { padding: 40px 48px 44px; }

/* --------------------------------------------------------------------------
   15. Steps indicator (checkout: 1 dates · 2 details · 3 confirm)
   -------------------------------------------------------------------------- */
.mphb-steps {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 32px;
  font-size: 13px;
  color: var(--pf-ink-3);
}
.mphb-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mphb-step__num {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--pf-sunken);
  color: var(--pf-ink-3);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mphb-step.is-current .mphb-step__num { background: var(--pf-accent); color: #fff; }
.mphb-step.is-current .mphb-step__label { color: var(--pf-ink-1); font-weight: 600; }
.mphb-step.is-done .mphb-step__num { background: var(--pf-nature); color: #fff; }
.mphb-steps__sep { width: 16px; height: 1px; background: var(--pf-ink-4); }

/* --------------------------------------------------------------------------
   16. Definition list — used for booking details
   -------------------------------------------------------------------------- */
.mphb-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 14px 24px;
  margin: 0;
}
.mphb-dl dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pf-ink-3);
  align-self: start;
  padding-top: 2px;
}
.mphb-dl dd {
  margin: 0;
  font-size: 15px;
  color: var(--pf-ink-1);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   17. Tiny utilities
   -------------------------------------------------------------------------- */
.pf-stack > * + * { margin-top: 16px; }
.pf-stack-lg > * + * { margin-top: 32px; }
.pf-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pf-row--end { justify-content: flex-end; }
.pf-mono { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
.pf-muted { color: var(--pf-ink-3); }
.pf-link { color: var(--pf-accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 180ms var(--pf-ease); }
.pf-link:hover { border-color: var(--pf-accent); color: var(--pf-accent-dk); }

/* --------------------------------------------------------------------------
   18. Auth forms (login, register, lost password) — narrow centered card
   -------------------------------------------------------------------------- */
.mphb-auth-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--pf-surface);
  border: 1px solid var(--pf-ink-5);
  border-radius: var(--pf-radius-md);
  padding: 40px 40px 36px;
}
.mphb-auth-card h1 {
  font-family: var(--pf-font-display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.mphb-auth-card .pf-lead { font-size: 15px; margin-bottom: 28px; }
.mphb-auth-card .mphb-button { width: 100%; margin-top: 8px; }
.mphb-auth-card .mphb-auth-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--pf-ink-5);
  font-size: 14px;
  color: var(--pf-ink-3);
  text-align: center;
}

/* --------------------------------------------------------------------------
   19. Service / extra cards (Frühstück, Babybett, etc.)
   -------------------------------------------------------------------------- */
.mphb-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.mphb-service {
  background: var(--pf-surface);
  border: 1px solid var(--pf-ink-4);
  border-radius: var(--pf-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: border-color 180ms var(--pf-ease), background 180ms var(--pf-ease);
  position: relative;
}
.mphb-service:hover { border-color: var(--pf-ink-3); }
.mphb-service.is-selected,
.mphb-service:has(input:checked) {
  border-color: var(--pf-accent);
  background: var(--pf-accent-soft);
}
.mphb-service__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mphb-service__title {
  font-family: var(--pf-font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--pf-ink-1);
  line-height: 1.2;
  margin: 0;
  text-transform: none;
  letter-spacing: -0.01em;
}
.mphb-service__desc, .mphb-service__meta, .mphb-service__price { text-transform: none; letter-spacing: normal; }
.mphb-payment-method__label, .mphb-payment-method__desc { text-transform: none; letter-spacing: normal; }
.mphb-service__price {
  font-family: var(--pf-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--pf-accent);
  white-space: nowrap;
}
.mphb-service__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--pf-ink-2);
  margin: 0;
  flex: 1;
}
.mphb-service__meta {
  font-size: 12px;
  color: var(--pf-ink-3);
  letter-spacing: 0.04em;
}
.mphb-service__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pf-ink-4);
  border-radius: var(--pf-radius-pill);
  background: var(--pf-surface);
  overflow: hidden;
  margin-top: 4px;
  align-self: flex-start;
}
.mphb-service__qty button {
  background: transparent; border: 0; cursor: pointer; padding: 6px 12px;
  font-size: 16px; color: var(--pf-ink-2); line-height: 1;
}
.mphb-service__qty button:hover { background: var(--pf-sunken); color: var(--pf-ink-1); }
.mphb-service__qty .qty {
  padding: 0 4px; font-size: 14px; font-weight: 600; min-width: 24px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.mphb-service__check {
  position: absolute; top: 12px; right: 12px;
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--pf-accent); color: #fff;
  display: none; align-items: center; justify-content: center;
}
.mphb-service.is-selected .mphb-service__check { display: flex; }

/* Coupon row */
.mphb-coupon {
  display: flex; gap: 8px;
  padding: 14px 16px;
  background: var(--pf-bg);
  border: 1px dashed var(--pf-ink-4);
  border-radius: var(--pf-radius-md);
}
.mphb-coupon input {
  flex: 1; padding: 8px 12px;
  border: 1px solid var(--pf-ink-4);
  border-radius: var(--pf-radius-sm);
  background: var(--pf-surface);
  font-family: var(--pf-font-body); font-size: 14px;
}

/* --------------------------------------------------------------------------
   20. Email template — for HTML email rendering (max-width 600 / centered)
   -------------------------------------------------------------------------- */
.pf-email-shell {
  background: #efeae2;
  padding: 40px 16px;
  min-height: 100vh;
  font-family: var(--pf-font-body);
}
.pf-email {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(23,30,26,0.04);
}
.pf-email__head {
  padding: 28px 36px 20px;
  border-bottom: 1px solid var(--pf-ink-5);
}
.pf-email__brand {
  font-family: var(--pf-font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--pf-ink-1);
}
.pf-email__brand .dot { color: var(--pf-accent); }
.pf-email__hero {
  aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, #e8c79a 0%, #ad6449 50%, #6e3b27 100%);
}
.pf-email__body { padding: 36px 36px 8px; }
.pf-email__body h1 {
  font-family: var(--pf-font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--pf-ink-1);
}
.pf-email__body p { font-size: 15px; line-height: 1.65; color: var(--pf-ink-2); margin: 0 0 16px; }
.pf-email__body .pf-eyebrow { color: var(--pf-accent); margin-bottom: 12px; }
.pf-email__details {
  margin: 24px 0;
  background: var(--pf-bg);
  border-radius: var(--pf-radius-md);
  padding: 18px 22px;
}
.pf-email__details dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; }
.pf-email__details dt { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pf-ink-3); }
.pf-email__details dd { margin: 0; font-size: 14px; color: var(--pf-ink-1); }
.pf-email__cta { margin: 24px 0 8px; }
.pf-email__cta a {
  display: inline-block; padding: 12px 22px; background: var(--pf-accent); color: #fff;
  text-decoration: none; border-radius: var(--pf-radius-md); font-weight: 600; font-size: 14px;
}
.pf-email__foot {
  padding: 20px 36px 28px;
  border-top: 1px solid var(--pf-ink-5);
  font-size: 12px; color: var(--pf-ink-3); line-height: 1.6;
}
.pf-email__foot a { color: var(--pf-ink-2); }
.pf-email__signature {
  font-family: var(--pf-font-display);
  font-size: 18px; font-style: italic; color: var(--pf-ink-2);
  margin: 8px 0 0;
}

/* --------------------------------------------------------------------------
   21. Pfarrgasse page-checkout extras — DOM the theme adds around the
       MotoPress shortcode (hero, summary card thumbnail, breakdown table).
       Scoped so nothing leaks outside the theme-owned checkout page.
   -------------------------------------------------------------------------- */
.pf-checkout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 32px 96px;
  font-family: var(--pf-font-body);
  color: var(--pf-ink-1);
}

.pf-checkout__hero { margin: 0 0 32px; }
.pf-checkout__hero .pf-eyebrow,
.pf-checkout__hero .mphb-page-eyebrow { margin-bottom: 14px; }
.pf-checkout__hero .mphb-page-title { margin: 0 0 12px; }
.pf-checkout__hero .mphb-page-lead  { margin: 0 0 0; max-width: 56ch; }

/* Summary card on the right */
.pf-checkout .mphb-summary-card { padding: 28px; }

.pf-checkout .mphb-summary-card__pills {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}

.pf-checkout img.mphb-summary-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--pf-radius-sm);
  object-fit: cover;
  background: var(--pf-sunken);
  margin: 0 0 18px;
  display: block;
}

.pf-checkout .mphb-summary-thumb--placeholder {
  background: linear-gradient(135deg, #e8c79a, #ad6449 55%, #6e3b27);
}

.pf-checkout .mphb-summary-card__breakdown { margin: 18px 0 0; }
.pf-checkout .mphb-summary-card__cancellation {
  font-size: 13px;
  margin-top: 18px;
  line-height: 1.5;
}

/* MotoPress price breakdown table — restyle to match the design's
   line-items list (.mphb-line-items in the mockup HTML).
   Plugin emits a <table class="mphb-price-breakdown"> with rows of
   <td class="mphb-...-title"> and <td class="mphb-...-value">. */
.pf-checkout .mphb-price-breakdown {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  border-top: 1px solid var(--pf-ink-5);
}
.pf-checkout .mphb-price-breakdown tr {
  border-bottom: 1px solid var(--pf-ink-5);
}
.pf-checkout .mphb-price-breakdown td,
.pf-checkout .mphb-price-breakdown th {
  padding: 12px 0;
  font-size: 14px;
  text-align: left;
  color: var(--pf-ink-2);
  border: 0;
  background: transparent;
}
.pf-checkout .mphb-price-breakdown td + td,
.pf-checkout .mphb-price-breakdown th + th {
  text-align: right;
  color: var(--pf-ink-1);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}
/* Total row — last child gets the editorial treatment */
.pf-checkout .mphb-price-breakdown tr:last-child {
  border-bottom: 0;
}
.pf-checkout .mphb-price-breakdown tr:last-child td {
  padding-top: 18px;
  font-family: var(--pf-font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--pf-ink-1);
}

/* MotoPress' shortcode wrapper sits inside the left grid column.
   Reset its own max-width / padding (set by Section 2 above) so it lays
   out naturally inside our grid. */
.pf-checkout .mphb_sc_checkout-wrapper,
.pf-checkout .mphb_sc_checkout-form {
  max-width: none;
  padding: 0;
  margin: 0;
}

/* MotoPress' default <p>-wrapped fields. Plugin emits each field as a
   separate <p class="mphb-customer-…"> with a <label>, <br>, <input>.
   Restyle as proper field rows. */
.pf-checkout .mphb_sc_checkout-form .mphb-customer-name,
.pf-checkout .mphb_sc_checkout-form .mphb-customer-last-name,
.pf-checkout .mphb_sc_checkout-form .mphb-customer-email,
.pf-checkout .mphb_sc_checkout-form .mphb-customer-phone,
.pf-checkout .mphb_sc_checkout-form .mphb-customer-country,
.pf-checkout .mphb_sc_checkout-form .mphb-customer-address1,
.pf-checkout .mphb_sc_checkout-form .mphb-customer-city,
.pf-checkout .mphb_sc_checkout-form .mphb-customer-state,
.pf-checkout .mphb_sc_checkout-form .mphb-customer-zip,
.pf-checkout .mphb_sc_checkout-form .mphb-customer-note,
.pf-checkout .mphb_sc_checkout-form .mphb-adults-chooser,
.pf-checkout .mphb_sc_checkout-form .mphb-children-chooser,
.pf-checkout .mphb_sc_checkout-form .mphb-guest-name-wrapper {
  margin: 0 0 16px;
}
.pf-checkout .mphb_sc_checkout-form label {
  display: block;
  font-family: var(--pf-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pf-ink-3);
  margin: 0 0 8px;
}
.pf-checkout .mphb_sc_checkout-form label br { display: none; }
.pf-checkout .mphb_sc_checkout-form input[type="text"],
.pf-checkout .mphb_sc_checkout-form input[type="email"],
.pf-checkout .mphb_sc_checkout-form input[type="tel"],
.pf-checkout .mphb_sc_checkout-form input[type="number"],
.pf-checkout .mphb_sc_checkout-form input[type="password"],
.pf-checkout .mphb_sc_checkout-form select,
.pf-checkout .mphb_sc_checkout-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--pf-font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--pf-ink-1);
  background: var(--pf-surface);
  border: 1px solid var(--pf-ink-4);
  border-radius: var(--pf-radius-md);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 180ms var(--pf-ease), box-shadow 180ms var(--pf-ease);
}
.pf-checkout .mphb_sc_checkout-form textarea { min-height: 120px; resize: vertical; }
.pf-checkout .mphb_sc_checkout-form input:focus,
.pf-checkout .mphb_sc_checkout-form select:focus,
.pf-checkout .mphb_sc_checkout-form textarea:focus {
  border-color: var(--pf-accent);
  box-shadow: var(--pf-shadow-focus);
}
.pf-checkout .mphb_sc_checkout-form abbr[title] {
  color: var(--pf-accent);
  text-decoration: none;
  font-weight: 500;
  margin-left: 2px;
  border: 0;
}

/* Submit button — plugin emits <input type="submit" class="button"> */
.pf-checkout .mphb_sc_checkout-form .mphb_sc_checkout-submit-wrapper {
  margin-top: 24px;
  text-align: right;
}
.pf-checkout .mphb_sc_checkout-form input[type="submit"].button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  font-family: var(--pf-font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--pf-radius-md);
  background: var(--pf-accent);
  color: #fff;
  cursor: pointer;
  transition: background 180ms var(--pf-ease), transform 80ms var(--pf-ease);
}
.pf-checkout .mphb_sc_checkout-form input[type="submit"].button:hover { background: var(--pf-accent-dk); }
.pf-checkout .mphb_sc_checkout-form input[type="submit"].button:active { transform: scale(0.98); }
.pf-checkout .mphb_sc_checkout-form input[type="submit"].button:focus-visible {
  outline: none;
  box-shadow: var(--pf-shadow-focus);
}

/* Plugin's gateway list — make each item look like the design's payment
   radio cards. Plugin emits <ul class="mphb-gateways-list"><li>…</li></ul>. */
.pf-checkout .mphb-gateways-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.pf-checkout .mphb-gateway {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--pf-ink-4);
  border-radius: var(--pf-radius-md);
  background: var(--pf-surface);
  cursor: pointer;
  transition: border-color 180ms var(--pf-ease), background 180ms var(--pf-ease);
}
.pf-checkout .mphb-gateway:hover { border-color: var(--pf-ink-3); }
.pf-checkout .mphb-gateway:has(input:checked) {
  border-color: var(--pf-accent);
  background: var(--pf-accent-soft);
}
.pf-checkout .mphb-gateway-title { flex: 1; font-weight: 500; font-size: 15px; }
.pf-checkout .mphb-gateway-description {
  flex: 0 0 100%;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--pf-ink-3);
}
