.store-contact {
  --contact-red: #971b25;
  --contact-radius: 4px;
  position: fixed;
  z-index: 5;
  inset: auto max(clamp(12px, 3vw, 36px), env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) auto;
  width: min(348px, calc(100% - max(24px, env(safe-area-inset-left) + env(safe-area-inset-right))));
  border: 1px solid #d8dadd;
  border-radius: 5px;
  overflow: clip;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 12px #24222626;
}
body:has(.store-contact) { padding-block-end: calc(78px + env(safe-area-inset-bottom)); }
body:has(dialog:modal) .store-contact { visibility: hidden; }
.store-contact-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 58px;
  gap: 12px;
  padding: 8px 14px;
  border: 0;
  color: #fff;
  background: var(--contact-red);
  text-align: left;
}
.store-contact-toggle:hover { background: #831520; }
.store-contact-toggle:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
.store-contact-toggle strong, .store-contact-toggle small { display: block; }
.store-contact-toggle strong { font-size: 1rem; line-height: 1.3; }
.store-contact-toggle small { font-size: .78rem; line-height: 1.3; }
.store-contact-icon {
  flex: 0 0 17px;
  position: relative;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: var(--contact-radius);
}
.store-contact-icon::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 3px;
  width: 4px;
  height: 5px;
  border-left: 1.5px solid currentColor;
  transform: skewY(-36deg);
  background: inherit;
}
.store-contact-chevron {
  margin-inline-start: auto;
  margin-inline-end: 4px;
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: translateY(2px) rotate(-45deg);
}
.store-contact-toggle[aria-expanded="true"] .store-contact-chevron { transform: translateY(-2px) rotate(135deg); }
.store-contact-panel { display: grid; grid-template-rows: 1fr; }
.store-contact-panel[inert] { grid-template-rows: 0fr; }
.store-contact-clip { min-block-size: 0; overflow: hidden; }
.store-contact-body {
  max-block-size: calc(100dvh - 100px - env(safe-area-inset-bottom));
  padding: 12px 14px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.store-contact-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 10px;
  margin: 0 0 6px;
}
.store-contact-heading h2 { margin: 0; font-size: 1rem; line-height: 1.3; }
.store-contact-call, .store-contact-draft {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--contact-red);
  font-size: .85rem;
  font-weight: 750;
}
.store-contact-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-block-end: 10px; }
.store-contact-topics button {
  min-height: 44px;
  border: 1px solid var(--field-line);
  border-radius: var(--contact-radius);
  color: inherit;
  background: #fff;
  font-size: .88rem;
}
.store-contact-topics button[aria-pressed="true"] {
  border-color: var(--contact-red);
  color: var(--contact-red);
  background: #f9e9ea;
  font-weight: 750;
}
.store-contact-reference, .store-contact-status { margin: 0; color: var(--muted); font-size: .84rem; }
.store-contact-reference { margin-block-end: 7px; }
.store-contact-form { display: grid; gap: 8px; }
.store-contact-form .field { border-radius: var(--contact-radius); font: inherit; font-size: 16px; font-weight: 400; min-height: 44px; padding: 8px 9px; }
.store-contact-form textarea { resize: vertical; }
.store-contact-form textarea:focus-visible { outline: 3px solid #ae6500; outline-offset: 3px; }
.store-contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.store-contact-actions .button {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--contact-radius);
  color: #fff;
  background: var(--contact-red);
  font-size: .86rem;
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  .store-contact-arriving { animation: store-contact-arrive 460ms cubic-bezier(.2,.75,.3,1) both; }
  .store-contact-chevron { transition: transform 220ms ease; }
  .store-contact-panel { transition: grid-template-rows 240ms cubic-bezier(.2,.75,.3,1); }
  @keyframes store-contact-arrive {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
