/* account-tray.css — layout only; all colour/theme rules live in site.css */

/* Cards row */
.vr-tray-cards,
.vr-tray-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
  margin: 14px 0 6px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .vr-tray-cards,
  .vr-tray-card-grid { grid-template-columns: 1fr; }
}

button.vr-tray-card,
a.vr-tray-card {
  appearance: none;
  border: 1px solid var(--vr-border);
  background: var(--vr-surface-subtle);
  color: inherit;
  text-align: left;
  border-radius: 14px;
  padding: 14px 14px 12px;
  cursor: pointer;
  display: block;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
  box-shadow: var(--vr-shadow-sm);
}
button.vr-tray-card:hover,
a.vr-tray-card:hover {
  transform: translateY(-1px);
  border-color: rgba(108,99,255,0.55);
  box-shadow: var(--vr-shadow-md);
}
button.vr-tray-card:active,
a.vr-tray-card:active { transform: translateY(0); }
button.vr-tray-card:focus-visible,
a.vr-tray-card:focus-visible {
  outline: 2px solid rgba(108,99,255,0.65);
  outline-offset: 2px;
}

html[data-theme="light"] button.vr-tray-card,
html[data-theme="light"] a.vr-tray-card {
  background: #ffffff;
  border-color: var(--vr-border);
  box-shadow: var(--vr-shadow-xs);
}
html[data-theme="light"] button.vr-tray-card:hover,
html[data-theme="light"] a.vr-tray-card:hover {
  border-color: rgba(108,99,255,0.35);
  background: #f8f7ff;
  box-shadow: var(--vr-shadow-sm);
}

.vr-tray-card-title { font-weight: 800; font-size: 14px; margin: 0 0 4px; }
.vr-tray-card-subtitle { opacity: .82; font-size: 13px; line-height: 1.25; margin: 0 0 10px; }
.vr-tray-card-cta { opacity: .9; font-weight: 700; font-size: 13px; }


/* Backdrop */
#vrTrayBackdrop.vr-tray-backdrop {
  position: fixed;
  inset: 0;
  background: var(--vr-overlay);
  z-index: 1600;
  opacity: 0;
  transition: opacity .22s ease;
}
#vrTrayBackdrop.is-open { opacity: 1; }

/* Tray shell */
#vrTray.vr-tray {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(520px, 100vw);
  z-index: 1601;
  background: var(--vr-tray-bg);
  border-left: 1px solid var(--vr-border);
  box-shadow: var(--vr-shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform .26s cubic-bezier(.2,.9,.2,1);
}
#vrTray.is-open { transform: translateX(0); }


/* Header */
.vr-tray-header {
  padding: 16px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--vr-border);
}
.vr-tray-title { font-weight: 900; font-size: 18px; }
.vr-tray-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--vr-border);
  background: var(--vr-surface-subtle);
  color: inherit;
  cursor: pointer;
  display: block;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.vr-tray-close:hover { transform: scale(1.03); border-color: rgba(108,99,255,0.55); }

html[data-theme="light"] .vr-tray-close {
  background: #ffffff;
  border-color: var(--vr-border-strong);
}

/* Body */
#vrTrayBody.vr-tray-body {
  padding: 16px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  #vrTray.vr-tray { transition: none; }
  #vrTrayBackdrop.vr-tray-backdrop { transition: none; }
  button.vr-tray-card,
  a.vr-tray-card { transition: none; }
}

/* ---- Tray: wrap long data values ---- */
#vrTrayBody .vr-data-summary,
#vrTrayBody .vr-data-summary li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

#vrTrayBody pre.vr-data-json,
#vrTrayBody .vr-data-json {
  white-space: pre-wrap;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#vrTrayBody code,
#vrTrayBody pre code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Panel home must NEVER render inline */
#vrTrayPanels {
  display: none !important;
}

/* Ensure tray content is visible */
#vrTray.is-open #vrTrayBody {
  display: block;
}

/* ---- Notes history (append-only) ---- */
.vr-notes-history {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--vr-border);
}
.vr-notes-history__title {
  font-size: 12px;
  opacity: 0.75;
  margin: 0 0 8px 0;
}
.vr-notes-history__item {
  margin: 0 0 10px 0;
  padding: 10px 12px;
  border: 1px solid var(--vr-border);
  border-radius: 12px;
  background: var(--vr-surface-subtle);
}
.vr-notes-history__meta {
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 6px;
}
.vr-notes-history__text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* Artist onboarding mode */
.vr-artist-onboarding [data-vr-module="artist-status"],
.vr-artist-onboarding [data-vr-module="artist-danger"],
.vr-artist-onboarding #vrPanelArtistPublic,
.vr-artist-onboarding #vrPanelArtistStatus,
.vr-artist-onboarding #vrPanelArtistDanger {
  display: none !important;
}


/* Seller setup summary */
.vr-seller-summary { border: 1px solid var(--vr-border); border-radius: 14px; padding: 12px 14px; }
.vr-seller-summary .vr-seller-row { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 6px 0; }
.vr-seller-summary .vr-seller-k { opacity: .75; min-width: 160px; }
.vr-seller-summary .vr-seller-v { font-weight: 600; }
.vr-seller-summary code { white-space: pre-wrap; }


/* Seller setup editor */
.vr-seller-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.vr-seller-editor {
  padding: 12px;
  border: 1px solid var(--vr-border);
  border-radius: 14px;
  background: var(--vr-surface-subtle);
}
.vr-field-title { font-weight: 600; margin: 4px 0 8px 0; }
.vr-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media(max-width:720px) { .vr-grid-2 { grid-template-columns: 1fr; } }


/* Small button variant */
.vr-btn.vr-buttons-small {
  padding: .55rem 1.05rem;
  font-size: .82rem;
}

.vr-buttons-small { padding: .55rem 1.05rem; font-size: .82rem; border-radius: 999px; }


/* Tray: static headings */
.vr-tray-sectionhead {
  margin: 14px 0 10px;
  opacity: .95;
}
.vr-tray-sectionhead .vr-row,
.vr-tray-sectionhead h3,
.vr-tray-sectionhead h4 {
  margin: 0;
}
