/* Standalone component stylesheet, loaded directly by the Blade site. */
.customer-service {
  --customer-service-right: 70px;
  --customer-service-bottom: 100px;
  position: fixed;
  right: var(--customer-service-right);
  bottom: var(--customer-service-bottom);
  z-index: 1000;
  display: none;
  width: 64px;
  color: #333;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.customer-service,
.customer-service * {
  box-sizing: border-box;
}

.customer-service [hidden] {
  display: none !important;
}

.customer-service__contact {
  position: relative;
  height: 72px;
}

.customer-service__trigger,
.customer-service__link {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #0077ff;
  color: #fff;
  text-decoration: none;
}

.customer-service__trigger {
  flex-direction: column;
  gap: 4px;
  width: 64px;
  height: 72px;
  font-size: 12px;
}

.customer-service__trigger:hover,
.customer-service__trigger[aria-expanded="true"],
.customer-service__link:hover {
  background: #0045ff;
  color: #fff;
}

.customer-service__headset {
  width: 30px;
  height: 30px;
}

.customer-service__panel {
  position: absolute;
  right: 100%;
  bottom: 0;
  /* The transparent padding bridges the gap without closing the hover region. */
  width: 266px;
  padding-right: 16px;
}

.customer-service__card {
  width: 250px;
  max-height: calc(100vh - var(--customer-service-bottom) - 88px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 24px;
  border: 1px solid #e7ecf3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 28px rgb(0 42 95 / 15%);
  text-align: center;
}

.customer-service__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}

.customer-service__qrcode {
  display: block;
  width: 200px;
  height: 260px;
  max-width: none;
  margin: 0 auto;
  object-fit: contain;
}

.customer-service__hint {
  margin: 12px 0 16px;
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
}

.customer-service__link {
  min-height: 40px;
  font-size: 14px;
}

.customer-service__top-slot {
  height: 72px;
  padding-top: 8px;
}

.customer-service__top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid #e0e7ef;
  border-radius: 4px;
  background: #fff;
  color: #0077ff;
  cursor: pointer;
}

.customer-service__top:hover {
  border-color: #0077ff;
  background: #f0f7ff;
}

.customer-service__top svg {
  width: 30px;
  height: 30px;
}

.customer-service a:focus-visible,
.customer-service button:focus-visible {
  outline: 3px solid #0045ff;
  outline-offset: 3px;
}

@media (min-width: 1024px) {
  .customer-service {
    display: block;
  }
}

@media (max-height: 640px) {
  .customer-service {
    --customer-service-bottom: 16px;
  }

  .customer-service__panel {
    bottom: -72px;
  }

  .customer-service__card {
    max-height: calc(100vh - 32px);
  }
}
