/* Gels by Mils — MotoPress Appointment booking form theming.
   Targets MotoPress's own .mpa-* classes. Scoped (no global tag selectors)
   so it can't leak into anything else. */

:root{
  --gbm-maroon:#3F0000;
  --gbm-maroon-2:#490000;
  --gbm-cream:#E9E3D8;
  --gbm-cream-soft:#FBF9F9;
  --gbm-muted:rgba(63,0,0,.55);
  --gbm-border:rgba(63,0,0,.18);
}

/* Text block's inner wrapper (.mui-0) is a flex child of the 900px content
   column and shrinks-to-fit by default, capping the booking form's width.
   Scope the fix to the text block so it doesn't affect other blocks. */
.block-container-text .mui-0{width:100% !important; max-width:100% !important}

/* ---------- container & layout ---------- */
/* The .mpa-shortcode lives inside a flex column (.mui-1oindul) → without an
   explicit width it collapses to shrink-to-fit, dragging the form, select,
   calendar, etc. down with it. Force full column width + block layout, and
   stack date/time vertically (default MotoPress lays them side-by-side). */
.mpa-shortcode.appointment-form-shortcode{
  font-family:'PT Mono',ui-monospace,monospace;
  font-size:15px; line-height:1.5; color:var(--gbm-maroon);
  width:100%; max-width:900px; margin:48px auto; padding:36px 40px;
  background:var(--gbm-cream-soft);
  border:1px solid var(--gbm-border);
  box-shadow:0 6px 20px rgba(63,0,0,.06);
  display:block !important; box-sizing:border-box}
.mpa-shortcode .mpa-booking-step,
.mpa-shortcode .mpa-service-form,
.mpa-shortcode .mpa-input-wrapper{
  display:block; width:100% !important; max-width:100% !important; box-sizing:border-box}
/* stack date above time (plugin defaults to flex row → time gets squeezed) */
.mpa-shortcode .mpa-input-container{
  display:block !important; width:100% !important}
.mpa-shortcode .mpa-date-wrapper,
.mpa-shortcode .mpa-time-wrapper{
  display:block !important; width:100% !important; margin-bottom:24px}
@media (max-width:640px){
  .mpa-shortcode.appointment-form-shortcode{margin:24px 12px;padding:24px 18px}
}

/* Make sure no theme rule hides the live step content (some emotion classes
   we merged were aggressive about hiding their children). */
.mpa-shortcode .mpa-booking-step:not(.mpa-hide){display:block !important}
.mpa-shortcode .mpa-input-wrapper:not(.mpa-hide){display:block !important}
.mpa-shortcode .mpa-time-wrapper:not(.mpa-hide){display:block !important}
.mpa-shortcode .mpa-time-wrapper .mpa-times-container{display:block !important}
.mpa-shortcode .mpa-hide{display:none !important}

/* ---------- titles & labels ---------- */
.mpa-shortcode .mpa-shortcode-title{
  font-family:'Oswald',sans-serif; font-weight:700; text-transform:uppercase;
  font-size:1.5rem; letter-spacing:.02em; color:var(--gbm-maroon-2);
  margin:0 0 18px}
.mpa-shortcode label{
  display:block; font-family:'PT Mono',monospace; font-weight:600;
  color:var(--gbm-maroon); margin:0 0 6px}
.mpa-shortcode label br{display:none}
.mpa-shortcode label abbr{color:var(--gbm-maroon-2); text-decoration:none}
.mpa-shortcode .mpa-required-tip{color:var(--gbm-muted); margin:0 0 14px}
.mpa-shortcode .mpa-input-wrapper{margin:0 0 18px}

/* ---------- form fields ---------- */
.mpa-shortcode select,
.mpa-shortcode input[type=text],
.mpa-shortcode input[type=email],
.mpa-shortcode input[type=tel],
.mpa-shortcode textarea{
  width:100% !important; max-width:100% !important; box-sizing:border-box;
  font-family:'PT Mono',monospace; font-size:15px; color:var(--gbm-maroon);
  background:#fff; border:1px solid var(--gbm-border); border-radius:0;
  padding:10px 12px; line-height:1.4; -webkit-appearance:none; appearance:none}
