:root {
  --alc-navy: #111d34;
  --alc-navy-2: #071326;
  --alc-gold: #c6a05f;
  --alc-gold-2: #ead6ad;
  --alc-cream: #f7f1e7;
  --alc-whatsapp: #25d366;
}

.alc-floating-contact,
.alc-floating-contact *,
.alc-floating-contact *::before,
.alc-floating-contact *::after {
  box-sizing: border-box;
}

.alc-floating-contact {
  position: fixed;
  right: 24px;
  bottom: calc(var(--alc-bottom-desktop, 28px) + env(safe-area-inset-bottom, 0px));
  z-index: var(--alc-z-index, 99990);
  font-family: inherit;
  line-height: 1.2;
  isolation: isolate;
  direction: ltr;
  touch-action: manipulation;
}

.alc-floating-contact--left {
  right: auto;
  left: 24px;
}

.alc-floating-contact--shortcode {
  position: relative;
  right: auto;
  left: auto;
  bottom: auto;
  display: inline-flex;
}

.alc-contact-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.alc-floating-contact--left .alc-contact-shell {
  align-items: flex-start;
}

.alc-contact-trigger,
.alc-action {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  text-decoration: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.alc-contact-trigger {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 186px;
  min-height: 62px;
  padding: 10px 14px 10px 11px;
  border-radius: 999px;
  color: var(--alc-cream);
  border: 1px solid rgba(234, 214, 173, .44);
  background:
    radial-gradient(circle at 14% 12%, rgba(234, 214, 173, .24), transparent 36%),
    linear-gradient(135deg, rgba(18, 31, 55, .98), rgba(7, 18, 34, .98));
  box-shadow:
    0 18px 46px rgba(3, 10, 23, .30),
    0 0 0 1px rgba(255, 255, 255, .045) inset,
    0 1px 0 rgba(255, 255, 255, .16) inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.alc-contact-trigger::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 0%, transparent 33%, rgba(255,255,255,.10) 43%, rgba(234,214,173,.42) 50%, rgba(255,255,255,.08) 58%, transparent 70%);
  transform: translateX(-138%) skewX(-12deg);
  animation: alc-trigger-shine 6.4s ease-in-out infinite;
  mix-blend-mode: screen;
}

.alc-contact-trigger::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.17), transparent 45%);
  opacity: .78;
}

.alc-contact-trigger:hover,
.alc-contact-trigger:focus-visible,
.alc-floating-contact.alc-is-open .alc-contact-trigger {
  transform: translateY(-2px);
  border-color: rgba(234, 214, 173, .72);
  box-shadow:
    0 24px 56px rgba(3, 10, 23, .38),
    0 0 0 4px rgba(198, 160, 95, .15),
    0 1px 0 rgba(255, 255, 255, .18) inset;
  outline: none;
}

.alc-trigger-icon,
.alc-trigger-copy,
.alc-trigger-plus {
  position: relative;
  z-index: 2;
}

.alc-trigger-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #16223a;
  background: linear-gradient(135deg, #f8edd8, #c6a05f 78%);
  box-shadow: 0 10px 24px rgba(198,160,95,.25), 0 1px 0 rgba(255,255,255,.36) inset;
}

.alc-trigger-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.alc-trigger-copy {
  display: grid;
  gap: 2px;
  text-align: left;
  min-width: 0;
}

.alc-trigger-caption {
  color: rgba(247, 241, 231, .72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.alc-trigger-copy strong {
  color: #fff5df;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .01em;
  white-space: nowrap;
}

.alc-trigger-plus {
  width: 24px;
  height: 24px;
  margin-left: 2px;
  flex: 0 0 24px;
  border-radius: 999px;
  background: rgba(234,214,173,.12);
  border: 1px solid rgba(234,214,173,.28);
  transition: transform .22s ease, background .22s ease;
}

.alc-trigger-plus::before,
.alc-trigger-plus::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 999px;
  background: var(--alc-gold-2);
}

.alc-trigger-plus::after {
  transform: rotate(90deg);
}

.alc-floating-contact.alc-is-open .alc-trigger-plus {
  transform: rotate(135deg);
  background: rgba(234,214,173,.18);
}

.alc-contact-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(330px, calc(100vw - 28px));
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid rgba(234, 214, 173, .34);
  background:
    radial-gradient(circle at 18% 0%, rgba(234, 214, 173, .18), transparent 34%),
    linear-gradient(135deg, rgba(17, 29, 52, .97), rgba(6, 16, 31, .97));
  box-shadow:
    0 20px 54px rgba(3, 10, 23, .34),
    0 1px 0 rgba(255,255,255,.10) inset;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(10px) scale(.97);
  transform-origin: right bottom;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: opacity, transform;
  transition: opacity .18s ease, transform .22s cubic-bezier(.22,.61,.36,1), visibility .18s ease;
}

/* v1.5.1: invisible bridge between trigger and menu prevents accidental hover/cursor-gap loss. */
.alc-contact-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  height: 18px;
  pointer-events: auto;
  background: transparent;
}

