/* Cal24h frontend styles for floating modal/button */
.cal24h-floating-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  /* Keep below overlay but above most UI elements */
  z-index: 2147483646;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  background: var(--cal24h-btn-bg, #3756d6);
  color: var(--cal24h-btn-color, #fff);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cal24h-floating-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.4);
}

.cal24h-floating-overlay {
  position: fixed;
  inset: 0;
  /* Highest possible within 32-bit range to beat common widgets */
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.cal24h-floating-overlay[hidden] {
  display: none;
}

.cal24h-floating-panel {
  position: relative;
  width: min(1400px, 92vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 32px 64px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cal24h-floating-frame {
  border: 0;
  width: 100%;
  height: min(80vh, 680px);
  background: #fff;
}

.cal24h-floating-close {
  position: absolute;
  top: 0;
  right: 0;
  border: none;
  background: rgba(15, 23, 42, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 20px;
  cursor: pointer;
}

.cal24h-floating-close:hover {
  background: rgba(15, 23, 42, 0.12);
}

@media (max-width: 640px) {
  .cal24h-floating-button {
    bottom: 16px;
    right: 16px;
    padding: 12px 18px;
    font-size: 15px;
  }
  .cal24h-floating-panel {
    width: 92vw;
    border-radius: 16px;
  }
  .cal24h-floating-frame {
    height: min(85vh, 640px);
  }
}

/* Remove focus outlines/borders on embedded iframes */
.cal24h-iframe,
.cal24h-iframe:focus,
.cal24h-floating-frame:focus {
  outline-width: 0;
  outline-style: none !important;
}
