.velri-contact-widget {
  --velri-contact-plum: #71344f;
  --velri-contact-plum-deep: #53263b;
  --velri-contact-rose: #f4d9df;
  --velri-contact-paper: #fffaf3;
  --velri-contact-ink: #282125;
  --velri-contact-muted: #74666c;
  position: fixed;
  z-index: 9990;
  right: clamp(16px, 2.2vw, 30px);
  bottom: max(20px, env(safe-area-inset-bottom));
  max-width: calc(100vw - 32px);
  color: var(--velri-contact-ink);
  font-family: inherit;
  pointer-events: none;
}

.velri-contact-details,
.velri-contact-details > summary,
.velri-contact-panel { pointer-events: auto; }
.velri-contact-details > summary {
  display: flex;
  min-width: 188px;
  min-height: 62px;
  align-items: center;
  gap: 11px;
  padding: 9px 16px 9px 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--velri-contact-plum), var(--velri-contact-plum-deep));
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(69, 31, 49, .27);
  cursor: pointer;
  list-style: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.velri-contact-details > summary::-webkit-details-marker { display: none; }
.velri-contact-details > summary:hover,
.velri-contact-details > summary:focus-visible {
  background: linear-gradient(135deg, #844160, var(--velri-contact-plum));
  box-shadow: 0 17px 42px rgba(69, 31, 49, .34);
  transform: translateY(-2px);
  outline: 0;
}
.velri-contact-details[open] > summary { box-shadow: 0 10px 28px rgba(69, 31, 49, .22); }
.velri-contact-summary-icon {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  color: var(--velri-contact-plum-deep);
  background: var(--velri-contact-rose);
  border-radius: 50%;
}
.velri-contact-summary-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.velri-contact-summary-copy { display: grid; gap: 1px; min-width: 0; }
.velri-contact-summary-copy strong { color: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; }
.velri-contact-summary-copy small { color: rgba(255, 255, 255, .78); font-size: 16px; line-height: 1.25; white-space: nowrap; }

.velri-contact-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 13px);
  width: min(354px, calc(100vw - 32px));
  max-height: min(590px, calc(100dvh - 118px));
  overflow: auto;
  padding: 0;
  background: var(--velri-contact-paper);
  border: 1px solid rgba(113, 52, 79, .2);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(69, 31, 49, .24);
}
.velri-contact-details:not([open]) .velri-contact-panel { display: none; }
.velri-contact-panel > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--velri-contact-plum), var(--velri-contact-plum-deep));
}
.velri-contact-monogram {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--velri-contact-plum-deep);
  background: var(--velri-contact-rose);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 23px;
}
.velri-contact-panel header div { display: grid; gap: 2px; min-width: 0; }
.velri-contact-panel header strong { font-size: 17px; line-height: 1.2; }
.velri-contact-panel header small { color: rgba(255, 255, 255, .8); font-size: 16px; }
.velri-contact-close {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  cursor: pointer;
}
.velri-contact-close:hover,
.velri-contact-close:focus-visible { color: var(--velri-contact-plum-deep); background: var(--velri-contact-rose); outline: 0; }
.velri-contact-close svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.velri-contact-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  margin: 20px 18px 16px;
  padding: 15px;
  background: #f9ecee;
  border-radius: 13px;
}
.velri-contact-message p { margin: 0; color: var(--velri-contact-ink); font-size: 16px; line-height: 1.55; }
.velri-contact-sparkle { color: var(--velri-contact-plum); font-size: 19px; line-height: 1.4; }
.velri-contact-actions { display: grid; gap: 10px; padding: 0 18px 20px; }
.velri-contact-actions a { text-decoration: none; }
.velri-contact-primary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 11px 14px;
  color: #fff;
  background: var(--velri-contact-plum);
  border: 1px solid var(--velri-contact-plum);
  border-radius: 12px;
}
.velri-contact-primary:hover,
.velri-contact-primary:focus-visible { color: var(--velri-contact-plum-deep); background: var(--velri-contact-rose); border-color: var(--velri-contact-rose); outline: 0; }
.velri-contact-primary svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.velri-contact-primary span { display: grid; gap: 1px; }
.velri-contact-primary strong { font-size: 16px; line-height: 1.25; }
.velri-contact-primary small { color: inherit; font-size: 16px; opacity: .8; }
.velri-contact-secondary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: var(--velri-contact-plum-deep);
  border: 1px solid rgba(113, 52, 79, .28);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
}
.velri-contact-secondary:hover,
.velri-contact-secondary:focus-visible { background: #f9ecee; border-color: var(--velri-contact-plum); outline: 0; }

@media (max-width: 520px) {
  .velri-contact-widget {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 28px);
  }
  .velri-contact-details > summary {
    width: 56px;
    min-width: 56px;
    min-height: 56px;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
  }
  .velri-contact-summary-icon { width: 43px; height: 43px; flex-basis: 43px; }
  .velri-contact-summary-copy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .velri-contact-panel {
    position: fixed;
    right: 14px;
    bottom: max(82px, calc(env(safe-area-inset-bottom) + 68px));
    width: calc(100vw - 28px);
    max-height: calc(100dvh - 112px);
  }
}

@media (max-height: 620px) and (min-width: 521px) {
  .velri-contact-panel { max-height: calc(100dvh - 94px); }
}

@media (prefers-reduced-motion: reduce) {
  .velri-contact-details > summary { transition: none; }
}

@media print {
  .velri-contact-widget { display: none !important; }
}