.alc-floating-contact--left .alc-contact-menu {
  right: auto;
  left: 0;
  transform-origin: left bottom;
}

.alc-panel-head {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 3px 4px 7px 5px;
  margin-bottom: 1px;
  text-align: left;
  border-bottom: 1px solid rgba(234, 214, 173, .16);
}

.alc-panel-kicker {
  width: 34px;
  height: 2px;
  border-radius: 999px;
  margin-bottom: 3px;
  background: linear-gradient(90deg, rgba(198,160,95,.35), rgba(234,214,173,.92), rgba(198,160,95,.22));
  box-shadow: 0 0 18px rgba(198,160,95,.24);
}

.alc-panel-head strong {
  display: block;
  color: #fff4dd;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.22;
}

.alc-panel-head small {
  display: block;
  max-width: 280px;
  color: rgba(247,241,231,.66);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.36;
}

.alc-floating-contact--cream_navy .alc-panel-head {
  border-bottom-color: rgba(17,29,52,.10);
}

.alc-floating-contact--cream_navy .alc-panel-head strong {
  color: var(--alc-navy);
}

.alc-floating-contact--cream_navy .alc-panel-head small {
  color: rgba(17,29,52,.62);
}

.alc-floating-contact.alc-is-open .alc-contact-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.alc-action {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 58px;
  padding: 10px 13px;
  border-radius: 18px;
  color: var(--alc-cream) !important;
  border: 1px solid rgba(234, 214, 173, .22);
  background:
    linear-gradient(135deg, rgba(22, 37, 64, .95), rgba(9, 20, 39, .95));
  box-shadow: 0 10px 28px rgba(3,10,23,.20), 0 1px 0 rgba(255,255,255,.08) inset;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.alc-action::before {
  content: "";
  position: absolute;
  top: -55%;
  bottom: -55%;
  left: -62%;
  width: 42%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.27) 48%, transparent 100%);
  transform: translateX(-100%) rotate(10deg);
  transition: transform .56s cubic-bezier(.22,.61,.36,1);
  opacity: .58;
}

.alc-action:hover,
.alc-action:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(234, 214, 173, .56);
  box-shadow: 0 16px 38px rgba(3,10,23,.30), 0 0 0 3px rgba(198,160,95,.10);
  outline: none;
}

.alc-action:hover::before,
.alc-action:focus-visible::before {
  transform: translateX(430%) rotate(10deg);
}

