.yaoxi-global-cta {
  font-family: "Noto Sans TC", sans-serif;
}

.yaoxi-global-cta__mobile {
  display: none;
}

.yaoxi-global-cta__desktop {
  position: fixed;
  z-index: 10000;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid #d4af37;
  background: rgba(10, 10, 10, 0.96);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
  color: #f2e7c4;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.yaoxi-global-cta__desktop:hover,
.yaoxi-global-cta__mobile:hover {
  background: #211d12;
  color: #f7e6ae;
}

.booking-direct-line {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 0 18px;
  border: 1px solid #d4af37;
  background: #11100d;
  color: #f2e7c4;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .yaoxi-global-cta {
    position: fixed;
    z-index: 10000;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    box-sizing: border-box;
    padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    border-top: 1px solid rgba(212, 175, 55, 0.65);
    background: rgba(8, 8, 8, 0.97);
  }

  .yaoxi-global-cta__mobile {
    display: flex;
    min-width: 0;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4af37;
    background: #11100d;
    color: #f2e7c4;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
  }

  .yaoxi-global-cta__desktop {
    display: none;
  }
}

.yaoxi-analytics-consent[hidden] {
  display: none !important;
}

.yaoxi-analytics-consent {
  position: fixed;
  z-index: 10002;
  right: 24px;
  bottom: 88px;
  display: flex;
  width: min(720px, calc(100vw - 48px));
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid rgba(212, 175, 55, 0.8);
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  color: #f2e7c4;
  font-family: "Noto Sans TC", sans-serif;
}

.yaoxi-analytics-consent__copy {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #e1ddd2;
  font-size: 12px;
  line-height: 1.4;
}

.yaoxi-analytics-consent__copy a {
  margin-left: 4px;
  color: #e4cf91;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.yaoxi-analytics-consent__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.yaoxi-analytics-consent__actions button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #d4af37;
  background: #11100d;
  color: #f2e7c4;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
}

.yaoxi-analytics-consent__actions button[data-analytics-consent="accept"] {
  background: #d4af37;
  color: #0a0a0a;
  font-weight: 600;
}

.yaoxi-analytics-consent__actions button:hover,
.yaoxi-analytics-consent__actions button:focus-visible {
  outline: 2px solid #f2e7c4;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .yaoxi-analytics-consent {
    position: static;
    inset: auto;
    z-index: auto;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 1rem;
    min-height: 42px;
    max-height: 56px;
    overflow: hidden;
    gap: 6px;
    padding: 5px 7px;
  }

  .yaoxi-analytics-consent__copy {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 9px;
    line-height: 1.2;
  }

  .yaoxi-analytics-consent__actions {
    gap: 4px;
  }

  .yaoxi-analytics-consent__actions button {
    min-height: 30px;
    padding: 0 7px;
    font-size: 9px;
    line-height: 1;
  }
}
