.bad-booking-widget {
  --bad-primary: #2563eb;
  --bad-primary-dark: #1e40af;
  --bad-bg: #f8fafc;
  --bad-text: #0f172a;
  --bad-muted: #64748b;
  --bad-border: #e2e8f0;
  --bad-success: #15803d;
  --bad-error: #b91c1c;
  --bad-warning: #b45309;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--bad-text);
  box-sizing: border-box;
  width: min(100%, var(--bad-widget-width, 1180px));
  max-width: var(--bad-widget-width, 1180px);
  margin: clamp(18px, 4vw, 36px) auto;
  padding: 0 clamp(12px, 2vw, 18px);
}

.bad-booking-widget * {
  box-sizing: border-box;
}

.bad-card {
  background: #fff;
  border: 1px solid var(--bad-border);
  border-radius: 28px;
  box-shadow: none;
  padding: clamp(20px, 4vw, 52px);
  overflow: hidden;
}

.bad-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 28px;
}

.bad-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--bad-primary-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.bad-header h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  color: var(--bad-text);
}

.bad-header p {
  margin: 12px 0 0;
  color: var(--bad-muted);
  font-size: 17px;
}

.bad-alert {
  padding: 14px 16px;
  border-radius: 16px;
  margin: 18px 0;
  border: 1px solid var(--bad-border);
  background: var(--bad-bg);
  font-weight: 600;
}

.bad-alert.success {
  background: #ecfdf5;
  color: var(--bad-success, #15803d);
  border-color: #bbf7d0;
}

.bad-alert.error {
  background: #fef2f2;
  color: var(--bad-error);
  border-color: #fecaca;
}

.bad-alert.warning {
  background: #fffbeb;
  color: var(--bad-warning);
  border-color: #fde68a;
}

.bad-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.bad-step {
  padding: 13px 14px;
  border-radius: 18px;
  background: var(--bad-bg);
  color: var(--bad-muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  border: 1px solid var(--bad-border);
}

.bad-step.is-active {
  background: var(--bad-primary);
  color: #fff;
  border-color: var(--bad-primary);
}

.bad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bad-booking-widget label {
  display: block;
  color: var(--bad-text);
  font-weight: 700;
  font-size: 14px;
}

.bad-booking-widget label span {
  display: block;
  margin-bottom: 8px;
}

.bad-booking-widget input,
.bad-booking-widget textarea,
.bad-booking-widget select {
  width: 100%;
  border: 1px solid var(--bad-border);
  border-radius: 15px;
  padding: 14px 15px;
  background: #fff;
  color: var(--bad-text);
  font: inherit;
  outline: none;
  transition: border-color .2s, outline-color .2s, background .2s;
}

.bad-booking-widget input:focus,
.bad-booking-widget textarea:focus,
.bad-booking-widget select:focus {
  border-color: var(--bad-primary);
  outline: 3px solid rgba(37, 99, 235, .14);
  outline-offset: 2px;
}

.bad-booking-widget select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--bad-muted) 50%), linear-gradient(135deg, var(--bad-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.bad-panels {
  border: 1px solid var(--bad-border);
  border-radius: 28px;
  background: linear-gradient(180deg, #fff, var(--bad-bg));
  padding: clamp(20px, 3vw, 34px);
}

.bad-panel {
  display: none;
}

.bad-panel.is-active {
  display: block;
}

.bad-calendar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.bad-calendar-top strong {
  font-size: 22px;
}

.bad-icon-btn,
.bad-secondary {
  border: 1px solid var(--bad-border);
  background: #fff;
  color: var(--bad-text);
  border-radius: 15px;
  padding: 11px 15px;
  cursor: pointer;
  font-weight: 800;
  transition: border-color .15s, background .15s, color .15s;
}

.bad-icon-btn:hover,
.bad-secondary:hover {
  border-color: var(--bad-primary);
  background: #f8fbff;
}

.bad-calendar-weekdays,
.bad-calendar {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  column-gap: clamp(8px, 1.25vw, 14px);
  row-gap: 10px;
  align-items: stretch;
}

.bad-calendar-weekdays {
  margin-bottom: 10px;
}

.bad-calendar-weekdays span {
  text-align: center;
  color: var(--bad-muted);
  font-size: 13px;
  font-weight: 800;
}

.bad-day-placeholder {
  height: clamp(54px, 6vw, 70px);
  display: flex;
  min-width: 0;
}

.bad-day {
  width: 100%;
  height: clamp(54px, 6vw, 70px);
  min-height: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bad-border);
  background: #fff;
  border-radius: 16px;
  color: var(--bad-text);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  transition: background .15s, border-color .15s, color .15s;
}

.bad-day.is-available:hover,
.bad-day.is-selected {
  color: #fff;
  background: var(--bad-primary);
  border-color: var(--bad-primary);
}

.bad-day.is-unavailable {
  color: #7b8494;
  background: #eef0f3;
  border-color: #d8dde5;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 1;
}

.bad-day:disabled {
  opacity: 1;
}

.bad-day.is-unavailable:hover {
  color: #7b8494;
  background: #eef0f3;
  border-color: #d8dde5;
  box-shadow: none;
  transform: none;
}

.bad-calendar-empty {
  grid-column: 1 / -1;
}

.bad-selected-date,
.bad-selected-time {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 16px;
}

.bad-panel-title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 900;
}

.bad-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.bad-agents {
  margin-bottom: 20px;
}

.bad-slot,
.bad-agent-card {
  text-align: left;
  border: 1px solid var(--bad-border);
  background: #fff;
  border-radius: 20px;
  padding: 17px;
  cursor: pointer;
  color: var(--bad-text);
  transition: border-color .15s, background .15s, color .15s;
}

.bad-slot strong,
.bad-slot small,
.bad-agent-card strong,
.bad-agent-card small {
  display: block;
}

.bad-slot small,
.bad-agent-card small {
  margin-top: 6px;
  color: var(--bad-muted, #64748b);
  font-weight: 700;
}

.bad-slot:hover,
.bad-slot.is-selected,
.bad-agent-card:hover,
.bad-agent-card.is-selected {
  border-color: var(--bad-primary);
  background: #f8fbff;
}

.bad-agent-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bad-agent-card input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--bad-primary);
}