.alc-action__icon {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #16223a;
  background: linear-gradient(135deg, #f9ecd2, #c6a05f);
  box-shadow: 0 10px 22px rgba(198,160,95,.22), 0 1px 0 rgba(255,255,255,.32) inset;
}

.alc-action__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.alc-action__copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.alc-action__copy strong {
  color: #fff4dd;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .01em;
  white-space: nowrap;
}

.alc-action__copy small {
  color: rgba(247,241,231,.68);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.alc-action--whatsapp .alc-action__icon {
  color: #fff;
  background: linear-gradient(135deg, #25d366, #128c45);
  box-shadow: 0 10px 24px rgba(37,211,102,.20), 0 1px 0 rgba(255,255,255,.22) inset;
}

.alc-action--whatsapp {
  min-height: 52px;
  padding: 8px 12px;
  gap: 9px;
}

.alc-action--whatsapp .alc-action__icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.alc-action--whatsapp .alc-action__copy strong {
  font-size: 13px;
}

.alc-action--whatsapp .alc-action__copy small {
  font-size: 10px;
}

.alc-action--call,
.alc-action--call-alt {
  background:
    radial-gradient(circle at 92% 0%, rgba(234,214,173,.14), transparent 38%),
    linear-gradient(135deg, rgba(20, 33, 57, .97), rgba(8, 18, 35, .97));
}

.alc-action--secondary {
  opacity: .98;
}

.alc-hide-desktop { display: none !important; }
.alc-desktop-off { display: none !important; }

.alc-floating-contact--cream_navy .alc-contact-trigger,
.alc-floating-contact--cream_navy .alc-contact-menu {
  color: var(--alc-navy);
  background:
    radial-gradient(circle at 18% 0%, rgba(198,160,95,.18), transparent 34%),
    linear-gradient(135deg, rgba(247,241,231,.97), rgba(235,225,208,.97));
  border-color: rgba(17,29,52,.14);
  box-shadow: 0 20px 48px rgba(17,29,52,.18), 0 1px 0 rgba(255,255,255,.38) inset;
}

.alc-floating-contact--cream_navy .alc-trigger-caption,
.alc-floating-contact--cream_navy .alc-action__copy small { color: rgba(17,29,52,.62); }
.alc-floating-contact--cream_navy .alc-trigger-copy strong,
.alc-floating-contact--cream_navy .alc-action__copy strong { color: var(--alc-navy); }
.alc-floating-contact--cream_navy .alc-action {
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(247,241,231,.88));
  border-color: rgba(17,29,52,.10);
}

.alc-floating-contact--minimal_dark .alc-contact-trigger,
.alc-floating-contact--minimal_dark .alc-contact-menu,
.alc-floating-contact--minimal_dark .alc-action {
  background: linear-gradient(135deg, rgba(8, 12, 22, .97), rgba(3, 7, 14, .97));
  border-color: rgba(255,255,255,.13);
}

@keyframes alc-trigger-shine {
  0%, 57% { transform: translateX(-138%) skewX(-12deg); opacity: 0; }
  66% { opacity: .92; }
  82%, 100% { transform: translateX(138%) skewX(-12deg); opacity: 0; }
}

/* Classic fallback: if old dock is selected in admin, keep both actions visible in one compact bar. */
.alc-floating-contact--classic_dock .alc-contact-shell {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(234, 214, 173, .34);
  background:
    radial-gradient(circle at 18% 0%, rgba(234, 214, 173, .16), transparent 32%),
    linear-gradient(135deg, rgba(17,29,52,.97), rgba(7,16,31,.97));
  box-shadow: 0 20px 48px rgba(3,10,23,.28);
}
.alc-floating-contact--classic_dock .alc-contact-trigger { display: none; }
.alc-floating-contact--classic_dock .alc-panel-head { display: none; }
.alc-floating-contact--classic_dock .alc-contact-menu {
  position: static;
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  width: auto;
  display: flex;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.alc-floating-contact--classic_dock .alc-action {
  min-width: 138px;
  min-height: 48px;
  border-radius: 999px;
}
.alc-floating-contact--classic_dock .alc-action__copy small { display: none; }

@media (max-width: 782px) {
  .alc-desktop-off.alc-mobile-on { display: block !important; }
  .alc-mobile-off { display: none !important; }
  .alc-hide-desktop { display: flex !important; }
  .alc-hide-mobile { display: none !important; }

  .alc-floating-contact {
    right: 14px;
    left: auto;
    bottom: calc(var(--alc-bottom-mobile, 18px) + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: calc(100vw - 28px);
  }

  .alc-floating-contact--left {
    left: 14px;
    right: auto;
  }

  .alc-floating-contact--shortcode {
    left: auto !important;
    right: auto !important;
    bottom: auto;
    width: 100%;
    max-width: none;
  }

  .alc-contact-trigger {
    min-width: 166px;
    min-height: 56px;
    padding: 8px 11px 8px 9px;
    gap: 8px;
    box-shadow:
      0 16px 40px rgba(3,10,23,.36),
      0 0 0 1px rgba(255,255,255,.045) inset,
      0 1px 0 rgba(255,255,255,.14) inset;
  }

  .alc-trigger-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .alc-trigger-icon svg {
    width: 18px;
    height: 18px;
  }

  .alc-trigger-caption {
    font-size: 9px;
    letter-spacing: .10em;
  }

  .alc-trigger-copy strong {
    font-size: 14px;
  }

  .alc-trigger-plus {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .alc-contact-menu {
    width: min(316px, calc(100vw - 28px));
    bottom: calc(100% + 10px);
    padding: 10px;
    border-radius: 22px;
  }

  .alc-panel-head {
    padding: 2px 4px 7px;
  }

  .alc-panel-head strong {
    font-size: 13px;
  }

  .alc-panel-head small {
    max-width: 260px;
    font-size: 10px;
  }

  .alc-action {
    min-height: 54px;
    padding: 9px 11px;
    border-radius: 17px;
  }

  .alc-action__icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .alc-action__copy strong {
    font-size: 13px;
  }

  .alc-action__copy small {
    font-size: 10px;
  }

  .alc-action--whatsapp {
    min-height: 50px;
    padding: 8px 10px;
    gap: 8px;
  }

  .alc-action--whatsapp .alc-action__icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .alc-action--whatsapp .alc-action__copy strong {
    font-size: 12px;
  }

  .alc-action--whatsapp .alc-action__copy small {
    font-size: 9px;
  }

  .alc-floating-contact--classic_dock {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }
  .alc-floating-contact--classic_dock .alc-contact-shell {
    width: 100%;
  }
  .alc-floating-contact--classic_dock .alc-contact-menu {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .alc-floating-contact--classic_dock .alc-action {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 360px) {
  .alc-panel-head small {
    font-size: 9.5px;
    line-height: 1.3;
  }

  .alc-contact-trigger {
    min-width: 150px;
  }
  .alc-trigger-caption {
    display: none;
  }
  .alc-trigger-copy strong {
    font-size: 13px;
  }
  .alc-trigger-plus {
    margin-left: 0;
  }
}

@media (hover: none) {
  .alc-contact-trigger:hover,
  .alc-action:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alc-contact-trigger::before,
  .alc-action::before {
    animation: none !important;
    transition: none !important;
  }
  .alc-contact-trigger,
  .alc-action,
  .alc-contact-menu,
  .alc-trigger-plus {
    transition: none !important;
  }
}

@media print {
  .alc-floating-contact { display: none !important; }
}
