/* Contact — desktop: floating panel, mobile: bottom bar */

.site-float-contact,
.site-float-contact *,
.site-float-contact *::before,
.site-float-contact *::after {
  box-sizing: border-box;
}

.site-float-contact {
  position: fixed;
  z-index: 99999;
  display: flex;
  margin: 0;
}

.site-float-contact__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none !important;
  color: #fff;
  transition: 0.2s ease;
}

.site-float-contact__icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  flex-shrink: 0;
  display: block;
  fill: currentColor;
}

.site-float-contact__item.is-phone {
  background: #e8a317;
  color: #7a1f04 !important;
}

.site-float-contact__item.is-phone:hover,
.site-float-contact__item.is-phone:focus {
  background: #f0b52a;
  color: #7a1f04 !important;
}

.site-float-contact__item.is-line {
  background: #06c755;
  color: #fff !important;
}

.site-float-contact__item.is-line:hover,
.site-float-contact__item.is-line:focus {
  background: #05a847;
  color: #fff !important;
}

/* Desktop — floating panel, bottom-right */
@media (min-width: 992px) {
  .site-float-contact {
    right: 16px;
    bottom: 16px;
    left: auto;
    top: auto;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
  }

  .site-float-contact__item {
    min-width: 118px;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
  }
}

/* Mobile — bottom menu bar */
@media (max-width: 991px) {
  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .site-float-contact {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    flex-direction: row;
    gap: 1px;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-radius: 0;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  }

  .site-float-contact__item {
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    min-height: 58px;
    padding: 8px 6px;
    border-radius: 0;
    font-size: 12px;
  }

  .site-float-contact__icon {
    width: 24px;
    height: 24px;
  }
}
