/* Dr. Panturu Luxury v1.16.5 -- floating utilities, horizontally aligned on mobile. */
.drp-floating-controls {
  position: fixed;
  z-index: 990;
  right: clamp(18px, 2.6vw, 38px);
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.drp-floating-controls__top {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: #e2be89;
  background: rgba(25, 21, 18, .96);
  border: 1px solid rgba(207, 170, 117, .68);
  border-radius: 2px;
  box-shadow: 0 12px 36px rgba(17, 11, 5, .2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .28s ease, transform .3s ease, visibility .28s ease,
              background-color .25s ease, border-color .25s ease;
}

.drp-floating-controls__top::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-top: 1px solid #e4c495;
  border-right: 1px solid #e4c495;
  opacity: .8;
}

.drp-floating-controls__top svg { display: block; width: 21px; height: 21px; }
.drp-floating-controls__top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.drp-floating-controls__top.is-visible:hover {
  background: #3b2d21;
  border-color: #e4c495;
  transform: translateY(-3px);
}
.drp-floating-controls__top:focus-visible,
.drp-floating-controls__call:focus-visible {
  outline: 2px solid #dfb980;
  outline-offset: 4px;
}

/* The tap-to-call action exists in the HTML on all viewports, but is mobile-only. */
.drp-floating-controls__call { display: none; }

@media (max-width: 767px) {
  .drp-floating-controls {
    /* One mobile row: call left, scroll-to-top right, exact shared bottom baseline. */
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
  }

  .drp-floating-controls__top { width: 48px; height: 48px; }

  .drp-floating-controls__call {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    box-sizing: border-box;
    min-height: 48px;
    max-width: calc(100vw - 32px);
    padding: 4px 17px 4px 14px;
    color: #f8eee1;
    background: #201b16;
    border: 1px solid #af8958;
    border-radius: 2px;
    box-shadow: 0 14px 42px rgba(24, 17, 10, .27);
    font-family: var(--drp-sans, Arial, sans-serif);
    text-decoration: none;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .25s ease, background-color .25s ease,
                box-shadow .25s ease, transform .25s ease;
  }

  .drp-floating-controls__call::before {
    content: '';
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 0;
    width: 2px;
    background: linear-gradient(#ead2ab, #9d7143);
  }

  .drp-floating-controls__phone {
    display: inline-grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: #deba85;
    border: 1px solid rgba(220, 184, 131, .36);
  }
  .drp-floating-controls__phone svg { display: block; width: 19px; height: 19px; }
  .drp-floating-controls__call-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
  }
  .drp-floating-controls__call-title {
    color: #f8eee1;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .drp-floating-controls__call-number {
    color: #d6b58a;
    font-size: 11px;
    line-height: 1.25;
    letter-spacing: .04em;
    white-space: nowrap;
  }

  .drp-floating-controls__call:hover,
  .drp-floating-controls__call:active {
    color: #f8eee1;
    background: #3b2c20;
    border-color: #e2b778;
    box-shadow: 0 16px 45px rgba(24, 17, 10, .34);
    transform: translateY(-2px);
  }
}

/* The mobile drawer is a modal region; floating controls must not overlap it. */
body.drp-nav-open .drp-floating-controls {
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html:root { scroll-behavior: auto !important; }
  .drp-floating-controls__top,
  .drp-floating-controls__call { transition: none !important; }
}

@media print {
  .drp-floating-controls { display: none !important; }
}