.bad-agent-card span {
  margin: 0;
}


.bad-agent-select-wrap {
  display: block;
  max-width: 560px;
  width: 100%;
}

.bad-agent-select-wrap select {
  margin-top: 8px;
  min-height: 56px;
  font-weight: 700;
}

.bad-summary {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.4fr;
  gap: 12px;
  margin-bottom: 22px;
}

.bad-summary div {
  background: #fff;
  border: 1px solid var(--bad-border);
  border-radius: 18px;
  padding: 15px;
}

.bad-summary span,
.bad-summary strong {
  display: block;
}

.bad-summary span {
  color: var(--bad-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 5px;
}

.bad-form > label,
.bad-form .bad-grid {
  margin-bottom: 18px;
}

.bad-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.bad-primary {
  border: 0;
  background: var(--bad-primary);
  color: #fff;
  border-radius: 15px;
  padding: 14px 19px;
  font-weight: 900;
  cursor: pointer;
  transition: background .15s, opacity .15s;
}

.bad-primary:hover {
  background: var(--bad-primary-dark);
}

.bad-primary:disabled {
  opacity: .65;
  cursor: wait;
}

.bad-empty,
.bad-loading {
  background: #fff;
  border: 1px dashed var(--bad-border);
  color: var(--bad-muted);
  border-radius: 20px;
  padding: 26px;
  text-align: center;
  font-weight: 800;
}


.bad-confirm-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, .22);
  animation: badConfirmFadeIn .18s ease-out;
}

.bad-confirm-popup.is-hiding {
  animation: badConfirmFadeOut .24s ease-in forwards;
}