.mpa-shortcode select{
  background-image:linear-gradient(45deg,transparent 50%,var(--gbm-maroon) 50%),
                   linear-gradient(135deg,var(--gbm-maroon) 50%,transparent 50%);
  background-position:calc(100% - 18px) 18px, calc(100% - 13px) 18px;
  background-size:5px 5px,5px 5px; background-repeat:no-repeat; padding-right:36px}
.mpa-shortcode select:focus,
.mpa-shortcode input:focus,
.mpa-shortcode textarea:focus{outline:0; border-color:var(--gbm-maroon)}

/* ---------- buttons ---------- */
.mpa-shortcode .button{
  display:inline-block; cursor:pointer; user-select:none;
  font-family:'PT Mono',monospace; font-weight:600; font-size:14px;
  letter-spacing:.04em; text-transform:none;
  padding:12px 22px; border-radius:0; border:1px solid var(--gbm-maroon-2);
  transition:background .15s,color .15s,opacity .15s; -webkit-appearance:none}
.mpa-shortcode .button-primary{background:var(--gbm-maroon-2); color:var(--gbm-cream)}
.mpa-shortcode .button-primary:hover{background:var(--gbm-maroon)}
.mpa-shortcode .button-secondary{background:transparent; color:var(--gbm-maroon-2)}
.mpa-shortcode .button-secondary:hover{background:var(--gbm-maroon-2); color:var(--gbm-cream)}
.mpa-shortcode .button[disabled]{opacity:.45; cursor:not-allowed}
.mpa-shortcode .mpa-actions{display:flex; gap:10px; margin-top:18px}

/* ---------- date picker (Flatpickr) ---------- */
/* Force the whole calendar onto a 7-column grid so weekday headers align with
   the day cells. Flatpickr's default uses flex-wrap with fixed widths which
   becomes a mess when the parent is full-width. */
.mpa-shortcode .flatpickr-calendar{
  background:#fff; border:1px solid var(--gbm-border); border-radius:0;
  box-shadow:0 4px 14px rgba(63,0,0,.08);
  width:100% !important; max-width:100% !important}
.mpa-shortcode .flatpickr-calendar .flatpickr-innerContainer,
.mpa-shortcode .flatpickr-calendar .flatpickr-rContainer,
.mpa-shortcode .flatpickr-calendar .flatpickr-days,
.mpa-shortcode .flatpickr-calendar .dayContainer,
.mpa-shortcode .flatpickr-calendar .flatpickr-weekdaycontainer,
.mpa-shortcode .flatpickr-calendar .flatpickr-weekdays{
  width:100% !important; min-width:0 !important; max-width:none !important}
.mpa-shortcode .flatpickr-calendar .flatpickr-weekdaycontainer,
.mpa-shortcode .flatpickr-calendar .dayContainer{
  display:grid !important; grid-template-columns:repeat(7,1fr) !important; gap:2px}
.mpa-shortcode .flatpickr-calendar .flatpickr-weekday{
  flex:none !important; max-width:none !important; width:auto !important}
.mpa-shortcode .flatpickr-calendar .flatpickr-day{
  flex:none !important; max-width:none !important; width:auto !important;
  height:44px; line-height:44px}
.mpa-shortcode .flatpickr-months .flatpickr-month{color:var(--gbm-maroon-2)}
.mpa-shortcode .flatpickr-current-month .cur-month,
.mpa-shortcode .flatpickr-current-month input.cur-year,
.mpa-shortcode .flatpickr-current-month .numInputWrapper{
  color:var(--gbm-maroon-2); font-family:'Oswald',sans-serif; font-weight:700}
.mpa-shortcode span.flatpickr-weekday{
  color:var(--gbm-maroon-2); font-family:'PT Mono',monospace; font-weight:600}
