.dfcb-floating-wrap {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dfcb-floating-wrap--bottom-right {
  right: 20px;
  bottom: 20px;
  align-items: flex-end;
}

.dfcb-floating-wrap--bottom-left {
  left: 20px;
  bottom: 20px;
  align-items: flex-start;
}

.dfcb-floating-wrap--top-right {
  right: 20px;
  top: 20px;
  align-items: flex-end;
}

.dfcb-floating-wrap--top-left {
  left: 20px;
  top: 20px;
  align-items: flex-start;
}

.dfcb-floating-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.dfcb-floating-wrap.is-open .dfcb-floating-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.dfcb-floating-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(16px) scale(0.92);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.dfcb-floating-wrap--bottom-left .dfcb-floating-menu,
.dfcb-floating-wrap--top-left .dfcb-floating-menu {
  transform-origin: bottom left;
}

.dfcb-floating-wrap--top-right .dfcb-floating-menu,
.dfcb-floating-wrap--top-left .dfcb-floating-menu {
  transform: translateY(-16px) scale(0.92);
}

.dfcb-floating-wrap.is-open .dfcb-floating-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dfcb-floating-button,
.dfcb-floating-launcher,
.dfcb-floating-menu__item {
  border: 0;
  box-sizing: border-box;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.dfcb-floating-button:hover,
.dfcb-floating-launcher:hover,
.dfcb-floating-menu__item:hover,
.dfcb-floating-button:focus,
.dfcb-floating-launcher:focus,
.dfcb-floating-menu__item:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.28);
  outline: none;
}

.dfcb-floating-button--single,
.dfcb-floating-launcher {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}

.dfcb-floating-launcher {
  position: relative;
  z-index: 2;
}

.dfcb-floating-button--single {
  position: relative;
}

.dfcb-floating-wrap--bottom-right .dfcb-floating-button--single::after,
.dfcb-floating-wrap--top-right .dfcb-floating-button--single::after {
  right: calc(100% + 10px);
}

.dfcb-floating-wrap--bottom-left .dfcb-floating-button--single::after,
.dfcb-floating-wrap--top-left .dfcb-floating-button--single::after {
  left: calc(100% + 10px);
}

.dfcb-floating-button--single::after {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.18s ease;
}

.dfcb-floating-button--single:hover::after,
.dfcb-floating-button--single:focus::after {
  opacity: 1;
}

.dfcb-floating-menu__item {
  min-height: 56px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}

.dfcb-floating-menu__label {
  font-size: 14px;
  font-weight: 600;
}

.dfcb-style--solid {
  color: #fff;
  background: var(--dfcb-accent);
}

.dfcb-style--solid::after {
  background: var(--dfcb-accent);
  color: #fff;
}

.dfcb-style--solid:hover,
.dfcb-style--solid:focus,
.dfcb-style--solid:focus-visible {
  color: #fff;
  background: var(--dfcb-accent-deep);
}

.dfcb-style--glass {
  color: #f8fafc;
  background: rgba(var(--dfcb-accent-rgb), 0.68);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(14px);
}

.dfcb-style--glass::after {
  background: rgba(15, 23, 42, 0.86);
  color: #fff;
}

.dfcb-style--glass:hover,
.dfcb-style--glass:focus,
.dfcb-style--glass:focus-visible {
  color: #fff;
  background: rgba(var(--dfcb-accent-rgb), 0.82);
  border-color: rgba(255, 255, 255, 0.34);
}

.dfcb-style--pulse-stack {
  color: #fff;
  background: linear-gradient(135deg, var(--dfcb-accent) 0%, var(--dfcb-accent-deep) 100%);
  box-shadow: 0 14px 34px rgba(var(--dfcb-accent-rgb), 0.34);
}

.dfcb-style--pulse-stack::after {
  background: #fff;
  color: #334155;
}

.dfcb-style--radial-fan {
  color: #fff;
  background: linear-gradient(135deg, var(--dfcb-accent) 0%, var(--dfcb-accent-bright) 100%);
  box-shadow: 0 14px 34px rgba(var(--dfcb-accent-rgb), 0.34);
}

