/* =========================================================
   UpZone Booking – Clean UI CSS (FULL PATCH v3)
   Mål: mindre plottrigt, tydligare hierarki, klickbara dagar
   - Färre “ramar överallt”
   - Available days markeras med diskret accent (understreck/dot)
   - Selected day/time tydlig men clean
   - Total + actions känns som ett sammanhållet “checkout”-block
   - Inga runda knappar (max 3px radius)
   ========================================================= */

/* =========================================================
   TOKENS
   ========================================================= */
.upz-booking{
  --upz-header: #141C18;
  --upz-panel:  #2D3933;

  --upz-accent: #F39200;
  --upz-check:  #24AD68;

  --upz-text: rgba(255,255,255,.96);
  --upz-dim:  rgba(255,255,255,.72);
  --upz-dimmer: rgba(255,255,255,.58);

  --upz-line: rgba(255,255,255,.12);
  --upz-soft: rgba(0,0,0,.12);
  --upz-soft2: rgba(0,0,0,.18);

  --upz-radius: 3px;

  --upz-gap: 12px;
  --upz-gap-sm: 8px;

  --upz-day: 30px;
  --upz-day-font: 12px;

  color: var(--upz-text);
  font-family: "Noway Upzone", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  width: 100%;
  max-width: 520px;
}

/* =========================================================
   FONT
   ========================================================= */
@font-face{
  font-family: "Noway Upzone";
  src: url("/wp-content/uploads/2025/12/noway-regular-webfont.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Noway Upzone";
  src: url("/wp-content/uploads/2025/12/noway-medium-webfont.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   ELEMENTOR HARDENING
   ========================================================= */
.elementor-widget-container .upz-booking,
.elementor-widget-container .upz-booking *{
  box-sizing: border-box;
  text-align: left !important;
}

.elementor-widget-container .upz-booking button,
.elementor-widget-container .upz-booking input,
.elementor-widget-container .upz-booking select{
  outline: 0 !important;
  box-shadow: none !important;
}

/* =========================================================
   SHELL
   ========================================================= */
.upz-booking .upz-shell{
  border-radius: var(--upz-radius);
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(0,0,0,.30);
}

.upz-booking .upz-top{
  background: var(--upz-header);
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.upz-booking .upz-body{
  background: var(--upz-panel);
  padding: 22px 30px;
}

/* =========================================================
   PROGRESS + PILLS (mindre plottrigt)
   ========================================================= */
.upz-booking .upz-progress{
  display:flex;
  align-items:center;
  gap:5px;
  font-size:12px;
}

.upz-booking .upz-progress__step{
  font-weight:800;
  color: var(--upz-dimmer);
}

.upz-booking .upz-progress__step.is-active{
  color: var(--upz-check);
}

.upz-booking .upz-progress__arrow{
  opacity:.35;
}

.upz-booking .upz-pills{
  margin-top:10px;
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  gap:20px;
  align-items:center;
}

.upz-booking[data-current-step="1"] .upz-pills{ display:none; }

.upz-booking .upz-pill{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  font-weight:500;
}

.upz-booking .upz-pill__dot{
  width:13px;
  height:13px;
  border-radius: 0;
  background: transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 13px;
  background-image: url("check.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
}

.upz-booking .upz-pill__dot svg{
  display:none;
}

.upz-booking .upz-pill__text{
  line-height:1.2;
}

/* =========================================================
   TYPO
   ========================================================= */
.upz-booking h2{
  font-size:18px;
  font-weight:900;
  line-height:1.2;
  margin: 32px 0 8px;
  color: var(--upz-accent);
}

.upz-booking h2:first-of-type{ margin-top: 8px; }
.upz-booking h2.upz-h2-bookingtype{
  margin-bottom: 4px;
}

.upz-booking .upz-lead{
  font-size:13px;
  line-height:1.45;
  color: var(--upz-dim);
  margin-bottom: 16px;
}

/* =========================================================
   FORMS
   ========================================================= */
.upz-booking select,
.upz-booking input{
  width:100%;
  padding:10px;
  font-size:13px;
  border-radius: var(--upz-radius);
  border: 1px solid rgba(255,255,255,.16);
  background:#fff;
  color:#111;
}

/* =========================================================
   BOOKING TYPES (renare, mindre “kort”)
   ========================================================= */
.upz-booking .upz-booking-types{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.upz-booking .upz-radio{
  display:grid;
  grid-template-columns: 10px 1fr auto;
  gap:10px;
  align-items:center;
}
.upz-booking .upz-radio__label{
  min-width:0;
}
.upz-booking .upz-badge-discount{
  background: var(--upz-accent);
  color:#fff;
  font-size:12px;
  font-weight:900;
  border-radius:3px;
  padding:3px 6px;
}
.upz-booking .upz-booking-types-note{
  margin-top:0;
  margin-bottom:0;
  padding-top:0;
  padding-bottom:10px;
  font-size:13px;
  color:#fff;
}
.upz-booking .upz-booking-types-note a{
  color: var(--upz-accent);
  text-decoration: underline;
  font-weight: 900;
}

/* =========================================================
   ADMIN – Tillgänglighet (scoped)
   - UI inspired by weekly availability view
   - Local capacity engine (booked/capacity)
   ========================================================= */

.upz-admin{
  --upz-a-bg: #f6f7fb;
  --upz-a-panel: #ffffff;
  --upz-a-line: rgba(15,23,42,.10);
  --upz-a-muted: rgba(15,23,42,.65);
  --upz-a-text: rgba(15,23,42,.92);
  --upz-a-chip: #f2f4f8;
  --upz-a-slot: #fde8ea;
  --upz-a-slot-bd: rgba(234, 100, 115, .35);
  --upz-a-slot-muted: #f1f3f6;
  --upz-a-radius: 12px;
  color: var(--upz-a-text);
  max-width: 1200px;
}

/* Calendar view should use the full available admin content width. */
.upz-admin.upz-admin--calendar{
  max-width: none;
  width: 100%;
}

.upz-av-toolbar{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  align-items:flex-end;
  padding: 12px 0 6px;
}

.upz-av-toolbar__left{ display:flex; gap:14px; flex-wrap:wrap; align-items:flex-end; }
.upz-av-toolbar__right{ display:flex; gap:10px; align-items:flex-end; }

.upz-av-label{
  display:block;
  font-size:12px;
  color: var(--upz-a-muted);
  margin:0 0 6px;
}

.upz-av-select,
.upz-av-input{
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--upz-a-line);
  background: var(--upz-a-panel);
  font-size: 13px;
  min-width: 150px;
}

.upz-av-date{ display:flex; gap:8px; align-items:flex-end; }
.upz-av-date__picker{ display:flex; flex-direction:column; }

.upz-av-btn{
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--upz-a-line);
  background: var(--upz-a-panel);
  cursor:pointer;
}

.upz-av-btn:disabled{ opacity:.55; cursor:not-allowed; }

.upz-av-iconbtn{
  height: 36px;
  width: 36px;
  border-radius: 10px;
  border: 1px solid var(--upz-a-line);
  background: var(--upz-a-panel);
  font-size: 18px;
  line-height: 1;
  cursor:pointer;
}

.upz-av-subbar{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--upz-a-line);
}

.upz-av-tabs{
  display:flex;
  gap:6px;
  background: var(--upz-a-chip);
  border-radius: 999px;
  padding: 4px;
}

.upz-av-tab{
  border:0;
  background:transparent;
  padding: 7px 12px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 600;
  color: rgba(15,23,42,.75);
}

.upz-av-tab.is-active{
  background: var(--upz-a-panel);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  color: rgba(15,23,42,.95);
}

.upz-av-stats{ display:flex; gap:12px; flex-wrap:wrap; justify-content:flex-end; }
.upz-av-stat{ font-size:12px; color: var(--upz-a-muted); }

.upz-av-stage{ padding: 14px 0 18px; }

.upz-av-board{
  border: 1px solid var(--upz-a-line);
  border-radius: var(--upz-a-radius);
  background: var(--upz-a-panel);
  overflow:auto;
}

.upz-av-head,
.upz-av-row{
  display:grid;
  grid-template-columns: 280px repeat(7, 1fr);
  min-width: 1000px;
}

.upz-av-head{
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--upz-a-panel);
  border-bottom: 1px solid var(--upz-a-line);
}

.upz-av-head__product{
  padding: 14px 12px;
  font-weight: 700;
}

.upz-av-colhead{
  padding: 10px 10px;
  border-left: 1px solid var(--upz-a-line);
}

.upz-av-colhead__day{ font-weight: 700; font-size: 12px; }
.upz-av-colhead__date{ font-size: 11px; color: var(--upz-a-muted); margin-top: 2px; }

.upz-av-body .upz-av-row{ border-bottom: 1px solid var(--upz-a-line); }
.upz-av-body .upz-av-row:last-child{ border-bottom: 0; }

.upz-av-product{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 12px;
}

.upz-av-product__img{
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef2ff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
}

.upz-av-product__meta{ min-width: 0; }
.upz-av-product__title{ font-weight: 700; font-size: 13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width: 170px; }
.upz-av-product__slug{ font-size: 11px; color: var(--upz-a-muted); }

.upz-av-product__clock{
  margin-left:auto;
  height: 34px;
  width: 34px;
  border-radius: 10px;
  border: 1px solid var(--upz-a-line);
  background: var(--upz-a-panel);
  cursor:not-allowed;
  opacity:.6;
}

.upz-av-cell{ padding: 12px 10px; border-left: 1px solid var(--upz-a-line); }
.upz-av-cell__head{ display:flex; justify-content:flex-end; margin-bottom: 8px; }

.upz-av-add{
  height: 28px;
  width: 28px;
  border-radius: 8px;
  border: 1px solid var(--upz-a-line);
  background: var(--upz-a-panel);
  cursor:pointer;
}

.upz-av-cell__list{ display:grid; gap:8px; }

.upz-av-slot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--upz-a-slot-bd);
  background: var(--upz-a-slot);
  cursor:pointer;
  text-align:left;
}

.upz-av-slot__time{ font-weight: 800; font-variant-numeric: tabular-nums; }
.upz-av-slot__cap{ font-size: 12px; color: rgba(15,23,42,.7); }

.upz-av-slot.is-blocked{
  background: var(--upz-a-slot-muted);
  border-color: var(--upz-a-line);
  opacity: .75;
}

.upz-av-empty{ font-size: 12px; color: var(--upz-a-muted); padding: 6px 2px; }

.upz-av-more{
  height: 30px;
  border-radius: 10px;
  border: 1px solid var(--upz-a-line);
  background: var(--upz-a-panel);
  font-size: 12px;
  color: rgba(15,23,42,.75);
  cursor:pointer;
}

.upz-av-note{ font-size: 12px; color: var(--upz-a-muted); margin-top: 10px; }

