





/* Floating red contact button */
#rob-contact-button {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  right: 20px !important;
  bottom: 20px !important;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 2147483646 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 70px !important;
  height: 70px !important;
  min-width: 70px !important;
  min-height: 70px !important;
  max-width: 70px !important;
  max-height: 70px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;

  background: #C62828 !important;
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-decoration: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: manipulation;
  transform: none !important;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease !important;
}

/* White phone icon */
#rob-contact-button svg {
  display: block !important;
  width: 32px !important;
  height: 32px !important;
  flex-shrink: 0;
  fill: currentColor !important;
  pointer-events: none !important;
}

#rob-contact-button::before,
#rob-contact-button::after {
  content: none !important;
  display: none !important;
}

/* Gentle enlargement when using a mouse */
@media (hover: hover) and (pointer: fine) {
  #rob-contact-button:hover {
    transform: scale(1.08) !important;
    background: #A51F1F !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3) !important;
  }
}

/* Contact popup */
#rob-contact-popup {
  display: none;
  position: fixed !important;
  right: 20px !important;
  bottom: 105px !important;
  bottom: calc(105px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 2147483647 !important;
  width: 340px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 145px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 42px 20px 24px;
  margin: 0;
  background: #FFFFFF;
  color: #193463;
  border: 1px solid #DDDDDD;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  font-family: Arial, sans-serif;
  text-align: center;
  pointer-events: auto;
}

#rob-contact-popup:target {
  display: block;
}

/* Popup close button */
#rob-contact-popup .rob-contact-close {
  position: absolute;
  top: 2px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #193463;
  font-size: 32px;
  line-height: 1;
  text-decoration: none;
}

/* Popup heading */
#rob-contact-popup .rob-contact-title {
  margin: 0 0 12px;
  color: #193463;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.3;
  text-transform: none;
}

/* Popup message */
#rob-contact-popup .rob-contact-message {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.5;
  white-space: normal;
}

/* Clickable phone number */
#rob-contact-popup .rob-contact-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 4px 8px;
  color: #193463;
  font-size: 25px;
  font-weight: bold;
  text-decoration: underline;
}

/* Keyboard focus indicator */
#rob-contact-button:focus-visible,
#rob-contact-popup a:focus-visible {
  outline: 3px solid #193463;
  outline-offset: 3px;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  #rob-contact-button {
    transition: none !important;
  }

  #rob-contact-button:hover {
    transform: none !important;
  }
}