.dfcb-style--radial-fan::after {
  background: #111827;
  color: #fff;
}

.dfcb-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dfcb-icon--whatsapp,
.dfcb-icon--chat,
.dfcb-icon--launcher-chat,
.dfcb-icon--zalo {
  fill: currentColor;
  stroke: none;
}

.dfcb-floating-launcher .dfcb-icon--custom {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.dfcb-floating-wrap--preset-pulse-stack .dfcb-floating-menu {
  gap: 14px;
  align-items: flex-end;
}

.dfcb-floating-wrap--preset-pulse-stack.dfcb-floating-wrap--bottom-left .dfcb-floating-menu,
.dfcb-floating-wrap--preset-pulse-stack.dfcb-floating-wrap--top-left .dfcb-floating-menu {
  align-items: flex-start;
}

.dfcb-floating-wrap--preset-pulse-stack .dfcb-floating-launcher {
  animation: dfcbPulseLauncher 2.1s infinite;
}

.dfcb-floating-wrap--preset-pulse-stack.is-open .dfcb-floating-launcher {
  animation: none;
}

.dfcb-floating-wrap--preset-pulse-stack .dfcb-floating-launcher .dfcb-icon {
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.dfcb-floating-wrap--preset-pulse-stack.is-open .dfcb-floating-launcher .dfcb-icon {
  transform: rotate(12deg) scale(1.04);
}

.dfcb-floating-wrap--preset-pulse-stack .dfcb-floating-menu__item {
  background: transparent;
  color: var(--dfcb-accent);
  border: 0;
  box-shadow: none;
  padding: 0;
  min-height: 0;
  gap: 12px;
  transform: translateY(18px) scale(0.92);
  opacity: 0;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), filter 0.2s ease;
}

.dfcb-floating-wrap--preset-pulse-stack .dfcb-floating-menu__item:hover,
.dfcb-floating-wrap--preset-pulse-stack .dfcb-floating-menu__item:focus,
.dfcb-floating-wrap--preset-pulse-stack .dfcb-floating-menu__item:focus-visible {
  transform: translateX(-4px);
  box-shadow: none;
}

.dfcb-floating-wrap--preset-pulse-stack.is-open .dfcb-floating-menu__item {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: var(--dfcb-pulse-delay, 0ms);
}

.dfcb-floating-wrap--preset-pulse-stack.is-open .dfcb-floating-menu__item:hover,
.dfcb-floating-wrap--preset-pulse-stack.is-open .dfcb-floating-menu__item:focus,
.dfcb-floating-wrap--preset-pulse-stack.is-open .dfcb-floating-menu__item:focus-visible {
  transform: translateX(-4px);
}

.dfcb-floating-wrap--preset-pulse-stack .dfcb-floating-menu__item .dfcb-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.dfcb-floating-wrap--preset-pulse-stack .dfcb-floating-menu__item > .dfcb-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  padding: 14px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #fff;
  color: var(--dfcb-accent);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  order: 2;
}

