/* ==========================================================================
   Bookingor Homepage Google One Tap (Top Right)
   ========================================================================== */
:root {
  --bookingor-auth-top: 86px;
}

.bookingor-home-auth-dock {
  position: relative;
  z-index: 1015;
  pointer-events: none;
  font-family: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Top-Right: Google One Tap Native Prompt + Fallback Card
   -------------------------------------------------------------------------- */
.bookingor-onetap-container {
  position: fixed;
  top: var(--bookingor-auth-top, 86px);
  right: 20px;
  z-index: 1016;
  pointer-events: auto;
  transition: top 0.16s ease;
}

.bookingor-onetap-card {
  display: none;
  position: fixed;
  top: var(--bookingor-auth-top, 86px);
  right: 20px;
  z-index: 1015;
  width: 318px;
  max-width: calc(100vw - 32px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid #dadce0;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.08);
  font-family: "Google Sans", "Inter", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
  pointer-events: auto;
  transition: top 0.16s ease;
}
.bookingor-onetap-card.is-visible {
  display: block;
  animation: bookingorAuthFadeSlide 0.24s ease-out;
}
.bookingor-onetap-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid #e8eaed;
  background: #ffffff;
}
.bookingor-onetap-card__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.bookingor-onetap-card__brand svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.bookingor-onetap-card__brand span {
  font-size: 13px;
  font-weight: 600;
  color: #3c4043;
  line-height: 1.3;
}
.bookingor-onetap-card__close {
  background: transparent;
  border: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  margin: -3px -4px -3px 4px;
  cursor: pointer;
  color: #5f6368;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}
.bookingor-onetap-card__close:hover {
  background: #f1f3f4;
  color: #202124;
}
.bookingor-onetap-card__body {
  padding: 13px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.bookingor-onetap-card__subtitle {
  width: 100%;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #5f6368;
  text-align: left;
}
.bookingor-onetap-card__action {
  position: relative;
  width: 100%;
}
.bookingor-onetap-card__gsi-slot {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  justify-content: center;
  min-height: 40px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
.bookingor-onetap-card__gsi-slot.is-gsi-ready {
  position: static;
  opacity: 1;
  pointer-events: auto;
  overflow: visible;
}
.bookingor-onetap-card__oauth-btn {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  border-radius: 9999px;
  border: 1px solid #dadce0;
  background: #ffffff;
  color: #3c4043 !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.bookingor-onetap-card__oauth-btn:hover {
  background: #f8fafe;
  border-color: #d2e3fc;
  color: #1a73e8 !important;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.14);
}
.bookingor-onetap-card__oauth-btn.is-fallback-active {
  display: inline-flex;
}
.bookingor-onetap-card__footnote {
  width: 100%;
  font-size: 11px;
  color: #64748b;
  text-align: center;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Google One Tap Authenticating Status Overlay
   -------------------------------------------------------------------------- */
.bookingor-onetap-loader {
  display: none;
  position: fixed;
  top: var(--bookingor-auth-top, 86px);
  right: 20px;
  z-index: 100001;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 13px 18px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}
.bookingor-onetap-loader.is-active {
  display: flex;
}
.bookingor-onetap-loader .bookingor-onetap-spinner {
  animation: bookingorOneTapSpin 0.9s linear infinite;
  flex-shrink: 0;
}
.bookingor-onetap-loader .bookingor-onetap-loader-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
}

@keyframes bookingorOneTapSpin {
  100% {
    transform: rotate(360deg);
  }
}
@keyframes bookingorAuthFadeSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* --------------------------------------------------------------------------
   Medium Desktop Gutter Fit (1280px - 1439px)
   Keep zero overlap with 780px centered hero copy
   -------------------------------------------------------------------------- */
@media (min-width: 1280px) and (max-width: 1439px) {
  .bookingor-onetap-container,
.bookingor-onetap-card {
    right: 14px;
  }
  .bookingor-onetap-card {
    width: 244px;
  }
  .bookingor-onetap-card__header {
    padding: 10px 12px;
  }
  .bookingor-onetap-card__brand span {
    font-size: 12px;
  }
  .bookingor-onetap-card__body {
    padding: 11px 12px 12px;
  }
}
/* --------------------------------------------------------------------------
   Tablet & Mobile (< 1280px): Inline Responsive Top Dock Above Hero
   -------------------------------------------------------------------------- */
@media (max-width: 1279.98px) {
  .bookingor-home-auth-dock {
    height: auto;
    padding: 12px 16px 4px;
    background: #ffffff;
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
  }
  .bookingor-onetap-container {
    top: var(--bookingor-auth-top, 78px);
    right: 12px;
  }
  .bookingor-onetap-card {
    position: static;
    width: 312px;
    max-width: 100%;
    flex: 0 1 312px;
  }
  .bookingor-onetap-card.is-visible {
    display: block;
  }
}
@media (max-width: 991.98px) {
  .bookingor-home-auth-dock {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 14px 4px;
    gap: 10px;
  }
  .bookingor-onetap-card {
    width: 100%;
    flex: 1 1 auto;
  }
}
/* --------------------------------------------------------------------------
   RTL Support
   -------------------------------------------------------------------------- */
@media (min-width: 1280px) {
  body.is-rtl .bookingor-onetap-container,
body.is-rtl .bookingor-onetap-card,
body.is-rtl .bookingor-onetap-loader {
    right: auto;
    left: 20px;
  }
}
body.is-rtl .bookingor-onetap-card__subtitle {
  text-align: right;
}
