/* ============================================================
   "Own domain" widget (js/shop-domain.js), 18 Nov 2026. Used in the
   agent panel (dark mode through the --rs-* tokens) and the seller panel
   (falls back to the light values). One sky blue accent, hairlines.
   ============================================================ */
.sdm { --sdm-ink: var(--rs-ink, #101828); --sdm-soft: var(--rs-soft, #51607a); --sdm-line: var(--rs-line, rgba(16, 24, 40, .1));
  --sdm-card: var(--rs-card, #fff); --sdm-tint: var(--rs-tint, #eef5ff); --sdm-tint-line: var(--rs-tint-line, #cfe1fb);
  --sdm-blue: var(--rs-brand, #0164ce); --sdm-blue-ink: var(--rs-brand-ink, #0059c4);
  --sdm-ok: var(--rs-ok, #1c7a43); --sdm-ok-bg: var(--rs-ok-bg, #e7f4ec); --sdm-warn: var(--rs-warn, #9a5b00); --sdm-warn-bg: var(--rs-warn-bg, #fff4e5);
  --sdm-bad: var(--rs-bad, #b42318);
  color: var(--sdm-ink); font-size: 14.5px; line-height: 1.5; }
.sdm-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sdm-title { margin: 0 0 4px; font-size: 17px; font-weight: 600; text-wrap: balance; }
.sdm-h { margin: 16px 0 8px; font-size: 15px; font-weight: 600; }
.sdm-note { margin: 0 0 10px; color: var(--sdm-soft); font-size: 13.5px; max-width: 70ch; text-wrap: pretty; }
.sdm-note b { color: var(--sdm-ink); font-weight: 600; }
.sdm-big { margin: 0 0 8px; font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.sdm-big a { color: var(--sdm-blue-ink); text-decoration: none; }
.sdm-state { flex: none; display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--sdm-tint); color: var(--sdm-blue-ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.sdm-state.is-wait { background: var(--sdm-warn-bg); color: var(--sdm-warn); }
.sdm-state.is-ok { background: var(--sdm-ok-bg); color: var(--sdm-ok); }
.sdm-state.is-off { color: var(--sdm-soft); }

.sdm-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.sdm-way { display: grid; gap: 4px; min-height: 44px; padding: 14px 16px; text-align: left; border: 1px solid var(--sdm-line); border-radius: 14px;
  background: var(--sdm-card); color: inherit; font: inherit; cursor: pointer; touch-action: manipulation;
  transition: border-color 160ms ease, background-color 160ms ease, transform 120ms ease; }
.sdm-way b { font-size: 14.5px; font-weight: 600; }
.sdm-way span { color: var(--sdm-soft); font-size: 13px; text-wrap: pretty; }
.sdm-way:active { transform: scale(.97); }
.sdm-way.is-on { border-color: var(--sdm-blue); background: var(--sdm-tint); box-shadow: inset 0 0 0 1px var(--sdm-blue); }

.sdm-steps { margin: 8px 0 12px; padding: 0 0 0 20px; font-size: 13.5px; color: var(--sdm-soft); max-width: 70ch; }
.sdm-steps li { margin: 0 0 6px; text-wrap: pretty; }
.sdm-steps b { color: var(--sdm-ink); font-weight: 600; }
.sdm-more { margin: 0 0 14px; }
.sdm-more summary { display: flex; align-items: center; min-height: 44px; color: var(--sdm-blue-ink); font-weight: 600; font-size: 13.5px; cursor: pointer; list-style: none; }
.sdm-more summary::-webkit-details-marker { display: none; }

.sdm-label { display: block; margin: 10px 0 6px; font-size: 13px; color: var(--sdm-soft); }
.sdm-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0; }
.sdm-input { flex: 1 1 220px; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--sdm-line); border-radius: 10px;
  background: var(--sdm-card); color: inherit; font: inherit; font-size: 16px; }
textarea.sdm-input { resize: vertical; }
.sdm-input:focus-visible { outline: 2px solid var(--sdm-blue); outline-offset: 1px; }
.sdm-names .sdm-input { display: block; }

.sdm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--sdm-line); border-radius: 10px;
  background: var(--sdm-card); color: inherit; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: transform 120ms ease, background-color 160ms ease, opacity 160ms ease; }
.sdm-btn--main { background: var(--sdm-blue); border-color: var(--sdm-blue); color: #fff; }
.sdm-btn:active { transform: scale(.97); }
.sdm-btn[disabled] { opacity: .6; cursor: default; }
.sdm-btn:focus-visible, .sdm-way:focus-visible, .sdm-copy:focus-visible, .sdm-link:focus-visible { outline: 2px solid var(--sdm-blue); outline-offset: 2px; }
.sdm-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--sdm-soft); font: inherit; font-size: 13.5px; text-decoration: underline; cursor: pointer; }

.sdm-tablewrap { overflow-x: auto; margin: 0 0 8px; border: 1px solid var(--sdm-line); border-radius: 12px; }
.sdm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.sdm-table th, .sdm-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--sdm-line); white-space: nowrap; }
.sdm-table tr:last-child td { border-bottom: 0; }
.sdm-table th { color: var(--sdm-soft); font-weight: 500; font-size: 12.5px; }
.sdm-val { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.sdm-cell { display: inline-flex; align-items: center; gap: 10px; }
.sdm-copy { min-height: 32px; padding: 0 10px; border: 1px solid var(--sdm-line); border-radius: 8px; background: var(--sdm-card); color: var(--sdm-blue-ink); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.sdm-copy:active { transform: scale(.97); }
.sdm-ns { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sdm-ns li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--sdm-line); border-radius: 10px; }
.sdm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.sdm-said { min-height: 20px; margin: 6px 0 8px; font-size: 13.5px; color: var(--sdm-soft); }
.sdm-said.is-bad { color: var(--sdm-bad); }
.sdm-price { margin: 0 0 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sdm-owner { margin: 0 0 10px; padding: 12px; border-radius: 12px; background: var(--sdm-tint); border: 1px solid var(--sdm-tint-line); font-size: 13.5px; white-space: pre-line; }
.sdm-declined { margin: 0 0 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--sdm-line); }
.sdm-declined .sdm-note { margin: 0; }
.sdm-live .sdm-row { margin: 8px 0 12px; }
.sdm-skel { height: 160px; border-radius: 12px; background: var(--sdm-tint); }

@media (max-width: 640px) {
  .sdm-ways { grid-template-columns: 1fr; }
  .sdm-top { flex-direction: column; }
  .sdm-row .sdm-btn { flex: 1 1 auto; }
  .sdm-table th, .sdm-table td { padding: 10px 8px; }
  .sdm-cell { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .sdm-way, .sdm-btn { transition: none; } }

/* Guide video (owner's link, 18 Nov 2026). Space is held at 16:9 (9:16 for
   a YouTube Short) so nothing below jumps when the player loads. */
.sdm-watch { margin-bottom: 16px; }
.sdm-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0b1220; }
.sdm-video.is-tall { aspect-ratio: 9 / 16; max-width: 340px; }
.sdm-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sdm-file { display: block; width: 100%; max-width: 100%; max-height: 70vh; border-radius: 12px; background: #0b1220; }
