.creavibc-booking-wrapper span, 
.creavibc-booking-wrapper p,
.creavibc-booking-wrapper label
{
  font-size: 1rem;
}

.creavibc-summary span{
  font-size: 0.89rem;
}

.creavibc-booking-wrapper strong{
  font-weight: bold;
}

.creavibc-form-heading{
  margin-bottom: 20px;
}

/* === Overlay === */
.creavibc-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 16px;
}

/* === Popup Box === */
.creavibc-popup {
  box-sizing: border-box;
  background: #fff;
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  height: auto;
  min-height: min(560px, calc(100vh - 32px));
  min-height: min(560px, calc(100dvh - 32px));
  max-height: min(760px, calc(100vh - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: opacity 0.3s ease, box-shadow 0.2s ease;
}

/* booking.js measures both steps before first paint, then fixes the outer
 * surface so availability responses and step navigation cannot move it. */
.creavibc-popup.creavibc-height-locked {
  height: var(--creavibc-stable-height) !important;
  min-height: var(--creavibc-stable-height) !important;
  max-height: var(--creavibc-stable-height) !important;
}

/* Keep the summary and controls aligned while a new date loads or has no times. */
.creavibc-popup.creavibc-height-locked .creavibc-popup-footer {
  box-sizing: border-box;
  min-height: var(--creavibc-stable-footer-height, 0px);
}

.creavibc-popup.creavibc-height-locked .creavibc-summary {
  min-height: var(--creavibc-stable-summary-height, 0px);
}

.creavibc-popup.creavibc-is-measuring {
  visibility: hidden !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  transition: none !important;
}

.creavibc-popup.creavibc-is-measuring .creavibc-popup-content {
  flex: 0 0 auto !important;
  overflow: visible !important;
}

.creavibc-popup-content {
  padding: 24px 30px 12px;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  gap: 30px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  overflow-y: auto;
}

.creavibc-booking-wrapper :is(.creavibc-popup-content, .creavibc-left, .creavibc-right, .creavibc-time-slots) {
  scrollbar-width: thin;
  scrollbar-color: var(--creavibc-scroll-thumb, #8b93a34d) transparent;
}

/* Use a two-pixel track and thumb where pixel-sized scrollbars are supported. */
@supports selector(::-webkit-scrollbar) {
  .creavibc-booking-wrapper :is(.creavibc-popup-content, .creavibc-left, .creavibc-right, .creavibc-time-slots) {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
}

.creavibc-booking-wrapper :is(.creavibc-popup-content, .creavibc-left, .creavibc-right, .creavibc-time-slots)::-webkit-scrollbar {
  width: 2px;
  height: 2px;
}

.creavibc-booking-wrapper :is(.creavibc-popup-content, .creavibc-left, .creavibc-right, .creavibc-time-slots)::-webkit-scrollbar-track {
  background: transparent;
}

.creavibc-booking-wrapper :is(.creavibc-popup-content, .creavibc-left, .creavibc-right, .creavibc-time-slots)::-webkit-scrollbar-thumb {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background-color: var(--creavibc-scroll-thumb, #8b93a34d);
  background-clip: padding-box;
}

.creavibc-booking-wrapper :is(.creavibc-popup-content, .creavibc-left, .creavibc-right, .creavibc-time-slots):is(:hover, :focus-within) {
  --creavibc-scroll-thumb: #8b93a38c;
}

/* Reserve the gutter to avoid movement; reveal it on the individual column.
 * Touch devices keep the subtle scrollbar without requiring hover. */
@media (hover: hover) and (pointer: fine) {
  .creavibc-booking-wrapper :is(.creavibc-popup-content, .creavibc-left, .creavibc-right, .creavibc-time-slots):not(:hover):not(:focus-within) {
    --creavibc-scroll-thumb: transparent;
  }
}

.creavibc-booking-wrapper :is(.creavibc-left, .creavibc-right, .creavibc-time-slots):focus-visible {
  outline: 2px solid var(--creavibc-primary, #5652f5);
  outline-offset: -2px;
}

body.creavibc-popup-open {
  overflow: hidden;
  width: 100%;
}

/* === Close Button === */
/*
.creavibc-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 24px !important;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  z-index: 2;
}*/

.creavibc-close {
    position: absolute;
    top: 18px;
    right: 20px;

    width: 32px;
    height: 32px;
    line-height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px !important;
    font-weight: 100; /* thin */
    color: #888;

    border-radius: 50%;
    cursor: pointer;

    transition: 
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

/* Hover effect */
.creavibc-close:hover {
    color: #111;    
    transform: rotate(90deg);
}

/* Optional: subtle active press */
.creavibc-close:active {
    transform: rotate(90deg) scale(0.95);
}


.creavibc-inline-wrapper .creavibc-close-final{
  display: none;
}


/* === Layout Columns === */
.creavibc-two-columns {
  display: flex;
  gap: 40px;  
}

.creavibc-left {
  flex: 1 1 45%;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}

.creavibc-left img {  
  height: auto;
  border-radius: 8px;
  margin: 0px auto 20px auto;
  max-width: 100%;
}

.creavibc-left h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #111;
}

.creavibc-right {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.creavibc-step {
  display: none;
  width: 100%;
}

.creavibc-step-1 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* === Calendar === */
#creavibc-datepicker-inline {
  width: 100%;
  border: none;
}

.flatpickr-calendar {
  font-family: inherit;
  background: #fff !important;
  border: none;
  box-shadow: none;
}

.creavibc-popup .flatpickr-months {
  justify-content: space-between;
  padding: 0px;
  background: #fff !important;
}

.creavibc-popup .flatpickr-month {  
  align-items: center;
  justify-content: center; 
  background: transparent !important;  
}

.creavibc-popup .flatpickr-current-month {  
  align-items: center;
  pointer-events: none;  
  font-size: 100%;
  padding: 0;
}

.creavibc-popup span.cur-month{
  font-weight: normal;
}

.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after {
  display: none !important;
}

.creavibc-popup select.flatpickr-monthDropdown-months {
  -webkit-appearance: menulist !important;
  -moz-appearance: menulist !important;
  appearance: menulist !important;
  background-image: url("data:image/svg+xml,%3Csvg fill='%23000' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 12px;
  padding-right: 20px;
}


.creavibc-popup .flatpickr-weekday {
  font-weight: 600;
  color: #333;
}

.creavibc-popup .flatpickr-day {  
  font-size: 14px;
  font-weight: 400;
}

.creavibc-popup .flatpickr-day.selected,
.creavibc-popup .flatpickr-day.startRange,
.creavibc-popup .flatpickr-day.endRange {
  background: var(--creavibc-primary) !important;
  border-color: var(--creavibc-primary) !important;
  color: #fff !important;
}

.creavibc-popup .flatpickr-day.today {
  border: 1px solid var(--creavibc-primary);
}


/* === Inline layout === */

.creavibc-inline-wrapper.creavibc-booking-wrapper{
  width: 100%;
  max-width: 900px;
}

.creavibc-inline-wrapper .creavibc-popup{
  height: fit-content;
  min-height: 0;
  max-height: none;
  box-shadow:0 10px 15px rgba(0, 0, 0, 0.051)
}

.creavibc-inline-wrapper .creavibc-popup-content {
  min-height: 0;
  overflow-y: visible;
  scrollbar-gutter: auto;
}

.creavibc-inline-wrapper .creavibc-popup.creavibc-height-locked .creavibc-popup-content {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

/* Keep the booking controls in view when a two-column service has long copy.
 * On narrow screens the stacked columns retain one natural scroll area. */
@media (min-width: 769px) {
  .creavibc-booking-wrapper:not(.creavibc-layout-single) .creavibc-popup.creavibc-height-locked .creavibc-popup-content.creavibc-two-columns {
    overflow-y: hidden;
    scrollbar-gutter: auto;
  }

  .creavibc-booking-wrapper:not(.creavibc-layout-single) .creavibc-popup.creavibc-height-locked :is(.creavibc-left, .creavibc-right) {
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    padding-inline-end: 10px;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
}

.creavibc-inline-wrapper  .creavibc-popup-footer{
   box-shadow: 0 -2px 4px rgba(210, 210, 210, 0.175);
}

/* === Time Slots === */

.creavibc-calendar-wrap,
.creavibc-time-wrap {
  width: 100%;
  margin-bottom: 0px;  
}

.creavibc-time-wrap{
  margin-top: 20px;
}

.creavibc-time-slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: max-content;
  gap: 8px;
  align-content: start;
  align-items: start;
  width: 100%;
  padding-top: 6px;
}

.creavibc-time-slots.is-loading,
.creavibc-time-slots.is-loading.fade-out {
  opacity: 1;
  min-height: 34px;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.creavibc-time-slots > .creavibc-slots-message {
  box-sizing: border-box;
  display: flex;
  flex: 1 0 100%;
  grid-column: 1 / -1;
  align-self: center;
  justify-self: stretch;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 68px;
  margin: 0;
  padding: 14px 12px;
  color: #5f6672;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
}

.creavibc-theme-black .creavibc-time-slots > .creavibc-slots-message {
  color: rgba(255, 255, 255, 0.76);
}

.creavibc-slots-loader {
  width: min(150px, 62%);
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  padding: 9px 4px;
}

.creavibc-slots-line {
  display: block;
  width: 100%;
  height: 1px;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  background: color-mix(in srgb, var(--creavibc-primary) 18%, transparent);
}

.creavibc-slots-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 42%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      transparent,
      color-mix(in srgb, var(--creavibc-primary) 85%, transparent),
      transparent
    );
  animation: creavibcSlotsLine 1.05s ease-in-out infinite;
}

@keyframes creavibcSlotsLine {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  20%,
  80% {
    opacity: 1;
  }
  100% {
    transform: translateX(260%);
    opacity: 0;
  }
}

button.creavibc-slot-btn {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-width: 0;
  height: 34px;
  min-height: 34px !important;
  max-height: 34px;
  margin: 0;
  padding: 0 7px;
  background: #fff;
  border: 1px solid var(--creavibc-primary);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  color: #2F2F2F;
  flex: none;
}

/*
 * Slot geometry guard.
 *
 * The calendar and time section share a larger 400px measure. Five slot
 * columns fit at full width; narrower embeds use fewer columns so 12-hour
 * labels retain clear space on both sides. The deliberately scoped !important
 * declarations protect the button geometry from theme and third-party button
 * rules without preventing Creavi's own colour/theme states below from working.
 */
.creavibc-booking-wrapper .creavibc-popup .creavibc-right .creavibc-calendar-wrap,
.creavibc-booking-wrapper .creavibc-popup .creavibc-right .creavibc-time-wrap {
  width: 400px !important;
  max-width: 100% !important;
}

.creavibc-booking-wrapper .creavibc-popup .creavibc-right .creavibc-calendar-wrap .flatpickr-calendar.inline,
.creavibc-booking-wrapper .creavibc-popup .creavibc-right .creavibc-calendar-wrap .flatpickr-innerContainer,
.creavibc-booking-wrapper .creavibc-popup .creavibc-right .creavibc-calendar-wrap .flatpickr-rContainer,
.creavibc-booking-wrapper .creavibc-popup .creavibc-right .creavibc-calendar-wrap .flatpickr-days,
.creavibc-booking-wrapper .creavibc-popup .creavibc-right .creavibc-calendar-wrap .dayContainer {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

.creavibc-booking-wrapper .creavibc-popup .creavibc-right .creavibc-calendar-wrap .flatpickr-day {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
  box-sizing: border-box !important;
  width: var(--creavibc-day-size, 39px) !important;
  min-width: var(--creavibc-day-size, 39px) !important;
  max-width: var(--creavibc-day-size, 39px) !important;
  height: var(--creavibc-day-size, 39px) !important;
  min-height: var(--creavibc-day-size, 39px) !important;
  max-height: var(--creavibc-day-size, 39px) !important;
  margin: 0 !important;
  line-height: var(--creavibc-day-size, 39px) !important;
  aspect-ratio: auto !important;
  font-size: 13px !important;
}

.creavibc-booking-wrapper .creavibc-popup .creavibc-right .creavibc-calendar-wrap .dayContainer {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  grid-auto-rows: var(--creavibc-day-size, 39px) !important;
  column-gap: 0 !important;
  row-gap: var(--creavibc-day-gap, 4px) !important;
  align-items: center !important;
  justify-items: center !important;
}

/* The calendar keeps all six rows, so every month has the same measure. */
.creavibc-booking-wrapper .creavibc-popup .creavibc-right .creavibc-time-wrap .creavibc-time-slots {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)) !important;
  grid-auto-rows: max-content !important;
  gap: 8px !important;
  align-content: start !important;
  align-items: start !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  height: var(--creavibc-reserved-slots-height, 40px) !important;
  min-height: var(--creavibc-reserved-slots-height, 40px) !important;
  max-height: var(--creavibc-reserved-slots-height, 40px) !important;
  overflow: visible;
  scrollbar-gutter: auto;
  margin: 0 !important;
  padding: 6px 0 0 !important;
}

.creavibc-booking-wrapper .creavibc-popup .creavibc-right .creavibc-time-wrap .creavibc-time-slots:is(.has-message, .is-expanded) {
  height: auto !important;
  max-height: none !important;
}

.creavibc-booking-wrapper .creavibc-popup .creavibc-right .creavibc-time-wrap .creavibc-time-slots > button.creavibc-slot-btn.creavibc-slot-folded {
  display: none !important;
}

.creavibc-booking-wrapper .creavibc-time-slots.creavibc-slots-foldable > .creavibc-slots-message {
  min-height: 34px;
  padding: 4px 8px;
  font-size: 13px;
}

.creavibc-booking-wrapper .creavibc-popup button.creavibc-slots-expand {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 32px;
  min-width: 0;
  max-width: 32px;
  height: 20px;
  min-height: 20px;
  max-height: 20px;
  margin: 2px auto 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: var(--creavibc-primary, #5652f5);
  line-height: 1;
  cursor: pointer;
  visibility: hidden;
}

.creavibc-booking-wrapper .creavibc-popup button.creavibc-slots-expand.is-visible {
  visibility: visible;
}

.creavibc-booking-wrapper .creavibc-popup button.creavibc-slots-expand[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.creavibc-booking-wrapper .creavibc-popup button.creavibc-slots-expand:hover {
  background: color-mix(in srgb, var(--creavibc-primary, #5652f5) 5%, transparent);
}

.creavibc-booking-wrapper .creavibc-popup button.creavibc-slots-expand:focus-visible {
  outline: 2px solid var(--creavibc-primary, #5652f5);
  outline-offset: -2px;
}

.creavibc-booking-wrapper .creavibc-popup .creavibc-right .creavibc-time-wrap .creavibc-time-slots.is-loading {
  align-content: center !important;
  align-items: center !important;
}

.creavibc-booking-wrapper .creavibc-popup .creavibc-right .creavibc-time-wrap .creavibc-time-slots > .creavibc-slots-loader,
.wsb-bp-booking .creavibc-time-slots > .creavibc-slots-loader {
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.creavibc-booking-wrapper .creavibc-popup .creavibc-right .creavibc-time-wrap .creavibc-time-slots > button.creavibc-slot-btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
  padding: 0 7px !important;
  gap: 3px !important;
  flex: none !important;
  aspect-ratio: auto !important;
  font-size: 14px !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  /* Fade in place so the reserved row never clips or creates false overflow. */
  transform: none !important;
}

.creavibc-slot-btn .creavibc-slot-time,
.creavibc-slot-btn .creavibc-slot-period {
  display: inline-block !important;
  flex: none !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.creavibc-slot-btn .creavibc-slot-period {
  margin-left: 0 !important;
  font-size: 0.68em !important;
  font-weight: inherit !important;
}

.creavibc-booking-wrapper .creavibc-slot-btn .creavibc-slot-time {
  font-size: 0.9em !important;
}

.creavibc-slot-btn.selected,
.creavibc-slot-btn:hover {
  background-color: var(--creavibc-primary);
  color: #fff;
  border-color: var(--creavibc-primary);
}

.creavibc-slot-btn {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.creavibc-slot-btn.show {
  opacity: 1;
  transform: translateY(0);
}


.creavibc-slot-disabled {
    background-color: #eee;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}



.creavibc-time-header{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
  justify-content: space-between;
  position: relative;
}

.creavibc-timezone-icon-wrapper {
  
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}


.creavibc-timezone-icon {
  cursor: help;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  transform-origin: center;
}

.creavibc-timezone-icon:hover {
  transform: rotateY(180deg);
}


.creavibc-tooltip {
  visibility: hidden;
  opacity: 0;
  background-color: #fff;
  border: 1px solid var(--creavibc-primary);
  color: #000;
  text-align: center;
  border-radius: 4px;
  width: 100%;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* above the icon */
  left: 50%;
  transform: translateX(-50%); 
  font-size: 14px;
  line-height: 1.4;
  transition: opacity 0.3s;
}

.creavibc-timezone-notice{
  display: block;
  padding: 8px 10px;

}

.creavibc-timezone-icon-wrapper:hover .creavibc-tooltip {
  visibility: visible;
  opacity: 1;
}


/* === Buttons === */
.creavibc-next,
.creavibc-back,
.creavibc-popup-footer button {
  background-color: var(--creavibc-primary);
  color: #fff;
  border: 1px solid var(--creavibc-primary);
  font-weight: 400;
  padding: 11px 32px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 25px;
  text-transform: unset;
}

.creavibc-next:hover,
.creavibc-back:hover,
.creavibc-popup-footer button:hover {
  background-color: transparent;
  color: var(--creavibc-primary);
  border: 1px solid var(--creavibc-primary);  
}

.creavibc-next:hover,
.creavibc-back:hover {
  opacity: 0.9;
}

.creavibc-popup button:disabled{
  cursor: not-allowed;
  opacity: 0.3;
}

/* === Footer === */
.creavibc-popup-footer {
  margin-top: auto;
  flex: 0 0 auto;
  background: #fff;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -2px 4px rgba(210, 210, 210, 0.25);
}


.creavibc-popup-footer .creavibc-summary {
  font-weight: 500;
  color: #444;
}

.creavibc-summary span{
  vertical-align: middle;
}

.creavibc-summary .dashicons{
  vertical-align: text-bottom;
}

.creavibc-step-2 .dashicons {
    font-size: 16px;
    vertical-align: middle;
    color: #555;
}


.creavibc-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
    background: #fff;
    box-shadow: 0 -2px 4px rgba(210, 210, 210, 0.25);
}

.creavibc-summary {
    font-size: 14px;
    color: #444;
}

.creavibc-summary {
    left:0;
    margin-left: 10px;    
    font-size: 14px;
    color: #444;
    white-space: nowrap;
}

.creavibc-footer-buttons {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.creavibc-popup-footer .button,
.creavibc-popup-footer .button-primary {
    min-width: 100px;
    text-align: center;
}


/* === Form Step === */
.creavibc-step-2 label {
  display: block;
  margin-bottom: 10px;
}

.creavibc-step-2 input[type="date"],
.creavibc-step-2 input[type="email"],
.creavibc-step-2 input[type="number"],
.creavibc-step-2 input[type="password"],
.creavibc-step-2 input[type="search"],
.creavibc-step-2 input[type="tel"],
.creavibc-step-2 input[type="text"],
.creavibc-step-2 input[type="url"],
.creavibc-step-2 select,
.creavibc-step-2 textarea,
.creavibc-step-2 .woocommerce .quantity input.qty,
.creavibc-step-2 .wp-block-search input[type="search"],
.creavibc-step-2 .dark input[type="email"],
.creavibc-step-2 .dark input[type="password"],
.creavibc-step-2 .dark input[type="tel"],
.creavibc-step-2 .dark input[type="text"],
.creavibc-step-2 .dark select,
.creavibc-step-2 .dark textarea {
  width: 96%;
  padding: 8px;
  font-size: 16px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  background-color: #fff;
  color: #000;
}

.creavibc-step-2 input[type="date"]:focus,
.creavibc-step-2 input[type="email"]:focus,
.creavibc-step-2 input[type="number"]:focus,
.creavibc-step-2 input[type="password"]:focus,
.creavibc-step-2 input[type="search"]:focus,
.creavibc-step-2 input[type="tel"]:focus,
.creavibc-step-2 input[type="text"]:focus,
.creavibc-step-2 input[type="url"]:focus,
.creavibc-step-2 select:focus,
.creavibc-step-2 textarea:focus {
  outline: none;
  color: #000;
  background: #fff;
  background-color: #fff;
  border-color: var(--creavibc-primary);
 }

.creavibc-required {
    color: var(--creavibc-primary, #5652f5);
    margin-left: 2px;
}

.creavibc-field-error {
    --creavibc-error-accent: var(--creavibc-primary, #5652f5);
    border-color: var(--creavibc-error-accent) !important;
    background-color: color-mix(in srgb, var(--creavibc-error-accent) 4%, #fff) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--creavibc-error-accent) 12%, transparent) !important;
}

.creavibc-error-msg {
    --creavibc-error-accent: var(--creavibc-primary, var(--bp-accent, #5652f5));
    position: relative;
    z-index: 3;
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center;
    width: fit-content;
    max-width: calc(100% - 10px);
    margin: 7px 0 5px 10px;
    padding: 7px 11px 7px 30px;
    border: 1px solid color-mix(in srgb, var(--creavibc-error-accent) 26%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--creavibc-error-accent) 7%, #fff);
    color: color-mix(in srgb, var(--creavibc-error-accent) 62%, #171722) !important;
    box-shadow:
      0 8px 22px color-mix(in srgb, var(--creavibc-error-accent) 10%, transparent),
      0 2px 5px rgba(20, 20, 34, 0.05);
    font-family: inherit;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    pointer-events: none;
    animation: creavibcErrorTooltipIn 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.creavibc-error-msg::before {
    content: "!";
    position: absolute;
    left: 10px;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--creavibc-error-accent);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.creavibc-error-msg::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 16px;
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
    border-top: 1px solid color-mix(in srgb, var(--creavibc-error-accent) 26%, transparent);
    border-left: 1px solid color-mix(in srgb, var(--creavibc-error-accent) 26%, transparent);
    background: color-mix(in srgb, var(--creavibc-error-accent) 7%, #fff);
}

@keyframes creavibcErrorTooltipIn {
    from { opacity: 0; transform: translateY(-4px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.creavibc-step-2 .creavibc-consent-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 12px 0 10px;
  line-height: 1.45;
}

.creavibc-step-2 .creavibc-consent-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0;
  accent-color: var(--creavibc-primary);
}

.creavibc-step-2 .creavibc-consent-field span {
  font-size: 14px;
}

.creavibc-step-2 .creavibc-consent-field a {
  color: var(--creavibc-primary);
  font-weight: 600;
  text-decoration: underline;
}

.creavibc-step-2 .creavibc-consent-field + .creavibc-error-msg {
  margin-top: 7px;
  margin-bottom: 10px;
}


/* === Number Input Cleanup === */

.creavibc-popup input.cur-year::-webkit-inner-spin-button,
.creavibc-popup input.cur-year::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.creavibc-popup input.cur-year {
  -moz-appearance: textfield;
}

.creavibc-popup .creavibc-popup-footer .dashicons-calendar-alt::before, 
.creavibc-popup .creavibc-popup-footer .dashicons-clock::before{
  line-height: 27px;
}

.creavibc-summary-item i {
    display: inline-block;
}
.date-hidden i,
.time-hidden i {
    display: none;
}


/* === Navigation Arrows === */
.creavibc-popup .flatpickr-prev-month,
.creavibc-popup .flatpickr-next-month {
  color: #000;
  font-size: 20px;
  padding: 0 10px;
  cursor: pointer;
}

/* === Responsive === */

@media (max-width: 768px) {

    .creavibc-popup-overlay {
      padding: 10px;
    }

    .creavibc-left,
    .creavibc-right {
        flex: 1 1 100%;
    }

    .creavibc-right{
      width: 100%;
    }

    .creavibc-popup-content.creavibc-two-columns {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;      
        gap: 20px; 
    }

    .creavibc-popup-content .creavibc-left img{
        display: none;
    }
    .creavibc-left,
    .creavibc-right {
      flex: unset;
      width: 100%;
    }

    .creavibc-summary {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      margin-bottom: 15px;
      width: 100%;
      position: relative;
      left: 0;
    }

    .creavibc-footer-buttons {
      display: flex;
      justify-content: center;
      gap: 10px;
      width: 100%;
      flex-wrap: wrap;
    }

    .creavibc-footer-buttons button {
      flex: 1 1 auto; /* allows buttons to wrap nicely */
      min-width: 120px;
    }
    .creavibc-popup .creavibc-popup-footer .dashicons-calendar-alt::before, .creavibc-popup .creavibc-popup-footer .dashicons-clock::before{
      line-height: 14px;
    }

    .creavibc-popup{
      height: auto;
      min-height: min(500px, calc(100vh - 20px));
      min-height: min(500px, calc(100dvh - 20px));
      max-height: calc(100vh - 20px);
      max-height: calc(100dvh - 20px);
    }
}

/* Loading state for submit button */
.creavibc-next.is-loading {
    position: relative;
    opacity: 0.85;
    pointer-events: none;
}

/* spinner inside button */
.creavibc-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    vertical-align: -2px;
    animation: creavibcSpin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes creavibcSpin {
    to { transform: rotate(360deg); }
}

.creavibc-thankyou {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 28px;
    gap: 14px;
}

.creavibc-thankyou-title {
    color: var(--creavibc-primary);
    font-size: 22px;
    line-height: 1.25;
    margin: 0;
}

.creavibc-thankyou-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    color: #666;
    font-size: 15px;
}

.creavibc-thankyou-meta-row {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.creavibc-thankyou-meeting {
    width: 100%;
    max-width: 520px;
    margin-top: 8px;
}

.creavibc-meeting-box {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 14px 14px;
    background: rgba(255,255,255,0.7);
    text-align: left;
}

.creavibc-meeting-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.creavibc-meeting-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 6px 0;
}

.creavibc-meeting-text {
    flex: 1;
    color: #333;
    line-height: 1.35;
}

.creavibc-meeting-link {
    text-decoration: none;
    font-weight: 600;
}
.creavibc-meeting-link:hover {
    text-decoration: underline;
}

.creavibc-thankyou-wrap{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  margin-top:32px;
}

.creavibc-thankyou-title{
  color:var(--creavibc-primary);
  font-size:34px;
  line-height:1.1;
  margin:0 0 18px;
  font-weight:800;
}

.creavibc-thankyou-meeting-title{
  font-weight:700;
  font-size:18px;
  margin-top:6px;
}

.creavibc-thankyou-meeting-subtitle{
  margin-top:6px;
  color:#8a8a8a;
  font-size:14px;
}

.creavibc-linkpill{
  margin-top:14px;
  display:flex;
  align-items:center;
  gap:10px;
  width:min(520px, 92%);
  padding:7px 12px;
  border-radius:12px;
  border: 0 !important;
  background:#fff;  
  box-shadow:0 8px 22px rgba(0,0,0,.08);
}

.creavibc-linkpill-icon{
  opacity:.8;
  font-size:18px;
  width:18px;
  height:18px;
}

.creavibc-linkpill-text{
  flex:1;
  min-width:0;
  text-align:left;
  color: var(--creavibc-primary);
  text-decoration:none;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.creavibc-linkpill-text:hover{
  text-decoration:underline;
}

.creavibc-copy-btn{
  border:0;
  background:transparent;
  cursor:pointer;
  padding:6px;
  border-radius:8px;
  opacity:.75;
}

.creavibc-copy-btn:hover{
  background:rgba(0,0,0,.06);
  opacity:1;
}

.creavibc-copy-btn.is-copied{
  background:rgba(0,0,0,.09);
}

.creavibc-thankyou-meta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#666;
  font-size:16px;
  margin-top:18px;
}

.creavibc-meta-sep{ width:10px; }

.creavibc-copy-btn{
  border:0;
  background:transparent;
  padding:8px;
  border-radius:10px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#7a7a7a;
  transition:background .15s ease, color .15s ease, transform .08s ease;
}

.creavibc-copy-btn:hover{ background:rgba(0,0,0,.04); color:#2b2b2b; }
.creavibc-copy-btn:active{ transform:scale(.96); }

.creavibc-copy-ico{
  position:relative;
  width:18px;
  height:18px;
  display:inline-block;
}

.creavibc-copy-ico svg{
  position:absolute;
  inset:0;
  width:18px;
  height:18px;
  transition:opacity .15s ease, transform .15s ease;
}

.creavibc-ico-check{ opacity:0; transform:scale(.9); }
.creavibc-ico-copy{ opacity:1; }

/* === Black booking theme === */
.creavibc-booking-wrapper.creavibc-theme-black,
.creavibc-popup.creavibc-theme-black {
  --creavibc-theme-bg: #000000;
  --creavibc-theme-text: #fff;
  --creavibc-theme-muted: rgba(255, 255, 255, .72);
  --creavibc-theme-line: rgba(255, 255, 255, .28);
  color: var(--creavibc-theme-text) !important;
}

.creavibc-popup.creavibc-theme-black {
  background: var(--creavibc-theme-bg) !important;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .48);
}

.creavibc-popup.creavibc-theme-black.creavibc-theme-line-frame,
.creavibc-theme-black.creavibc-theme-line-frame .creavibc-popup {
  border: 1px solid var(--creavibc-theme-line) !important;
  box-shadow:
    0 24px 72px rgba(0, 0, 0, .52),
    inset 0 1px 0 color-mix(in srgb, var(--creavibc-theme-line), transparent 65%) !important;
}

.creavibc-inline-wrapper.creavibc-theme-black.creavibc-theme-line-frame {
  border-radius: 18px;
}

.creavibc-theme-black .creavibc-popup-content,
.creavibc-theme-black .creavibc-left,
.creavibc-theme-black .creavibc-right,
.creavibc-theme-black .creavibc-step,
.creavibc-theme-black .creavibc-calendar-wrap,
.creavibc-theme-black .creavibc-time-wrap,
.creavibc-theme-black .creavibc-popup-footer,
.creavibc-theme-black .creavibc-summary,
.creavibc-theme-black .creavibc-thankyou,
.creavibc-theme-black .creavibc-thankyou-wrap {
  background: var(--creavibc-theme-bg) !important;
  color: #fff !important;
}

.creavibc-theme-black h1,
.creavibc-theme-black h2,
.creavibc-theme-black h3,
.creavibc-theme-black h4,
.creavibc-theme-black p,
.creavibc-theme-black span,
.creavibc-theme-black label,
.creavibc-theme-black strong,
.creavibc-theme-black div,
.creavibc-theme-black .creavibc-left h3,
.creavibc-theme-black .creavibc-duration-info,
.creavibc-theme-black .creavibc-summary,
.creavibc-theme-black .creavibc-summary span,
.creavibc-theme-black .creavibc-thankyou-meta,
.creavibc-theme-black .creavibc-thankyou-meeting-subtitle,
.creavibc-theme-black .creavibc-meeting-text {
  color: #fff !important;
}

.creavibc-theme-black .creavibc-close {
  color: #fff !important;
}

.creavibc-theme-black .creavibc-close:hover {
  color: var(--creavibc-primary) !important;
}

.creavibc-theme-black .creavibc-popup-footer {
  border-top: 1px solid var(--creavibc-theme-line);
  box-shadow: none !important;
}

.creavibc-theme-black .flatpickr-calendar,
.creavibc-theme-black .flatpickr-months,
.creavibc-theme-black .flatpickr-month,
.creavibc-theme-black .flatpickr-innerContainer,
.creavibc-theme-black .flatpickr-rContainer,
.creavibc-theme-black .flatpickr-days,
.creavibc-theme-black .dayContainer {
  background: var(--creavibc-theme-bg) !important;
  color: #fff !important;
}

.creavibc-theme-black .flatpickr-current-month,
.creavibc-theme-black .flatpickr-current-month input.cur-year,
.creavibc-theme-black .flatpickr-current-month .numInputWrapper,
.creavibc-theme-black .flatpickr-monthDropdown-months,
.creavibc-theme-black .flatpickr-weekday,
.creavibc-theme-black .flatpickr-day,
.creavibc-theme-black .flatpickr-prev-month,
.creavibc-theme-black .flatpickr-next-month {
  background: var(--creavibc-theme-bg) !important;
  color: #fff !important;
  fill: #fff !important;
}

.creavibc-theme-black .flatpickr-prev-month svg,
.creavibc-theme-black .flatpickr-next-month svg {
  fill: #fff !important;
}

.creavibc-theme-black .flatpickr-day {
  border-color: transparent;
}

.creavibc-theme-black .flatpickr-day:hover,
.creavibc-theme-black .flatpickr-day:focus {
  background: rgba(255, 255, 255, .14) !important;
  border-color: rgba(255, 255, 255, .36) !important;
}

.creavibc-theme-black .flatpickr-day.disabled,
.creavibc-theme-black .flatpickr-day.prevMonthDay,
.creavibc-theme-black .flatpickr-day.nextMonthDay {
  color: rgba(255, 255, 255, .34) !important;
}

.creavibc-theme-black .flatpickr-day.today {
  border-color: var(--creavibc-primary) !important;
}

.creavibc-theme-black button.creavibc-slot-btn {
  background: transparent !important;
  border-color: rgba(255, 255, 255, .62) !important;
  color: #fff !important;
}

.creavibc-theme-black .creavibc-slot-btn.selected,
.creavibc-theme-black .creavibc-slot-btn:hover {
  background: var(--creavibc-primary) !important;
  border-color: var(--creavibc-primary) !important;
  color: #fff !important;
}

.creavibc-theme-black .creavibc-slot-disabled {
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(255, 255, 255, .16) !important;
  color: rgba(255, 255, 255, .38) !important;
}

.creavibc-theme-black .creavibc-step-2 input[type="date"],
.creavibc-theme-black .creavibc-step-2 input[type="email"],
.creavibc-theme-black .creavibc-step-2 input[type="number"],
.creavibc-theme-black .creavibc-step-2 input[type="password"],
.creavibc-theme-black .creavibc-step-2 input[type="search"],
.creavibc-theme-black .creavibc-step-2 input[type="tel"],
.creavibc-theme-black .creavibc-step-2 input[type="text"],
.creavibc-theme-black .creavibc-step-2 input[type="url"],
.creavibc-theme-black .creavibc-step-2 select,
.creavibc-theme-black .creavibc-step-2 textarea {
  background: var(--creavibc-theme-bg) !important;
  border-color: rgba(255, 255, 255, .5) !important;
  color: #fff !important;
}

.creavibc-theme-black .creavibc-step-2 input::placeholder,
.creavibc-theme-black .creavibc-step-2 textarea::placeholder {
  color: rgba(255, 255, 255, .58) !important;
}

.creavibc-theme-black .creavibc-consent-field,
.creavibc-theme-black .creavibc-consent-field span {
  color: #fff !important;
}

.creavibc-theme-black .creavibc-step-2 input:focus,
.creavibc-theme-black .creavibc-step-2 select:focus,
.creavibc-theme-black .creavibc-step-2 textarea:focus {
  border-color: var(--creavibc-primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--creavibc-primary), transparent 78%);
}

.creavibc-theme-black .creavibc-step-2 .creavibc-error-msg {
  border-color: color-mix(in srgb, var(--creavibc-primary) 48%, transparent) !important;
  background: color-mix(in srgb, var(--creavibc-primary) 18%, #111) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}

.creavibc-theme-black .creavibc-step-2 .creavibc-error-msg::after {
  border-color: var(--creavibc-primary) transparent transparent var(--creavibc-primary) !important;
  background: color-mix(in srgb, var(--creavibc-primary) 18%, #111) !important;
}

.creavibc-theme-black .creavibc-next,
.creavibc-theme-black .creavibc-back,
.creavibc-theme-black .creavibc-popup-footer button {
  background: var(--creavibc-primary) !important;
  border-color: var(--creavibc-primary) !important;
  color: #fff !important;
}

.creavibc-theme-black .creavibc-next:hover,
.creavibc-theme-black .creavibc-back:hover,
.creavibc-theme-black .creavibc-popup-footer button:hover {
  background: transparent !important;
  border-color: #fff !important;
  color: #fff !important;
}

.creavibc-theme-black .creavibc-tooltip,
.creavibc-theme-black .creavibc-meeting-box,
.creavibc-theme-black .creavibc-linkpill {
  background: var(--creavibc-theme-bg) !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.creavibc-theme-black .creavibc-linkpill-text,
.creavibc-theme-black .creavibc-meeting-link,
.creavibc-theme-black .creavibc-thankyou-title {
  color: var(--creavibc-primary) !important;
}

.creavibc-theme-black .creavibc-copy-btn {
  color: #fff !important;
}

.creavibc-theme-black .creavibc-copy-btn:hover,
.creavibc-theme-black .creavibc-copy-btn.is-copied {
  background: rgba(255, 255, 255, .14) !important;
}

.creavibc-theme-black .creavibc-timezone-icon g {
  stroke: #fff !important;
}

.creavibc-copy-btn.is-copied{ color:#1a73e8; }
.creavibc-copy-btn.is-copied .creavibc-ico-check{ opacity:1; transform:scale(1); }
.creavibc-copy-btn.is-copied .creavibc-ico-copy{ opacity:0; transform:scale(.9); }

.creavibc-booking-block-wrapper {
	width: 100%;
}

.creavibc-align-left {
	display: flex;
	justify-content: flex-start;
	width: 100%;
}

.creavibc-align-center {
	display: flex;
	justify-content: center;
	width: 100%;
}

.creavibc-align-right {
	display: flex;
	justify-content: flex-end;
	width: 100%;
}

/* === Theme typography bridge and geometry guard ===
 *
 * The booking UI deliberately inherits the website's active font stack. Only
 * font metrics and control geometry that could break the calendar or booking
 * flow are normalized. Site owners can still set --creavibc-font-family on a
 * wrapper or parent when a specific brand font should be used.
 */
.creavibc-booking-wrapper .creavibc-popup,
.creavibc-booking-wrapper .creavibc-popup *:not(.dashicons) {
  font-family: var(--creavibc-font-family, inherit) !important;
}

.creavibc-booking-wrapper .creavibc-popup .dashicons {
  font-family: dashicons !important;
}

.creavibc-booking-wrapper .creavibc-left,
.creavibc-booking-wrapper .creavibc-right,
.creavibc-booking-wrapper .creavibc-step,
.creavibc-booking-wrapper .creavibc-calendar-wrap,
.creavibc-booking-wrapper .creavibc-time-wrap {
  box-sizing: border-box !important;
  min-width: 0 !important;
}

.creavibc-booking-wrapper .creavibc-left,
.creavibc-booking-wrapper .creavibc-left p,
.creavibc-booking-wrapper .creavibc-popup .creavibc-step-2 label {
  line-height: 1.5 !important;
  overflow-wrap: anywhere;
  text-transform: none !important;
}

.creavibc-booking-wrapper .creavibc-left h3 {
  font-size: 22px !important;
  line-height: 1.3 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.creavibc-booking-wrapper .flatpickr-day,
.creavibc-booking-wrapper .flatpickr-current-month,
.creavibc-booking-wrapper .creavibc-slot-btn,
.creavibc-booking-wrapper .creavibc-summary {
  font-variant-numeric: tabular-nums;
}

.creavibc-booking-wrapper .creavibc-popup .creavibc-slot-btn {
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  text-indent: 0 !important;
  text-transform: none !important;
}

.creavibc-booking-wrapper .creavibc-popup .creavibc-popup-footer .creavibc-next,
.creavibc-booking-wrapper .creavibc-popup .creavibc-popup-footer .creavibc-back {
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 100px !important;
  max-width: none !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  margin: 0 !important;
  padding: 0 28px !important;
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-indent: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

.creavibc-booking-wrapper .creavibc-popup .creavibc-step-2 input:not([type="checkbox"]):not([type="radio"]),
.creavibc-booking-wrapper .creavibc-popup .creavibc-step-2 select {
  box-sizing: border-box !important;
  width: 96% !important;
  max-width: 96% !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  padding: 8px !important;
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.creavibc-booking-wrapper .creavibc-popup .creavibc-step-2 textarea {
  box-sizing: border-box !important;
  width: 96% !important;
  max-width: 96% !important;
  min-height: 84px !important;
  padding: 8px !important;
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

/* Custom date questions use the same picker in inline and popup bookings. */
.creavibc-step-2 .creavibc-custom-date-control {
  position: relative;
  display: block;
  width: 96%;
  max-width: 100%;
  margin-top: 4px;
}

.creavibc-step-2 .creavibc-custom-date-control input,
.creavibc-booking-wrapper .creavibc-popup .creavibc-step-2 .creavibc-custom-date-control input:not([type="checkbox"]):not([type="radio"]) {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  margin: 0 !important;
  padding: 9px 42px 9px 14px !important;
  border-radius: 12px !important;
  cursor: pointer;
}

.creavibc-step-2 .creavibc-custom-date-control input::placeholder {
  color: #777d8b;
  opacity: 1;
}

.creavibc-custom-date-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 15px;
  width: 18px;
  height: 17px;
  transform: translateY(-50%);
  border: 1.7px solid var(--creavibc-primary, #5652f5);
  border-radius: 4px;
  box-sizing: border-box;
  pointer-events: none;
}

.creavibc-custom-date-icon::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  border-top: 1.7px solid var(--creavibc-primary, #5652f5);
}

.creavibc-custom-date-icon::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 4px;
  width: 6px;
  height: 4px;
  border-left: 1.7px solid var(--creavibc-primary, #5652f5);
  border-right: 1.7px solid var(--creavibc-primary, #5652f5);
}

.flatpickr-calendar.creavibc-custom-date-calendar {
  z-index: 1000001 !important;
  width: 307px;
  padding: 0 0 4px;
  border: 1px solid #e5e8f0;
  border-radius: 18px;
  background: #fff !important;
  box-shadow: 0 18px 48px rgba(24, 31, 48, .17), 0 4px 12px rgba(24, 31, 48, .07);
  color: #252c3a;
  font-family: inherit;
}

.creavibc-custom-date-calendar .flatpickr-months {
  align-items: center;
  margin: 0 9px 7px;
}

.creavibc-custom-date-calendar .flatpickr-month,
.creavibc-custom-date-calendar .flatpickr-weekdays {
  background: #fff;
}

.creavibc-custom-date-calendar .flatpickr-current-month,
.creavibc-custom-date-calendar .flatpickr-current-month input.cur-year,
.creavibc-custom-date-calendar .flatpickr-current-month .flatpickr-monthDropdown-months {
  color: #252c3a;
  font-weight: 650;
}

.creavibc-custom-date-calendar .flatpickr-weekday {
  color: #737b8b;
  font-size: 12px;
  font-weight: 600;
}

.creavibc-custom-date-calendar .flatpickr-day {
  color: #252c3a;
  border-radius: 12px;
}

.creavibc-custom-date-calendar .flatpickr-day:hover,
.creavibc-custom-date-calendar .flatpickr-day:focus {
  background: #f0f2f8;
  border-color: #f0f2f8;
}

.creavibc-custom-date-calendar .flatpickr-day.today {
  border-color: var(--creavibc-date-accent, #5652f5);
}

.creavibc-custom-date-calendar .flatpickr-day.selected,
.creavibc-custom-date-calendar .flatpickr-day.selected:hover,
.creavibc-custom-date-calendar .flatpickr-day.selected:focus {
  background: var(--creavibc-date-accent, #5652f5);
  border-color: var(--creavibc-date-accent, #5652f5);
  color: #fff;
}

.creavibc-custom-date-calendar .flatpickr-day.prevMonthDay,
.creavibc-custom-date-calendar .flatpickr-day.nextMonthDay {
  color: #a9afbb;
}

.creavibc-booking-wrapper .creavibc-popup .creavibc-summary,
.creavibc-booking-wrapper .creavibc-popup .creavibc-summary span {
  font-size: 14px !important;
  line-height: 1.4 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

/* Compact service layout: preserve the booking flow while giving the calendar
 * its own narrow surface. The setting applies to inline and popup widgets. */
.creavibc-booking-wrapper.creavibc-layout-single.creavibc-inline-wrapper,
.creavibc-booking-wrapper.creavibc-layout-single .creavibc-popup {
  max-width: 460px;
}
.creavibc-booking-wrapper.creavibc-layout-single .creavibc-popup-content {
  padding: 18px;
}
.creavibc-booking-wrapper.creavibc-layout-single .creavibc-left {
  display: none !important;
}
.creavibc-booking-wrapper.creavibc-layout-single .creavibc-right {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
}
.creavibc-booking-wrapper.creavibc-layout-single .creavibc-step-1 {
  align-items: center;
}
.creavibc-booking-wrapper.creavibc-layout-single .creavibc-popup .creavibc-right .creavibc-calendar-wrap,
.creavibc-booking-wrapper.creavibc-layout-single .creavibc-popup .creavibc-right .creavibc-time-wrap {
  width: 400px !important;
  max-width: 100% !important;
}
.creavibc-booking-wrapper.creavibc-layout-single .creavibc-popup .creavibc-calendar-wrap .flatpickr-day {
  width: min(39px, 100%) !important;
  min-width: 0 !important;
  max-width: 39px !important;
}
.creavibc-booking-wrapper.creavibc-layout-single .creavibc-popup .flatpickr-weekday {
  font-size: 12px !important;
}
.creavibc-booking-wrapper.creavibc-layout-single .creavibc-popup-footer {
  gap: 12px;
  padding: 14px 18px;
}
.creavibc-booking-wrapper.creavibc-layout-single .creavibc-summary {
  flex: 1 1 100%;
  margin: 0;
  white-space: normal;
}
.creavibc-booking-wrapper.creavibc-layout-single .creavibc-summary-time {
  margin-left: 0 !important;
}
.creavibc-booking-wrapper.creavibc-layout-single .creavibc-footer-buttons {
  justify-content: flex-end;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
}

/* Translucent service theme. Keep the structural surfaces clear so the page
 * remains visible through the blurred panel in both inline and popup modes. */
.creavibc-popup-overlay.creavibc-theme-glass {
  background: rgba(20, 29, 53, .32);
}

.creavibc-booking-wrapper.creavibc-theme-glass .creavibc-popup {
  background: rgba(255, 255, 255, .72) !important;
  border: 1px solid rgba(255, 255, 255, .76);
  box-shadow: 0 24px 70px rgba(28, 39, 72, .22), inset 0 1px 0 rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  backdrop-filter: blur(24px) saturate(165%);
}

.creavibc-booking-wrapper.creavibc-theme-glass :is(
  .creavibc-popup-content,
  .creavibc-left,
  .creavibc-right,
  .creavibc-step,
  .creavibc-calendar-wrap,
  .creavibc-time-wrap,
  .creavibc-popup-footer,
  .creavibc-summary,
  .creavibc-thankyou,
  .creavibc-thankyou-wrap,
  .flatpickr-calendar,
  .flatpickr-months,
  .flatpickr-month,
  .flatpickr-weekdays,
  .flatpickr-innerContainer,
  .flatpickr-rContainer,
  .flatpickr-days,
  .dayContainer
) {
  background: transparent !important;
}

.creavibc-booking-wrapper.creavibc-theme-glass .creavibc-popup-footer {
  border-top: 1px solid rgba(79, 91, 122, .16);
  box-shadow: none;
}

.creavibc-booking-wrapper.creavibc-theme-glass .creavibc-step-2 :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  background: rgba(255, 255, 255, .58) !important;
  border-color: rgba(77, 92, 125, .22) !important;
}

/* Use the full booking column down to the footer. Expanded times remain part
 * of this column's flow; the slots never create a second scroll viewport. */
.creavibc-booking-wrapper .creavibc-popup .creavibc-right > .creavibc-step-1[style*="block"] {
  display: flex !important;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.creavibc-booking-wrapper .creavibc-popup .creavibc-step-1 .creavibc-time-wrap {
  margin-top: 0;
}

.creavibc-booking-wrapper .creavibc-popup .creavibc-popup-footer {
  padding: 14px 20px;
}

/* A mask fades the content itself, preserving light, dark, and glass surfaces. */
.creavibc-booking-wrapper :is(.creavibc-left, .creavibc-right, .creavibc-popup-content).creavibc-scroll-fade {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--creavibc-fade-top, 0px), #000 calc(100% - var(--creavibc-fade-bottom, 0px)), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 var(--creavibc-fade-top, 0px), #000 calc(100% - var(--creavibc-fade-bottom, 0px)), transparent);
}

@media (max-width: 768px) {
  .creavibc-booking-wrapper .creavibc-popup-content.creavibc-two-columns {
    gap: 12px;
  }

  /* Keep the service title above the calendar, and the longer description
   * after the booking controls so it cannot push the first slot row offscreen. */
  .creavibc-booking-wrapper:not(.creavibc-layout-single) .creavibc-left {
    display: contents;
  }

  .creavibc-booking-wrapper .creavibc-left h3 { order: 0; }
  .creavibc-booking-wrapper .creavibc-right { order: 1; }
  .creavibc-booking-wrapper .creavibc-left > div { order: 2; }

  .creavibc-booking-wrapper .creavibc-popup .creavibc-popup-footer {
    padding: 12px 18px;
  }

  .creavibc-booking-wrapper .creavibc-popup .creavibc-summary {
    gap: 4px;
    margin: 0 0 8px;
  }
}

@media (max-height: 650px) {
  .creavibc-booking-wrapper {
    --creavibc-day-size: 32px;
    --creavibc-day-gap: 2px;
  }

  .creavibc-booking-wrapper .creavibc-popup .creavibc-popup-content {
    padding-top: 16px;
    padding-bottom: 8px;
  }
}
