/*
 * Right-edge quick actions, following xyztu.com: a small white rounded card
 * that sits on screen all the time — WhatsApp, email, TDS library, enquiry —
 * one icon per row, quiet hover, no collapse control. Hovering or
 * tabbing to a row opens a tooltip on its left that says what the row is and
 * the number / address behind it. Scoped to .xyzc-dock.
 */
.xyzc-dock {
  position: fixed;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  width: 56px;
  padding: 4px;
  border: 1px solid #E1E6EB;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(17, 21, 26, .10);
  font-family: inherit;
  line-height: 1;
  -webkit-print-color-adjust: exact;
}

.xyzc-dock__items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.xyzc-dock__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #11151A;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, color .2s ease;
}

.xyzc-dock__item:hover,
.xyzc-dock__item:focus-visible { background: #F2F5F8; color: #0B2C49; }

.xyzc-dock__item:focus-visible { outline: 2px solid #125F96; outline-offset: -2px; }

/* The WhatsApp row keeps the brand green, like the reference card. */
.xyzc-dock__item--wa { color: #16704C; }
.xyzc-dock__item--wa:hover,
.xyzc-dock__item--wa:focus-visible { background: #EDF7F1; color: #155C40; }

.xyzc-dock__icon { display: flex; align-items: center; justify-content: center; }
.xyzc-dock__icon svg { display: block; }

/* Tooltip: a dark two-line label that opens to the left of the row — the
   name of the action on top, then the number / address / what happens next.
   Hidden until hover or keyboard focus; never part of the tab order. */
.xyzc-dock__label {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: max-content;
  max-width: 240px;
  padding: 8px 12px;
  border-radius: 9px;
  background: #11151A;
  color: #fff;
  text-align: left;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(6px, -50%);
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
  box-shadow: 0 6px 20px rgba(17, 21, 26, .22);
}

.xyzc-dock__label::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  margin-top: -5px;
  border: 5px solid transparent;
  border-left-color: #11151A;
}

.xyzc-dock__label b {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
}

.xyzc-dock__label > span {
  font-size: 11.5px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .74);
}

@media (hover: hover) {
  .xyzc-dock__item:hover .xyzc-dock__label,
  .xyzc-dock__item:focus-visible .xyzc-dock__label {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
    transition-delay: 0s;
  }
}

/* The mobile menu owns the screen while it is open; step aside. */
body.nd-open .xyzc-dock { display: none; }

/* Phones: the same icons in a narrower card, no tooltips (tap goes straight
   to the action). */
@media (hover: none) {
  .xyzc-dock { right: 8px; width: 44px; padding: 3px; border-radius: 12px; }
  .xyzc-dock__item { width: 38px; height: 40px; border-radius: 8px; }
  .xyzc-dock__icon svg { width: 17px; height: 17px; }
  .xyzc-dock__label { display: none; }
}

@media print {
  .xyzc-dock { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .xyzc-dock__item { transition: none; }
  .xyzc-dock__label { transition: none; }
}