/* smdoda-styling: CWS/Heineken booking UI. Brand colours are configurable in plugin settings. */
.cws-hcb-app,
.cws-hcb-dashboard {
  --cws-hcb-primary: #007a33;
  --cws-hcb-accent: #d71920;
  --cws-hcb-dark: #003b2a;
  --cws-hcb-ink: #15352b;
  --cws-hcb-muted: #668077;
  --cws-hcb-line: #dce8e2;
  --cws-hcb-soft: #f3f8f5;
  --cws-hcb-white: #fff;
  color: var(--cws-hcb-ink);
  font-family: Poppins, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

.cws-hcb-app *,
.cws-hcb-dashboard * { box-sizing: border-box; }
.cws-hcb-app button,
.cws-hcb-app input,
.cws-hcb-app select,
.cws-hcb-app textarea,
.cws-hcb-dashboard button,
.cws-hcb-dashboard input,
.cws-hcb-dashboard select,
.cws-hcb-dashboard textarea { font: inherit; }
.cws-hcb-app a,
.cws-hcb-dashboard a { color: var(--cws-hcb-primary); }

.cws-hcb-app {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 60px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 59, 42, .12);
  overflow: hidden;
}

.cws-hcb-hero {
  min-height: 430px;
  padding: 64px clamp(28px, 6vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 48px;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(255,255,255,.18), transparent 27%),
    radial-gradient(circle at 88% 80%, rgba(215,25,32,.55), transparent 24%),
    linear-gradient(135deg, var(--cws-hcb-dark), var(--cws-hcb-primary));
  position: relative;
}
.cws-hcb-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: linear-gradient(30deg, transparent 49%, rgba(255,255,255,.16) 50%, transparent 51%);
  background-size: 42px 42px;
  pointer-events: none;
}
.cws-hcb-hero__content,
.cws-hcb-hero__visual { position: relative; z-index: 1; }
.cws-hcb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.cws-hcb-brand img { max-width: 190px; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.cws-hcb-brand__star { color: var(--cws-hcb-accent); font-size: 24px; text-shadow: 0 1px #fff; }
.cws-hcb-eyebrow {
  display: block;
  margin: 44px 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #b8ead3;
}
.cws-hcb-hero h1 {
  margin: 0;
  max-width: 700px;
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.cws-hcb-hero p { max-width: 690px; margin: 22px 0 0; color: rgba(255,255,255,.84); font-size: 17px; }
.cws-hcb-hero__visual { display: flex; justify-content: center; }
.cws-hcb-visual-card {
  width: min(350px, 100%);
  min-height: 230px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 28px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px rgba(255,255,255,.25), 0 26px 50px rgba(0,0,0,.18);
  transform: rotate(2deg);
}
.cws-hcb-visual-card__dot { width: 72px; height: 72px; border-radius: 50%; background: var(--cws-hcb-accent); box-shadow: 0 0 0 16px rgba(255,255,255,.08); margin-bottom: 42px; }
.cws-hcb-visual-card strong { font-size: 21px; }
.cws-hcb-visual-card small { margin-top: 8px; color: rgba(255,255,255,.74); line-height: 1.5; }

.cws-hcb-notice { margin: 24px clamp(24px, 5vw, 64px) 0; border-radius: 12px; padding: 14px 18px; font-weight: 600; }
.cws-hcb-notice--success { background: #e7f7ef; color: #08683a; }
.cws-hcb-notice--error { background: #fff0f0; color: #a22026; }
.cws-hcb-notice--info { background: #edf5ff; color: #275d85; }

.cws-hcb-booking-shell { padding: clamp(34px, 6vw, 72px); }
.cws-hcb-step { scroll-margin-top: 30px; }
.cws-hcb-section-heading { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 28px; }
.cws-hcb-section-heading > span {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--cws-hcb-soft);
  color: var(--cws-hcb-primary);
  font-weight: 800;
}
.cws-hcb-section-heading h2 { margin: 0; color: var(--cws-hcb-dark); font-size: clamp(25px, 3vw, 36px); letter-spacing: -.035em; }
.cws-hcb-section-heading p { margin: 5px 0 0; color: var(--cws-hcb-muted); }
.cws-hcb-sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cws-hcb-site-card {
  min-height: 180px;
  width: 100%;
  padding: 26px;
  border: 1px solid var(--cws-hcb-line);
  border-radius: 20px;
  background: #fff;
  display: flex;
  gap: 18px;
  text-align: left;
  align-items: flex-start;
  color: var(--cws-hcb-ink);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.cws-hcb-site-card:hover,
.cws-hcb-site-card.is-selected { transform: translateY(-3px); border-color: var(--cws-hcb-primary); box-shadow: 0 16px 34px rgba(0, 122, 51, .11); }
.cws-hcb-site-card__icon { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 50%; background: var(--cws-hcb-soft); color: var(--cws-hcb-primary); font-size: 24px; }
.cws-hcb-site-card__content { display: flex; flex-direction: column; min-width: 0; }
.cws-hcb-site-card__content strong { font-size: 19px; color: var(--cws-hcb-dark); }
.cws-hcb-site-card__content small { margin-top: 4px; color: var(--cws-hcb-muted); }
.cws-hcb-site-card__content em { margin-top: 24px; color: var(--cws-hcb-primary); font-size: 13px; font-style: normal; font-weight: 700; }
.cws-hcb-site-card__arrow { margin-left: auto; font-size: 24px; color: var(--cws-hcb-primary); }
.cws-hcb-text-button { border: 0; background: transparent; color: var(--cws-hcb-primary); padding: 0; margin: -10px 0 25px; cursor: pointer; font-weight: 700; }

.cws-hcb-slots { min-height: 120px; }
.cws-hcb-loading { padding: 30px; border: 1px dashed var(--cws-hcb-line); border-radius: 16px; color: var(--cws-hcb-muted); display: flex; align-items: center; gap: 12px; }
.cws-hcb-loading span { width: 18px; height: 18px; border: 2px solid var(--cws-hcb-line); border-top-color: var(--cws-hcb-primary); border-radius: 50%; animation: cwsHcbSpin .8s linear infinite; }
@keyframes cwsHcbSpin { to { transform: rotate(360deg); } }
.cws-hcb-slot-group { padding: 22px 0; border-top: 1px solid var(--cws-hcb-line); }
.cws-hcb-slot-group:first-child { border-top: 0; padding-top: 0; }
.cws-hcb-slot-group h3 { margin: 0 0 14px; color: var(--cws-hcb-dark); font-size: 17px; }
.cws-hcb-slot-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cws-hcb-slot-button {
  border: 1px solid var(--cws-hcb-line);
  border-radius: 10px;
  background: #fff;
  color: var(--cws-hcb-ink);
  padding: 11px 17px;
  cursor: pointer;
  font-weight: 700;
}
.cws-hcb-slot-button:hover,
.cws-hcb-slot-button.is-selected { border-color: var(--cws-hcb-primary); background: var(--cws-hcb-primary); color: #fff; }

.cws-hcb-booking-form { max-width: 900px; }
.cws-hcb-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cws-hcb-form-grid label,
.cws-hcb-appointment-actions label { display: flex; flex-direction: column; gap: 7px; }
.cws-hcb-form-grid label > span,
.cws-hcb-appointment-actions label > span { font-size: 12px; font-weight: 700; color: var(--cws-hcb-dark); }
.cws-hcb-form-grid__wide { grid-column: 1 / -1; }
.cws-hcb-other-problem-field[hidden] { display: none !important; }
.cws-hcb-form-grid input,
.cws-hcb-form-grid select,
.cws-hcb-appointment-actions select,
.cws-hcb-appointment-actions textarea {
  width: 100%;
  border: 1px solid var(--cws-hcb-line);
  border-radius: 11px;
  padding: 13px 14px;
  background: #fff;
  color: var(--cws-hcb-ink);
  outline: none;
}
.cws-hcb-form-grid input:focus,
.cws-hcb-form-grid select:focus,
.cws-hcb-appointment-actions select:focus,
.cws-hcb-appointment-actions textarea:focus { border-color: var(--cws-hcb-primary); box-shadow: 0 0 0 3px rgba(0,122,51,.1); }
.cws-hcb-consent { display: flex; gap: 11px; align-items: flex-start; margin: 24px 0; padding: 17px; background: var(--cws-hcb-soft); border-radius: 13px; font-size: 13px; color: var(--cws-hcb-muted); }
.cws-hcb-consent input { margin-top: 4px; accent-color: var(--cws-hcb-primary); }
.cws-hcb-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 14px 23px;
  background: var(--cws-hcb-primary);
  color: #fff !important;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0,122,51,.18);
}
.cws-hcb-primary-button:hover { filter: brightness(.93); }
.cws-hcb-primary-button:disabled { opacity: .55; cursor: wait; }
.cws-hcb-form-message { min-height: 20px; margin: 8px 0 14px; font-size: 13px; }
.cws-hcb-form-message.is-error,
.cws-hcb-save-message.is-error { color: #a22026; }
.cws-hcb-save-message.is-success { color: #08683a; }
.cws-hcb-inline-error { padding: 17px; background: #fff0f0; color: #a22026; border-radius: 12px; }
.cws-hcb-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.cws-hcb-success { text-align: center; padding: 45px 20px; }
.cws-hcb-success__icon { width: 76px; height: 76px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: #e5f7ed; color: var(--cws-hcb-primary); font-size: 34px; font-weight: 800; }
.cws-hcb-success h2 { margin: 0; color: var(--cws-hcb-dark); font-size: 32px; }
.cws-hcb-success p { max-width: 680px; margin: 13px auto 24px; color: var(--cws-hcb-muted); }
.cws-hcb-confidentiality { margin: 0 clamp(34px, 6vw, 72px) clamp(34px, 6vw, 72px); padding: 20px 22px; border-radius: 14px; background: #f7faf8; border-left: 4px solid var(--cws-hcb-primary); }
.cws-hcb-confidentiality strong { color: var(--cws-hcb-dark); }
.cws-hcb-confidentiality p { margin: 5px 0 0; color: var(--cws-hcb-muted); font-size: 13px; }
.cws-hcb-empty-state { padding: 34px; border: 1px dashed var(--cws-hcb-line); border-radius: 16px; text-align: center; color: var(--cws-hcb-muted); }
.cws-hcb-empty-state strong { color: var(--cws-hcb-dark); }
.cws-hcb-empty-state p { margin: 5px 0 0; }

/* Dashboard */
.cws-hcb-dashboard { max-width: 1440px; margin: 24px auto 60px; }
.cws-hcb-dashboard__header {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--cws-hcb-dark), var(--cws-hcb-primary));
  box-shadow: 0 20px 55px rgba(0,59,42,.18);
}
.cws-hcb-brand--dashboard { margin-bottom: 30px; }
.cws-hcb-dashboard__header h1 { margin: 0; color: #fff; font-size: clamp(31px, 4vw, 48px); line-height: 1.08; letter-spacing: -.04em; }
.cws-hcb-dashboard__header p { max-width: 680px; margin: 12px 0 0; color: rgba(255,255,255,.78); }
.cws-hcb-dashboard__stats { display: grid; grid-template-columns: repeat(3, minmax(100px, 1fr)); gap: 10px; min-width: 360px; }
.cws-hcb-dashboard__stats div { padding: 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 15px; background: rgba(255,255,255,.09); text-align: center; }
.cws-hcb-dashboard__stats strong { display: block; font-size: 30px; line-height: 1; }
.cws-hcb-dashboard__stats span { display: block; margin-top: 8px; color: rgba(255,255,255,.72); font-size: 12px; }
.cws-hcb-dashboard__filters { display: flex; justify-content: flex-end; margin: 20px 0; }
.cws-hcb-dashboard__filters label { display: flex; align-items: center; gap: 10px; }
.cws-hcb-dashboard__filters span { font-weight: 700; color: var(--cws-hcb-dark); }
.cws-hcb-dashboard__filters select { min-width: 240px; border: 1px solid var(--cws-hcb-line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.cws-hcb-calendar-panel,
.cws-hcb-upcoming-panel { background: #fff; border: 1px solid var(--cws-hcb-line); border-radius: 20px; box-shadow: 0 12px 36px rgba(0,59,42,.07); overflow: hidden; }
.cws-hcb-calendar-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--cws-hcb-line); }
.cws-hcb-calendar-toolbar h2 { margin: 0; color: var(--cws-hcb-dark); font-size: 23px; }
.cws-hcb-calendar-toolbar a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--cws-hcb-soft); text-decoration: none; font-size: 20px; }
.cws-hcb-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cws-hcb-calendar__weekday { padding: 12px 10px; background: #f7faf8; border-bottom: 1px solid var(--cws-hcb-line); color: var(--cws-hcb-muted); text-align: center; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.cws-hcb-calendar__day { min-height: 145px; padding: 10px; border-right: 1px solid var(--cws-hcb-line); border-bottom: 1px solid var(--cws-hcb-line); background: #fff; }
.cws-hcb-calendar__day:nth-child(7n) { border-right: 0; }
.cws-hcb-calendar__day--blank { background: #fbfcfb; }
.cws-hcb-calendar__day.is-today { box-shadow: inset 0 0 0 2px var(--cws-hcb-primary); }
.cws-hcb-calendar__date { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.cws-hcb-calendar__date > span { font-weight: 800; color: var(--cws-hcb-dark); }
.cws-hcb-calendar__date small { color: var(--cws-hcb-muted); font-size: 9px; }
.cws-hcb-calendar-event { position: relative; width: 100%; margin-top: 6px; padding: 7px 8px; border: 0; border-left: 3px solid var(--cws-hcb-primary); border-radius: 8px; background: var(--cws-hcb-soft); color: inherit; font: inherit; font-size: 10px; text-align: left; overflow: hidden; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.cws-hcb-calendar-event:hover,
.cws-hcb-calendar-event:focus-visible { z-index: 2; transform: translateY(-2px) scale(1.015); background: #fff; box-shadow: 0 10px 24px rgba(0,59,42,.16); outline: 2px solid color-mix(in srgb, var(--cws-hcb-primary) 38%, transparent); outline-offset: 1px; }
.cws-hcb-calendar-event strong,
.cws-hcb-calendar-event span,
.cws-hcb-calendar-event small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cws-hcb-calendar-event span { color: var(--cws-hcb-muted); }
.cws-hcb-calendar-event small { max-height: 0; opacity: 0; color: var(--cws-hcb-primary); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; transition: max-height .2s ease, opacity .2s ease, margin-top .2s ease; }
.cws-hcb-calendar-event:hover small,
.cws-hcb-calendar-event:focus-visible small { max-height: 16px; margin-top: 4px; opacity: 1; }
.cws-hcb-calendar__more { display: block; margin-top: 7px; color: var(--cws-hcb-muted); font-size: 10px; }
.cws-hcb-status-pending { border-color: #d29922 !important; }
.cws-hcb-status-confirmed { border-color: var(--cws-hcb-primary) !important; }
.cws-hcb-status-completed { border-color: #3567b7 !important; }
.cws-hcb-status-no_show { border-color: #7b61a8 !important; }
.cws-hcb-status-cancelled { border-color: #bc3036 !important; }
.cws-hcb-upcoming-panel { margin-top: 24px; }
.cws-hcb-panel-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 26px; border-bottom: 1px solid var(--cws-hcb-line); }
.cws-hcb-panel-heading span { color: var(--cws-hcb-primary); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.cws-hcb-panel-heading h2 { margin: 4px 0 0; color: var(--cws-hcb-dark); font-size: 25px; }
.cws-hcb-panel-heading small { color: var(--cws-hcb-muted); }
.cws-hcb-appointment-list { padding: 20px; }
.cws-hcb-appointment-card { display: grid; grid-template-columns: 90px minmax(0, 1fr); border: 1px solid var(--cws-hcb-line); border-radius: 17px; overflow: hidden; margin-bottom: 16px; background: #fff; }
.cws-hcb-appointment-card__date { padding: 22px 12px; background: var(--cws-hcb-soft); text-align: center; }
.cws-hcb-appointment-card__date strong { display: block; color: var(--cws-hcb-dark); font-size: 30px; line-height: 1; }
.cws-hcb-appointment-card__date span { display: block; color: var(--cws-hcb-primary); font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.cws-hcb-appointment-card__date small { display: block; margin-top: 18px; color: var(--cws-hcb-muted); font-weight: 700; }
.cws-hcb-appointment-card__main { padding: 20px; min-width: 0; }
.cws-hcb-appointment-card__top { display: flex; justify-content: space-between; gap: 20px; }
.cws-hcb-appointment-card__top h3 { margin: 7px 0 2px; color: var(--cws-hcb-dark); font-size: 21px; }
.cws-hcb-appointment-card__top p { margin: 0; color: var(--cws-hcb-muted); font-size: 13px; }
.cws-hcb-status-badge { display: inline-flex; border: 1px solid; border-radius: 999px; padding: 4px 9px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.cws-hcb-status-badge.cws-hcb-status-pending { color: #805a08; background: #fff7db; }
.cws-hcb-status-badge.cws-hcb-status-confirmed { color: #08683a; background: #e7f7ef; }
.cws-hcb-status-badge.cws-hcb-status-completed { color: #285798; background: #ebf3ff; }
.cws-hcb-status-badge.cws-hcb-status-no_show { color: #654590; background: #f3edfb; }
.cws-hcb-status-badge.cws-hcb-status-cancelled { color: #9e252b; background: #fff0f0; }
.cws-hcb-reference { color: var(--cws-hcb-primary); font-size: 13px; }
.cws-hcb-client-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.cws-hcb-client-grid > div { padding: 12px; border-radius: 10px; background: #f8faf9; min-width: 0; }
.cws-hcb-client-grid span { display: block; color: var(--cws-hcb-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.cws-hcb-client-grid a,
.cws-hcb-client-grid strong { display: block; margin-top: 4px; color: var(--cws-hcb-dark); font-size: 12px; overflow-wrap: anywhere; }
.cws-hcb-appointment-actions { display: grid; grid-template-columns: 190px minmax(240px, 1fr) auto; gap: 13px; align-items: end; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--cws-hcb-line); }
.cws-hcb-notes-field textarea { min-height: 68px; resize: vertical; }
.cws-hcb-save-appointment { min-height: 44px; border: 0; border-radius: 10px; background: var(--cws-hcb-primary); color: #fff; padding: 10px 16px; cursor: pointer; font-weight: 700; }
.cws-hcb-save-message { grid-column: 1 / -1; min-height: 18px; font-size: 12px; }
.cws-hcb-access-message { max-width: 700px; margin: 40px auto; padding: 24px; border: 1px solid #dce8e2; border-radius: 14px; background: #fff; color: #15352b; font-family: Poppins, "Segoe UI", sans-serif; }

@media (max-width: 1000px) {
  .cws-hcb-dashboard__header { align-items: flex-start; flex-direction: column; }
  .cws-hcb-dashboard__stats { min-width: 0; width: 100%; }
  .cws-hcb-client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cws-hcb-appointment-actions { grid-template-columns: 1fr 1fr; }
  .cws-hcb-save-appointment { grid-column: 1 / -1; }
}
@media (max-width: 780px) {
  .cws-hcb-app { width: min(100%, calc(100% - 18px)); margin-top: 10px; border-radius: 18px; }
  .cws-hcb-hero { grid-template-columns: 1fr; min-height: auto; padding: 40px 25px; }
  .cws-hcb-hero__visual { display: none; }
  .cws-hcb-eyebrow { margin-top: 30px; }
  .cws-hcb-sites,
  .cws-hcb-form-grid { grid-template-columns: 1fr; }
  .cws-hcb-form-grid__wide { grid-column: auto; }
  .cws-hcb-booking-shell { padding: 32px 22px; }
  .cws-hcb-confidentiality { margin: 0 22px 32px; }
  .cws-hcb-calendar { display: block; }
  .cws-hcb-calendar__weekday,
  .cws-hcb-calendar__day--blank { display: none; }
  .cws-hcb-calendar__day { min-height: 0; border-right: 0; padding: 14px; }
  .cws-hcb-calendar__day:not(:has(.cws-hcb-calendar-event)) { display: none; }
  .cws-hcb-calendar-event { font-size: 12px; }
  .cws-hcb-appointment-card { grid-template-columns: 1fr; }
  .cws-hcb-appointment-card__date { display: flex; gap: 8px; justify-content: center; align-items: baseline; }
  .cws-hcb-appointment-card__date strong,
  .cws-hcb-appointment-card__date span,
  .cws-hcb-appointment-card__date small { display: inline; margin: 0; }
  .cws-hcb-appointment-card__top { flex-direction: column; }
  .cws-hcb-client-grid,
  .cws-hcb-appointment-actions { grid-template-columns: 1fr; }
  .cws-hcb-save-appointment { grid-column: auto; }
  .cws-hcb-dashboard__stats { grid-template-columns: 1fr; }
  .cws-hcb-dashboard__filters { justify-content: stretch; }
  .cws-hcb-dashboard__filters label { width: 100%; flex-direction: column; align-items: stretch; }
  .cws-hcb-dashboard__filters select { min-width: 0; width: 100%; }
  .cws-hcb-panel-heading { flex-direction: column; align-items: flex-start; }
}
.cws-hcb-cancel-form { margin-top: 12px; }
.cws-hcb-cancel-button { border: 0; border-radius: 9px; padding: 10px 15px; background: #a22026; color: #fff; font-weight: 700; cursor: pointer; }
.cws-hcb-cancel-button:hover { filter: brightness(.94); }


/* // smdoda-styling: secure dashboard access and appointment details modal */
.cws-hcb-dashboard-access { min-height: 70vh; display: grid; place-items: center; padding: 30px 16px; font-family: Poppins, "Segoe UI", sans-serif; }
.cws-hcb-dashboard-access__card { width: min(520px, 100%); padding: clamp(28px, 5vw, 46px); border: 1px solid #dce8e2; border-radius: 22px; background: #fff; box-shadow: 0 20px 60px rgba(0,59,42,.12); text-align: center; }
.cws-hcb-dashboard-access__icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 18px; background: #eef7f2; font-size: 25px; }
.cws-hcb-dashboard-access h2 { margin: 0; color: var(--cws-hcb-dark); font-size: clamp(26px, 5vw, 36px); letter-spacing: -.035em; }
.cws-hcb-dashboard-access p { margin: 12px auto 24px; color: #60736c; line-height: 1.7; }
.cws-hcb-dashboard-access form { display: grid; gap: 14px; text-align: left; }
.cws-hcb-dashboard-access label span { display: block; margin-bottom: 7px; color: var(--cws-hcb-dark); font-size: 12px; font-weight: 800; }
.cws-hcb-dashboard-access input { width: 100%; min-height: 48px; border: 1px solid #cadbd3; border-radius: 11px; padding: 10px 13px; font: inherit; }
.cws-hcb-dashboard-access button { min-height: 48px; border: 0; border-radius: 11px; background: var(--cws-hcb-primary); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.cws-hcb-dashboard-access small { display: block; margin-top: 18px; color: #71837c; }

body.cws-hcb-modal-open { overflow: hidden; }
.cws-hcb-details-modal[hidden] { display: none !important; }
.cws-hcb-details-modal { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 22px; }
.cws-hcb-details-modal__backdrop { position: absolute; inset: 0; background: rgba(1,22,15,.68); backdrop-filter: blur(5px); }
.cws-hcb-details-modal__dialog { position: relative; width: min(880px, 100%); max-height: min(86vh, 900px); overflow: auto; border-radius: 22px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.28); outline: 0; animation: cws-hcb-modal-in .22s ease both; }
@keyframes cws-hcb-modal-in { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.cws-hcb-details-modal__close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.cws-hcb-details-modal__heading { padding: 30px 72px 26px 30px; color: #fff; background: linear-gradient(135deg, var(--cws-hcb-dark), var(--cws-hcb-primary)); }
.cws-hcb-details-modal__heading > span { color: rgba(255,255,255,.72); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.cws-hcb-details-modal__heading h2 { margin: 7px 0 13px; color: #fff; font-size: clamp(25px, 4vw, 37px); line-height: 1.1; }
.cws-hcb-details-modal__heading > div { display: flex; align-items: center; gap: 12px; }
.cws-hcb-details-modal__heading > div > strong { color: rgba(255,255,255,.86); font-size: 12px; }
.cws-hcb-details-modal__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 24px 30px 30px; }
.cws-hcb-details-modal__grid > div { min-width: 0; padding: 15px; border: 1px solid #e2ece7; border-radius: 12px; background: #f8faf9; }
.cws-hcb-details-modal__grid > div > span { display: block; color: #71837c; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.cws-hcb-details-modal__grid strong,
.cws-hcb-details-modal__grid a,
.cws-hcb-details-modal__grid p { display: block; margin: 6px 0 0; color: var(--cws-hcb-dark); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.cws-hcb-details-modal__grid small { display: block; margin-top: 3px; color: #71837c; font-size: 11px; }
.cws-hcb-details-modal__notes { grid-column: 1 / -1; }
.cws-hcb-details-modal__notes p { white-space: pre-wrap; }

@media (max-width: 780px) {
  .cws-hcb-details-modal { padding: 10px; }
  .cws-hcb-details-modal__dialog { max-height: 92vh; border-radius: 17px; }
  .cws-hcb-details-modal__heading { padding: 26px 58px 22px 22px; }
  .cws-hcb-details-modal__grid { grid-template-columns: 1fr; padding: 18px; }
  .cws-hcb-calendar-event small { max-height: 16px; margin-top: 4px; opacity: 1; }
}
