:root {
  --client-booking-clarity-release: "20260727-client-booking-clarity-os-2390";
}

body.client-booking-clarity-os-ready #bookingEssentialStrip,
body.client-booking-clarity-os-ready #bookingReadiness.booking-readiness-strip {
  display: none !important;
}

.booking-clarity-panel {
  display: grid;
  gap: 14px;
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid rgba(198, 154, 86, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 246, 250, 0.96), rgba(255, 250, 244, 0.94)),
    var(--surface);
  box-shadow: 0 18px 42px rgba(72, 32, 54, 0.08);
}

.booking-clarity-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.booking-clarity-head span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  color: #a97823;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-clarity-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.12;
}

.booking-clarity-head p {
  margin: 5px 0 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.booking-clarity-score {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid rgba(236, 105, 161, 0.25);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.86), transparent 34%),
    conic-gradient(from -30deg, #f45fa0 var(--booking-clarity-score, 20%), rgba(198, 154, 86, 0.22) 0),
    rgba(255, 245, 249, 0.9);
  color: #321324;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.72);
}

.booking-clarity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.booking-clarity-check {
  display: grid;
  min-width: 0;
  min-height: 92px;
  align-content: start;
  gap: 6px;
  padding: 11px;
  border: 1px solid rgba(198, 154, 86, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.booking-clarity-check strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.2;
}

.booking-clarity-check span {
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.35;
}

.booking-clarity-check::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(117, 94, 108, 0.45);
  box-shadow: 0 0 0 4px rgba(117, 94, 108, 0.08);
}

.booking-clarity-check.is-complete {
  border-color: rgba(28, 133, 87, 0.24);
  background: rgba(241, 255, 247, 0.76);
}

.booking-clarity-check.is-complete::before {
  background: #238657;
  box-shadow: 0 0 0 4px rgba(35, 134, 87, 0.12);
}

.booking-clarity-check.is-active {
  border-color: rgba(236, 105, 161, 0.34);
  background: linear-gradient(135deg, rgba(255, 236, 246, 0.92), rgba(255, 249, 238, 0.86));
}

.booking-clarity-check.is-active::before {
  background: linear-gradient(135deg, #f45fa0, #d5a23d);
  box-shadow: 0 0 0 4px rgba(236, 105, 161, 0.14);
}

.booking-clarity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.booking-clarity-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(236, 105, 161, 0.26);
  border-radius: 8px;
  background: linear-gradient(135deg, #f45fa0, #e7b452);
  color: #25141e;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.booking-clarity-action.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.booking-clarity-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.booking-clarity-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #c99635;
}

.launch-review-panel .booking-clarity-mini {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(198, 154, 86, 0.16);
  border-radius: 8px;
  background: rgba(255, 246, 250, 0.82);
}

.booking-clarity-mini strong {
  color: var(--ink);
  line-height: 1.2;
}

.booking-clarity-mini small {
  color: var(--muted);
  line-height: 1.35;
}

body[data-theme="dark"] .booking-clarity-panel,
body[data-theme="dark"] .launch-review-panel .booking-clarity-mini {
  border-color: rgba(232, 183, 90, 0.2);
  background:
    linear-gradient(135deg, rgba(45, 18, 38, 0.98), rgba(26, 9, 23, 0.96)),
    rgba(30, 11, 26, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .booking-clarity-head h3,
body[data-theme="dark"] .booking-clarity-check strong,
body[data-theme="dark"] .booking-clarity-mini strong {
  color: #fff6fb;
}

body[data-theme="dark"] .booking-clarity-head p,
body[data-theme="dark"] .booking-clarity-check span,
body[data-theme="dark"] .booking-clarity-note,
body[data-theme="dark"] .booking-clarity-mini small {
  color: #dbc4d2;
}

body[data-theme="dark"] .booking-clarity-check {
  border-color: rgba(232, 183, 90, 0.16);
  background: rgba(24, 9, 21, 0.78);
}

body[data-theme="dark"] .booking-clarity-check.is-complete {
  border-color: rgba(78, 190, 130, 0.28);
  background: rgba(18, 45, 34, 0.72);
}

body[data-theme="dark"] .booking-clarity-check.is-active {
  border-color: rgba(255, 129, 186, 0.34);
  background: linear-gradient(135deg, rgba(85, 28, 63, 0.8), rgba(71, 48, 21, 0.5));
}

body[data-theme="dark"] .booking-clarity-score {
  border-color: rgba(255, 129, 186, 0.28);
  background:
    conic-gradient(from -30deg, #f76ca9 var(--booking-clarity-score, 20%), rgba(232, 183, 90, 0.18) 0),
    rgba(31, 11, 27, 0.95);
  color: #fff6fb;
  box-shadow: inset 0 0 0 7px rgba(25, 9, 22, 0.84);
}

body[data-theme="dark"] .booking-clarity-action.secondary {
  border-color: rgba(232, 183, 90, 0.18);
  background: rgba(30, 11, 26, 0.86);
  color: #fff6fb;
}

@media (max-width: 900px) {
  .booking-clarity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .booking-clarity-panel {
    gap: 12px;
    padding: 13px;
    margin: 10px 0 14px;
  }

  .booking-clarity-head {
    grid-template-columns: minmax(0, 1fr) 56px;
  }

  .booking-clarity-score {
    width: 56px;
    height: 56px;
    font-size: 0.9rem;
  }

  .booking-clarity-grid {
    grid-template-columns: 1fr;
  }

  .booking-clarity-check {
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 9px;
    align-items: center;
  }

  .booking-clarity-check strong,
  .booking-clarity-check span {
    grid-column: 2;
  }

  .booking-clarity-action {
    flex: 1 1 100%;
    width: 100%;
  }
}
