/* MOO Booking Map Connector
 * Veřejný shortcode box + modal iframe
 * Tento soubor můžeš bezpečně přepsat ve vlastním CSS šablony.
 */

.moo-bmc-minimal {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  display: grid;
  gap: 0.85em;
  padding: 1em;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 14%, transparent);
  border-radius: 1em;
  background: transparent;
  color: inherit;
  font: inherit;
  overflow: hidden;
  box-shadow: 2px 3px 50px 0px #b9b9b9;
}

.moo-bmc-minimal * {
  box-sizing: border-box;
  min-width: 0;
}

.moo-bmc-minimal__body {
  display: grid;
  gap: 0.35em;
  min-width: 0;
}

.moo-bmc-minimal__title {
  display: block;
  color: inherit;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
}

.moo-bmc-minimal__subtitle {
  display: block;
  color: inherit;
  opacity: 0.72;
  font-size: 0.92em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.moo-bmc-minimal__slots {
  display: grid;
  gap: 0.25em;
  margin-top: 0.15em;
}

.moo-bmc-minimal__slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  padding: 0.45em 0.75em;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 16%, transparent);
  border-radius: 0.75em;
  color: inherit !important;
  background: transparent;
  text-decoration: none !important;
  text-align: center;
  font-size: 0.92em;
  line-height: 1.25;
  font-weight: 700;
  overflow-wrap: anywhere;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.moo-bmc-minimal__slot:hover {
  background: color-mix(in srgb, currentColor 7%, transparent);
  border-color: color-mix(in srgb, currentColor 28%, transparent);
  transform: translateY(-1px);
}

.moo-bmc-minimal__note {
  display: block;
  color: inherit;
  opacity: 0.72;
  font-size: 0.92em;
  line-height: 1.4;
}

.moo-bmc-minimal__button {
  display: flex !important;
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1em;
  border-radius: 0.85em;
  text-decoration: none !important;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
}

.moo-bmc-inherit .moo-bmc-minimal__button {
  background: var(
    --moo-bmc-accent,
    var(--lp-primary-color, var(--primary-color, #2563eb))
  );
  color: #fff !important;
}

.moo-bmc-default .moo-bmc-minimal__button {
  background: #2563eb;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.moo-bmc-minimal__button:hover {
  transform: translateY(-1px);
  filter: brightness(0.96);
}

.moo-bmc-loading {
  opacity: 0.78;
}

.moo-bmc-loading .moo-bmc-minimal__note {
  position: relative;
  padding-left: 1.25em;
}

.moo-bmc-loading .moo-bmc-minimal__note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: moo-bmc-spin 0.8s linear infinite;
}

/* Modal / iframe popup */

.moo-bmc-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.moo-bmc-modal.is-open {
  display: flex;
}

.moo-bmc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
}

.moo-bmc-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  height: min(780px, 92vh);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.32);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.moo-bmc-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e6e8ef;
}

.moo-bmc-modal__title {
  font: inherit;
  font-weight: 800;
  color: #18202f;
}

.moo-bmc-modal__close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #e6e8ef;
  background: #fff;
  color: #18202f;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.moo-bmc-modal__iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

body.moo-bmc-modal-open {
  overflow: hidden;
}

/* Fallback */

.moo-bmc-fallback {
  border: 1px solid #e6e8ef;
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  font-family: inherit;
}

.moo-bmc-fallback strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.moo-bmc-fallback p {
  margin: 0 0 12px;
  color: #667085;
}

.moo-bmc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
}

/* Animace */

@keyframes moo-bmc-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responzivita */

@media (max-width: 640px) {
  .moo-bmc-modal {
    padding: 0;
    align-items: stretch;
  }

  .moo-bmc-modal__dialog {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }

  .moo-bmc-modal__header {
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  .moo-bmc-minimal {
    padding: 0.9em;
    border-radius: 0.9em;
  }

  .moo-bmc-minimal__button {
    min-height: 44px;
  }
}
