.thwpmc-shell {
  position: relative;
  z-index: 9998;
  --thwpmc-phone-bg: #4caf50;
  --thwpmc-zalo-bg: #0068ff;
  --thwpmc-pulse-bg: #e53935;
}

.thwpmc-sticky-bar {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  z-index: 9998;
  display: flex;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
}

.thwpmc-action {
  display: inline-flex;
  min-height: 56px;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.thwpmc-action:hover,
.thwpmc-action:focus {
  color: #fff;
  text-decoration: none;
  filter: brightness(0.96);
}

.thwpmc-action-phone {
  background: var(--thwpmc-phone-bg);
}

.thwpmc-action-zalo {
  background: var(--thwpmc-zalo-bg);
}

.thwpmc-action-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.thwpmc-action-icon svg {
  width: 100%;
  height: 100%;
}

.thwpmc-pulse-wrap {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  z-index: 9999;
  transform: translateX(-50%);
}

.thwpmc-pulse-wrap-with-bar {
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

.thwpmc-pulse-button {
  position: relative;
  display: inline-flex;
  width: 74px;
  height: 74px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--thwpmc-pulse-bg);
  color: #fff;
  box-shadow: 0 18px 38px rgba(229, 57, 53, 0.35);
  text-decoration: none;
}

.thwpmc-pulse-button:hover,
.thwpmc-pulse-button:focus {
  color: #fff;
  text-decoration: none;
}

.thwpmc-pulse-button::before,
.thwpmc-pulse-button::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(229, 57, 53, 0.35);
  content: "";
}

.thwpmc-pulse-button::before {
  animation: thwpmc-pulse 1.8s ease-out infinite;
}

.thwpmc-pulse-button::after {
  animation: thwpmc-pulse 1.8s ease-out 0.6s infinite;
}

.thwpmc-pulse-button span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 28px;
  height: 28px;
}

.thwpmc-pulse-button svg {
  width: 100%;
  height: 100%;
}

@keyframes thwpmc-pulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }

  100% {
    transform: scale(1.85);
    opacity: 0;
  }
}

@media (min-width: 783px) {
  .thwpmc-mobile-only {
    display: none;
  }
}

@media (max-width: 420px) {
  .thwpmc-action {
    min-height: 54px;
    gap: 8px;
    padding: 13px 14px;
    font-size: 15px;
  }

  .thwpmc-pulse-button {
    width: 68px;
    height: 68px;
  }

  .thwpmc-pulse-wrap-with-bar {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}
