/* Consultation Booking Widget — all selectors prefixed cbw- to avoid theme collisions */

.cbw-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.cbw-overlay.cbw-active {
  display: flex;
}

.cbw-modal-box {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 560px;
  height: 90vh;
  max-height: 700px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.cbw-modal-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  max-width: 560px;
}

/* Specificity boosted via the actual parent wrapper (real DOM nesting, not a hack),
   plus !important on the exact properties Elementor's reset.css fights us on.
   Scoped narrowly to our own prefixed classes only — not a global override. */
.cbw-modal-wrapper .cbw-close-text {
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  color: #fff !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: bold !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 0.25rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cbw-modal-wrapper .cbw-close-text:hover {
  background-color: var(--cbw-hover-bg, #1A3468) !important;
  color: #fff !important;
}

.cbw-modal-wrapper .cbw-close-text {
  appearance: none !important;
  -webkit-appearance: none !important;
  outline: none !important;
}
.cbw-modal-wrapper .cbw-close-text::before,
.cbw-modal-wrapper .cbw-close-text::after {
  content: none !important;
}

.cbw-iframe {
  border: none;
  width: 100%;
  height: 100%;
  flex: 1;
}

.cbw-loading-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  color: #888;
}

@media (max-width: 480px) {
  .cbw-modal-box {
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  .cbw-overlay {
    padding: 0;
  }
}