/**
 * Lobify - Motor de Reservas
 * Component styles are deliberately isolated from Theme/Elementor globals.
 * Visual values configured in the plugin are exposed as --lbrm-* variables.
 */

.lbrm-booking-wrapper,
.lbrm-booking-wrapper * {
  box-sizing: border-box;
}

.lbrm-booking-wrapper {
  width: 100%;
  display: inline-flex;
  justify-content: center;
}

.lbrm-booking-button,
.lbrm-booking-button * {
  box-sizing: border-box;
}

.lbrm-booking-wrapper > .lbrm-booking-button {
  width: 100% !important;
  max-width: var(--lbrm-button-max-width, 750px) !important;
  min-height: var(--lbrm-button-min-height, 64px) !important;
  margin: 0;
  padding: 10px 28px;
  border: 4px solid var(--lbrm-button-border-color, rgba(197, 139, 95, 0.65)) !important;
  border-radius: var(--lbrm-button-radius, 999px) !important;
  background: var(--lbrm-button-bg, #fdcc31) !important;
  color: var(--lbrm-button-text-color, #883c02) !important;
  font-family: inherit;
  font-size: var(--lbrm-button-font-size, 20px) !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 16px;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 6px 0 rgba(80, 73, 64, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lbrm-booking-wrapper > .lbrm-booking-button:hover,
.lbrm-booking-wrapper > .lbrm-booking-button:focus-visible {
  background: var(--lbrm-button-hover-bg, #fdb931) !important;
  color: var(--lbrm-button-text-color, #883c02) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(80, 73, 64, 0.10);
}

.lbrm-booking-wrapper > .lbrm-booking-button:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 rgba(80, 73, 64, 0.35);
}

.lbrm-booking-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit !important;
}

.lbrm-booking-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor !important;
}

.lbrm-booking-text {
  color: inherit !important;
  font: inherit !important;
  line-height: 1 !important;
  white-space: nowrap;
  flex: 0 1 auto;
}

.lbrm-booking-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: var(--lbrm-modal-z-index, 2147483640) !important;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: var(--lbrm-overlay-color, rgba(0, 0, 0, 0.76)) !important;
  box-sizing: border-box;
}

.lbrm-booking-overlay.is-active {
  display: flex !important;
}

.lbrm-booking-overlay .lbrm-booking-modal {
  position: relative;
  width: min(1180px, 100%) !important;
  max-height: 96vh;
  background: #fff !important;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0,0,0,.34);
  display: flex;
  flex-direction: column;
}

.lbrm-booking-modal-header {
  position: relative;
  min-height: 62px;
  padding: 14px 76px 14px 24px;
  background: var(--lbrm-modal-title-bg, #12384f) !important;
  color: var(--lbrm-modal-title-color, #ffffff) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  font-family: inherit;
}

.lbrm-booking-modal-header-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  color: inherit !important;
}

.lbrm-booking-modal-header-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor !important;
}

.lbrm-booking-modal-title {
  color: inherit !important;
  font-size: clamp(19px, 2vw, 26px) !important;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
}

.lbrm-booking-overlay .lbrm-booking-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--lbrm-close-bg, #b64234) !important;
  color: var(--lbrm-close-color, #ffffff) !important;
  font-family: Arial, sans-serif;
  font-size: 32px !important;
  line-height: 1 !important;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px !important;
  box-shadow: 0 5px 18px rgba(0,0,0,.18);
}

.lbrm-booking-overlay .lbrm-booking-close:hover,
.lbrm-booking-overlay .lbrm-booking-close:focus-visible {
  background: var(--lbrm-close-bg, #b64234) !important;
  color: var(--lbrm-close-color, #ffffff) !important;
  filter: brightness(.94);
}

.lbrm-booking-iframe {
  display: block;
  width: 100% !important;
  height: var(--lbrm-iframe-height-desktop, 88vh) !important;
  min-height: 520px;
  border: 0 !important;
  background: #fff;
}

body.lbrm-modal-open {
  overflow: hidden !important;
}

body > .lbrm-booking-overlay {
  z-index: var(--lbrm-modal-z-index, 2147483640) !important;
}

@media (max-width: 600px) {
  .lbrm-booking-wrapper > .lbrm-booking-button {
    max-width: min(var(--lbrm-button-max-width, 750px), 100%) !important;
    min-height: var(--lbrm-button-min-height, 64px) !important;
    padding: 9px 20px;
    font-size: var(--lbrm-button-mobile-font-size, 19px) !important;
    gap: 12px;
    border-width: 3px !important;
    box-shadow: 0 4px 0 rgba(80, 73, 64, 0.35);
  }

  .lbrm-booking-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .lbrm-booking-overlay {
    padding: 10px;
  }

  .lbrm-booking-overlay .lbrm-booking-modal {
    width: 100% !important;
    max-height: 97vh;
    border-radius: 16px;
  }

  .lbrm-booking-modal-header {
    min-height: 58px;
    padding: 12px 64px 12px 18px;
    gap: 9px;
  }

  .lbrm-booking-modal-title {
    font-size: 21px !important;
  }

  .lbrm-booking-modal-header-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .lbrm-booking-overlay .lbrm-booking-close {
    top: 9px;
    right: 10px;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    font-size: 30px !important;
  }

  .lbrm-booking-iframe {
    height: var(--lbrm-iframe-height-mobile, 92vh) !important;
    min-height: 520px;
  }
}

@media (max-width: 420px) {
  .lbrm-booking-wrapper > .lbrm-booking-button {
    min-height: var(--lbrm-button-min-height, 64px) !important;
    padding: 8px 16px;
    font-size: var(--lbrm-button-mobile-font-size, 19px) !important;
    gap: 8px;
  }

  .lbrm-booking-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
}