.mpa-shortcode .flatpickr-day{color:var(--gbm-maroon); border-radius:0}
.mpa-shortcode .flatpickr-day.flatpickr-disabled,
.mpa-shortcode .flatpickr-day.prevMonthDay,
.mpa-shortcode .flatpickr-day.nextMonthDay{color:rgba(63,0,0,.25)}
.mpa-shortcode .flatpickr-day.today{border-color:var(--gbm-maroon-2)}
.mpa-shortcode .flatpickr-day:hover{background:rgba(73,0,0,.08); border-color:transparent}
.mpa-shortcode .flatpickr-day.selected,
.mpa-shortcode .flatpickr-day.startRange,
.mpa-shortcode .flatpickr-day.endRange,
.mpa-shortcode .flatpickr-day.selected:hover{
  background:var(--gbm-maroon-2) !important; color:var(--gbm-cream) !important;
  border-color:var(--gbm-maroon-2)}
.mpa-shortcode .flatpickr-prev-month svg,
.mpa-shortcode .flatpickr-next-month svg{fill:var(--gbm-maroon-2)}

/* ---------- time slots ---------- */
/* MotoPress sets .mpa-times { position:absolute; top:0; bottom:0 } and
   .mpa-times-container { height:100% }, assuming time shares a flex row's
   height with the date picker. We stack vertically, so flow them normally. */
.mpa-shortcode .mpa-time-wrapper{height:auto !important}
.mpa-shortcode .mpa-times-container{
  position:relative !important; height:auto !important; margin-top:18px}
.mpa-shortcode .mpa-times{
  position:static !important; overflow:visible !important; max-height:none !important;
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
  gap:8px; margin-top:12px}
.mpa-shortcode .mpa-time-period{
  display:flex !important; flex-direction:column; align-items:center;
  padding:10px 8px; font-size:13px; line-height:1.2;
  border:1px solid var(--gbm-border); background:#fff; color:var(--gbm-maroon);
  border-radius:0; cursor:pointer; transition:background .15s, color .15s}
.mpa-shortcode .mpa-time-period:hover{background:var(--gbm-cream); border-color:var(--gbm-maroon-2)}
.mpa-shortcode .mpa-time-period-selected{
  background:var(--gbm-maroon-2); border-color:var(--gbm-maroon-2); color:var(--gbm-cream)}
.mpa-shortcode .mpa-period-end-time{font-size:11px; opacity:.7; margin-top:2px}

/* loading spinner */
.mpa-shortcode .mpa-loading{margin:12px auto; min-height:8px}

/* ---------- cart & order ---------- */
.mpa-shortcode .mpa-cart{margin:0 0 20px}
.mpa-shortcode .mpa-cart-item{
  background:#fff; border:1px solid var(--gbm-border); padding:18px; margin-bottom:12px}
.mpa-shortcode .mpa-cart-item .item-header{
  display:flex; justify-content:space-between; gap:16px;
  font-family:'Oswald',sans-serif; text-transform:uppercase;
  color:var(--gbm-maroon-2); padding-bottom:10px; border-bottom:1px solid var(--gbm-border)}
.mpa-shortcode .mpa-cart-item .item-body{
  display:grid; grid-template-columns:repeat(2,1fr); gap:10px 16px; padding:12px 0}
.mpa-shortcode .mpa-cart-item .cell .cell-title{font-weight:600; color:var(--gbm-muted); font-size:12px; text-transform:uppercase; letter-spacing:.04em}
.mpa-shortcode .mpa-cart-total{
  text-align:right; font-family:'Oswald',sans-serif; font-weight:700;
  text-transform:uppercase; font-size:1.05rem; color:var(--gbm-maroon-2)}
.mpa-shortcode .no-items{color:var(--gbm-muted); padding:14px 0; text-align:center}

/* ---------- checkout section ---------- */
.mpa-shortcode .mpa-checkout-section{margin:0 0 24px}
.mpa-shortcode .mpa-no-payment-gateways{
  background:var(--gbm-cream); color:var(--gbm-maroon); padding:14px; border:1px solid var(--gbm-border)}

/* ---------- messages ---------- */
.mpa-shortcode .mpa-message{
  padding:12px 16px; background:var(--gbm-cream); color:var(--gbm-maroon);
  border-left:3px solid var(--gbm-maroon-2)}
.mpa-shortcode .mpa-message.mpa-error{
  background:#fdecec; color:#7a1212; border-left-color:#7a1212}

/* ---------- calendar add-to links ---------- */
.mpa-shortcode .mpa-add-to-calendar-link{
  color:var(--gbm-maroon-2); text-decoration:underline; margin-right:8px}