/* Manifest */
.upz-mf-list{ display:grid; gap:4px; }
.upz-mf-item{ display:flex; align-items:center; gap:8px; font-size:12px; line-height:1.2; }
.upz-mf-type{
  display:inline-flex;
  align-items:center;
  padding:2px 6px;
  border-radius:999px;
  background:#eef2ff;
  color:#3730a3;
  font-size:10px;
  font-weight:600;
  text-transform:uppercase;
}
.upz-mf-activity{
  min-width:0;
  max-width:180px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#334155;
  font-size:11px;
}
.upz-mf-name{ flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.upz-mf-persons{ color:#111827; font-weight:600; }
.upz-mf-pay{ color:#4b5563; font-weight:500; white-space:nowrap; }
.upz-mf-total{ font-weight:600; color:#111827; }
.upz-mf-price{ font-weight:600; color:#111827; white-space:nowrap; }
.upz-mf-empty{ font-size:12px; color: var(--upz-a-muted); }

/* Manifest: new layout */
.upz-mf-times{ display:flex; flex-direction:column; gap:12px; margin-top:8px; }
.upz-mf-legend{
  display:grid; grid-template-columns: 70px 90px 100px 90px 90px;
  gap:10px; font-size:12px; color:#6b7280; text-transform:uppercase; letter-spacing:.02em;
  margin-top:8px; margin-bottom:6px;
}
.upz-mf-cards{ display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:10px; margin:10px 0 6px 0; }
.upz-mf-card{ background:#f9fafb; border:1px solid #e5e7eb; border-radius:6px; padding:10px 12px; }
.upz-mf-card__label{ font-size:12px; color:#6b7280; margin-bottom:4px; }
.upz-mf-card__value{ font-size:18px; font-weight:700; color:#111827; }
.upz-mf-note{ font-size:12px; color:#374151; margin:6px 0 10px 0; }
.upz-mf-comment{ white-space:pre-line; }
.upz-mf-grid{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:64px;
  gap:6px;
  overflow-x:auto;
  padding:4px 0 10px 0;
}
.upz-mf-grid__cell{
  border:1px solid #e5e7eb;
  border-radius:6px;
  padding:6px 6px;
  text-align:center;
  font-size:11px;
  background:#f9fafb;
}
.upz-mf-grid__cell.is-low{ background:#e6f7ef; border-color:#a7f3d0; }
.upz-mf-grid__cell.is-mid{ background:#fef3c7; border-color:#fcd34d; }
.upz-mf-grid__cell.is-high{ background:#fee2e2; border-color:#fecaca; }
.upz-mf-grid__time{ font-weight:600; color:#111827; }
.upz-mf-grid__val{ font-size:11px; color:#374151; margin-top:2px; }
.upz-mf-time{ border:1px solid #d1d5db; border-radius:6px; overflow:hidden; background:#fff; }
.upz-mf-time__head{
  width:100%; border:0; background:#f3f4f6; padding:10px 12px; cursor:pointer;
  display:grid; grid-template-columns: 70px 90px 100px 90px 90px; gap:10px; align-items:center;
  font-weight:600; color:#111827; text-align:left;
}
.upz-mf-head__window{ font-size:11px; font-weight:600; color:#111827; }
.upz-mf-head__hval{ font-size:11px; color:#6b7280; margin-top:2px; }
.upz-mf-time__head.is-ok{ background:#f3f4f6; }
.upz-mf-time__head.is-full{ background:#fde2e2; }
.upz-mf-time__head.is-queue{ background:#f6e9d6; }
.upz-mf-time__head.is-pending{ background:#e7effa; }
.upz-mf-time__rows{ padding:8px 12px 12px 12px; display:flex; flex-direction:column; gap:8px; }
.upz-mf-time.is-collapsed .upz-mf-time__rows{ display:none; }

.upz-mf-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:#374151;
  margin:4px 0 8px 0;
}
.upz-mf-toggle input{ transform:translateY(1px); }

.upz-mf-group{
  border:1px solid #d1d5db;
  border-radius:6px;
  overflow:hidden;
  background:#fff;
  margin-bottom:12px;
}
.upz-mf-group__head{
  width:100%;
  border:0;
  background:#eef2ff;
  padding:10px 12px;
  text-align:left;
  font-weight:700;
  color:#1f2937;
  cursor:pointer;
}
.upz-mf-group__rows{ padding:8px 8px 12px 8px; display:flex; flex-direction:column; gap:10px; }
.upz-mf-group.is-collapsed .upz-mf-group__rows{ display:none; }

.upz-mf-row{
  display:grid; grid-template-columns: 1.4fr 1.1fr 1.9fr 1fr 1fr 0.8fr; gap:12px;
  background:#fafafa; border:1px solid #e5e7eb; border-radius:6px; padding:10px 12px;
}
.upz-mf-col{ min-width:0; }
.upz-mf-customer{ font-weight:600; color:#111827; }
.upz-mf-strong{ font-weight:600; color:#111827; }
.upz-mf-muted{ font-size:12px; color:#6b7280; }
.upz-mf-tickets{
  white-space:nowrap;
  overflow-wrap:normal;
  word-break:normal;
}
.upz-mf-empty{ font-size:12px; color:#9ca3af; }
.upz-mf-badge{
  display:inline-block; padding:2px 6px; border-radius:4px; font-size:11px; font-weight:600;
  color:#fff; margin-bottom:4px;
}
.upz-mf-badge.badge-ok{ background:#10b981; }
.upz-mf-badge.badge-waiting{ background:#d97706; }
.upz-mf-badge.badge-pending{ background:#2563eb; }
.upz-mf-badge.badge-cancelled{ background:#ef4444; }
.upz-mf-badge.badge-unknown{ background:#6b7280; }
.upz-mf-checkin{ display:flex; align-items:center; gap:6px; font-size:12px; }
.upz-mf-edit{
  margin-top:6px;
  padding:6px 10px;
  font-size:12px;
  font-weight:600;
  border-radius:6px;
  border:1px solid #d1d5db;
  background:#fff;
  color:#111827;
  cursor:pointer;
}
.upz-mf-edit:hover{ background:#f3f4f6; }

/* Manifest: booking cards (v2) */
.upz-mf-bookings{
  display:grid;
  gap:12px;
  margin-top:8px;
}
.upz-mf-booking-card{
  background: var(--upz-a-panel);
  border:1px solid var(--upz-a-line);
  border-radius:12px;
  padding:12px 14px;
  box-shadow:0 1px 2px rgba(15,23,42,.05);
}
.upz-mf-booking-head{
  display:grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .6fr) minmax(0, 1fr) auto;
  gap:12px;
  align-items:center;
}
.upz-mf-booking-title{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.upz-mf-booking-activity{
  font-weight:700;
  font-size:14px;
  color:#0f172a;
}
.upz-mf-booking-sub{
  font-size:12px;
  color: var(--upz-a-muted);
  margin-top:2px;
}
.upz-mf-booking-price{
  justify-self:start;
  text-align:right;
}
.upz-mf-booking-price__label{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color: var(--upz-a-muted);
}
.upz-mf-booking-price__value{
  font-weight:600;
  font-size:15px;
  color:#111827;
}
.upz-mf-booking-customer__name{
  font-weight:700;
  font-size:13px;
}
.upz-mf-booking-customer__contact{
  font-size:12px;
  color: var(--upz-a-muted);
  margin-top:2px;
}
.upz-mf-booking-actions{
  display:flex;
  align-items:center;
  gap:3px;
  justify-self:end;
  flex-wrap:wrap;
}

@media (max-width: 1024px){
  .upz-mf-cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upz-mf-booking-head{
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    align-items:start;
  }
  .upz-mf-booking-title{ grid-column:1; grid-row:1; }
  .upz-mf-booking-price{ grid-column:1; grid-row:2; justify-self:start; text-align:left; }
  .upz-mf-booking-customer{ grid-column:1; grid-row:3; }
  .upz-mf-booking-actions{
    grid-column:2;
    grid-row:1 / span 3;
    justify-self:end;
    align-items:flex-start;
  }
  .upz-mf-booking-body{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px){
  .upz-mf-time__head{
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto auto;
    gap:8px;
  }
  .upz-mf-time__head > div:nth-child(1){ grid-column:1; grid-row:1; }
  .upz-mf-time__head > div:nth-child(2){ grid-column:2; grid-row:1; }
  .upz-mf-time__head > div:nth-child(3){ grid-column:1 / -1; grid-row:2; }
  .upz-mf-time__head > div:nth-child(4){ grid-column:1; grid-row:3; font-size:11px; }
  .upz-mf-time__head > div:nth-child(5){ grid-column:2; grid-row:3; font-size:11px; }
}

@media (max-width: 640px){
  .upz-mf-booking-card{
    padding:5px;
  }
  .upz-mf-cards{ grid-template-columns: 1fr; }
  .upz-mf-booking-head{
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
  }
  .upz-mf-booking-title{ grid-column:1; grid-row:1; }
  .upz-mf-booking-price{ grid-column:2; grid-row:1; justify-self:end; text-align:right; }
  .upz-mf-booking-customer{ grid-column:1; grid-row:2; }
  .upz-mf-booking-actions{
    grid-column:2;
    grid-row:2;
    justify-self:end;
    align-items:center;
    flex-direction:row;
    gap:3px;
    justify-content:flex-end;
  }
  .upz-mf-booking-actions .upz-mf-tag{
    display:inline-flex;
  }
  .upz-mf-booking-actions .upz-mf-tag + .upz-mf-tag{
    margin-left:6px;
  }
  .upz-mf-booking-actions .upz-mf-open{
    align-self:center;
    margin-top:0;
  }
  .upz-mf-time__head{
    grid-template-columns: 70px 1fr 80px;
    grid-template-rows: auto auto;
  }
  .upz-mf-time__head > div:nth-child(1){ grid-column:1; grid-row:1; }
  .upz-mf-time__head > div:nth-child(3){ grid-column:2; grid-row:1; }
  .upz-mf-time__head > div:nth-child(2){ grid-column:3; grid-row:1; text-align:right; }
  .upz-mf-time__head > div:nth-child(4){ grid-column:1 / 3; grid-row:2; font-size:11px; }
  .upz-mf-time__head > div:nth-child(5){ grid-column:3; grid-row:2; text-align:right; font-size:11px; }
  .upz-mf-time__head > div:nth-child(4),
  .upz-mf-time__head > div:nth-child(5){
    display:none;
  }
  .upz-mf-tag{ white-space:normal; }
  .upz-mf-booking-col{
    width:100%;
  }
  .upz-mf-booking-body{
    grid-template-columns: 1fr !important;
    width:100%;
    margin-top:0;
  }
  .upz-mf-row{
    display:block !important;
    grid-template-columns: 1fr;
    gap:4px;
  }
  .upz-mf-row__label,
  .upz-mf-row__content{
    grid-column: 1 / -1;
    width:100%;
  }
  .upz-mf-row__content{
    display:block;
  }
  .upz-mf-internal,
  .upz-mf-note{
    width:100%;
    display:block;
    box-sizing:border-box;
  }
  .upz-mf-row__label{
    margin-bottom:0;
  }
}
.upz-mf-open{
  border:0;
  background:#111827;
  color:#fff;
  border-radius:6px;
  padding:6px 10px;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
}
.upz-mf-check{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:999px;
  border:1px solid var(--upz-a-line);
  background:#f3f4f6;
  color:#6b7280;
  font-weight:800;
  cursor:pointer;
  box-sizing:border-box;
}
.upz-mf-check input{ display:none; }
.upz-mf-check.is-checked{
  background:#e8f5e9;
  color:#2e7d32;
  border:2px solid #2e7d32;
}
.upz-mf-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:2px 8px;
  border-radius:999px;
  font-size:10px;
  font-weight:600;
  border:1px solid transparent;
  white-space:nowrap;
}
.upz-mf-tag.is-status-ok{ background:#e8f5e9; color:#2e7d32; border-color:#c8e6c9; }
.upz-mf-tag.is-status-pending{ background:#e3f2fd; color:#2563eb; border-color:#bbdefb; }
.upz-mf-tag.is-status-waiting{ background:#fff7ed; color:#b45309; border-color:#fed7aa; }
.upz-mf-tag.is-status-cancel{ background:#ffebee; color:#c62828; border-color:#ffcdd2; }
.upz-mf-tag.is-status-unknown{ background:#f3f4f6; color:#6b7280; border-color:#e5e7eb; }
.upz-mf-tag.is-pay-paid{ background:#ecfdf5; color:#0f5132; border-color:#bbf7d0; }
.upz-mf-tag.is-pay-partial{ background:#fff7ed; color:#b45309; border-color:#fed7aa; }
.upz-mf-tag.is-pay-unpaid{ background:#ffebee; color:#c62828; border-color:#ffcdd2; }
.upz-mf-tag.is-pay-refund{ background:#ffe4e6; color:#9f1239; border-color:#fecdd3; }
.upz-mf-tag.is-pay-pending{ background:#e5e7eb; color:#374151; border-color:#d1d5db; }
.upz-mf-booking-body{
  margin-top:10px;
  padding-top:10px;
  border-top:1px dashed var(--upz-a-line);
  display:grid;
  gap:10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.upz-mf-booking-body.no-notes{
  grid-template-columns: 1fr;
}
.upz-mf-booking-col{
  display:grid;
  gap:8px;
}
.upz-mf-row{
  display:grid;
  grid-template-columns: 110px 1fr;
  gap:10px;
  align-items:start;
}
.upz-mf-row__label{
  color: var(--upz-a-muted);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-size:10px;
}
.upz-mf-row__content{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.upz-mf-chip{
  background:#f1f5f9;
  border:1px solid var(--upz-a-line);
  border-radius:6px;
  padding:2px 6px;
  font-size:12px;
}
.upz-mf-note{
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  padding:6px 8px;
  border-radius:6px;
  font-size:12px;
}
.upz-mf-internal{
  background:#eef2ff;
  border:1px solid #c7d2fe;
  color:#3730a3;
  padding:6px 8px;
  border-radius:6px;
  font-size:12px;
}
.upz-mf-empty{ color: var(--upz-a-muted); }

@media (max-width: 980px){
  .upz-mf-booking-price,
  .upz-mf-booking-actions{
    justify-self:end;
    text-align:right;
  }
}

.upz-mf-modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.45);
  z-index:99999;
}
.upz-mf-modal__card{
  width:min(640px, 92vw);
  background:#fff;
  border-radius:10px;
  padding:16px 18px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.upz-mf-modal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.upz-mf-modal__close{
  border:0;
  background:transparent;
  font-size:18px;
  cursor:pointer;
  color:#111827;
}
.upz-mf-modal__body{ margin-top:12px; display:grid; gap:12px; }
.upz-mf-modal__meta{ font-size:12px; color:#6b7280; display:grid; gap:4px; }
.upz-mf-field{ display:block; }
.upz-mf-field__label{ font-size:12px; color:#6b7280; margin-bottom:4px; }
.upz-mf-input,
.upz-mf-textarea{
  width:100%;
  border:1px solid #d1d5db;
  border-radius:6px;
  padding:8px 10px;
  font-size:13px;
}
.upz-mf-textarea{ resize:vertical; }
.upz-mf-modal__payment{ font-size:12px; color:#4b5563; display:grid; gap:4px; }
.upz-mf-modal__actions{ display:flex; justify-content:flex-end; gap:8px; margin-top:6px; }
.upz-mf-btn{
  border:1px solid #d1d5db;
  background:#fff;
  color:#111827;
  border-radius:6px;
  padding:6px 12px;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
}
.upz-mf-btn.is-primary{
  background:#111827;
  border-color:#111827;
  color:#fff;
}

/* =========================================================
   Historik
   ========================================================= */
.upz-hist-filters{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin:10px 0 8px 0;
}
.upz-hist-quick{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0 4px 0;
}
.upz-hist-quickbtn{
  border:1px solid #d1d5db;
  background:#fff;
  color:#111827;
  border-radius:999px;
  padding:6px 12px;
  font-size:12px;
  cursor:pointer;
}
.upz-hist-quickbtn.is-active{
  background:#111827;
  color:#fff;
  border-color:#111827;
}
.upz-hist-count{
  font-size:12px;
  color:#6b7280;
  padding:0;
}
.upz-hist-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:6px 0 8px 0;
}
.upz-hist-range{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:flex-end;
}
.upz-hist-range__picker{
  position:relative;
  display:inline-flex;
  flex-direction:column;
  gap:6px;
}
.upz-hist-range__display{
  min-width:220px;
  padding:6px 10px;
  border:1px solid #d1d5db;
  border-radius:8px;
  font-size:12px;
  background:#fff;
  cursor:pointer;
}
.upz-hist-range__panel{
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  z-index:50;
  min-width:280px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:10px;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
  display:none;
}
.upz-hist-range__picker.is-open .upz-hist-range__panel{
  display:block;
}
.upz-hist-range__cal{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.upz-hist-range__cal label{
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:11px;
  color:#374151;
}
.upz-hist-range__cal input{
  padding:6px 8px;
  border:1px solid #d1d5db;
  border-radius:6px;
  font-size:12px;
}
.upz-hist-range__inputs{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.upz-hist-range__sep{
  font-size:12px;
  color:#6b7280;
}
.upz-hist-range__presets{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
}
.upz-hist-range__actions{
  display:flex;
  justify-content:flex-end;
  margin-top:8px;
}
.upz-hist-range__clear{
  border:1px solid #d1d5db;
  background:#fff;
  color:#111827;
  border-radius:8px;
  padding:5px 10px;
  font-size:11px;
  cursor:pointer;
}
.upz-hist-range__preset{
  border:1px solid #d1d5db;
  background:#fff;
  color:#111827;
  border-radius:999px;
  padding:5px 10px;
  font-size:11px;
  cursor:pointer;
}
.upz-hist-range__preset.is-active{
  background:#111827;
  color:#fff;
  border-color:#111827;
}
.upz-admin--history .upz-av-toolbar{
  align-items:flex-end;
}
.upz-admin--history .upz-av-date{
  align-items:flex-end;
}
.upz-admin--history .upz-av-toolbar__left{
  align-items:flex-end;
}
.upz-hist-filter{
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:12px;
  color:#374151;
}
.upz-hist-filter input,
.upz-hist-filter select{
  min-width:160px;
  padding:6px 8px;
  border:1px solid #d1d5db;
  border-radius:6px;
  font-size:12px;
}
.upz-hist-table td,
.upz-hist-table th{ vertical-align:top; }
.upz-hist-strong{ font-weight:600; color:#111827; }
.upz-hist-muted{ font-size:11px; color:#6b7280; }
.upz-hist-empty{ font-size:12px; color:#6b7280; margin-top:8px; }
.upz-hist-loading{
  margin-top:8px;
  display:grid;
  gap:10px;
}
.upz-hist-loading__label{
  font-size:12px;
  color:#4b5563;
}
.upz-hist-loading__cards{
  display:grid;
  gap:10px;
}
.upz-hist-loading__card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:12px;
  display:grid;
  gap:8px;
}
.upz-hist-loading__line{
  height:10px;
  border-radius:999px;
  background:linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 45%, #f3f4f6 100%);
  background-size:260px 100%;
  animation:upzHistShimmer 1.2s linear infinite;
}
.upz-hist-loading__line.is-wide{ width:78%; }
.upz-hist-loading__line{ width:56%; }
.upz-hist-loading__line.is-short{ width:34%; }
@keyframes upzHistShimmer{
  0% { background-position: 260px 0; }
  100% { background-position: -260px 0; }
}
@media (prefers-reduced-motion: reduce){
  .upz-hist-loading__line{
    animation:none;
  }
}
.upz-hist-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:6px 0 10px 0;
}
.upz-hist-chip{
  background:#eef2ff;
  color:#1f2937;
  border:1px solid #e5e7eb;
  border-radius:999px;
  padding:4px 8px;
  font-size:11px;
}
.upz-hist-sort{
  font-size:12px;
  color:#6b7280;
  margin:6px 0 10px 0;
}
.upz-hist-pager{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:10px;
}
.upz-hist-pageinfo{
  font-size:12px;
  color:#4b5563;
}
.upz-hist-pagebtn{
  border:1px solid #d1d5db;
  background:#fff;
  color:#111827;
  border-radius:6px;
  padding:6px 10px;
  font-size:12px;
  cursor:pointer;
}
.upz-hist-pagebtn:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.upz-hist-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.upz-hist-insights{
  margin-top:22px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:18px;
}
.upz-hist-insights__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
}
.upz-hist-insights__title{
  font-size:14px;
  font-weight:700;
  color:#111827;
}
.upz-hist-insights__range{
  font-size:11px;
  color:#6b7280;
}
.upz-hist-insights__grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:12px;
}
.upz-hist-insight{
  background:#f9fafb;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:12px;
}
.upz-hist-insight__label{
  font-size:11px;
  color:#6b7280;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.upz-hist-insight__value{
  font-size:16px;
  font-weight:700;
  color:#111827;
  margin-top:4px;
}
.upz-hist-insight__meta{
  font-size:11px;
  color:#6b7280;
  margin-top:4px;
}
.upz-hist-insights__charts{
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:14px;
}
.upz-hist-insights__charts--two{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}
.upz-hist-chart{
  background:#f9fafb;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:12px;
}
.upz-hist-chart__title{
  font-size:12px;
  font-weight:700;
  color:#111827;
  margin-bottom:6px;
}
.upz-hist-chart__meta{
  font-size:11px;
  color:#6b7280;
  margin-bottom:8px;
}
.upz-hist-chart__list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.upz-hist-chart__empty{
  font-size:11px;
  color:#9ca3af;
}
.upz-hist-bar{
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-rows:auto auto;
  gap:4px 8px;
  align-items:center;
}
.upz-hist-bar__meta{
  grid-column:1 / -1;
  font-size:11px;
  color:#374151;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.upz-hist-bar__track{
  height:6px;
  background:#e5e7eb;
  border-radius:999px;
  overflow:hidden;
}
.upz-hist-bar__fill{
  height:100%;
  background:#0f2a22;
}
.upz-hist-bar__value{
  font-size:11px;
  color:#111827;
  text-align:right;
}
.upz-hist-customer-list{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.upz-hist-customer-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.upz-hist-customer-name{
  font-size:11px;
  color:#111827;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.upz-hist-customer-meta{
  font-size:11px;
  color:#6b7280;
  white-space:nowrap;
}
.upz-insight-tools{
  margin-top:10px;
  margin-bottom:8px;
  display:flex;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.upz-insight-chart{
  background:#f9fafb;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:10px;
}
.upz-insight-chart__head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
  align-items:baseline;
}
.upz-insight-chart__title{
  font-size:12px;
  font-weight:700;
  color:#111827;
  margin-bottom:6px;
}
.upz-insight-chart__sub{
  font-size:11px;
  color:#6b7280;
}
.upz-insight-chart__metric{
  font-size:11px;
  color:#334155;
  font-weight:600;
  text-align:right;
}
.upz-insight-svg{
  width:100%;
  height:230px;
  display:block;
}
.upz-insight-tooltip{
  position:fixed;
  z-index:999999;
  pointer-events:none;
  background:#111827;
  color:#fff;
  font-size:11px;
  line-height:1.25;
  padding:6px 8px;
  border-radius:6px;
  box-shadow:0 4px 14px rgba(0,0,0,0.18);
  opacity:0;
  transform:translate3d(0,0,0);
  transition:opacity .08s ease;
  max-width:240px;
  white-space:nowrap;
}
.upz-insight-tooltip.is-visible{
  opacity:1;
}
.upz-insight-svg__axis{
  stroke:#d1d5db;
  stroke-width:1;
}
.upz-insight-svg__area{
  fill:var(--upz-area, rgba(15,42,34,0.10));
}
.upz-insight-svg__line{
  fill:none;
  stroke:var(--upz-line, #0f2a22);
  stroke-width:2.2;
}
.upz-insight-svg__point{
  fill:var(--upz-point, #f39200);
  cursor:pointer;
  transition:transform .12s ease, opacity .12s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.upz-insight-svg__point:hover{
  transform:scale(1.45);
}
.upz-insight-svg__point.is-peak{
  stroke:#111827;
  stroke-width:1.2;
}
.upz-insight-svg__grid{
  stroke:#e5e7eb;
  stroke-width:1;
  stroke-dasharray:3 4;
}
.upz-insight-axis{
  margin-top:6px;
  display:flex;
  justify-content:space-between;
  font-size:11px;
  color:#6b7280;
}
.upz-insight-table-wrap{
  overflow:auto;
}
.upz-insight-table{
  width:100%;
  border-collapse:collapse;
  font-size:12px;
}
.upz-insight-table th,
.upz-insight-table td{
  border-top:1px solid #e5e7eb;
  padding:6px 4px;
  text-align:left;
  color:#1f2937;
}
.upz-insight-table th{
  font-size:11px;
  color:#6b7280;
  font-weight:600;
}
.upz-insight-donut-wrap{
  display:grid;
  grid-template-columns: 130px 1fr;
  gap:10px;
  align-items:center;
}
.upz-insight-donut{
  width:120px;
  height:120px;
  border-radius:50%;
  position:relative;
}
.upz-insight-donut__inner{
  position:absolute;
  inset:26px;
  border-radius:50%;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  font-weight:700;
  color:#111827;
}
.upz-insight-legend{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.upz-insight-legend__row{
  display:grid;
  grid-template-columns:10px 1fr auto;
  gap:8px;
  align-items:center;
  font-size:11px;
}
.upz-insight-legend__swatch{
  width:10px;
  height:10px;
  border-radius:2px;
}
.upz-insight-legend__label{
  color:#1f2937;
}
.upz-insight-legend__value{
  color:#6b7280;
  font-variant-numeric:tabular-nums;
}
.upz-insight-worklist{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.upz-insight-workitem{
  border:1px solid #e5e7eb;
  background:#ffffff;
  border-radius:8px;
  padding:8px 10px;
  font-size:12px;
  color:#1f2937;
}
@media (max-width: 900px){
  .upz-insight-svg{
    height:210px;
  }
  .upz-insight-chart__metric{
    text-align:left;
  }
  .upz-insight-donut-wrap{
    grid-template-columns:1fr;
    justify-items:start;
  }
}
@media (max-width: 1600px){
  .upz-hist-insights__grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1280px){
  .upz-hist-insights__grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 980px){
  .upz-hist-insights__grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .upz-hist-insights__charts--two{
    grid-template-columns:1fr;
  }
}
@media (max-width: 620px){
  .upz-hist-insights{
    padding:14px;
  }
  .upz-hist-insights__grid{
    grid-template-columns:1fr;
  }
}
.upz-hist-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:12px 14px;
  display:grid;
  grid-template-columns: 2fr 1.4fr auto;
  gap:14px;
  align-items:start;
}
.upz-hist-card.is-waiting{
  border-color:#f59e0b;
  background:#fffaf0;
}
.upz-hist-title{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-bottom:6px;
}
.upz-hist-title--plain{
  display:block;
}
.upz-hist-title__text{
  font-weight:700;
  color:#111827;
  font-size:14px;
}
.upz-hist-tag{
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  font-weight:600;
  background:hsl(var(--tag-h) 45% 92%);
  color:hsl(var(--tag-h) 40% 25%);
  border:1px solid hsl(var(--tag-h) 45% 80%);
  font-size:12px;
}
.upz-hist-type{
  font-size:11px;
  padding:3px 8px;
  border-radius:999px;
  background:#f3f4f6;
  color:#374151;
  border:1px solid #e5e7eb;
  text-transform:capitalize;
}
.upz-hist-meta{
  display:grid;
  gap:2px;
  font-size:12px;
  color:#374151;
  margin-bottom:6px;
}
.upz-hist-tickets{
  font-size:12px;
  color:#111827;
  display:grid;
  gap:2px;
}
.upz-hist-customer{
  font-weight:600;
  color:#111827;
  margin-bottom:4px;
}
.upz-hist-customer-meta{
  font-size:12px;
  color:#6b7280;
  margin-bottom:6px;
}
.upz-hist-badges{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:8px;
}
.upz-hist-badge{
  font-size:11px;
  padding:3px 8px;
  border-radius:999px;
  color:#fff;
  background:#6b7280;
  display:inline-flex;
  align-items:center;
}
.upz-hist-badge.badge-woo{ background:#1f2937; }
.upz-hist-badge.badge-invoice{ background:#2563eb; }
.upz-hist-badge.badge-ok{ background:#10b981; }
.upz-hist-badge.badge-warn{ background:#d97706; }
.upz-hist-badge.badge-bad{ background:#ef4444; }
.upz-hist-badge.badge-waiting{ background:#d97706; }
.upz-hist-badge.badge-pending{ background:#2563eb; }
.upz-hist-badge.badge-cancelled{ background:#ef4444; }
.upz-hist-badge.badge-refund{ background:#9BA7BA; }
.upz-hist-badge.badge-owed{ background:#4b5563; }
.upz-hist-badge.badge-park{ background:#15803d; }
.upz-hist-badge.badge-lang{ background:#1d4ed8; }
.upz-hist-badge.badge-meta{
  background:#e5e7eb;
  color:#374151;
  border:1px solid #d1d5db;
}
.upz-hist-badge.badge-discount{
  background:#e2e8f0;
  color:#334155;
  border:1px solid #cbd5e1;
  font-weight:700;
}
.upz-hist-badgesline{
  display:flex;
  flex-wrap:nowrap;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  width:100%;
  margin-top:6px;
  margin-bottom:8px;
}
.upz-hist-badgesline__right{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
  gap:5px;
}
.upz-hist-delta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:104px;
  padding:4px 8px;
  border-radius:4px;
  border:1px solid #d1d5db;
  background:#f3f4f6;
  color:#374151;
  font-size:12px;
  font-weight:800;
  line-height:1.2;
}
.upz-hist-delta.is-plus{
  background:#dcfce7;
  border-color:#86efac;
  color:#166534;
}
.upz-hist-delta.is-minus{
  background:#fee2e2;
  border-color:#fca5a5;
  color:#991b1b;
}
.upz-hist-delta.is-zero{
  background:#f3f4f6;
  border-color:#d1d5db;
  color:#374151;
}

.upz-admin .upz-cal{
  display:grid;
  gap:12px;
}
.upz-admin .upz-cal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.upz-admin .upz-cal-title{
  font-weight:700;
  color:#111827;
  font-size:16px;
}
.upz-admin .upz-cal-count{
  font-size:12px;
  color:#6b7280;
}
.upz-admin .upz-cal-legend{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:10px;
  padding:6px 8px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#f9fafb;
  font-size:12px;
  color:#4b5563;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.upz-admin .upz-cal-legend__item{
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}
.upz-admin .upz-cal-legend__item--label{
  font-weight:700;
  color:#374151;
}
.upz-admin .upz-cal-legend__activity{
  color:#111827;
}
.upz-admin .upz-cal-legend__activityicon{
  width:14px;
  height:14px;
  border-radius:2px;
  object-fit:contain;
  flex:0 0 auto;
}
.upz-admin .upz-cal-legend-icon{
  width:14px;
  height:14px;
  border-radius:3px;
  display:inline-block;
  border:1px solid #9ca3af;
  background:
    linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
}
.upz-admin .upz-cal-requestmark{
  width:3px;
  height:12px;
  border-radius:2px;
  display:inline-block;
  background:#2563eb;
}
.upz-admin .upz-cal-legend__hint{
  flex-basis:auto;
  margin-right:6px;
  font-size:11px;
  color:#6b7280;
  white-space:nowrap;
}
.upz-admin .upz-cal-daymark{
  width:12px;
  height:12px;
  border-radius:3px;
  display:inline-block;
  border:1px solid #cbd5e1;
  background:#ffffff;
}
.upz-admin .upz-cal-daymark.is-load-open{
  background:#eaf8ef;
  border-color:#9bd8ad;
}
.upz-admin .upz-cal-daymark.is-load-mid{
  background:#fff5e8;
  border-color:#f1c58a;
}
.upz-admin .upz-cal-daymark.is-load-full{
  background:#fdecec;
  border-color:#e2a3a3;
}
.upz-admin .upz-cal-daymark.is-load-none{
  background:
    repeating-linear-gradient(
      -45deg,
      #f3f4f6 0 4px,
      #ffffff 4px 8px
    );
  border-color:#d1d5db;
}
.upz-admin .upz-cal-legend--day{
  flex-wrap:wrap;
}
.upz-admin .upz-cal-legend--day .upz-cal-legend__calc{
  flex:1 1 100%;
  font-size:11px;
  color:#6b7280;
  white-space:normal;
}
.upz-admin .upz-cal-weekdays{
  display:grid;
  grid-template-columns:repeat(7, minmax(0,1fr));
  gap:8px;
  font-size:11px;
  color:#6b7280;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.upz-admin .upz-cal-weekday{
  text-align:right;
}
.upz-admin .upz-cal-grid{
  display:grid;
  grid-template-columns:repeat(7, minmax(0,1fr));
  gap:8px;
}
.upz-admin .upz-cal-day{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:10px;
  min-height:120px;
  padding:6px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.upz-admin .upz-cal-day.is-out{
  background:#f9fafb;
  opacity:.6;
}
.upz-admin .upz-cal-day.is-today{
  border-color:#111827;
  border-width:2px;
  box-shadow:0 0 0 2px rgba(17,24,39,.16);
}
.upz-admin .upz-cal-day.is-today .upz-cal-day__label{
  color:#111827;
  font-weight:700;
}
.upz-admin .upz-cal-day.is-today .upz-cal-day__label > span:last-child{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  padding:1px 8px;
  border-radius:999px;
  background:#111827;
  color:#fff;
  line-height:1.4;
}
.upz-admin .upz-cal-day__label{
  font-size:12px;
  font-weight:600;
  color:#6b7280;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:6px;
}
.upz-admin .upz-cal-day__label > span:last-child{
  font-size:14px;
  font-weight:700;
  line-height:1.2;
}
.upz-admin .upz-cal-badges{
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-height:18px;
}
.upz-admin .upz-cal-countbadge{
  font-size:10px;
  color:#374151;
  background:#e5e7eb;
  border-radius:999px;
  padding:2px 6px;
}
.upz-admin .upz-cal-loadbadge{
  font-size:10px;
  font-weight:700;
  border-radius:999px;
  padding:2px 6px;
  border:1px solid #cbd5e1;
  color:#1f2937;
  background:#f8fafc;
}
.upz-admin .upz-cal-loadbadge.is-load-open{
  background:#eaf8ef;
  border-color:#9bd8ad;
  color:#1f6a37;
}
.upz-admin .upz-cal-loadbadge.is-load-mid{
  background:#fff5e8;
  border-color:#f1c58a;
  color:#8a5200;
}
.upz-admin .upz-cal-loadbadge.is-load-full{
  background:#fdecec;
  border-color:#e2a3a3;
  color:#8d1f1f;
}
.upz-admin .upz-cal-day.is-load-open{
  background:linear-gradient(180deg, rgba(41,150,88,.08) 0%, rgba(41,150,88,.03) 100%);
}
.upz-admin .upz-cal-day.is-load-mid{
  background:linear-gradient(180deg, rgba(235,140,14,.11) 0%, rgba(235,140,14,.04) 100%);
}
.upz-admin .upz-cal-day.is-load-full{
  background:linear-gradient(180deg, rgba(201,46,46,.13) 0%, rgba(201,46,46,.05) 100%);
}
.upz-admin .upz-cal-day__items{
  display:grid;
  gap:6px;
}
.upz-admin .upz-cal-timegroup{
  display:grid;
  gap:4px;
  border:1px solid #dbe3ec;
  border-radius:7px;
  padding:4px;
  background:rgba(255,255,255,.78);
}
.upz-admin .upz-cal-timegroup__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  padding:0 2px;
}
.upz-admin .upz-cal-timegroup__time{
  font-size:11px;
  font-weight:800;
  color:#111827;
}
.upz-admin .upz-cal-timegroup__meta{
  font-size:10px;
  font-weight:600;
  color:#4b5563;
  white-space:nowrap;
}
.upz-admin .upz-cal-timegroup__items{
  display:grid;
  gap:4px;
}
.upz-admin .upz-cal-timegroup__more{
  display:none;
  gap:4px;
}
.upz-admin .upz-cal-timegroup.is-expanded .upz-cal-timegroup__more{
  display:grid;
}
.upz-admin .upz-cal-day__more{
  display:none;
  gap:4px;
}
.upz-admin .upz-cal-day.is-expanded .upz-cal-day__more{
  display:grid;
}
.upz-admin .upz-cal-more{
  border:1px dashed #d1d5db;
  background:#f9fafb;
  border-radius:6px;
  padding:4px 6px;
  font-size:11px;
  color:#374151;
  cursor:pointer;
  text-align:left;
}
.upz-admin .upz-cal-more:hover{
  background:#eef2f7;
}
.upz-admin .upz-cal-more--group{
  font-size:10px;
  padding:3px 6px;
}
.upz-admin .upz-cal-item{
  border:1px solid hsl(var(--cal-h) 45% 70%);
  background:hsl(var(--cal-h) 55% 88%);
  border-radius:6px;
  padding:4px 6px;
  font-size:11px;
  color:#111827;
  text-align:left;
  cursor:pointer;
  display:grid;
  grid-template-columns: auto auto 1fr auto;
  align-items:center;
  gap:6px;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  overflow:hidden;
  white-space:nowrap;
}
.upz-admin .upz-cal-item:hover{
  background:#eef2f7;
}
.upz-admin .upz-cal-item.is-request{
  border-left-width:4px;
  border-left-color:#2563eb;
}
.upz-admin .upz-cal-time{
  font-weight:700;
}
.upz-admin .upz-cal-time--group{
  width:0;
  min-width:0;
  overflow:hidden;
}
.upz-admin .upz-cal-paydot{
  width:8px;
  height:8px;
  border-radius:999px;
  display:inline-block;
  background:#9ca3af;
  box-shadow:0 0 0 1px rgba(17,24,39,.18);
}
.upz-admin .upz-cal-paydot.is-paid{
  background:#16a34a;
}
.upz-admin .upz-cal-paydot.is-partial{
  background:#d97706;
}
.upz-admin .upz-cal-paydot.is-unpaid{
  background:#dc2626;
}
.upz-admin .upz-cal-paydot.is-invoice{
  background:#2563eb;
}
.upz-admin .upz-cal-paydot.is-neutral{
  background:#6b7280;
}
.upz-admin .upz-cal-activity{
  font-weight:600;
}
.upz-admin .upz-cal-type{
  color:#111827;
  font-weight:600;
}
.upz-admin .upz-cal-activityicon{
  width:14px;
  height:14px;
  border-radius:2px;
  object-fit:contain;
  flex:0 0 auto;
}
.upz-admin .upz-cal-main{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.upz-admin .upz-cal-persons{
  margin-left:0;
  font-weight:600;
}
@media (max-width: 1024px){
  .upz-admin .upz-cal{
    gap:10px;
  }
  .upz-admin .upz-cal-weekdays,
  .upz-admin .upz-cal-grid{
    gap:6px;
  }
  .upz-admin .upz-cal-day{
    min-height:104px;
    padding:5px;
  }
  .upz-admin .upz-cal-item{
    padding:4px 5px;
    font-size:10px;
    gap:5px;
  }
  .upz-admin .upz-cal-timegroup__time{
    font-size:10px;
  }
  .upz-admin .upz-cal-timegroup__meta{
    font-size:9px;
  }
}
@media (max-width: 860px){
  .upz-admin .upz-cal-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .upz-admin .upz-cal-legend{
    gap:8px;
    font-size:11px;
  }
  .upz-admin .upz-cal-weekdays{
    display:none;
  }
  .upz-admin .upz-cal-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:8px;
  }
  .upz-admin .upz-cal-day{
    min-height:0;
    gap:5px;
  }
  .upz-admin .upz-cal-day.is-out{
    display:none;
  }
  .upz-admin .upz-cal-day__label{
    font-size:13px;
  }
  .upz-admin .upz-cal-day__label > span:last-child{
    font-size:15px;
  }
  .upz-admin .upz-cal-countbadge,
  .upz-admin .upz-cal-loadbadge{
    font-size:10px;
  }
  .upz-admin .upz-cal-item{
    font-size:11px;
  }
  .upz-admin .upz-cal-timegroup{
    padding:5px;
  }
  .upz-admin .upz-cal-timegroup__time{
    font-size:11px;
  }
  .upz-admin .upz-cal-timegroup__meta{
    font-size:10px;
  }
}
@media (max-width: 560px){
  .upz-admin .upz-cal-grid{
    grid-template-columns:1fr;
  }
  .upz-admin .upz-cal-day{
    padding:6px;
  }
}
.upz-hist-badge.badge-unknown{ background:#6b7280; }
.upz-hist-price__main{
  font-size:16px;
  font-weight:700;
  color:#111827;
}
.upz-hist-price__meta{
  font-size:11px;
  color:#6b7280;
  margin-top:4px;
}
.upz-hist-card__actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-start;
}
.upz-hist-actionmeta{
  display:grid;
  gap:4px;
  margin-left:auto;
  justify-items:end;
  text-align:right;
}
.upz-hist-actionmeta__item{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:4px;
  font-size:11px;
  color:#4b5563;
  line-height:1.2;
}
.upz-hist-actionmeta__item .dashicons{
  width:14px;
  height:14px;
  font-size:14px;
  line-height:14px;
}
.upz-hist-action{
  border:1px solid #111827;
  background:#111827;
  color:#fff;
  border-radius:8px;
  padding:6px 12px;
  font-size:12px;
  cursor:pointer;
}
.upz-hist-link{
  font-size:12px;
  color:#0f766e;
  text-decoration:none;
}
.upz-hist-link:hover{
  text-decoration:underline;
}

.upz-hist-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.45);
  z-index:99999;
}
.upz-resched-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.45);
  z-index:100000;
}
.upz-resched-modal__card{
  background:#fff;
  width:min(720px, calc(100% - 24px));
  max-height: min(86vh, 900px);
  overflow-y: auto;
  border-radius:12px;
  box-shadow:0 12px 30px rgba(0,0,0,.25);
  padding:16px 18px;
}
.upz-resched-modal__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.upz-resched-modal__close{
  border:0;
  background:#f3f4f6;
  border-radius:6px;
  padding:4px 8px;
  cursor:pointer;
}
.upz-resched-modal__body{
  display:grid;
  gap:12px;
}
.upz-resched-modal__meta{
  font-size:12px;
  color:#374151;
  display:grid;
  gap:4px;
}
.upz-resched-field{
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:12px;
  color:#374151;
}
.upz-resched-field__label{
  font-weight:600;
  color:#111827;
}
.upz-resched-input{
  min-width:180px;
  padding:6px 8px;
  border:1px solid #d1d5db;
  border-radius:6px;
  font-size:12px;
}
.upz-resched-calendar{
  display:grid;
  width:100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
}
.upz-resched-day{
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:8px;
  background:#f9fafb;
}
.upz-resched-day__title{
  font-size:12px;
  font-weight:700;
  color:#111827;
  margin-bottom:6px;
}
.upz-resched-times{
  display:grid;
  gap:6px;
}
.upz-resched-time{
  display:flex;
  align-items:center;
  justify-content:space-between;
  border:1px solid #d1d5db;
  background:#fff;
  border-radius:6px;
  padding:6px 8px;
  font-size:12px;
  cursor:pointer;
}
.upz-resched-time__head{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.upz-resched-time__mode{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  border-radius:999px;
  padding:0 6px;
  font-size:10px;
  font-weight:700;
  line-height:1;
  color:#fff;
}
.upz-resched-time__mode.is-event{
  background:#bfdbfe;
  color:#1e3a8a;
}
.upz-resched-time__mode.is-appointment{
  background:#a7f3d0;
  color:#065f46;
}
.upz-resched-time.is-disabled{
  opacity:.5;
  cursor:not-allowed;
}
.upz-resched-time.is-current{
  border-style:dashed;
}
.upz-resched-time.is-selected{
  border-color:#111827;
  background:#111827;
  color:#fff;
}
.upz-resched-time.is-selected .upz-resched-time__mode{
  box-shadow:0 0 0 1px rgba(255,255,255,.35) inset;
}
@media (max-width: 980px){
  .upz-resched-calendar{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px){
  .upz-resched-calendar{
    grid-template-columns: 1fr;
  }
}
.upz-resched-note{
  font-size:12px;
  color:#b45309;
}
.upz-resched-modal__actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:8px;
}
.upz-resched-btn{
  border:1px solid #d1d5db;
  background:#fff;
  color:#111827;
  border-radius:8px;
  padding:6px 12px;
  font-size:12px;
  cursor:pointer;
}
.upz-resched-btn.is-primary{
  background:#111827;
  border-color:#111827;
  color:#fff;
}
.upz-hist-inlinebtn{
  border:1px solid #d1d5db;
  background:#fff;
  color:#111827;
  border-radius:6px;
  padding:4px 8px;
  font-size:11px;
  cursor:pointer;
}
.upz-hist-badge.badge-time{
  background:#e0f2fe;
  color:#075985;
  border:1px solid #7dd3fc;
}
.upz-hist-confirm{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:100000;
}
.upz-hist-confirm__card{
  background:#fff;
  border-radius:10px;
  padding:16px;
  width:min(420px, calc(100% - 32px));
  box-shadow:0 10px 30px rgba(0,0,0,.2);
}
.upz-hist-confirm__title{
  font-weight:700;
  font-size:14px;
  margin-bottom:6px;
}
.upz-hist-confirm__text{
  font-size:12px;
  color:#374151;
  margin-bottom:12px;
}
.upz-hist-confirm__actions{
  display:flex;
  gap:8px;
  justify-content:flex-end;
}
.upz-hist-confirm__btn{
  border:1px solid #d1d5db;
  background:#fff;
  color:#111827;
  border-radius:8px;
  padding:6px 12px;
  font-size:12px;
  cursor:pointer;
}
.upz-hist-confirm__btn.is-confirm{
  background:#16a34a;
  border-color:#16a34a;
  color:#fff;
}
.upz-hist-confirm__btn.is-save{
  background:#f59e0b;
  border-color:#f59e0b;
  color:#fff;
}
.upz-hist-modal__card{
  background:#fff;
  width:min(900px, calc(100% - 24px));
  max-height: min(88vh, 980px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius:12px;
  box-shadow:0 12px 30px rgba(0,0,0,.25);
  padding:16px 18px;
}
.upz-hist-modal__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.upz-hist-modal__close{
  border:0;
  background:#f3f4f6;
  border-radius:6px;
  padding:4px 8px;
  cursor:pointer;
}
.upz-hist-modal__body{
  display:grid;
  gap:12px;
}
.upz-hist-modal__meta{
  font-size:12px;
  color:#374151;
  display:grid;
  gap:4px;
}
.upz-hist-modal__grid{
  display:grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr);
  align-items:stretch;
  gap:10px;
}
.upz-hist-modal__grid--status{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}
.upz-hist-panel{
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:10px 12px;
  background:#f9fafb;
}
.upz-hist-panel--payment{
  grid-column:1 / -1;
}
.upz-hist-panel__title{
  font-size:10px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:#6b7280;
  margin-bottom:6px;
}
.upz-hist-panel__title--split{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.upz-hist-panel__title-badge{
  margin-left:auto;
  display:inline-flex;
}
.upz-hist-paylang{
  display:flex;
  justify-content:flex-end;
  margin-bottom:6px;
}
.upz-hist-panel__list{
  display:grid;
  gap:4px;
  font-size:12px;
}
.upz-hist-panel__actions{
  display:flex;
  justify-content:flex-end;
  margin-top:8px;
}
.upz-hist-customer-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:100001;
}
.upz-hist-customer-modal__card{
  background:#fff;
  width:min(860px, calc(100% - 24px));
  max-height:min(90vh, 980px);
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  border-radius:12px;
  box-shadow:0 12px 30px rgba(0,0,0,.25);
  padding:16px 18px;
  display:grid;
  gap:12px;
}
.upz-hist-customer-modal__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.upz-hist-customer-modal__close{
  border:0;
  background:#f3f4f6;
  border-radius:6px;
  padding:4px 8px;
  cursor:pointer;
}
.upz-hist-customer-modal__body{
  display:grid;
  gap:10px;
}
.upz-hist-customer-modal__meta{
  font-size:12px;
  color:#374151;
  display:grid;
  gap:3px;
}
.upz-hist-customer-modal__notice{
  font-size:12px;
  color:#065f46;
  background:#ecfdf5;
  border:1px solid #a7f3d0;
  border-radius:8px;
  padding:8px 10px;
}
.upz-hist-customer-modal__notice.is-error{
  color:#991b1b;
  background:#fef2f2;
  border-color:#fca5a5;
}
.upz-hist-customer-modal__fields{
  display:grid;
  gap:12px;
}
.upz-hist-customer-modal__group{
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#f9fafb;
  padding:10px 12px;
  display:grid;
  gap:8px;
}
.upz-hist-customer-modal__group-title{
  font-size:12px;
  font-weight:700;
  color:#111827;
}
.upz-hist-customer-modal__grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px 10px;
}
.upz-hist-customer-modal__group--compact{
  padding:8px 10px;
  gap:6px;
}
.upz-hist-customer-modal__grid--compact{
  gap:6px 8px;
}
.upz-hist-customer-modal__grid--compact .upz-hist-field{
  gap:3px;
}
.upz-hist-customer-modal__grid--compact .upz-hist-input,
.upz-hist-customer-modal__grid--compact .upz-hist-textarea{
  padding:5px 8px;
}
.upz-hist-customer-modal__checkbox{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:34px;
}
.upz-hist-customer-modal__actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
.upz-hist-log{
  display:grid;
  gap:8px;
  font-size:12px;
}
.upz-hist-log.is-collapsed{
  display:none !important;
}
.upz-hist-log__row{
  padding:4px 12px;
  border:1px solid #e6e6e6;
  border-radius:3px;
  background:#ffffff;
}
.upz-hist-log__summary{
  color:#111827;
  font-weight:400;
}
.upz-hist-log__meta{
  color:#6b7280;
  font-size:11px;
}
.upz-hist-log__toggle{
  margin-bottom:6px;
}
.upz-hist-log__empty{
  color:#6b7280;
  font-size:12px;
}

/* =========================================================
   Admin: Create booking page
   ========================================================= */
.upz-admin-create{
  max-width: 1400px;
}
.upz-admin-create .upz-create-layout{
  display:grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap:20px;
  align-items:start;
}
.upz-admin-create .upz-create-left,
.upz-admin-create .upz-create-right{
  display:grid;
  gap:16px;
}
.upz-admin-create .upz-create-steps{
  display:grid;
  gap:14px;
}
.upz-admin-create .upz-create-step__title{
  font-weight:700;
  font-size:13px;
  color:#1d2327;
  margin-bottom:6px;
}
.upz-admin-create .upz-create-card,
.upz-admin-create .upz-create-activity{
  background:#fff;
  border:1px solid #dcdcde;
  border-radius:8px;
  padding:12px;
}
.upz-admin-create .upz-create-label{
  display:block;
  font-size:12px;
  font-weight:600;
  color:#1d2327;
  margin-bottom:6px;
}
.upz-admin-create .upz-create-select{
  width:100%;
}
.upz-admin-create .upz-create-hint{
  font-size:11px;
  color:#6c7781;
  margin-top:6px;
}
.upz-admin-create .upz-create-bookingtypes{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.upz-admin-create .upz-create-booking-select{
  margin-top:10px;
}
.upz-admin-create .upz-create-bt{
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border:1px solid #dcdcde;
  border-radius:999px;
  background:#f6f7f7;
  cursor:pointer;
  font-size:12px;
  font-weight:600;
  color:#1d2327;
}
.upz-admin-create .upz-create-bt input{
  width:14px;
  height:14px;
  margin:0;
  accent-color:#2271b1;
}
.upz-admin-create .upz-create-bt.is-active{
  border-color:#2271b1;
  background:#eef5fb;
}
.upz-admin-create .upz-create-persons{
  display:flex;
  align-items:center;
  gap:8px;
}
.upz-admin-create .upz-create-persons button{
  width:26px;
  height:26px;
  border-radius:6px;
  border:1px solid #c3c4c7;
  background:#fff;
  cursor:pointer;
}
.upz-admin-create .upz-create-persons input{
  width:70px;
  text-align:center;
}
.upz-admin-create .upz-create-tickets{
  margin-top:10px;
  display:grid;
  gap:8px;
}
.upz-admin-create .upz-create-ticket{
  display:grid;
  grid-template-columns: auto auto 1fr auto;
  gap:8px;
  align-items:center;
  padding:8px 10px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#f9fafb;
  font-size:12px;
}
.upz-admin-create .upz-create-ticket button{
  width:24px;
  height:24px;
  border-radius:6px;
  border:1px solid #c3c4c7;
  background:#fff;
  cursor:pointer;
}
.upz-admin-create .upz-create-ticket input{
  width:50px;
  text-align:center;
}
.upz-admin-create .upz-create-ticket__label{
  font-weight:600;
  color:#1d2327;
}
.upz-admin-create .upz-create-ticket__price{
  font-size:11px;
  color:#6c7781;
}
.upz-admin-create .upz-create-persons-total{
  margin-top:6px;
  font-size:12px;
  color:#6c7781;
}
.upz-admin-create .upz-create-datebar{
  display:grid;
  gap:6px;
  margin-bottom:10px;
}
.upz-admin-create .upz-create-calendar{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:8px;
  margin-bottom:10px;
  align-items:start;
}
.upz-admin-create .upz-create-day{
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:8px;
  background:#f9fafb;
  display:grid;
  gap:6px;
  align-content:start;
}
.upz-admin-create .upz-create-day__title{
  font-size:11px;
  font-weight:700;
  color:#1d2327;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.upz-admin-create .upz-create-times{
  display:grid;
  gap:6px;
  align-content:start;
}
.upz-admin-create .upz-create-time{
  border:1px solid #dcdcde;
  border-radius:6px;
  background:#fff;
  padding:6px 8px;
  font-size:12px;
  text-align:left;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:6px;
}
.upz-admin-create .upz-create-time__head{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.upz-admin-create .upz-create-time__mode{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  border-radius:999px;
  padding:0 6px;
  font-size:10px;
  font-weight:700;
  line-height:1;
}
.upz-admin-create .upz-create-time__mode.is-event{
  background:#bfdbfe;
  color:#1e3a8a;
}
.upz-admin-create .upz-create-time__mode.is-appointment{
  background:#a7f3d0;
  color:#065f46;
}
.upz-admin-create .upz-create-time.is-selected{
  border-color:#2271b1;
  background:#eef5fb;
}
.upz-admin-create .upz-create-time.is-selected .upz-create-time__mode{
  box-shadow:0 0 0 1px rgba(0,0,0,.12) inset;
}
.upz-admin-create .upz-create-time.is-disabled{
  opacity:.5;
  cursor:not-allowed;
}
.upz-admin-create .upz-create-time.is-softblocked{
  border-color:#f59e0b;
  background:#fffbeb;
}
.upz-admin-create .upz-create-panel{
  background:#fff;
  border:1px solid #dcdcde;
  border-radius:8px;
  padding:12px;
}
.upz-admin-create .upz-create-panel__head{
  font-weight:700;
  font-size:13px;
  margin-bottom:10px;
  color:#1d2327;
}
.upz-admin-create .upz-create-panel__body{
  display:grid;
  gap:10px;
}
.upz-admin-create .upz-create-empty{
  font-size:12px;
  color:#6c7781;
}
.upz-admin-create .upz-create-item{
  display:grid;
  grid-template-columns: 1fr auto auto;
  gap:10px;
  align-items:center;
  padding:8px 10px;
  border:1px solid #e5e7eb;
  border-radius:6px;
  background:#f9fafb;
}
.upz-admin-create .upz-create-item__title{
  font-weight:600;
  color:#111827;
}
.upz-admin-create .upz-create-item__meta{
  font-size:11px;
  color:#6b7280;
}
.upz-admin-create .upz-create-item__price{
  font-weight:700;
  font-size:12px;
  color:#111827;
}
.upz-admin-create .upz-create-item__remove{
  border:1px solid #d63638;
  background:#fff;
  color:#b32d2e;
  border-radius:6px;
  padding:4px 8px;
  font-size:11px;
  cursor:pointer;
}
.upz-admin-create .upz-create-addon{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 10px;
  border:1px solid #e5e7eb;
  border-radius:6px;
  background:#f9fafb;
}
.upz-admin-create .upz-create-addon__name{
  font-weight:600;
  font-size:12px;
  color:#111827;
}
.upz-admin-create .upz-create-addon__price{
  font-size:11px;
  color:#6b7280;
}
.upz-admin-create .upz-create-addon__qty{
  display:flex;
  align-items:center;
  gap:6px;
}
.upz-admin-create .upz-create-addon__qty button{
  width:24px;
  height:24px;
  border:1px solid #ccd0d4;
  background:#fff;
  border-radius:4px;
  cursor:pointer;
}
.upz-admin-create .upz-create-addon__qty input{
  width:48px;
  text-align:center;
}
.upz-admin-create .upz-create-form{
  display:grid;
  gap:10px;
}
.upz-admin-create .upz-create-field label{
  display:block;
  font-size:12px;
  font-weight:600;
  color:#1d2327;
  margin-bottom:4px;
}
.upz-admin-create .upz-create-field input,
.upz-admin-create .upz-create-field textarea,
.upz-admin-create .upz-create-field select{
  width:100%;
}
.upz-admin-create .upz-create-toggle label{
  font-weight:600;
}
.upz-admin-create .upz-create-mail-events{
  display:grid;
  gap:6px;
  padding:8px;
  border:1px solid #e5e7eb;
  border-radius:6px;
  background:#f9fafb;
}
.upz-admin-create .upz-create-mail-events label{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  font-size:12px;
  font-weight:500;
}
.upz-admin-create .upz-create-mail-events input[type="checkbox"]{
  width:auto;
}
.upz-admin-create .upz-create-summary{
  border-top:1px solid #e5e7eb;
  padding-top:8px;
  display:grid;
  gap:4px;
  font-size:12px;
}
.upz-admin-create .upz-create-summary__row{
  display:flex;
  justify-content:space-between;
  color:#4b5563;
}
.upz-admin-create .upz-create-summary__row.is-total{
  font-weight:700;
  color:#111827;
}
.upz-admin-create .upz-create-coupon{
  border-top:1px solid #e5e7eb;
  padding-top:8px;
  display:grid;
  gap:6px;
}
.upz-admin-create .upz-create-coupon__label{
  display:block;
  font-size:12px;
  font-weight:600;
  color:#1d2327;
}
.upz-admin-create .upz-create-coupon__row{
  display:flex;
  gap:8px;
}
.upz-admin-create .upz-create-coupon__row input{
  flex:1 1 auto;
}
.upz-admin-create .upz-create-coupon__row .button{
  flex:0 0 auto;
}
.upz-admin-create .upz-create-coupon__note{
  font-size:12px;
  line-height:1.4;
  color:#374151;
}
.upz-admin-create .upz-create-coupon__note.is-success{
  color:#065f46;
}
.upz-admin-create .upz-create-coupon__note.is-error{
  color:#991b1b;
}
.upz-admin-create .upz-create-note{
  margin-top:8px;
  padding:8px 10px;
  border-radius:6px;
  font-size:12px;
}
.upz-admin-create .upz-create-note.is-success{
  background:#ecfdf5;
  border:1px solid #6ee7b7;
  color:#065f46;
}
.upz-admin-create .upz-create-note.is-error{
  background:#fef2f2;
  border:1px solid #fecaca;
  color:#991b1b;
}

/* Admin-tune booking module theme */
.upz-admin-create .upz-booking{
  --upz-header: #f6f7f7;
  --upz-panel:  #ffffff;
  --upz-accent: #1d2327;
  --upz-check:  #2271b1;
  --upz-text:  #1d2327;
  --upz-dim:  #50575e;
  --upz-dimmer: #6c7781;
  --upz-line: #dcdcde;
  --upz-soft: rgba(0,0,0,.06);
  --upz-soft2: rgba(0,0,0,.12);
  --upz-radius: 8px;
  color: var(--upz-text);
  font-family: inherit;
}
.upz-admin-create .upz-booking,
.upz-admin-create .upz-booking *{
  font-family: inherit;
}
.upz-admin-create .upz-booking .upz-shell{
  border:1px solid #dcdcde;
  border-radius:12px;
  box-shadow:none;
}
.upz-admin-create .upz-booking .upz-top{
  border-bottom:1px solid #e5e7eb;
}
.upz-admin-create .upz-booking .upz-body{
  padding:20px 24px;
}
.upz-admin-create .upz-booking h2{
  color:#1d2327;
  font-size:18px;
}
.upz-admin-create .upz-booking .upz-progress__step.is-active{
  color:#2271b1;
}
.upz-admin-create .upz-booking .upz-pill{
  background:#eef2f7;
  color:#1d2327;
}
.upz-admin-create .upz-booking .upz-progress{
  font-size:13px;
  font-weight:600;
}
.upz-admin-create .upz-booking .upz-progress__step{
  font-weight:600;
  color:#6c7781;
}
.upz-admin-create .upz-booking .upz-progress__arrow{
  opacity:.5;
}
.upz-admin-create .upz-booking .upz-lead{
  color:#50575e;
  font-size:13px;
}
.upz-admin-create .upz-booking select,
.upz-admin-create .upz-booking input{
  border:1px solid #8c8f94;
  border-radius:6px;
  padding:8px 10px;
  font-size:13px;
}
.upz-admin-create .upz-booking .upz-booking-types-note{
  color:#50575e;
}
.upz-admin-create .upz-booking .upz-booking-types-note a{
  color:#2271b1;
}
.upz-admin-create .upz-booking label.upz-radio{
  display:grid;
  grid-template-columns: 18px 1fr auto;
  gap:10px;
  align-items:center;
  background:#f6f7f7;
  border:1px solid #dcdcde;
  border-radius:8px;
  padding:10px 12px;
}
.upz-admin-create .upz-booking label.upz-radio:hover{
  background:#eef0f1;
  border-color:#c3c4c7;
}
.upz-admin-create .upz-booking label.upz-radio:has(input:checked){
  border-color:#2271b1;
  background:#eef5fb;
}
.upz-admin-create .upz-booking label.upz-radio input{
  width:16px;
  height:16px;
  margin:0;
  accent-color:#2271b1;
}
.upz-admin-create .upz-booking label.upz-radio span.upz-radio__label{
  font-size:14px;
  line-height:1.2;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.upz-admin-create .upz-booking label.upz-radio .upz-radio__prefix{
  font-size:12px;
  font-weight:400;
  opacity:.8;
}
.upz-admin-create .upz-booking label.upz-radio .upz-radio__name{
  font-weight:600;
}
.upz-admin-create .upz-booking .upz-badge-discount{
  background:#2271b1;
  border-radius:6px;
  font-size:11px;
}
.upz-admin-create .upz-booking .upz-counter{
  gap:8px;
}
.upz-admin-create .upz-booking .upz-counter__btn{
  width:24px;
  height:24px;
  border-radius:6px;
  background:#fff;
  border:1px solid #c3c4c7;
}
.upz-admin-create .upz-booking .upz-counter__btn:hover{
  background:#f0f0f1;
}
.upz-admin-create .upz-booking .upz-btn{
  border-radius:8px;
  background:#2271b1;
  box-shadow:none;
}
.upz-admin-create .upz-booking .upz-btn:hover{
  background:#135e96;
}
.upz-admin-create .upz-booking .upz-btn{
  background:#2271b1;
}

@media (max-width: 1100px){
  .upz-admin-create .upz-create-layout{
    grid-template-columns: 1fr;
  }
}
.upz-hist-panel__row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:#374151;
}
.upz-hist-panel__row strong{
  color:#111827;
}
.upz-hist-panel__list--zebra{
  gap:0;
  border:1px solid #e5e7eb;
  border-radius:8px;
  overflow:hidden;
  background:#fff;
}
.upz-hist-panel__list--zebra .upz-hist-panel__row{
  padding:6px 8px;
}
.upz-hist-panel__list--zebra .upz-hist-panel__row:nth-child(odd){
  background:#ffffff;
}
.upz-hist-panel__list--zebra .upz-hist-panel__row:nth-child(even){
  background:#f8fafc;
}
.upz-hist-panel__list--zebra .upz-hist-panel__row + .upz-hist-panel__row{
  border-top:1px solid #eef2f7;
}
.upz-hist-panel__sub{
  margin-top:6px;
  font-size:11px;
  color:#6b7280;
}
.upz-hist-field--wide{
  grid-column:1 / -1;
}
.upz-hist-panel__sub.upz-hist-price{
  font-size:12px;
  font-weight:600;
  color:#ffffff;
  margin-top:10px;
  background:#111827;
  padding:8px 10px;
  border-radius:8px;
  text-align:center;
}
.upz-hist-panel__sub.upz-hist-price .upz-hist-warn{
  color:#fbcfe8;
}
.upz-hist-comment{
  font-size:12px;
  color:#374151;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:6px;
  padding:6px 8px;
  white-space:pre-line;
  margin:4px 0 8px 0;
}
.upz-hist-comments{
  display:grid;
  gap:8px;
}
.upz-hist-comments__preview{
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.upz-hist-comments__head{
  display:flex;
  justify-content:flex-end;
}
.upz-hist-comment--preview{
  flex:1;
  background:#f9fafb;
}
.upz-hist-comments__body{display:none;}
.upz-hist-comments.is-open .upz-hist-comments__body{display:block;}
.upz-hist-comments.is-open .upz-hist-comments__preview{display:none;}
.upz-hist-panel--status{
  display:grid;
  gap:8px;
  align-content:start;
}
.upz-hist-statusbox{
  display:grid;
  gap:8px;
  align-content:start;
  align-self:start;
}
.upz-hist-statusbox__checks{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:6px;
}
.upz-hist-statusbox__check{
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid #d1d5db;
  border-radius:6px;
  padding:4px 6px;
  font-size:11px;
  line-height:1.2;
  color:#374151;
  background:#fff;
}
.upz-hist-statusbox__check.is-ok{
  border-color:#bbf7d0;
  background:#ecfdf5;
  color:#166534;
}
.upz-hist-statusbox__check.is-bad{
  border-color:#fecaca;
  background:#fef2f2;
  color:#991b1b;
}
.upz-hist-statusbox__dot{
  min-width:18px;
  height:18px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  font-weight:700;
  background:#e5e7eb;
  color:#374151;
}
.upz-hist-statusbox__check.is-ok .upz-hist-statusbox__dot{
  background:#22c55e;
  color:#fff;
}
.upz-hist-statusbox__check.is-bad .upz-hist-statusbox__dot{
  background:#dc2626;
  color:#fff;
}
.upz-hist-statusbox__rows{
  display:grid;
  gap:6px;
  align-content:start;
}
.upz-hist-statusbox__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:5px 8px;
  border:1px solid #e5e7eb;
  border-radius:6px;
  font-size:11px;
  color:#4b5563;
  background:#fff;
}
.upz-hist-statusbox__badges{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:6px;
}
.upz-hist-badge.badge-mode-event{
  background:#0f766e;
}
.upz-hist-badge.badge-mode-appointment{
  background:#1d4ed8;
}
.upz-hist-statusbox__rows .upz-hist-statusbox__row:nth-child(odd){
  background:#ffffff;
}
.upz-hist-statusbox__rows .upz-hist-statusbox__row:nth-child(even){
  background:#f4f7f9;
}
.upz-hist-statusbox--details .upz-hist-statusbox__row > span{
  flex:0 0 auto;
}
.upz-hist-statusbox--details .upz-hist-statusbox__row > strong{
  margin-left:auto;
  flex:0 1 62%;
  text-align:right;
  overflow-wrap:anywhere;
}
.upz-hist-statusbox--details .upz-hist-statusbox__rows{
  gap:0;
  border:1px solid #e5e7eb;
  border-radius:8px;
  overflow:hidden;
  background:#fff;
}
.upz-hist-statusbox--details .upz-hist-statusbox__row{
  padding:4px 8px;
  border:0;
  border-radius:0;
}
.upz-hist-statusbox--details .upz-hist-statusbox__row:nth-child(odd){
  background:#fff;
}
.upz-hist-statusbox--details .upz-hist-statusbox__row:nth-child(even){
  background:#f8fafc;
}
.upz-hist-statusbox--details .upz-hist-statusbox__row + .upz-hist-statusbox__row{
  border-top:1px solid #eef2f7;
}
.upz-hist-statusbox__signal{
  display:grid;
  gap:2px;
  border:1px solid #86efac;
  border-radius:7px;
  padding:6px 8px;
  background:#f0fdf4;
}
.upz-hist-statusbox__signal strong{
  font-size:11px;
  color:#166534;
}
.upz-hist-statusbox__signal span{
  font-size:11px;
  color:#166534;
}
.upz-hist-statusbox__signal.is-warn{
  border-color:#fcd34d;
  background:#fffbeb;
}
.upz-hist-statusbox__signal.is-warn strong,
.upz-hist-statusbox__signal.is-warn span{
  color:#92400e;
}
.upz-hist-statusbox__signal.is-bad{
  border-color:#fca5a5;
  background:#fef2f2;
}
.upz-hist-statusbox__signal.is-bad strong,
.upz-hist-statusbox__signal.is-bad span{
  color:#991b1b;
}
.upz-hist-statusbox__foot{
  display:flex;
  justify-content:flex-end;
  margin-top:2px;
}
.upz-hist-statusbox__mailbtn{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  background:#fff7ed;
  border-color:#fdba74;
  color:#9a3412;
}
.upz-hist-statusbox__mailbtn:hover{
  background:#ffedd5;
  border-color:#fb923c;
  color:#7c2d12;
}
.upz-hist-textarea{
  width:100%;
  padding:6px 8px;
  border:1px solid #d1d5db;
  border-radius:6px;
  font-size:12px;
  resize:vertical;
}
.upz-hist-panel--note{
  background:#fff7ed;
  border-color:#fed7aa;
}
.upz-hist-effects{
  margin:6px 0 0 18px;
  padding:0;
  font-size:12px;
  color:#7c2d12;
}
.upz-hist-modal__section{
  display:grid;
  gap:8px;
}
.upz-hist-change{
  display:grid;
  gap:8px;
  padding:8px 10px;
  border:1px dashed #e5e7eb;
  border-radius:8px;
  background:#fff;
  margin-top:8px;
}
.upz-hist-comment-block{
  display:grid;
  gap:6px;
  padding:8px 10px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#fff;
  margin-top:8px;
}
.upz-hist-modal__split{
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.upz-hist-field{
  display:grid;
  gap:4px;
  font-size:12px;
  color:#374151;
}
.upz-hist-input{
  width:100%;
  padding:6px 8px;
  border:1px solid #d1d5db;
  border-radius:6px;
  font-size:12px;
}
.upz-hist-section-title{
  font-size:10px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:#6b7280;
}
.upz-hist-change__head{
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:space-between;
  margin-bottom:8px;
}
.upz-hist-change__status{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:#374151;
}
.upz-hist-change__status select{
  min-width: 140px;
  padding:6px 8px;
  border:1px solid #d1d5db;
  border-radius:6px;
  font-size:12px;
  background:#fff;
}
.upz-hist-change__select.is-approved{
  background:#e8f5e9;
  border-color:#86c793;
  color:#0f5132;
}
.upz-hist-change__select.is-pending{
  background:#e7f1ff;
  border-color:#9bbcff;
  color:#1f3f8c;
}
.upz-hist-change__select.is-canceled{
  background:#fdecec;
  border-color:#f5a3a3;
  color:#a32121;
}
.upz-hist-change__title{
  font-size:10px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:#6b7280;
}
.upz-hist-change__section{
  border:none;
  border-radius:0;
  padding:0;
  background:transparent;
  margin-bottom:8px;
}
.upz-hist-change__section-title{
  font-size:10px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:#6b7280;
  margin-bottom:6px;
}
.upz-hist-ticketlist{
  display:grid;
  gap:6px;
}
.upz-hist-ticket{
  display:flex;
  align-items:center;
  gap:8px;
}
.upz-hist-ticket__label{
  font-size:12px;
  color:#111827;
  flex:1 1 auto;
}
.upz-hist-ticketlist--cols{
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:10px 12px;
}
.upz-hist-ticketlist--cols-addons{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.upz-hist-ticketlist--cols-addons .upz-hist-ticket{
  justify-content:flex-start;
  gap:8px;
}
.upz-hist-ticketlist--cols-addons .upz-hist-input{
  width:72px;
  flex:0 0 auto;
}
.upz-hist-ticketlist--cols-addons .upz-hist-ticket__label{
  flex:1 1 auto;
  min-width:0;
}
.upz-hist-ticketlist--cols .upz-hist-ticket{
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
}
.upz-hist-ticketlist--cols .upz-hist-input{
  width:72px;
  flex:0 0 auto;
  margin-left:auto;
}
.upz-hist-ticketlist--cols .upz-hist-ticket__label{
  flex:1 1 auto;
  min-width:0;
}
.upz-hist-ticketlist--cols-addons .upz-hist-input{
  margin-left:auto;
}
@media (max-width: 980px){
  .upz-hist-ticketlist--cols{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .upz-hist-ticketlist--cols-addons{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px){
  .upz-hist-ticketlist--cols{
    grid-template-columns: 1fr;
  }
  .upz-hist-ticketlist--cols-addons{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.upz-hist-modal__payment{
  font-size:12px;
  color:#374151;
  display:grid;
  gap:4px;
}
.upz-hist-refund{
  display:grid;
  gap:6px;
  padding-top:8px;
  border-top:1px dashed #e5e7eb;
  margin-top:8px;
}
.upz-hist-manualpay{
  margin-top:8px;
  border:1px solid #fde68a;
  border-radius:8px;
  background:#fffbeb;
  overflow:hidden;
}
.upz-hist-manualpay[open]{
  box-shadow:0 0 0 1px rgba(180, 83, 9, .12) inset;
}
.upz-hist-manualpay__summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  list-style:none;
  cursor:pointer;
  padding:8px 10px;
  font-size:12px;
  font-weight:700;
  color:#92400e;
}
.upz-hist-manualpay__summary::-webkit-details-marker{
  display:none;
}
.upz-hist-manualpay__summary::after{
  content:"+";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:999px;
  border:1px solid #fbbf24;
  background:#fef3c7;
  color:#92400e;
  line-height:1;
  flex:0 0 auto;
}
.upz-hist-manualpay[open] .upz-hist-manualpay__summary::after{
  content:"−";
}
.upz-hist-manualpay__summary small{
  font-size:11px;
  font-weight:600;
  color:#b45309;
}
.upz-hist-manualpay__body{
  display:grid;
  gap:8px;
  padding:8px 10px 10px;
  border-top:1px dashed #fcd34d;
}
.upz-hist-manualpay__grid{
  display:grid;
  grid-template-columns: 100px minmax(130px, 1fr) minmax(160px, 1.4fr);
  gap:8px;
}
.upz-hist-manualpay__row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
}
.upz-hist-manualpay__check{
  margin-top:0;
  white-space:nowrap;
}
.upz-hist-manualpay .upz-hist-field{
  gap:4px;
}
.upz-hist-manualpay .upz-hist-field > span{
  font-size:10px;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:#6b7280;
}
.upz-hist-manualpay .upz-hist-muted{
  margin:0;
}
.upz-hist-manualpay .upz-hist-btn{
  padding:5px 10px;
  font-size:11px;
}
.upz-hist-refund__grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:8px;
}
.upz-hist-refund__check{
  margin-top:2px;
}
.upz-hist-refund__saved{
  display:grid;
  gap:4px;
  margin-top:2px;
}
.upz-hist-refund-destination{
  border:1px solid #cbd5e1;
  background:#f8fafc;
  border-radius:8px;
  padding:8px 10px;
  display:grid;
  gap:4px;
}
.upz-hist-refund-destination__label{
  font-size:10px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:#475569;
}
.upz-hist-refund-destination__value{
  font-size:12px;
  color:#0f172a;
  line-height:1.4;
  white-space:pre-line;
}
.upz-hist-refund-destination[data-tone="warn"]{
  border-color:#fbbf24;
  background:#fffbeb;
}
.upz-hist-refund-destination[data-tone="manual"]{
  border-color:#fdba74;
  background:#fff7ed;
}
.upz-hist-refund-destination[data-tone="auto"]{
  border-color:#bfdbfe;
  background:#eff6ff;
}
.upz-hist-refund-destination--dialog{
  margin:2px 0;
}
.upz-hist-field--inline{
  display:flex;
  align-items:center;
  gap:8px;
}
.upz-hist-payline a{
  color:#0f766e;
  text-decoration:none;
}
.upz-hist-payline a:hover{
  text-decoration:underline;
}
.upz-hist-paynote{
  color:#6b7280;
  font-size:11px;
}
.upz-hist-payevents{
  display:grid;
  gap:4px;
  margin-top:6px;
}
.upz-hist-paylayout{
  display:grid;
  gap:8px;
}
.upz-hist-paygroup{
  display:grid;
  gap:4px;
}
.upz-hist-paygroup__title{
  font-size:10px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:#6b7280;
  margin:2px 2px 0;
}
.upz-hist-paystats{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:8px;
  margin:6px 0 2px;
}
.upz-hist-paystats--summary{
  grid-template-columns:repeat(4, minmax(0, 1fr));
}
.upz-hist-paystats--refund{
  grid-template-columns:minmax(0, 1fr);
}
.upz-hist-paystat{
  border:1px solid #d1d5db;
  background:#f8fafc;
  border-radius:8px;
  padding:6px 8px;
  display:grid;
  gap:2px;
}
.upz-hist-paystat__label{
  font-size:10px;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:#6b7280;
}
.upz-hist-paystat__value{
  font-size:17px;
  color:#111827;
}
.upz-hist-paystat--paid{
  border-color:#86efac;
  background:#f0fdf4;
}
.upz-hist-paystat--paid .upz-hist-paystat__value{
  color:#166534;
}
.upz-hist-paystat--discount{
  border-color:#fde68a;
  background:#fffbeb;
}
.upz-hist-paystat--discount .upz-hist-paystat__value{
  color:#92400e;
}
.upz-hist-paystat--unpaid{
  border-color:#fecaca;
  background:#fff1f2;
}
.upz-hist-paystat--unpaid .upz-hist-paystat__value{
  color:#991b1b;
}
.upz-hist-paystat--ok{
  border-color:#bfdbfe;
  background:#eff6ff;
}
.upz-hist-paystat--ok .upz-hist-paystat__value{
  color:#1d4ed8;
}
.upz-hist-paystat--refunded{
  border-color:#fdba74;
  background:#fff7ed;
}
.upz-hist-paystat--refunded .upz-hist-paystat__value{
  color:#9a3412;
}
.upz-hist-payevent{
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:4px 8px;
  background:#fff;
  display:grid;
  gap:1px;
}
.upz-hist-payevent strong{ font-size:12px; color:#111827; }
.upz-hist-payevent span{ font-size:11px; color:#374151; }
.upz-hist-payevent small{ font-size:11px; color:#6b7280; }
.upz-hist-payevent__inline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.upz-hist-payevent__inline > span{
  min-width:0;
}
.upz-hist-payevent__inline .upz-hist-btn{
  margin-left:auto;
  white-space:nowrap;
}
.upz-hist-payevent__actions{
  display:flex;
  justify-content:flex-end;
  margin-top:3px;
}
.upz-hist-payevent__divider{
  border-top:1px dashed #e5e7eb;
  margin:6px 0;
}
.upz-hist-payevent__subhead{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#4b5563;
  font-weight:700;
}
.upz-hist-payevent--paid{
  border-color:#86efac;
  background:#f0fdf4;
}
.upz-hist-payevent--paid strong{ color:#166534; }
.upz-hist-payevent--refund{
  border-color:#fdba74;
  background:#fff7ed;
}
.upz-hist-payevent--pending{
  border-color:#9ca3af;
  background:#f3f4f6;
}
.upz-hist-payevent--unpaid{
  border-color:#f5a3a3;
  background:#fdecec;
}
.upz-hist-payevent--unpaid strong{
  color:#a32121;
}
.upz-hist-payevent--ok{
  border-color:#bfdbfe;
  background:#eff6ff;
}
.upz-hist-payevent--ok strong{
  color:#1d4ed8;
}
.upz-hist-payevent--pending strong{ color:#374151; }
.upz-hist-payevent--refund strong{ color:#9a3412; }
.upz-hist-payevent--summary{
  border-color:#d1d5db;
  background:#f8fafc;
}
.upz-hist-payevent--settlement{
  border-color:#bfdbfe;
  background:#eff6ff;
}
.upz-hist-modal--busy .upz-hist-modal__card{
  cursor:progress;
}
.upz-hist-refund-dialog{
  position:fixed;
  inset:0;
  z-index:100020;
  background:rgba(15,23,42,.42);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
}
.upz-hist-refund-dialog__card{
  width:min(520px, calc(100% - 12px));
  border-radius:10px;
  border:1px solid #d1d5db;
  background:#fff;
  box-shadow:0 16px 40px rgba(0,0,0,.26);
  overflow:hidden;
}
.upz-hist-refund-dialog__head{
  padding:10px 12px;
  border-bottom:1px solid #e5e7eb;
  background:#f8fafc;
}
.upz-hist-refund-dialog__body{
  padding:10px 12px;
  display:grid;
  gap:8px;
}
.upz-hist-refund-dialog__note{
  font-size:11px;
  color:#374151;
  line-height:1.45;
  border:1px solid #fcd34d;
  background:#fffbeb;
  border-radius:8px;
  padding:7px 8px;
}
.upz-hist-refund-methods{
  display:grid;
  gap:6px;
}
.upz-hist-refund-methods__label{
  font-size:11px;
  font-weight:700;
  color:#1f2937;
}
.upz-hist-refund-methods__options{
  display:grid;
  gap:6px;
}
.upz-hist-refund-method__option{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:7px;
  align-items:start;
  border:1px solid #d1d5db;
  border-radius:8px;
  background:#f8fafc;
  padding:7px 8px;
}
.upz-hist-refund-method__option[data-tone="auto"]{
  background:#eff6ff;
  border-color:#bfdbfe;
}
.upz-hist-refund-method__option[data-tone="manual"]{
  background:#fff7ed;
  border-color:#fdba74;
}
.upz-hist-refund-method__option[data-tone="giftcard"]{
  background:#fffbeb;
  border-color:#fcd34d;
}
.upz-hist-refund-method__option input[type="radio"]{
  margin-top:2px;
}
.upz-hist-refund-method__option span{
  font-size:12px;
  color:#111827;
}
.upz-hist-refund-method__option small{
  grid-column:2;
  font-size:11px;
  color:#92400e;
  line-height:1.4;
}
.upz-hist-refund-method__option:has(input[type="radio"]:checked){
  border-color:#2563eb;
  box-shadow:0 0 0 1px rgba(37, 99, 235, 0.25) inset;
}
.upz-hist-refund-dialog__actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding:10px 12px;
  border-top:1px solid #e5e7eb;
}
.upz-hist-refund-dialog__error{
  color:#b91c1c;
}
.upz-hist-paymeta{
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:wrap;
}
.upz-hist-paymeta--split{
  width:100%;
  justify-content:space-between;
  align-items:flex-start;
  gap:8px;
  padding-inline:6px;
}
.upz-hist-paymeta__left{
  flex:1 1 auto;
  text-align:left;
}
.upz-hist-paymeta__right{
  flex:0 0 auto;
  margin-left:auto;
  text-align:right;
  white-space:nowrap;
}
.upz-hist-paymeta--warn{
  color:#b45309;
  font-weight:600;
}
.upz-hist-paytable{
  width:100%;
  border-collapse:collapse;
  margin-top:4px;
  font-size:11px;
}
.upz-hist-paytable th,
.upz-hist-paytable td{
  border-bottom:1px solid #e5e7eb;
  padding:4px 6px;
  text-align:left;
  vertical-align:top;
}
.upz-hist-paytable th{ color:#111827; font-weight:700; }
.upz-hist-paytable--editable{
  margin-top:8px;
  border:1px solid #d1d5db;
  border-radius:8px;
  overflow:hidden;
}
.upz-hist-payqty{
  width:74px;
  min-height:28px;
  border:1px solid #d1d5db;
  border-radius:6px;
  padding:2px 6px;
  font-size:12px;
  font-weight:600;
  color:#111827;
  background:#fff;
}
.upz-hist-payqty:focus{
  outline:none;
  border-color:#f39200;
  box-shadow:0 0 0 2px rgba(243,146,0,0.18);
}
.upz-hist-payqtywrap{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
@media (max-width: 767px){
  .upz-hist-paytable{
    display:block;
    border-collapse:separate;
    margin-top:6px;
  }
  .upz-hist-paytable--editable{
    border:0;
    border-radius:0;
    overflow:visible;
    margin-top:6px;
  }
  .upz-hist-paytable thead{
    display:none;
  }
  .upz-hist-paytable tbody{
    display:block;
  }
  .upz-hist-paytable tr{
    display:block;
    border:1px solid #e5e7eb;
    border-radius:8px;
    background:#fff;
    padding:8px 10px;
    margin:0 0 8px 0;
  }
  .upz-hist-paytable tr:last-child{
    margin-bottom:0;
  }
  .upz-hist-paytable--editable tr{
    background:#f8fafc;
  }
  .upz-hist-paytable th,
  .upz-hist-paytable td{
    display:block;
    width:100%;
    border:0;
    padding:0;
    text-align:left;
    vertical-align:middle;
  }
  .upz-hist-paytable td{
    display:grid;
    grid-template-columns:minmax(86px, 44%) minmax(0, 1fr);
    align-items:center;
    gap:10px;
    padding:4px 0;
  }
  .upz-hist-paytable td::before{
    content:'';
    font-size:10px;
    font-weight:700;
    letter-spacing:.03em;
    text-transform:uppercase;
    color:#6b7280;
  }
  .upz-hist-paytable td:nth-child(1)::before{ content:'Rad'; }
  .upz-hist-paytable td:nth-child(2)::before{ content:'Antal'; }
  .upz-hist-paytable td:nth-child(3)::before{ content:'A-pris'; }
  .upz-hist-paytable td:nth-child(4)::before{ content:'Exkl moms'; }
  .upz-hist-paytable td:nth-child(5)::before{ content:'Moms'; }
  .upz-hist-paytable td:nth-child(6)::before{ content:'Inkl moms'; }
  .upz-hist-payqtywrap{
    justify-content:flex-start;
    flex-wrap:wrap;
    min-height:28px;
  }
  .upz-hist-payqty{
    width:72px;
  }
}
.upz-hist-qtydelta{
  display:inline-block;
  min-width:24px;
  font-size:11px;
  font-weight:700;
  line-height:1;
  color:#6b7280;
  white-space:nowrap;
}
.upz-hist-qtydelta.is-plus{
  color:#166534;
}
.upz-hist-qtydelta.is-minus{
  color:#b91c1c;
}
.upz-hist-qtydelta.is-zero{
  color:#6b7280;
}
.upz-hist-advanced{
  margin:6px 0 10px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#f9fafb;
}
.upz-hist-advanced > summary{
  cursor:pointer;
  padding:8px 10px;
  font-size:12px;
  font-weight:600;
  color:#374151;
}
.upz-hist-advanced__body{
  padding:0 8px 8px;
}
.upz-hist-booking-rows{
  display:grid;
  gap:8px;
  margin-top:6px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items:start;
}
.upz-hist-booking-row{ border:1px solid #e5e7eb; border-radius:8px; padding:6px 8px; background:#fff; display:grid; gap:2px; font-size:11px; }
.upz-hist-booking-row.is-current{ border-color:#86efac; background:#f0fdf4; }
.upz-hist-booking-cards{
  display:grid;
  gap:6px;
  margin-top:4px;
}
.upz-hist-booking-card{
  border:1px solid #d5dbe2;
  border-left:4px solid hsl(var(--upz-bh, 210) 45% 80%);
  border-radius:8px;
  background:#fff;
  padding:6px 8px 4px 10px;
  display:grid;
  grid-template-columns:1fr;
  align-items:start;
  gap:4px;
}
.upz-hist-booking-card__head{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.upz-hist-booking-card__head strong{
  color:#111827;
  font-size:17px;
  line-height:1.12;
  min-width:0;
}
.upz-hist-booking-card__id{
  font-size:11px;
  color:#4b5563;
  background:#f3f4f6;
  border-radius:999px;
  padding:1px 7px;
  white-space:nowrap;
}
.upz-hist-booking-card__typebadge{
  display:inline-flex;
  align-items:center;
  padding:1px 7px;
  border-radius:999px;
  background:hsl(var(--upz-bh, 210) 66% 34%);
  border:1px solid hsl(var(--upz-bh, 210) 72% 24%);
  color:#fff;
  font-size:11px;
  font-weight:600;
  line-height:1.2;
  white-space:nowrap;
}
.upz-hist-booking-card__compactrow{
  display:grid;
  grid-template-columns:minmax(180px, 1.4fr) minmax(140px, 1fr) auto;
  gap:4px 8px;
  align-items:end;
}
.upz-hist-booking-card__compactitem{
  display:grid;
  gap:1px;
  min-width:0;
}
.upz-hist-booking-card__compactitem > span{
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:0.02em;
  color:#6b7280;
}
.upz-hist-booking-card__compactitem strong{
  font-size:13px;
  color:#111827;
  display:flex;
  align-items:center;
  gap:4px;
  min-width:0;
  flex-wrap:wrap;
}
.upz-hist-booking-card__compactitem.is-status{
  justify-items:end;
}
.upz-hist-booking-card__capinline{
  font-size:10px;
  border-radius:999px;
  padding:0 6px;
  border:1px solid #cbd5e1;
  background:#f8fafc;
  color:#1f2937;
  white-space:nowrap;
}
.upz-hist-booking-card__capinline.is-ok{
  border-color:#86efac;
  background:#f0fdf4;
  color:#166534;
}
.upz-hist-booking-card__capinline.is-warn{
  border-color:#fcd34d;
  background:#fffbeb;
  color:#92400e;
}
.upz-hist-booking-card__status{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:4px;
}
.upz-hist-booking-card__statusline{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:4px;
}
.upz-hist-booking-card__statussel .upz-hist-change__select{
  min-width:108px;
  max-width:132px;
}
.upz-hist-booking-card__actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:4px;
}
.upz-hist-booking-card__actions .upz-hist-booking-card__id{
  margin-left:auto;
}
.upz-hist-booking-card__meta{
  grid-column:1 / -1;
  display:grid;
  gap:1px;
  font-size:10px;
  color:#374151;
}
.upz-hist-booking-card__meta span{
  color:#6b7280;
}
.upz-hist-booking-card .upz-hist-muted[data-hm-manage-msg]{
  grid-column:1 / -1;
  margin-top:1px;
  font-size:10px;
}
.upz-hist-booking-card .upz-hist-inlinebtn{
  padding:2px 6px;
  font-size:11px;
  border-radius:5px;
  line-height:1.2;
}
.upz-hist-booking-card .upz-hist-change__select{
  padding:3px 6px;
  font-size:11px;
  line-height:1.2;
  border-radius:5px;
}
.upz-badge-paid,
.upz-badge-unpaid{
  display:inline-block;
  margin-left:6px;
  padding:1px 6px;
  border-radius:10px;
  font-size:10px;
  font-weight:700;
  vertical-align:middle;
}
.upz-badge-paid{ background:#dcfce7; color:#166534; border:1px solid #86efac; }
.upz-badge-unpaid{ background:#fee2e2; color:#991b1b; border:1px solid #fca5a5; }
.upz-hist-warn{
  color:#b45309;
}
.upz-hist-modal__actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.upz-hist-modal__actions--main{
  display:grid;
}
.upz-hist-mail-inline{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-start;
  min-width:0;
  padding:8px 10px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#f9fafb;
}
.upz-hist-modal__actions:not(.upz-hist-modal__actions--main) .upz-hist-mail-inline,
.upz-hist-modal__actions:not(.upz-hist-modal__actions--main) .upz-hist-action-row{
  padding:0;
  border:0;
  background:transparent;
}
.upz-hist-action-row{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  padding:8px 10px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#f9fafb;
}
.upz-hist-mail-inline__label{
  font-size:10px;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:#4b5563;
}
.upz-hist-mail-inline .upz-hist-change__select{
  flex:0 0 320px;
  width:320px;
  min-width:320px;
  max-width:320px;
}
.upz-hist-mail-inline .upz-hist-muted{
  width:100%;
  margin-top:2px;
}
.upz-hist-btn{
  border:1px solid #d1d5db;
  background:#fff;
  color:#111827;
  border-radius:8px;
  padding:6px 12px;
  font-size:12px;
  cursor:pointer;
}
.upz-hist-btn.is-primary{
  background:#111827;
  border-color:#111827;
  color:#fff;
}
.upz-hist-btn.is-ghost{
  background:#f3f4f6;
  border-color:#e5e7eb;
}
.upz-hist-btn.is-danger{
  background:#fee2e2;
  border-color:#fecaca;
  color:#991b1b;
}
.upz-hist-btn--compact{
  padding:4px 9px;
  font-size:11px;
}

@media (max-width: 900px){
  .upz-hist-card{
    grid-template-columns: 1fr;
  }
  .upz-hist-card__actions{
    flex-direction:row;
    flex-wrap:wrap;
  }
  .upz-hist-modal__split{
    grid-template-columns: 1fr;
  }
  .upz-hist-modal__grid{
    grid-template-columns: 1fr;
  }
  .upz-hist-refund__grid,
  .upz-hist-manualpay__grid{
    grid-template-columns: 1fr;
  }
  .upz-hist-booking-card__compactrow{
    grid-template-columns:1fr;
    align-items:start;
  }
  .upz-hist-booking-card__compactitem.is-status{
    justify-items:start;
  }
  .upz-hist-manualpay__row{
    grid-template-columns:1fr;
    align-items:flex-start;
  }
  .upz-hist-manualpay__check{
    white-space:normal;
  }
  .upz-hist-paystats:not(.upz-hist-paystats--summary){
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .upz-hist-paystats--summary{
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }
  .upz-hist-customer-modal__grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 520px){
  .upz-hist-paystats:not(.upz-hist-paystats--summary){
    grid-template-columns:1fr;
  }
  .upz-hist-statusbox__checks{
    grid-template-columns:1fr;
  }
}

@media (max-width: 760px){
  .upz-hist-paystats--summary{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px){
  .upz-hist-paystats--summary{
    grid-template-columns:1fr;
  }
}

@media (max-width: 1100px){
  .upz-mf-legend{ grid-template-columns: 70px 80px 90px 80px 80px; }
  .upz-mf-time__head{ grid-template-columns: 70px 80px 90px 80px 80px; }
  .upz-mf-row{ grid-template-columns: 1.4fr 1fr 1fr; row-gap:6px; }
  .upz-mf-col--addons, .upz-mf-col--checkin, .upz-mf-col--paid{ grid-column: span 1; }
  .upz-mf-cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upz-mf-grid{ grid-auto-columns:56px; }
}

@media (max-width: 1200px){
  .upz-av-head,
  .upz-av-row{ grid-template-columns: 260px repeat(7, 160px); }
}


.upz-booking label.upz-radio{
  display:grid;
  grid-template-columns: 10px 1fr auto;
  gap:10px;
  align-items:center;

  padding:8px 10px;
  border-radius: var(--upz-radius);
  background: rgba(0,0,0,.10);
  border: 1px solid rgba(255,255,255,.10);
}

.upz-booking label.upz-radio:hover{
  border-color: rgba(255,255,255,.16);
  background: rgba(0,0,0,.14);
}

.upz-booking label.upz-radio input{
  width:10px;
  height:10px;
  margin:0;
  accent-color: var(--upz-check);
}

.upz-booking label.upz-radio span.upz-radio__label{
  font-size:14px;
  line-height:1.2;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.upz-booking label.upz-radio .upz-radio__prefix{
  font-size:12px;
  font-weight:400;
  opacity:.8;
}
.upz-booking label.upz-radio .upz-radio__name{
  font-weight:900;
}
.upz-booking label.upz-radio .upz-badge-discount{
  justify-self: end;
  align-self: center;
  font-size:13px;
  font-weight:900;
  line-height:1;
}

.upz-booking label.upz-radio:has(input:checked){
  border-color: rgba(36,173,104,.55);
  background: rgba(36,173,104,.08);
}

/* =========================================================
   COUNTER (inga runda knappar + perfekt centrering)
   ========================================================= */
.upz-booking .upz-counter{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 15px;
}

.upz-booking .upz-counter__btn{
  width:20px;
  height:20px;
  border-radius: var(--upz-radius);
  background: rgba(0,0,0,.10);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  font-weight: 900;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height: 1;
}

.upz-booking .upz-counter__btn:hover{
  background: rgba(0,0,0,.16);
  border-color: rgba(255,255,255,.20);
}

.upz-booking .upz-counter__val{
  width:64px;
  height:28px;
  border-radius: var(--upz-radius);
  background:#fff;
  color:#111;
  font-weight:900;
  border: 1px solid rgba(0,0,0,.08);
  text-align:center;
  padding: 2px 6px;
  line-height: 1.1;
  box-sizing: border-box;
}

.upz-booking .upz-counter__label,
.upz-booking .upz-counter__suffix{
  font-size:13px;
  font-weight:900;
  color: var(--upz-text);
  opacity: .90;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.upz-booking .upz-btn{
  border-radius: var(--upz-radius);
  padding:10px 12px;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  border: 0;
}

/* Calendar arrows */
.upz-booking .upz-btn--ghost{
  width:28px;
  height:28px;
  border-radius: var(--upz-radius);
  background: rgba(0,0,0,.12) !important;
  color: var(--upz-text) !important;
  padding:0 !important;
  display:flex;
  align-items:center;
  justify-content:center;
}

.upz-booking .upz-btn--ghost:hover{
  background: rgba(0,0,0,.18) !important;
}

.upz-booking .upz-btn--ghost:disabled{
  opacity:.35;
  cursor:not-allowed;
}

/* CTA */
.upz-booking .upz-cta{
  width:100%;
  background: var(--upz-accent);
  color:#fff;
  font-size:16px;
  padding:12px;
}
.upz-booking .upz-cta:disabled,
.upz-booking .upz-cta.is-disabled,
.upz-booking .upz-cta[aria-disabled="true"]{
  opacity:.55;
  cursor:not-allowed;
  filter: grayscale(.1);
}

/* =========================================================
   CALENDAR (mindre plotter, tydligt klickbart)
   ========================================================= */
.upz-booking .upz-calendar{
  margin-top: 6px;
}

.upz-booking .upz-cal-head{
  display:grid;
  grid-template-columns: 28px 1fr 28px;
  align-items:center;
  gap:10px;
  margin: 6px 0 10px;
}

.upz-booking .upz-cal-title{
  font-size:13px;
  font-style: uppercase;
  font-weight:900;
  letter-spacing:.2px;
}

/* wrapper */
.upz-booking .upz-cal-grid{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.upz-booking .upz-cal-weekdays{
  display:grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap:6px;
  opacity:.85;
}

.upz-booking .upz-cal-weekdays span{
  font-size:11px;
  font-weight:900;
  color: var(--upz-dimmer);
  text-align:center;
}

.upz-booking .upz-cal-cells{
  display:grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap:6px;
}

/* Dagar: ta bort “ramar överallt”, låt AVAILABLE få en tydlig markering */
.upz-booking .upz-cal-day{
  height: var(--upz-day);
  border-radius: var(--upz-radius);
  border: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(0,0,0,.06) !important;
  color: rgba(255,255,255,.78) !important;

  font-size: var(--upz-day-font);
  font-weight:900;

  display:flex;
  align-items:center;
  justify-content:center;

  position: relative;
  cursor: pointer;
}

/* Utanför månad */
.upz-booking .upz-cal-day.is-out-month{
  opacity:.25;
}

/* Disabled/past */
.upz-booking .upz-cal-day.is-disabled,
.upz-booking .upz-cal-day.is-past,
.upz-booking .upz-cal-day:disabled{
  opacity:.25;
  cursor:not-allowed;
}

/* AVAILABLE: diskret men tydligt “klickbar” */
.upz-booking .upz-cal-day.is-available{
  color: rgba(255,255,255,.95) !important;
  border-color: rgba(255,255,255,.10) !important;
  background: rgba(0,0,0,.08) !important;
}

/* liten accent “underline” istället för tjock ram */
.upz-booking .upz-cal-day.is-available::after{
  content:"";
  position:absolute;
  left:8px;
  right:8px;
  bottom:6px;
  height:2px;
  border-radius: 2px;
  background: rgba(243,146,0,.65);
  opacity: .9;
}

/* Selected: fyllning + stark underline */
.upz-booking .upz-cal-day.is-selected{
  background: rgba(243,146,0,.14) !important;
  border-color: rgba(243,146,0,.30) !important;
}
.upz-booking .upz-cal-day.is-selected::after{
  background: rgba(243,146,0,.95);
}

/* =========================================================
   TIMESLOTS (mer “pills”, mindre kort)
   ========================================================= */
.upz-booking .upz-times{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 12px;
}

.upz-booking .upz-times-legend{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top: 8px;
  margin-bottom: 6px;
  font-size:11px;
  opacity:.85;
}
.upz-booking .upz-legend{
  display:flex;
  align-items:center;
  gap:6px;
}
.upz-booking .upz-legend__dot{
  width:8px;
  height:8px;
  border-radius: 50%;
  display:inline-block;
}
.upz-booking .upz-legend__dot.is-available{ background:#2fb673; }
.upz-booking .upz-legend__dot.is-full{ background:#6c716d; }
.upz-booking .upz-legend__dot.is-waitlist{ background:#987F45; }
.upz-booking .upz-legend__dot.is-request{ background:#4f7fbb; }
.upz-booking .upz-legend__dot.is-insufficient{ background:#d86b6b; }

.upz-booking .upz-times-note{
  text-align:center;
  font-size:12px;
  margin-top:5px;
  padding: 0 20px;
}

.upz-booking .upz-time{
  border-radius: var(--upz-radius);
  border: 1px solid rgba(255,255,255,.10) !important;
  background: rgba(0,0,0,.10) !important;
  color: var(--upz-text) !important;
  padding: 5px 7px;
  min-width: 70px;
  font-weight: 900;
  text-align:left;
  position: relative;
}
.upz-booking .upz-time.has-waitlist{
  padding-top: 5px;
}

.upz-booking .upz-time__meta{
  display:block;
  font-size: 11px;
  font-weight: 800;
  opacity:.72;
  margin-top: 2px;
}
.upz-booking .upz-time__status{
  position:absolute;
  top:6px;
  right:6px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#2fb673;
}
.upz-booking .upz-time__status.is-full{ background:#6c716d; }
.upz-booking .upz-time__status.is-waitlist{ background:#987F45; }
.upz-booking .upz-time__status.is-request{ background:#4f7fbb; }
.upz-booking .upz-time__status.is-insufficient{ background:#d86b6b; }
.upz-booking .upz-time.is-event:not(.is-disabled):not(.is-insufficient):not(.is-full){
  border-color: rgba(255,255,255,.18) !important;
  background: rgba(0,0,0,.10) !important;
}
.upz-booking .upz-time.is-waitlist{
  border-color: #987F45 !important;
  background: rgba(0,0,0,.10) !important;
  color: var(--upz-text) !important;
  opacity: 1;
}
.upz-booking .upz-time.is-appointment:not(.is-disabled){
  border-color: rgba(90,140,210,.45) !important;
  background: rgba(0,0,0,.10) !important;
}

.upz-booking .upz-time:hover{
  border-color: rgba(255,255,255,.18) !important;
  background: rgba(0,0,0,.14) !important;
}

.upz-booking .upz-time.is-disabled,
.upz-booking .upz-time:disabled{
  opacity:.45;
  cursor:not-allowed;
  border-color: rgba(255,255,255,.08) !important;
  background: rgba(0,0,0,.06) !important;
}
.upz-booking .upz-time.is-full{
  opacity:.55;
  color: rgba(255,255,255,.85) !important;
  border-color: rgba(255,255,255,.08) !important;
  background: rgba(0,0,0,.06) !important;
}
.upz-booking .upz-time.is-full small{
  text-transform: uppercase;
  letter-spacing: .6px;
  opacity:.9;
}
.upz-booking .upz-time.is-insufficient{
  opacity:1;
  cursor:not-allowed;
  border-color: rgba(235,90,90,.55) !important;
  background: rgba(0,0,0,.10) !important;
  color:#ffdcdc !important;
}
.upz-booking .upz-time.is-insufficient small{
  color:#ffdcdc !important;
  opacity:1;
}

.upz-booking .upz-time.is-selected{
  background: rgba(243,146,0,.16) !important;
  border-color: rgba(243,146,0,.95) !important;
  box-shadow: 0 0 0 2px rgba(243,146,0,.45);
}

.upz-booking .upz-time-wrap{
  display:flex;
  flex-direction:column;
  gap:4px;
  position:relative;
}

.upz-booking .upz-waitlist-btn{
  position:absolute;
  top:4px;
  left:6px;
  padding:2px 6px;
  font-size:10px;
  font-weight:800;
  border-radius: 4px;
  border: 0;
  background: #987F45;
  color: #fff;
  opacity:0;
  pointer-events:none;
  cursor:pointer;
  line-height:1;
  z-index: 2;
}
.upz-booking .upz-time-wrap:hover .upz-waitlist-btn,
.upz-booking .upz-time-wrap:focus-within .upz-waitlist-btn{
  opacity:.95;
  pointer-events:auto;
}
.upz-booking .upz-waitlist-btn:hover{
  opacity:1;
  background: #a88f54;
}

.upz-booking .upz-waitlist{
  margin-top: 10px;
}
.upz-booking .upz-waitlist__box{
  padding:8px 10px;
  border-radius: var(--upz-radius);
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.12);
}
.upz-booking .upz-waitlist__title{
  font-size:12px;
  font-weight:900;
  margin-bottom:4px;
}
.upz-booking .upz-waitlist__meta{
  font-size:11px;
  opacity:.8;
  margin-bottom:6px;
}
.upz-booking .upz-waitlist__note{
  font-size:11px;
  opacity:.85;
  margin-bottom:6px;
}
.upz-booking .upz-waitlist__row{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap:6px;
  margin-bottom:6px;
}
.upz-booking .upz-waitlist__row input{
  padding:6px 8px;
  font-size:12px;
}
.upz-booking .upz-waitlist__submit{
  padding:6px 10px;
  font-size:12px;
  font-weight:800;
  border-radius: var(--upz-radius);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color:#fff;
  cursor:pointer;
}
.upz-booking .upz-waitlist__submit:disabled{
  opacity:.6;
  cursor:not-allowed;
}
.upz-booking .upz-waitlist__msg{
  margin-top:6px;
  font-size:11px;
  font-weight:700;
  opacity:.9;
}

/* =========================================================
   INFO BOX + EXTRA SELECT + PERSONS NOTE
   ========================================================= */
.upz-booking .upz-info-box{
  margin-top: 0;
  margin-bottom: 20px;
  padding: 6px 8px;
  border-radius: var(--upz-radius);
  background: rgba(120,170,255,.16);
  border: 1px solid rgba(120,170,255,.28);
}
.upz-booking .upz-info-box__title{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-weight: 900;
  opacity: .9;
  margin-bottom: 6px;
}
.upz-booking .upz-info-box__text{
  font-size:13px;
  font-weight:400;
  line-height:1.4;
  opacity:.95;
}

.upz-booking .upz-extra-select{
  margin-top: 14px;
}
.upz-booking .upz-extra-select__label{
  display:block;
  font-size:12px;
  font-weight:800;
  margin-bottom:6px;
}
.upz-booking .upz-extra-select__select{
  height: 32px;
  padding: 5px 10px;
  font-size: 12px;
}

.upz-booking .upz-persons-note{
  margin-top: 8px;
  font-size:11px;
  font-weight:800;
  color:#fff;
  opacity:.95;
}
.upz-booking .upz-inline-note{
  margin-top: 2px;
  margin-bottom: 6px;
  font-size:12px;
  font-weight:400;
  color:#fff;
  opacity:.9;
}
.upz-booking .upz-rules-note{
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: var(--upz-radius);
  font-size:12px;
  font-weight:800;
  color:#fff;
  background: rgba(220, 64, 64, .18);
  border: 1px solid rgba(220, 64, 64, .35);
}
.upz-booking .upz-persons-static{
  margin-top: 6px;
}

.upz-booking .upz-persons-static__value{
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 4px;
}
.upz-booking .upz-persons-note.is-static{
  display:block;
}
.upz-booking .upz-persons-box{
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: var(--upz-radius);
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.12);
}
.upz-booking .upz-persons-box__value{
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 2px;
}
.upz-booking .upz-persons-box__price{
  font-size: 11px;
  opacity: .7;
  font-weight: 800;
}

/* =========================================================
   TICKETS (kompakt, mindre “kort-ramar”)
   ========================================================= */
.upz-booking .upz-tickets{
  display:flex;
  flex-direction:column;
  gap:5px;
  margin-top: 10px;
}

.upz-booking .upz-ticket{
  display:grid;
  grid-template-columns: 26px 42px 26px 1fr;
  grid-template-areas:
    "dec qty inc label"
    "dec qty inc price";
  column-gap: 5px;
  row-gap: 2px;
  align-items:center;
  padding: 5px 5px;
  border-radius: var(--upz-radius);
  background: rgba(0,0,0,.10);
  border: 1px solid rgba(255,255,255,.08);
}

.upz-booking .upz-ticket__btn{
  width:16px;
  height:16px;
  border-radius: var(--upz-radius);
  background: rgba(0,0,0,.10);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
  font-weight:900;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
}

.upz-booking .upz-ticket__btn:hover{
  background: rgba(0,0,0,.16);
  border-color: rgba(255,255,255,.18);
}

.upz-booking .upz-ticket__btn:disabled{
  opacity:.28;
  cursor:not-allowed;
}

.upz-booking .upz-ticket button[data-action="dec"]{ grid-area: dec; }
.upz-booking .upz-ticket button[data-action="inc"]{ grid-area: inc; }

.upz-booking .upz-qty{
  grid-area: qty;
  width:40px;
  height:20px;
  border-radius: var(--upz-radius);
  background:#fff;
  color:#111;
  font-weight:900;
  font-size: 12px;
  border: 1px solid rgba(0,0,0,.08);
  text-align:center;
  padding: 0 4px;
  line-height: 1.1;
  box-sizing: border-box;
}

/* Hide number input spinners */
.upz-booking input[type="number"]::-webkit-outer-spin-button,
.upz-booking input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}
.upz-booking input[type="number"]{
  -moz-appearance: textfield;
  appearance: textfield;
}

.upz-booking .upz-ticket .upz-label{
  grid-area: label;
  font-size:13px;
  font-weight:900;
  margin:0;
}

.upz-booking .upz-price{
  grid-area: price;
  font-size:12px;
  font-weight:500;
  opacity:.70;
}

/* =========================================================
   TOTAL + ACTIONS (ser ut som ett block)
   ========================================================= */
.upz-booking .upz-total{
  margin-top: 24px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}
.upz-booking .upz-total__grid{
  display:flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}
.upz-booking .upz-total__left{
  flex: 1;
  min-width: 0;
}
.upz-booking .upz-total__title{
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 6px;
}
.upz-booking .upz-total__line{
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 2px;
}
.upz-booking .upz-total__right{
  width: 230px;
  display:flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
}
.upz-booking .upz-total__box{
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--upz-radius);
  padding: 14px 16px;
  text-align: center;
}
.upz-booking .upz-total__box-label{
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 6px;
}
.upz-booking .upz-total__box-value{
  font-size: 37px;
  font-weight: 950;
  line-height: 1;
}
.upz-booking .upz-total__discount{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding-top: 0;
  border: 0;
}
.upz-booking .upz-total__original{
  font-size: 12px;
  font-weight: 800;
  opacity: .7;
  text-decoration: line-through;
}
.upz-booking .upz-total__discount-label{
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 860px){
  .upz-booking .upz-total__grid{
    flex-direction: column;
    gap: 12px;
  }
  .upz-booking .upz-total__right{
    min-width: 0;
  }
  .upz-booking .upz-total__discount{
    width: 100%;
    margin-left: 0;
  }
  .upz-booking .upz-total__box{
    text-align: left;
  }
  .upz-booking .upz-total__box-value{
    font-size: 34px;
  }
}

/* =========================================================
   RULES (Bra att veta)
   ========================================================= */
.upz-booking .upz-rules{ display:none; }
.upz-booking .upz-rules h3{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-weight: 900;
  margin: 0 0 6px;
  opacity: .85;
}
.upz-booking .upz-rules-list{
  margin: 0;
  padding-left: 16px;
  font-size: 11px;
  line-height: 1.35;
  opacity: .9;
}

.upz-booking .upz-actions{
  display:flex;
  gap:10px;
  margin-top: 18px;
}

.upz-booking .upz-actions .upz-btn--ghost{
  width:auto;
  height:auto;
  padding: 10px 12px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(0,0,0,.12) !important;
}

.upz-booking .upz-actions .upz-cta{
  margin-top:0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 767px){
  .upz-booking label.upz-radio{
    grid-template-columns: 18px 1fr auto;
    gap: 14px;
    align-items: start;
  }
  .upz-booking label.upz-radio input{
    width: 16px;
    height: 16px;
    margin-top: 1px;
  }
}

@media (max-width: 520px){
  .upz-booking .upz-body{ padding: 18px 16px; }
  .upz-booking .upz-time{ min-width: 110px; }
  .upz-booking .upz-actions{ flex-direction:column; }
  .upz-booking .upz-actions .upz-btn{ width:100%; }
}

/* =========================================================
   CHECKOUT (STEP 3)
   ========================================================= */
.upz-checkout .e-checkout__container{
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.upz-checkout .e-checkout__column{
  padding: 0;
}

.upz-checkout-summary{
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-family: "Noway Upzone", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  position: relative;
}
.upz-checkout-summary.is-loading > *{
  filter: blur(1px);
  opacity: .6;
  pointer-events: none;
}
.upz-checkout-summary.is-loading::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  border: 3px solid rgba(45,57,51,.25);
  border-top-color: #2D3933;
  animation: upzSpin .8s linear infinite;
  z-index: 5;
}
@keyframes upzSpin{
  to { transform: rotate(360deg); }
}
.upz-checkout-summary__list{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.upz-checkout-card{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px 200px;
  gap: 24px;
  padding: 16px 20px;
  border: 1px solid #1c2420;
  border-radius: 3px;
  background: #f1f7f4;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.upz-checkout-card__remove{
  position: absolute;
  top: 2px;
  right: 2px;
  width: 25px !important;
  height: 25px !important;
  border-radius: 999px !important;
  border: 1px solid #FFFFFF !important;
  background: #2D3933 !important;
  color: #fff !important;
  font-size: 23px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
}
.upz-checkout-card__remove:hover{
  background: #111815 !important;
  border-color: #111815 !important;
}
.upz-checkout-card__remove-icon{
  display: block;
  line-height: 1;
  transform: translateY(-1px);
}
.upz-checkout-card__left{
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.upz-checkout-card__mid{
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  font-size: 13px;
  color: #0b0f0d;
}
.upz-checkout-card__midlabel{
  font-weight: 700;
  margin-bottom: 2px;
}
.upz-checkout-card__person{
  font-weight: 500;
  white-space: nowrap;
}
.upz-checkout-card__right{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  align-self: flex-end;
}
.upz-checkout-card__title{
  font-size: 26px;
  font-weight: 800;
  color: #0b0f0d;
}
.upz-checkout-card__subtitle{
  font-size: 16px;
  color: #0b0f0d;
}
.upz-checkout-card__meta{
  font-size: 12px;
  color: #1f2937;
}
.upz-checkout-card__meta-label{
  font-weight: 700;
}
.upz-checkout-card__tickets{
  font-size: 12px;
  color: #0b0f0d;
  margin-top: 16px;
}
.upz-checkout-card__datetime{
  font-size: 16px;
  color: #0b0f0d;
  margin-top: 4px;
}
.upz-checkout-card__price{
  text-align: right;
}
.upz-checkout-card__amount{
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .4px;
}
.upz-checkout-card__tax{
  font-size: 12px;
  opacity: .75;
}
.upz-checkout-card__discount{
  display: flex;
  align-items: center;
  gap: 8px;
}
.upz-checkout-card__original{
  font-size: 12px;
  opacity: .7;
  text-decoration: line-through;
}
.upz-checkout-card__badge{
  background: #111827;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 2px;
}
.upz-orderpay-sections{
  display: grid;
  gap: 12px;
}
.upz-orderpay-intro{
  padding: 10px 12px;
  border: 1px solid #c9d5cf;
  border-left: 4px solid #2D3933;
  border-radius: 3px;
  background: #f8fbf9;
  color: #0b0f0d;
  box-shadow: none;
}
.upz-orderpay-intro__title{
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 4px;
}
.upz-orderpay-intro__text{
  font-size: 14px;
  line-height: 1.35;
}
.upz-orderpay-intro__text a{
  color: #24332d;
  font-weight: 800;
  text-decoration: underline;
}
.upz-orderpay-section{
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d8e2dd;
  border-radius: 3px;
  background: #fff;
  box-shadow: none;
}
.upz-orderpay-section__title{
  font-size: 13px;
  letter-spacing: .6px;
  font-weight: 900;
  text-transform: uppercase;
  color: #0b0f0d;
}
.upz-orderpay-section__desc{
  margin-top: -4px;
  font-size: 12px;
  line-height: 1.35;
  color: #5b6a64;
}
.upz-orderpay-section.is-due{
  border: 2px solid #F39200;
  background: #fff6e7;
  box-shadow: none;
}
.upz-orderpay-section.is-due .upz-orderpay-section__title{
  color: #9a4d00;
}
.upz-orderpay-section.is-due .upz-orderpay-section__desc{
  color: #8b5b19;
}
.upz-orderpay-section.is-original{
  border-color: #d6dee0;
  background: #f9fbfb;
}
.upz-orderpay-section.is-original .upz-orderpay-section__title{
  color: #5f6d72;
}
.upz-orderpay-section.is-original .upz-checkout-card{
  background: #f4f8f6;
  border-color: #d0d8d3;
  box-shadow: none;
}
.upz-orderpay-section.is-original .upz-checkout-addon-line{
  background: #949F99;
  border: 1px solid #949F99;
  color: #fff;
}
.upz-orderpay-section.is-due .upz-checkout-card{
  background: #24332d;
  border-color: #24332d;
  color: #fff;
}
.upz-orderpay-section.is-due .upz-checkout-card__title,
.upz-orderpay-section.is-due .upz-checkout-card__subtitle,
.upz-orderpay-section.is-due .upz-checkout-card__datetime,
.upz-orderpay-section.is-due .upz-checkout-card__mid,
.upz-orderpay-section.is-due .upz-checkout-card__midlabel,
.upz-orderpay-section.is-due .upz-checkout-card__person,
.upz-orderpay-section.is-due .upz-checkout-card__amount,
.upz-orderpay-section.is-due .upz-checkout-card__tax{
  color: #fff;
}
.upz-orderpay-section.is-due .upz-checkout-card__tax{
  opacity: .9;
}
.upz-orderpay-section .upz-checkout-summary__list{
  margin-top: 0;
}
.upz-orderpay-billing{
  margin-top: 2px;
  margin-left: auto;
  width: fit-content;
  max-width: 100%;
  padding: 18px 20px;
  border-radius: 6px;
  background: #24332d;
  color: #fff;
}
.upz-orderpay-billing__title{
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: #fff;
}
.upz-orderpay-billing__body{
  font-size: 17px;
  line-height: 1.4;
  color: #fff;
  opacity: .95;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}
.upz-orderpay-summary{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px;
  border: 1px solid #1c2420;
  border-radius: 3px;
  background: #f1f7f4;
  color: #0b0f0d;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.upz-orderpay-summary__label{
  font-size: 12px;
  letter-spacing: .6px;
  font-weight: 800;
  text-transform: uppercase;
  color: #0b0f0d;
}
.upz-orderpay-summary__hint{
  margin-top: -2px;
  font-size: 12px;
  line-height: 1.35;
  color: #52615b;
}
.upz-orderpay-summary__rows{
  display: grid;
  gap: 6px;
}
.upz-orderpay-summary__row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}
.upz-orderpay-summary__row strong{
  font-size: 18px;
  font-weight: 800;
}
.upz-orderpay-summary__row.is-paid strong{
  color: #0f766e;
}
.upz-orderpay-summary__row.is-due strong{
  color: #b42318;
}
.upz-orderpay-summary__tax{
  font-size: 12px;
  color: #1f2937;
}
/* Order-pay should visually match order-received cards without darkening the whole page */
body.woocommerce-order-pay .upz-orderpay-intro{
  border: 1px solid #1c2420;
  border-left: 1px solid #1c2420;
  border-radius: 3px;
  background: #f1f7f4;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  padding: 18px 20px 22px;
  text-align: center;
}
body.woocommerce-order-pay .upz-orderpay-intro__title{
  font-size: 42px;
  line-height: 1.08;
  font-weight: 900;
  color: #f39200;
  margin-bottom: 8px;
}
body.woocommerce-order-pay .upz-orderpay-intro__text{
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  color: #0b0f0d;
}
body.woocommerce-order-pay .upz-orderpay-intro__text a{
  color: #24332d;
}
body.woocommerce-order-pay .upz-orderpay-section.is-original{
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.woocommerce-order-pay .upz-orderpay-section.is-original .upz-checkout-card{
  background: #f1f7f4;
  border-color: #1c2420;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
body.woocommerce-order-pay .upz-orderpay-section.is-original .upz-checkout-addon-line{
  background: #F39200;
  border-color: #F39200;
  color: #fff;
}
body.woocommerce-order-pay .upz-orderpay-summary{
  border-radius: 6px;
  padding: 18px 20px;
  border: 1px solid #1c2420;
  background: #24332d;
  color: #fff;
  box-shadow: none;
}
body.woocommerce-order-pay .upz-orderpay-summary__label,
body.woocommerce-order-pay .upz-orderpay-summary__hint,
body.woocommerce-order-pay .upz-orderpay-summary__row,
body.woocommerce-order-pay .upz-orderpay-summary__tax,
body.woocommerce-order-pay .upz-orderpay-summary__applied-line{
  color: #fff;
}
body.woocommerce-order-pay .upz-orderpay-summary__label{
  color: #F39200;
}
body.woocommerce-order-pay .upz-orderpay-summary__hint{
  opacity: .9;
}
body.woocommerce-order-pay .upz-orderpay-summary__rows > .upz-orderpay-summary__row{
  padding: 0;
  border-radius: 0;
  background: transparent;
}
body.woocommerce-order-pay .upz-orderpay-summary__rows > .upz-orderpay-summary__row strong{
  color: #fff;
}
body.woocommerce-order-pay .upz-orderpay-summary__rows > .upz-orderpay-summary__row.is-paid{
  background: transparent;
  color: #c7f3d2;
}
body.woocommerce-order-pay .upz-orderpay-summary__rows > .upz-orderpay-summary__row.is-paid strong{
  color: #d1fae5;
}
body.woocommerce-order-pay .upz-orderpay-summary__rows > .upz-orderpay-summary__row.is-due{
  background: transparent;
  color: #F39200;
}
body.woocommerce-order-pay .upz-orderpay-summary__rows > .upz-orderpay-summary__row.is-due strong{
  color: #F39200;
  font-size: 34px;
  line-height: 1.02;
}
body.woocommerce-order-pay .upz-orderpay-summary__rows > .upz-orderpay-summary__row:first-child strong{
  font-size: 18px;
  line-height: 1.2;
}
body.woocommerce-order-pay .upz-orderpay-summary__rows > .upz-orderpay-summary__tax{
  text-align: right;
  margin-top: -4px;
  margin-bottom: 2px;
}
@media (max-width: 900px){
  body.woocommerce-order-pay .upz-orderpay-intro__title{
    font-size: 34px;
  }
  body.woocommerce-order-pay .upz-orderpay-intro__text{
    font-size: 18px;
  }
  body.woocommerce-order-pay .upz-orderpay-summary__rows > .upz-orderpay-summary__row.is-due strong{
    font-size: 30px;
  }
}
@media (max-width: 640px){
  body.woocommerce-order-pay .upz-orderpay-intro__title{
    font-size: 28px;
  }
  body.woocommerce-order-pay .upz-orderpay-intro__text{
    font-size: 16px;
  }
  body.woocommerce-order-pay .upz-orderpay-summary__rows > .upz-orderpay-summary__row.is-due strong{
    font-size: 26px;
  }
}
.upz-orderpay-code{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #d8e2dd;
  border-radius: 3px;
  background: #fff;
}
.upz-orderpay-code__label{
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
}
.upz-orderpay-code__row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.upz-orderpay-code__input{
  width: 100%;
  height: 40px;
  border: 1px solid #c8d2cc;
  border-radius: 3px;
  padding: 0 12px;
  font-size: 14px;
  color: #0b0f0d;
  background: #fff;
}
.upz-orderpay-code__input:focus{
  outline: none;
  border-color: #7ba48a;
  box-shadow: 0 0 0 1px rgba(123,164,138,.3);
}
.upz-orderpay-code__btn{
  height: 40px;
  border: 0;
  border-radius: 3px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: #F39200;
  cursor: pointer;
}
.upz-checkout-orderpay .upz-orderpay-code__btn,
body.woocommerce-order-pay .upz-orderpay-code__btn{
  background: #F39200 !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  font-weight: 800 !important;
  border-radius: 3px !important;
  text-transform: none !important;
}
.upz-orderpay-code__btn[disabled]{
  opacity: .6;
  cursor: default;
}
.upz-orderpay-code__note{
  font-size: 12px;
  font-weight: 600;
}
.upz-orderpay-code__note.is-error{
  color: #b42318;
}
.upz-orderpay-code__note.is-success{
  color: #0f766e;
}
.upz-orderpay-summary__applied{
  display: grid;
  gap: 4px;
  padding-top: 2px;
}
.upz-orderpay-summary__applied-row{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 12px;
  line-height: 1.3;
}
.upz-orderpay-summary__applied-line{
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  min-width: 0;
}
.upz-orderpay-summary__remove{
  border: 0 !important;
  background: transparent !important;
  color: #F39200 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  padding: 0 !important;
  line-height: 1 !important;
  white-space: nowrap;
  box-shadow: none !important;
}
.upz-orderpay-summary__remove[disabled]{
  opacity: .55;
  cursor: default;
}
.upz-orderpay-summary__locked{
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  white-space: nowrap;
}
.upz-orderpay-code__note--global{
  margin-top: 3px;
}
.upz-checkout-received-payments--orderpay{
  margin-left: 0 !important;
  width: 100% !important;
}
/* Keep payment-link layout aligned with thank-you spacing, without dark overrides */
body.woocommerce-order-pay .upz-orderpay-intro,
body.woocommerce-order-pay .upz-orderpay-section,
body.woocommerce-order-pay .upz-orderpay-summary,
body.woocommerce-order-pay .upz-orderpay-code,
body.woocommerce-order-pay .upz-orderpay-billing,
body.woocommerce-order-pay .upz-checkout-card,
body.woocommerce-order-pay .upz-checkout-addon-line{
  border-radius: 6px;
}
@media (max-width: 767px){
  .upz-orderpay-code__row{
    grid-template-columns: 1fr;
  }
}
.upz-checkout-addon-block{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.upz-checkout-addon-block__title{
  font-size: 12px;
  letter-spacing: .6px;
  font-weight: 800;
  color: #0b0f0d;
  text-transform: uppercase;
}
.upz-checkout-addon-line{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 10px 40px 10px 20px;
  border-radius: 3px;
  background: #F39200;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
}
.upz-checkout-addon-line__qty{
  opacity: .9;
  white-space: nowrap;
}
.upz-checkout-addon-line__name{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upz-checkout-addon-line__price{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
}

/* Invoice toggle + fields */
.upz-invoice-field{
  display: none;
}
.upz-invoice-toggle,
#upz_invoice_requested_field{
  display: none !important;
}
.upz-invoice-toggle label,
.upz-invoice-toggle .woocommerce-form__label,
.upz-invoice-toggle .woocommerce-form__label span{
  color: #fff !important;
}
.upz-checkout-addon-line__amount{
  white-space: nowrap;
}
.upz-checkout-addon-line__tax{
  font-size: 12px;
  font-weight: 500;
  opacity: .9;
  line-height: 1.2;
}
.upz-checkout-addon-line__remove{
  position: absolute;
  top: 2px;
  right: 2px;
  width: 25px !important;
  height: 25px !important;
  border-radius: 999px !important;
  border: 1px solid #FFFFFF !important;
  background: #2D3933 !important;
  color: #fff !important;
  font-size: 23px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
}
.upz-checkout-addon-line__remove:hover{
  background: #111815 !important;
  border-color: #111815 !important;
}

/* Order-pay: make payment intent area readable + match checkout style */
.upz-checkout-orderpay #payment{
  display: block !important;
  background: #2D3933;
  border: 1px solid #1c2420;
  border-radius: 3px;
  padding: 22px 22px;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  font-family: "Noway Upzone", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.upz-checkout-orderpay.upz-orderpay-zero-due #payment,
.upz-checkout-orderpay.upz-orderpay-zero-due #place_order{
  display: none !important;
}
.upz-checkout-orderpay #payment ul.payment_methods,
.upz-checkout-orderpay #payment .wc_payment_methods{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0 0 12px 0;
  color: #0b0f0d;
}
.upz-checkout-orderpay #payment .wc_payment_method,
.upz-checkout-orderpay #payment .wc_payment_method label,
.upz-checkout-orderpay #payment .payment_box,
.upz-checkout-orderpay #payment .payment_box p,
.upz-checkout-orderpay #payment .woocommerce-privacy-policy-text,
.upz-checkout-orderpay #payment .woocommerce-terms-and-conditions{
  color: #ffffff !important;
}
.upz-checkout-orderpay #payment .payment_box{
  background: #ffffff !important;
  border: 1px solid #86b894 !important;
  border-radius: 6px;
  padding: 12px 14px;
  color: #0b0f0d !important;
}
.upz-checkout-orderpay #payment .wc-stripe-elements-field,
.upz-checkout-orderpay #payment .wc-stripe-iban-element,
.upz-checkout-orderpay #payment .StripeElement{
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  color: #0b0f0d;
}
.upz-checkout-orderpay #payment .place-order{
  margin-top: 12px;
}
.upz-checkout-orderpay #payment .wc_payment_method label{
  color: #0b0f0d !important;
}
.upz-checkout-orderpay #payment .payment_box p{
  color: #0b0f0d !important;
}
body.woocommerce-order-pay #payment .payment_method_klarna{
  background: #ffffff !important;
  color: #0b0f0d !important;
}
body.woocommerce-order-pay #payment .payment_method_klarna label{
  background: transparent !important;
  color: #0b0f0d !important;
}
body.woocommerce-order-pay #payment .payment_method_klarna .payment_box{
  background: #ffffff !important;
  border-color: #86b894 !important;
  color: #0b0f0d !important;
}
body.woocommerce-order-pay #payment li.wc_payment_method.payment_method_klarna{
  background: #ffffff !important;
  color: #0b0f0d !important;
}
body.woocommerce-order-pay #payment li.wc_payment_method.payment_method_klarna > label{
  background: transparent !important;
  color: #0b0f0d !important;
}
body.woocommerce-order-pay #payment li.wc_payment_method.payment_method_klarna .payment_box{
  background: #ffffff !important;
  border-color: #86b894 !important;
  color: #0b0f0d !important;
}
/* Stripe UPE (Klarna accordion) force white background in payment link */
body.woocommerce-order-pay #payment .p-Accordion,
body.woocommerce-order-pay #payment .p-AccordionItem,
body.woocommerce-order-pay #payment .p-AccordionButton,
body.woocommerce-order-pay #payment .p-AccordionPanel,
body.woocommerce-order-pay #payment .p-AccordionPanelContents,
body.woocommerce-order-pay #payment .p-AccordionButtonContent,
body.woocommerce-order-pay #payment .p-PaymentAccordionButtonView{
  background: #ffffff !important;
  color: #0b0f0d !important;
}
body.woocommerce-order-pay #payment .p-AccordionButton{
  border-color: #e5e7eb !important;
}
body.woocommerce-order-pay #payment .p-AccordionItem--selected,
body.woocommerce-order-pay #payment .p-AccordionItem--selected .p-AccordionButton{
  background: #ffffff !important;
}
body.woocommerce-order-pay #payment .p-PaymentMethodMessaging,
body.woocommerce-order-pay #payment .p-PaymentMethodMessaging p,
body.woocommerce-order-pay #payment .p-PaymentMethodMessaging span,
body.woocommerce-order-pay #payment .p-PaymentMethodMessaging button{
  color: #0b0f0d !important;
}
body.woocommerce-order-pay #place_order{
  background: #F39200 !important;
  border-color: #F39200 !important;
  color: #ffffff !important;
}
body.woocommerce-order-pay #place_order:hover{
  background: #e68400 !important;
  border-color: #e68400 !important;
  color: #ffffff !important;
}
.upz-checkout-summary__actions{
  margin-top: 6px;
}
.upz-checkout-addmore{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 3px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .2px;
}
.upz-checkout-addmore:hover{
  background: #0b1222;
  color: #fff;
}
.upz-checkout-summary__empty{
  font-size: 13px;
  opacity: .7;
}

@media (max-width: 920px){
  .upz-checkout-card{
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }
  .upz-checkout-card__right{
    align-items: flex-start;
  }
  .upz-checkout-card__amount{
    width: 100%;
    text-align: left;
    font-size: 24px;
  }
}

@media (max-width: 1024px){
  .upz-checkout-addons{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }
  .upz-addon__media{
    aspect-ratio: 1 / 1 !important;
    max-height: 160px;
  }
  .upz-addon__title{
    font-size: 15px;
  }
  .upz-addon__actions{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    column-gap: 0 !important;
  }
  .upz-checkout-addons .upz-addon__info{
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 640px){
  .upz-addon{
    padding: 10px;
    gap: 8px;
  }
  .upz-addon__title{
    font-size: 15px;
  }
  .upz-addon__price{
    font-size: 12px;
  }
  .upz-addon__actions{
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .upz-addon__qty{
    justify-content: flex-start;
  }
  .upz-checkout-addons .upz-addon__qtybtn{
    min-width: 36px;
    height: 34px !important;
    font-size: 15px;
  }
  .upz-checkout-addons .upz-addon__qtyinput{
    width: 36px;
    height: 34px !important;
    font-size: 13px;
    line-height: 34px !important;
  }
  .upz-checkout-addons .upz-addon__info{
    height: 34px !important;
    font-size: 12px;
    justify-self: start;
  }
}

.upz-checkout-addons{
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  font-family: "Noway Upzone", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.upz-addons-note{
  font-family: "Noway Upzone", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0b0f0d !important;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px 0;
  max-width: 650px;
}
.upz-addons-note strong{ font-weight: 800; }
.upz-gloves-confirm{
  font-family: "Noway Upzone", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0b0f0d;
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 12px 0;
  max-width: 650px;
  padding: 12px 14px;
  background: #f1f7f4;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
}
.upz-gloves-confirm.is-missing{
  border-color: #d97706;
  background: #fff7ed;
}
.upz-gloves-confirm__label{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
.upz-gloves-confirm__checkbox{
  margin-top: 2px;
}
.upz-addon{
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 3px;
  padding: 16px;
  display: grid;
  gap: 12px;
  background: #2D3933;
  color: #f8fafc;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.upz-addon.is-added{
  border-color: #F39200;
  box-shadow: 0 0 0 1px rgba(243,146,0,.35);
}
.upz-addon__media{
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(0,0,0,.2);
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(255,255,255,.7);
  cursor: pointer;
}
.upz-addon__img{ width:100%; height:100%; object-fit:cover; display:block; }
.upz-addon__body{ display:grid; gap:6px; }
.upz-addon__title{
  font-weight: 800;
  font-size: 18px;
  color:#f8fafc;
  cursor: pointer;
}
.upz-addon__price{
  font-size: 13px;
  color: rgba(255,255,255,.85);
}
.upz-addon__actions{
  margin-top: 10px;
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  column-gap: 10px;
}

.upz-addon.is-loading{
  opacity: .75;
  pointer-events: none;
}

.upz-addon__qty{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.upz-checkout-addons .upz-addon__qtybtn{
  min-width: 44px;
  height: 40px !important;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.2) !important;
  background: #141C18 !important;
  color: #f8fafc !important;
  cursor: pointer;
  font-size: 16px;
  font-family: "Noway Upzone", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  padding: 0 !important;
  box-shadow: none !important;
  text-transform: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1 !important;
  box-sizing: border-box;
}
.upz-checkout-addons .upz-addon__qtyinput{
  width: 48px;
  height: 40px !important;
  text-align: center;
  background: #fff !important;
  border: 1px solid #444946 !important;
  color: #0b0f0d !important;
  -webkit-text-fill-color: #0b0f0d !important;
  caret-color: #0b0f0d;
  border-radius: 3px;
  font-weight: 700;
  font-size: 14px;
  line-height: 40px !important;
  padding: 0 !important;
  appearance: textfield;
  font-family: "Noway Upzone", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  box-shadow: none !important;
  box-sizing: border-box;
}
.upz-checkout-addons .upz-addon__info{
  border: 0;
  background: #F39200 !important;
  color: #fff !important;
  padding: 0 15px !important;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  border-radius: 3px;
  font-family: "Noway Upzone", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  box-shadow: none !important;
  text-transform: none !important;
  border: 0 !important;
  height: 40px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  box-sizing: border-box;
}

/* Override Elementor button styles inside addon cards */
.upz-addon button{
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
}

.upz-addon-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.upz-addon-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}
.upz-addon-modal__dialog{
  position: relative;
  max-width: 560px;
  margin: 8vh auto;
  background: #2D3933;
  border: 1px solid #1c2420;
  border-radius: 3px;
  padding: 16px;
  color: #f8fafc;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.upz-addon-modal__close{
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0 !important;
  background: #F39200 !important;
  color: #fff !important;
  font-size: 26px;
  cursor: pointer;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  text-align: center;
  border-radius: 3px;
  padding: 10px !important;
  font-weight: 800;
  box-shadow: none !important;
  box-sizing: content-box !important;
}
.upz-addon-modal__media{
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(0,0,0,.25);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}
.upz-addon-modal__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upz-addon-modal__title{
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.upz-addon-modal__price{
  color: #F39200;
  font-weight: 700;
  margin-bottom: 8px;
}
.upz-addon-modal__desc{
  font-size: 13px;
  color: rgba(255,255,255,.85);
}

.upz-bt-modal{
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upz-bt-modal[hidden]{
  display: none;
}
.upz-bt-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}
.upz-bt-modal__dialog{
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 32px));
  background: #303934;
  color: #fff;
  border-radius: 6px;
  padding: 22px 22px 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  max-height: min(80vh, 720px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.upz-bt-modal__close{
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #F39200;
  cursor: pointer;
  z-index: 2;
}
.upz-bt-modal__close:hover,
.upz-bt-modal__close:focus,
.upz-bt-modal__close:active{
  background: transparent !important;
  color: #F39200 !important;
  box-shadow: none !important;
  outline: none !important;
}
.upz-bt-modal__title{
  margin: 0 0 8px 0;
  font-size: 35px;
  font-weight: 900;
  color: #F39200;
}
.upz-bt-modal__intro{
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 0;
  padding-bottom: 30px;
  color:#fff;
}
.upz-bt-modal__list{
  display: grid;
  gap: 8px;
}
.upz-bt-modal__item{
  background: #272F2B;
  border: 1px solid #3D4440;
  border-radius: 3px;
  padding: 10px;
}
.upz-bt-modal__item-title{
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 4px;
  color:#fff;
}
.upz-bt-modal__item-text{
  font-size: 13px;
  line-height: 1.35;
  color:#fff;
}
.upz-bt-modal__item-text *{
  margin: 0;
}
.upz-bt-modal__item-text > * + *{
  margin-top: 6px;
}
.upz-bt-modal__empty{
  font-size: 13px;
}

@media (max-width: 640px){
  .upz-bt-modal__dialog{
    width: calc(100% - 24px);
    padding: 16px;
    max-height: 86vh;
  }
  .upz-bt-modal__title{
    font-size: 26px;
  }
  .upz-bt-modal__item-title{
    font-size: 14px;
  }
  .upz-addon-modal__dialog{
    width: calc(100% - 24px);
    max-width: none;
    margin: 6vh auto;
    padding: 12px;
  }
  .upz-addon-modal__media{
    aspect-ratio: 4/3;
  }
  .upz-addon-modal__title{
    font-size: 16px;
  }
  .upz-addon-modal__price{
    font-size: 14px;
  }
  .upz-addon-modal__desc{
    font-size: 12px;
  }
  .upz-addon-modal__close{
    top: 6px;
    right: 6px;
    padding: 8px !important;
    font-size: 20px;
  }
}

body.upz-modal-open{ overflow: hidden; }

/* Hide Woo order review table in our custom checkout */
/* Hide Woo order review table in our checkout flow */
.upz-checkout #order_review .woocommerce-checkout-review-order-table,
.upz-checkout #order_review .shop_table.woocommerce-checkout-review-order-table{
  display: none !important;
}
.upz-checkout .e-checkout__order_review #order_review_heading{
  display: none !important;
}
.upz-checkout-orderpay #order_review .woocommerce-checkout-review-order-table,
.upz-checkout-orderpay #order_review .shop_table.woocommerce-checkout-review-order-table{
  display: none !important;
}
.upz-checkout-orderpay .e-checkout__order_review #order_review_heading{
  display: none !important;
}
.upz-checkout-orderpay #payment{
  display: block !important;
}
/* Order-pay: force-hide Woo review table even if custom class isn't set yet */
body.woocommerce-order-pay #order_review_heading,
body.woocommerce-order-pay #order_review .woocommerce-checkout-review-order-table,
body.woocommerce-order-pay #order_review .shop_table.woocommerce-checkout-review-order-table{
  display: none !important;
}
body.woocommerce-order-pay #order_review table.shop_table,
body.woocommerce-order-pay .e-checkout__order_review table.shop_table,
body.woocommerce-order-pay .woocommerce-checkout-review-order-table{
  display: none !important;
}
body.woocommerce-order-pay #payment{
  display: block !important;
  margin-top: 0 !important;
}
body.woocommerce-order-pay .elementor-397 .elementor-element.elementor-element-28561ff{
  --margin-top: 2vw;
}
body.woocommerce-order-pay .upz-gloves-confirm{
  display: none !important;
}
body.woocommerce-order-pay .upz-checkout-summary{
  margin-bottom: 12px !important;
}

/* Hide Elementor coupon box when coupons are not allowed */
.upz-coupon-disabled .e-coupon-box{
  display: none !important;
}
.upz-checkout-summary__addons{
  width: 100%;
  margin-top: 5px;
  display: grid;
  gap: 5px;
}
.upz-checkout-addon-line{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  background: #F39200;
  color: #fff;
  border-radius: 3px;
  padding: 10px 40px 10px 20px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
}
.upz-checkout-addon-line__qty{
  opacity: .9;
  white-space: nowrap;
}
.upz-checkout-addon-line__name{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upz-checkout-addon-line__price{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
}
.upz-checkout-addon-line__amount{
  white-space: nowrap;
}
.upz-checkout-addon-line__tax{
  font-size: 12px;
  font-weight: 500;
  opacity: .9;
  line-height: 1.2;
}

/* Hold expiry (checkout) */
.upz-hold-expired [data-upz-checkout-form],
.upz-hold-expired [data-upz-checkout-addons]{
  pointer-events: none;
  opacity: .55;
}

/* Order-pay zero due: force-hide all payment options, including Stripe express buttons */
html.upz-checkout-orderpay.upz-orderpay-zero-due #payment,
body.woocommerce-order-pay.upz-orderpay-zero-due #payment,
html.upz-checkout-orderpay.upz-orderpay-zero-due #place_order,
body.woocommerce-order-pay.upz-orderpay-zero-due #place_order,
html.upz-checkout-orderpay.upz-orderpay-zero-due #wc-stripe-express-checkout-element,
body.woocommerce-order-pay.upz-orderpay-zero-due #wc-stripe-express-checkout-element,
html.upz-checkout-orderpay.upz-orderpay-zero-due #wc-stripe-express-checkout-button-separator,
body.woocommerce-order-pay.upz-orderpay-zero-due #wc-stripe-express-checkout-button-separator,
html.upz-checkout-orderpay.upz-orderpay-zero-due .wc-stripe-payment-request-wrapper,
body.woocommerce-order-pay.upz-orderpay-zero-due .wc-stripe-payment-request-wrapper,
html.upz-checkout-orderpay.upz-orderpay-zero-due .wc-stripe-express-checkout-element,
body.woocommerce-order-pay.upz-orderpay-zero-due .wc-stripe-express-checkout-element,
html.upz-checkout-orderpay.upz-orderpay-zero-due .wc-stripe-express-checkout-button,
body.woocommerce-order-pay.upz-orderpay-zero-due .wc-stripe-express-checkout-button,
html.upz-checkout-orderpay.upz-orderpay-zero-due .stripe-payment-request-button,
body.woocommerce-order-pay.upz-orderpay-zero-due .stripe-payment-request-button{
  display: none !important;
}
