/* Coder's Clubhouse trial booking embed — modal popup + floating badge */

.cc-booking-badge {
  position: fixed;
  z-index: 2147483646;
  right: 20px;
  bottom: 20px;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  background: #0069ff;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.cc-booking-badge:focus-visible {
  outline: 3px solid #2e7ac7;
  outline-offset: 3px;
}

.cc-booking-overlay {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1rem;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(2px);
}

.cc-booking-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: min(900px, calc(100vw - 2rem));
  height: min(720px, calc(100vh - 3rem));
  max-height: calc(100vh - 3rem);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.06),
    0 25px 50px -12px rgba(15, 23, 42, 0.4);
}

.cc-booking-close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  color: #475569;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.cc-booking-close:focus-visible {
  outline: 3px solid #2e7ac7;
  outline-offset: 2px;
}

.cc-booking-iframe {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: 100%;
  border: 0;
  background: #fff;
}

@media (max-width: 640px) {
  .cc-booking-overlay {
    padding: 0.5rem;
  }

  .cc-booking-modal {
    width: calc(100vw - 1rem);
    height: calc(100vh - 1.5rem);
    max-height: calc(100vh - 1.5rem);
    border-radius: 1.125rem;
  }
}