.bad-confirm-popup-card {
  width: min(92vw, 430px);
  background: #fff;
  border: 1px solid #bbf7d0;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
  padding: 24px;
  text-align: center;
  color: var(--bad-text, #0f172a);
  transform: translateY(0) scale(1);
}

.bad-confirm-popup-card strong {
  display: block;
  color: var(--bad-success, #15803d);
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 8px;
}

.bad-confirm-popup-card p {
  margin: 0 0 16px;
  color: var(--bad-muted, #64748b);
  font-weight: 700;
}

.bad-confirm-popup-details {
  display: grid;
  gap: 9px;
  text-align: left;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 18px;
  padding: 14px;
  color: #14532d;
  font-weight: 700;
}

.bad-confirm-popup-details span {
  display: block;
}

@keyframes badConfirmFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes badConfirmFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (max-width: 860px) {
  .bad-grid,
  .bad-summary,
  .bad-slots {
    grid-template-columns: 1fr;
  }

  .bad-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .bad-calendar-weekdays,
  .bad-calendar {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 8px;
  }

  .bad-day-placeholder,
  .bad-day {
    height: 50px;
  }

  .bad-day {
    border-radius: 13px;
    font-size: 15px;
  }

  .bad-actions {
    flex-direction: column-reverse;
  }

  .bad-actions button {
    width: 100%;
  }
}


@media (max-width: 520px) {
  .bad-confirm-popup {
    align-items: flex-end;
    padding: 12px;
  }

  .bad-confirm-popup-card {
    width: 100%;
    border-radius: 20px;
    padding: 20px;
  }
}

@media (max-width: 520px) {

  .bad-booking-widget {
    margin: 16px auto;
    padding: 0 10px;
  }

  .bad-card {
    border-radius: 22px;
    padding: 16px;
  }

  .bad-panels {
    border-radius: 20px;
    padding: 14px;
  }

  .bad-header {
    margin-bottom: 20px;
  }

  .bad-header h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .bad-header p {
    font-size: 15px;
  }

  .bad-calendar-top strong {
    font-size: 18px;
  }

  .bad-icon-btn,
  .bad-secondary {
    padding: 9px 12px;
    border-radius: 12px;
  }

  .bad-agent-select-wrap {
    max-width: 100%;
  }
  .bad-steps {
    grid-template-columns: 1fr;
  }

  .bad-calendar-weekdays span {
    font-size: 11px;
  }

  .bad-calendar-weekdays,
  .bad-calendar {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    column-gap: 6px;
    row-gap: 7px;
  }

  .bad-day-placeholder,
  .bad-day {
    height: 40px;
  }
}



@media (max-width: 380px) {
  .bad-card {
    padding: 14px;
  }

  .bad-calendar-weekdays,
  .bad-calendar {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    column-gap: 4px;
    row-gap: 5px;
  }

  .bad-day-placeholder,
  .bad-day {
    height: 34px;
  }

  .bad-day {
    border-radius: 9px;
    font-size: 13px;
  }

  .bad-step {
    padding: 11px 12px;
  }
}

.bad-day.is-unavailable,
.bad-day.is-unavailable:disabled {
  color: #8a94a6;
  background: #e5e7eb;
  border-color: #d1d5db;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 640px) {
  .bad-booking-widget {
    width: 100%;
    max-width: 100%;
  }

  .bad-calendar-top {
    gap: 8px;
  }

  .bad-calendar-top strong {
    text-align: center;
    flex: 1;
  }

  .bad-booking-widget input,
  .bad-booking-widget textarea,
  .bad-booking-widget select {
    min-height: 48px;
    font-size: 16px;
  }

  .bad-primary,
  .bad-secondary,
  .bad-icon-btn {
    min-height: 46px;
  }
}

@media (max-width: 430px) {
  .bad-booking-widget {
    padding: 0 6px;
  }

  .bad-card {
    border-radius: 18px;
    padding: 12px;
  }

  .bad-panels {
    padding: 10px;
  }

  .bad-calendar-weekdays,
  .bad-calendar {
    column-gap: 3px;
    row-gap: 5px;
  }

  .bad-day-placeholder,
  .bad-day {
    height: 36px;
  }

  .bad-day {
    border-radius: 9px;
    font-size: 13px;
  }

  .bad-slot,
  .bad-summary div {
    border-radius: 14px;
    padding: 13px;
  }
}

/* Grey Pixel Agency mobile responsiveness refinements - v2.5 */
.bad-booking-widget,
.bad-booking-widget * {
  min-width: 0;
}

.bad-booking-widget input,
.bad-booking-widget textarea,
.bad-booking-widget select {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 860px) {
  .bad-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .bad-slot {
    padding: 13px 12px;
    border-radius: 14px;
  }

  .bad-slot strong {
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .bad-slot small {
    font-size: 12px;
    line-height: 1.25;
  }
}

@media (max-width: 640px) {
  .bad-booking-widget {
    width: 100%;
    max-width: 100%;
    margin: 12px auto;
    padding-left: 0;
    padding-right: 0;
  }

  .bad-card {
    width: 100%;
    padding: 14px;
    border-radius: 18px;
  }

  .bad-panels {
    padding: 12px;
    border-radius: 16px;
  }

  .bad-calendar-top {
    gap: 6px;
    margin-bottom: 12px;
  }

  .bad-calendar-top strong {
    font-size: 17px;
    line-height: 1.2;
  }

  .bad-calendar-weekdays,
  .bad-calendar {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    column-gap: 3px;
    row-gap: 5px;
  }

  .bad-calendar-weekdays span {
    font-size: 10px;
    line-height: 1.1;
  }

  .bad-day-placeholder,
  .bad-day {
    height: auto;
    min-height: 34px;
    aspect-ratio: 1 / 1;
  }

  .bad-day {
    padding: 0;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1;
    overflow: hidden;
  }

  .bad-selected-date,
  .bad-selected-time,
  .bad-panel-title {
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .bad-grid,
  .bad-form .bad-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bad-form > label,
  .bad-form .bad-grid {
    margin-bottom: 14px;
  }

  .bad-booking-widget label {
    font-size: 13px;
  }

  .bad-booking-widget input,
  .bad-booking-widget textarea,
  .bad-booking-widget select {
    min-height: 46px;
    font-size: 16px;
    padding: 12px 13px;
  }
}

@media (max-width: 430px) {
  .bad-booking-widget {
    padding-left: 0;
    padding-right: 0;
  }

  .bad-card {
    padding: 10px;
  }

  .bad-panels {
    padding: 10px;
  }

  .bad-calendar-weekdays,
  .bad-calendar {
    column-gap: 2px;
    row-gap: 4px;
  }

  .bad-day-placeholder,
  .bad-day {
    min-height: 30px;
  }

  .bad-day {
    border-radius: 7px;
    font-size: 11px;
  }

  .bad-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .bad-slot {
    padding: 10px 8px;
    border-radius: 12px;
  }

  .bad-slot strong {
    font-size: 13px;
  }

  .bad-slot small {
    font-size: 11px;
    margin-top: 4px;
  }

  .bad-actions {
    gap: 9px;
  }
}

@media (max-width: 340px) {
  .bad-calendar-weekdays span {
    font-size: 9px;
  }

  .bad-day-placeholder,
  .bad-day {
    min-height: 27px;
  }

  .bad-day {
    font-size: 10px;
    border-radius: 6px;
  }

  .bad-slots {
    gap: 6px;
  }

  .bad-slot {
    padding: 9px 6px;
  }

  .bad-slot strong {
    font-size: 12px;
  }
}

/* Grey Pixel Agency final mobile layout repair - prevents theme button min-widths from breaking the calendar */
.bad-booking-widget[data-bad-widget="1"],
.bad-booking-widget[data-bad-widget="1"] *,
.bad-booking-widget[data-bad-widget="1"] *::before,
.bad-booking-widget[data-bad-widget="1"] *::after {
  box-sizing: border-box !important;
}

.bad-booking-widget[data-bad-widget="1"] .bad-card,
.bad-booking-widget[data-bad-widget="1"] .bad-panels,
.bad-booking-widget[data-bad-widget="1"] .bad-panel,
.bad-booking-widget[data-bad-widget="1"] .bad-calendar-top,
.bad-booking-widget[data-bad-widget="1"] .bad-calendar-weekdays,
.bad-booking-widget[data-bad-widget="1"] .bad-calendar,
.bad-booking-widget[data-bad-widget="1"] .bad-day-placeholder,
.bad-booking-widget[data-bad-widget="1"] .bad-agents,
.bad-booking-widget[data-bad-widget="1"] .bad-agent-select-wrap,
.bad-booking-widget[data-bad-widget="1"] .bad-form,
.bad-booking-widget[data-bad-widget="1"] .bad-summary {
  min-width: 0 !important;
  max-width: 100% !important;
}

.bad-booking-widget[data-bad-widget="1"] .bad-panel,
.bad-booking-widget[data-bad-widget="1"] .bad-agents,
.bad-booking-widget[data-bad-widget="1"] .bad-agent-select-wrap,
.bad-booking-widget[data-bad-widget="1"] .bad-form {
  width: 100% !important;
}

.bad-booking-widget[data-bad-widget="1"] .bad-calendar,
.bad-booking-widget[data-bad-widget="1"] .bad-calendar-weekdays {
  overflow: hidden !important;
}

.bad-booking-widget[data-bad-widget="1"] .bad-day-placeholder {
  display: flex !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  aspect-ratio: 1 / 1 !important;
}

.bad-booking-widget[data-bad-widget="1"] button.bad-day {
  appearance: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.bad-booking-widget[data-bad-widget="1"] .bad-agent-select-wrap select,
.bad-booking-widget[data-bad-widget="1"] .bad-form input,
.bad-booking-widget[data-bad-widget="1"] .bad-form textarea,
.bad-booking-widget[data-bad-widget="1"] .bad-form select {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 767px) {
  .bad-booking-widget[data-bad-widget="1"] {
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    margin-left: calc(-50vw + 10px) !important;
    margin-right: calc(-50vw + 10px) !important;
    margin-top: 12px !important;
    margin-bottom: 12px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-card {
    width: 100% !important;
    border-radius: 18px !important;
    padding: 12px !important;
    overflow: hidden !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-panels {
    width: 100% !important;
    border-radius: 16px !important;
    padding: 10px !important;
    overflow: hidden !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 18px 0 !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-step {
    min-width: 0 !important;
    padding: 11px 8px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-calendar-top {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-calendar-top strong {
    min-width: 0 !important;
    text-align: center !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-icon-btn {
    width: 44px !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 14px !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-calendar-weekdays,
  .bad-booking-widget[data-bad-widget="1"] .bad-calendar {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-calendar-weekdays {
    margin-bottom: 8px !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-calendar-weekdays span {
    min-width: 0 !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    text-align: center !important;
  }

  .bad-booking-widget[data-bad-widget="1"] button.bad-day {
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-slot {
    min-width: 0 !important;
    padding: 10px 7px !important;
    border-radius: 12px !important;
    text-align: center !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-slot strong {
    font-size: 12.5px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-slot small {
    font-size: 11px !important;
    line-height: 1.2 !important;
    margin-top: 4px !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-selected-date,
  .bad-booking-widget[data-bad-widget="1"] .bad-selected-time,
  .bad-booking-widget[data-bad-widget="1"] .bad-panel-title {
    font-size: 20px !important;
    line-height: 1.22 !important;
    margin-bottom: 12px !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-agent-select-wrap {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-agent-select-wrap select {
    min-height: 52px !important;
    padding: 12px 42px 12px 14px !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-grid,
  .bad-booking-widget[data-bad-widget="1"] .bad-form .bad-grid,
  .bad-booking-widget[data-bad-widget="1"] .bad-summary {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-form > label,
  .bad-booking-widget[data-bad-widget="1"] .bad-form .bad-grid {
    margin-bottom: 12px !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-form input,
  .bad-booking-widget[data-bad-widget="1"] .bad-form textarea,
  .bad-booking-widget[data-bad-widget="1"] .bad-form select {
    min-height: 48px !important;
    padding: 12px 13px !important;
    font-size: 16px !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-actions {
    flex-direction: column-reverse !important;
    gap: 9px !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-actions button,
  .bad-booking-widget[data-bad-widget="1"] .bad-primary,
  .bad-booking-widget[data-bad-widget="1"] .bad-secondary {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 430px) {
  .bad-booking-widget[data-bad-widget="1"] {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    margin-left: calc(-50vw + 6px) !important;
    margin-right: calc(-50vw + 6px) !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-card {
    padding: 10px !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-panels {
    padding: 8px !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-calendar-weekdays,
  .bad-booking-widget[data-bad-widget="1"] .bad-calendar {
    gap: 5px !important;
  }

  .bad-booking-widget[data-bad-widget="1"] button.bad-day {
    border-radius: 8px !important;
    font-size: 12px !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-selected-date,
  .bad-booking-widget[data-bad-widget="1"] .bad-selected-time,
  .bad-booking-widget[data-bad-widget="1"] .bad-panel-title {
    font-size: 19px !important;
  }
}

@media (max-width: 360px) {
  .bad-booking-widget[data-bad-widget="1"] .bad-calendar-weekdays,
  .bad-booking-widget[data-bad-widget="1"] .bad-calendar {
    gap: 4px !important;
  }

  .bad-booking-widget[data-bad-widget="1"] .bad-calendar-weekdays span {
    font-size: 10px !important;
  }

  .bad-booking-widget[data-bad-widget="1"] button.bad-day {
    border-radius: 7px !important;
    font-size: 11px !important;
  }
}

/* Grey Pixel Agency timezone conversion refinements - v2.5 */
.bad-timezone-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 14px 0 18px;
  padding: 10px 14px;
  border: 1px solid var(--bad-border);
  border-radius: 999px;
  background: #f8fbff;
  color: var(--bad-muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}

.bad-timezone-note strong {
  color: var(--bad-text);
  font-weight: 900;
}

.bad-timezone-note span {
  color: var(--bad-muted);
}

.bad-selected-date small,
.bad-selected-time small {
  display: block;
  margin-top: 5px;
  color: var(--bad-muted);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;
}

.bad-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

@media (max-width: 640px) {
  .bad-timezone-note {
    align-items: flex-start;
    border-radius: 16px;
    font-size: 12px;
    text-align: left;
    justify-content: flex-start;
  }

  .bad-timezone-note strong,
  .bad-timezone-note span {
    width: 100%;
  }

  .bad-summary {
    grid-template-columns: 1fr !important;
  }
}

/* Grey Pixel Agency timezone responsive refinements - v2.5 */
.bad-timezone-note {
  border-radius: 22px !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  text-align: left !important;
}

.bad-timezone-select-wrap {
  display: grid !important;
  grid-template-columns: auto minmax(220px, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
}

.bad-timezone-select-wrap span {
  color: var(--bad-text) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.bad-timezone-select-wrap select {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 42px !important;
  padding: 8px 38px 8px 14px !important;
  border: 1px solid var(--bad-border) !important;
  border-radius: 14px !important;
  background-color: #fff !important;
  color: var(--bad-text) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

.bad-timezone-note small {
  display: block !important;
  width: 100% !important;
  color: var(--bad-muted) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

.bad-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 640px) {
  .bad-timezone-note {
    border-radius: 16px !important;
    padding: 10px !important;
  }

  .bad-timezone-select-wrap {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .bad-timezone-select-wrap select {
    min-height: 46px !important;
    font-size: 13px !important;
  }
}

/* Grey Pixel Agency auto timezone update - v2.5 */
.bad-booking-widget[data-bad-widget="1"] .bad-timezone-note,
.bad-booking-widget[data-bad-widget="1"] .bad-timezone-select-wrap {
  display: none !important;
}
