.customer-service {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #2f3a30;
}

.customer-service * {
  box-sizing: border-box;
}

.customer-service-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(340px, calc(100vw - 32px));
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(136, 168, 136, 0.26);
  border-radius: 16px;
  background: rgba(251, 251, 246, 0.98);
  box-shadow: 0 18px 48px rgba(47, 58, 48, 0.16);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transform-origin: right bottom;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.customer-service.is-open .customer-service-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.customer-service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.customer-service-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.customer-service-subtitle {
  margin-top: 4px;
  color: #6d766c;
  font-size: 0.86rem;
  line-height: 1.5;
}

.customer-service-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(136, 168, 136, 0.14);
  color: #526350;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.customer-service-close:hover {
  background: rgba(204, 122, 107, 0.15);
  color: #9a584e;
}

.customer-service-qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.customer-service-qr {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(136, 168, 136, 0.2);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.customer-service-qr:hover {
  border-color: rgba(204, 122, 107, 0.46);
  box-shadow: 0 8px 22px rgba(47, 58, 48, 0.08);
  transform: translateY(-1px);
}

.customer-service-qr img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
}

.customer-service-qr span {
  display: block;
  margin-top: 8px;
  color: #526350;
  font-size: 0.82rem;
  font-weight: 600;
}

.customer-service-qr small {
  display: block;
  margin-top: 2px;
  color: #9a584e;
  font-size: 0.72rem;
  line-height: 1.4;
}

.customer-service-section {
  padding-top: 14px;
  border-top: 1px solid rgba(136, 168, 136, 0.18);
}

.customer-service-label {
  margin-bottom: 8px;
  color: #6d766c;
  font-size: 0.82rem;
}

.customer-service-phone {
  display: grid;
  gap: 8px;
}

.customer-service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(136, 168, 136, 0.28);
  border-radius: 12px;
  background: #fff;
  color: #2f3a30;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.customer-service-link:hover {
  border-color: rgba(204, 122, 107, 0.5);
  box-shadow: 0 8px 22px rgba(47, 58, 48, 0.08);
  transform: translateY(-1px);
}

.customer-service-link strong {
  font-weight: 700;
}

.customer-service-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.customer-service-action {
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 999px;
  background: #88a888;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.customer-service-action.secondary {
  background: #cc7a6b;
}

.customer-service-hours {
  margin-top: 12px;
  color: #8a8f87;
  font-size: 0.78rem;
  line-height: 1.5;
}

.customer-service-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #cc7a6b;
  color: #fff;
  box-shadow: 0 12px 32px rgba(204, 122, 107, 0.32);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
}

.customer-service-toggle-icon {
  width: 24px;
  height: 24px;
}

.customer-service-toggle-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.customer-service-toggle:hover {
  background: #bd6d60;
}

.customer-service-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(47, 58, 48, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.customer-service-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.customer-service-lightbox-card {
  position: relative;
  width: min(360px, calc(100vw - 40px));
  padding: 20px;
  border-radius: 18px;
  background: #fbfbf6;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.customer-service-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(136, 168, 136, 0.14);
  color: #526350;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.customer-service-lightbox-title {
  margin-bottom: 14px;
  padding: 0 38px;
  font-size: 1.02rem;
  font-weight: 700;
}

.customer-service-lightbox-img {
  display: block;
  width: min(280px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.customer-service-lightbox-tip {
  margin-top: 14px;
  color: #6d766c;
  font-size: 0.88rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .customer-service {
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: flex;
    justify-content: flex-end;
  }

  .customer-service-panel {
    right: 0;
    left: 0;
    bottom: 70px;
    width: auto;
    max-height: calc(100vh - 102px);
    border-radius: 18px;
  }

  .customer-service-toggle {
    min-height: 52px;
    padding: 0 16px;
  }

  .customer-service-lightbox {
    padding: 16px;
  }

  .customer-service-lightbox-card {
    width: min(340px, calc(100vw - 32px));
    padding: 18px;
  }
}