.dfcb-floating-wrap--preset-pulse-stack .dfcb-floating-menu__label {
  order: 1;
  padding: 9px 13px;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.dfcb-floating-wrap--preset-pulse-stack .dfcb-floating-menu__item:hover .dfcb-floating-menu__label,
.dfcb-floating-wrap--preset-pulse-stack .dfcb-floating-menu__item:focus .dfcb-floating-menu__label,
.dfcb-floating-wrap--preset-pulse-stack .dfcb-floating-menu__item:focus-visible .dfcb-floating-menu__label,
.dfcb-floating-wrap--preset-pulse-stack.is-open .dfcb-floating-menu__item .dfcb-floating-menu__label {
  opacity: 1;
  transform: translateX(0);
}

.dfcb-floating-wrap--preset-pulse-stack.dfcb-floating-wrap--bottom-left .dfcb-floating-menu__item:hover,
.dfcb-floating-wrap--preset-pulse-stack.dfcb-floating-wrap--top-left .dfcb-floating-menu__item:hover,
.dfcb-floating-wrap--preset-pulse-stack.dfcb-floating-wrap--bottom-left .dfcb-floating-menu__item:focus,
.dfcb-floating-wrap--preset-pulse-stack.dfcb-floating-wrap--top-left .dfcb-floating-menu__item:focus,
.dfcb-floating-wrap--preset-pulse-stack.dfcb-floating-wrap--bottom-left .dfcb-floating-menu__item:focus-visible,
.dfcb-floating-wrap--preset-pulse-stack.dfcb-floating-wrap--top-left .dfcb-floating-menu__item:focus-visible {
  transform: translateX(4px);
}

.dfcb-floating-wrap--preset-pulse-stack.is-open.dfcb-floating-wrap--bottom-left .dfcb-floating-menu__item:hover,
.dfcb-floating-wrap--preset-pulse-stack.is-open.dfcb-floating-wrap--top-left .dfcb-floating-menu__item:hover,
.dfcb-floating-wrap--preset-pulse-stack.is-open.dfcb-floating-wrap--bottom-left .dfcb-floating-menu__item:focus,
.dfcb-floating-wrap--preset-pulse-stack.is-open.dfcb-floating-wrap--top-left .dfcb-floating-menu__item:focus,
.dfcb-floating-wrap--preset-pulse-stack.is-open.dfcb-floating-wrap--bottom-left .dfcb-floating-menu__item:focus-visible,
.dfcb-floating-wrap--preset-pulse-stack.is-open.dfcb-floating-wrap--top-left .dfcb-floating-menu__item:focus-visible {
  transform: translateX(4px);
}

.dfcb-floating-wrap--preset-pulse-stack.dfcb-floating-wrap--bottom-left .dfcb-floating-menu__item,
.dfcb-floating-wrap--preset-pulse-stack.dfcb-floating-wrap--top-left .dfcb-floating-menu__item {
  flex-direction: row-reverse;
}

.dfcb-floating-wrap--preset-pulse-stack.dfcb-floating-wrap--bottom-left .dfcb-floating-menu__item > .dfcb-icon,
.dfcb-floating-wrap--preset-pulse-stack.dfcb-floating-wrap--top-left .dfcb-floating-menu__item > .dfcb-icon {
  order: 1;
}

.dfcb-floating-wrap--preset-pulse-stack.dfcb-floating-wrap--bottom-left .dfcb-floating-menu__label,
.dfcb-floating-wrap--preset-pulse-stack.dfcb-floating-wrap--top-left .dfcb-floating-menu__label {
  order: 2;
  transform: translateX(-8px);
}

.dfcb-floating-wrap--preset-radial-fan {
  width: 68px;
  height: 68px;
}

.dfcb-floating-wrap--preset-radial-fan .dfcb-floating-menu {
  position: absolute;
  inset: 0;
  display: block;
  transform: none;
  opacity: 1;
  pointer-events: none;
}

.dfcb-floating-wrap--preset-radial-fan .dfcb-floating-menu__item {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: var(--dfcb-radial-item-size, 56px);
  min-height: var(--dfcb-radial-item-size, 56px);
  height: var(--dfcb-radial-item-size, 56px);
  padding: 0;
  border-radius: 999px;
  justify-content: center;
  background: #fff;
  color: var(--dfcb-accent-deep);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.28s ease, box-shadow 0.22s ease, color 0.22s ease;
  transition-delay: var(--dfcb-radial-delay, 0ms);
}

.dfcb-floating-wrap--preset-radial-fan .dfcb-floating-menu__item > .dfcb-icon {
  width: var(--dfcb-radial-icon-size, 28px);
  height: var(--dfcb-radial-icon-size, 28px);
  flex: 0 0 var(--dfcb-radial-icon-size, 28px);
}

.dfcb-floating-wrap--preset-radial-fan .dfcb-floating-menu__item:hover,
.dfcb-floating-wrap--preset-radial-fan .dfcb-floating-menu__item:focus,
.dfcb-floating-wrap--preset-radial-fan .dfcb-floating-menu__item:focus-visible {
  z-index: 3;
  transform: translate(calc(-50% + var(--dfcb-radial-x, 0px)), calc(-50% + var(--dfcb-radial-y, 0px))) scale(1.03);
}

.dfcb-floating-wrap--preset-radial-fan.is-open .dfcb-floating-menu__item {
  transform: translate(calc(-50% + var(--dfcb-radial-x, 0px)), calc(-50% + var(--dfcb-radial-y, 0px))) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.dfcb-floating-wrap--preset-radial-fan.is-open .dfcb-floating-menu__item:hover,
.dfcb-floating-wrap--preset-radial-fan.is-open .dfcb-floating-menu__item:focus,
.dfcb-floating-wrap--preset-radial-fan.is-open .dfcb-floating-menu__item:focus-visible {
  z-index: 3;
  transform: translate(calc(-50% + var(--dfcb-radial-x, 0px)), calc(-50% + var(--dfcb-radial-y, 0px))) scale(1.03);
}

.dfcb-floating-wrap--preset-radial-fan .dfcb-floating-menu__label {
  position: absolute;
  top: 50%;
  z-index: 2;
  right: calc(100% + var(--dfcb-radial-label-offset, 12px));
  transform: translateY(-50%) translateX(10px) scale(0.9);
  padding: 6px 10px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dfcb-floating-wrap--preset-radial-fan.dfcb-floating-wrap--bottom-left .dfcb-floating-menu__label,
.dfcb-floating-wrap--preset-radial-fan.dfcb-floating-wrap--top-left .dfcb-floating-menu__label {
  right: auto;
  left: calc(100% + var(--dfcb-radial-label-offset, 12px));
  transform: translateY(-50%) translateX(-10px) scale(0.9);
}

.dfcb-floating-wrap--preset-radial-fan .dfcb-floating-menu__item:hover .dfcb-floating-menu__label,
.dfcb-floating-wrap--preset-radial-fan .dfcb-floating-menu__item:focus .dfcb-floating-menu__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
}

.dfcb-floating-wrap--preset-radial-fan .dfcb-floating-launcher {
  animation: dfcbSunsetPulse 2.5s infinite;
}

.dfcb-floating-wrap--preset-radial-fan.is-open .dfcb-floating-launcher {
  animation: none;
}

.dfcb-floating-wrap--preset-radial-fan .dfcb-floating-launcher .dfcb-icon {
  transition: transform 0.22s ease, filter 0.22s ease;
}

.dfcb-floating-wrap--preset-radial-fan.is-open .dfcb-floating-launcher .dfcb-icon {
  animation: dfcbLauncherPop 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes dfcbPulseLauncher {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(var(--dfcb-accent-rgb), 0.38);
  }

  70% {
    transform: scale(1.04);
    box-shadow: 0 0 0 16px rgba(var(--dfcb-accent-rgb), 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
  }
}

@keyframes dfcbSunsetPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--dfcb-accent-rgb), 0.42);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(var(--dfcb-accent-rgb), 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
  }
}

@keyframes dfcbLauncherPop {
  0% {
    transform: scale(0.92);
    filter: brightness(0.98);
  }

  55% {
    transform: scale(1.08);
    filter: brightness(1.08);
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@media (max-width: 640px) {
  .dfcb-floating-wrap--bottom-right,
  .dfcb-floating-wrap--top-right {
    right: 14px;
  }

  .dfcb-floating-wrap--bottom-left,
  .dfcb-floating-wrap--top-left {
    left: 14px;
  }

  .dfcb-floating-wrap--bottom-right,
  .dfcb-floating-wrap--bottom-left {
    bottom: 14px;
  }

  .dfcb-floating-wrap--top-right,
  .dfcb-floating-wrap--top-left {
    top: 14px;
  }

  .dfcb-floating-wrap--preset-radial-fan {
    width: 62px;
    height: 62px;
  }
}
