/**
 * Marburg Commerce — plugin UI.
 *
 * Kept to the plugin's own elements. Colours are pulled from the theme's
 * custom properties where they exist, with fallbacks to the brand values so
 * nothing looks broken under a different theme.
 */

:root {
  --mcc-rust: var(--mc-rust, #a55e42);
  --mcc-oak: var(--mc-oak, #d8c3a5);
  --mcc-char: var(--mc-char, #1f2328);
  --mcc-slate: var(--mc-slate, #555a60);
}

/* --- Guests-only badge on listings ---------------------------------------- */

.mc-guestbadge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(31, 35, 40, 0.88);
  color: var(--mcc-oak);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1;
}

/* The badge is absolutely positioned; give it something to sit against. */
.woocommerce ul.products li.product { position: relative; }

/* --- The explanation above the booking fields ----------------------------- */

.mc-guestnote {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--mcc-oak);
  background: rgba(216, 195, 165, 0.12);
  border-radius: 0 3px 3px 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--mcc-char);
}
.mc-guestnote strong { display: block; margin-bottom: 0.2rem; }
.mc-guestnote a { color: var(--mcc-rust); }

/* --- Date and reference fields -------------------------------------------- */

.mc-rentalfields { margin: 0 0 1.25rem; }

.mc-rentalfields .form-row { margin: 0 0 0.85rem; }

.mc-rentalfields label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mcc-slate);
}

.mc-rentalfields input[type="date"],
.mc-rentalfields input[type="text"],
.mc-rentalfields select {
  width: 100%;
  max-width: 22rem;
  min-height: 46px;
  padding: 0 0.85rem;
  border: 1px solid #d8d3c8;
  border-radius: 3px;
  background: #fff;
  font-size: 1rem;
  color: var(--mcc-char);
}

.mc-rentalfields input:focus-visible,
.mc-rentalfields select:focus-visible {
  outline: 2px solid var(--mcc-rust);
  outline-offset: 2px;
  border-color: var(--mcc-rust);
}

.mc-fieldnote {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--mcc-slate);
}

/* --- Remaining capacity --------------------------------------------------- */

.mc-rental-capacity {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mcc-slate);
}

/* --- Choose dates button -------------------------------------------------- */

.mc-choose-dates { white-space: nowrap; }
