/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.payment-method-select {
  color: #f8fafc;
  color-scheme: dark;
}

.payment-method-select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

.visible-message-scrollbar {
  overflow-y: scroll !important;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #64748b #0f1d2d;
}

.visible-message-scrollbar::-webkit-scrollbar {
  width: 12px;
}

.visible-message-scrollbar::-webkit-scrollbar-track {
  background: #0f1d2d;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.visible-message-scrollbar::-webkit-scrollbar-thumb {
  background: #64748b;
  border: 3px solid #0f1d2d;
  border-radius: 999px;
}

.visible-message-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #5eead4;
}
/* Expanded landing previews use readable, flowing pages rather than thumbnails. */
.full-design-preview [data-template-page-ui] [class*="text-["],
.full-design-preview [data-template-landing-ui] > header [class*="text-["],
.full-design-preview [data-template-landing-ui] > footer {
  font-size: .875rem;
  line-height: 1.5;
}
.full-design-preview [data-template-page-ui] > header,
.full-design-preview [data-template-page-ui] > footer {
  gap: 1rem;
  flex-wrap: wrap;
}
.full-design-preview .template-full-canvas .template-landing {
  height: auto;
  min-height: 430px;
  overflow: visible;
}
.full-design-preview .template-full-canvas .template-features,
.full-design-preview .template-full-canvas .template-stamp {
  position: static;
  display: grid;
  margin-top: 2rem;
  max-width: none;
  transform: none;
}
.full-design-preview .template-full-canvas .template-action {
  display: none;
}
.full-design-preview a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
@media (max-width: 640px) {
  .full-design-preview [data-template-page-ui] .grid,
  .full-design-preview .template-landing--default {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .full-design-preview .template-full-canvas .template-landing {
    padding: 24px;
  }
  .full-design-preview .template-full-canvas .template-landing h1 {
    font-size: clamp(28px, 8vw, 44px);
    overflow-wrap: anywhere;
  }
}

/* Shared original editor navigation for editor and catalog previews. */
.editor-app-nav{display:flex;min-height:76px;align-items:center;gap:22px;padding:14px 4%;border-bottom:1px solid color-mix(in srgb,var(--editor-text) 15%,transparent);background:color-mix(in srgb,var(--editor-background) 92%,transparent);color:var(--editor-text);font-family:var(--editor-font);position:sticky;top:0;z-index:8}.editor-app-nav>strong{font-weight:900;white-space:nowrap}.editor-app-nav>div{display:flex;flex:1;align-items:center;gap:14px;overflow:auto}.editor-app-nav a{border:0;padding:0;background:transparent;color:var(--editor-muted);font-size:13px;white-space:nowrap;text-decoration:none}.editor-app-nav a:hover{color:var(--editor-text)}.editor-app-nav>span{display:flex;align-items:center;gap:14px;font-size:13px;white-space:nowrap}.editor-app-nav>span b{font-weight:400;text-decoration:underline}
@media(max-width:850px){.full-design-preview .editor-app-nav{align-items:flex-start;flex-direction:column}.full-design-preview .editor-app-nav>div{width:100%}}

/* Full viewport preview: one scrolling surface, no boxed modal or background scroll. */
html:has(.landing-preview-fullscreen:popover-open),
body:has(.landing-preview-fullscreen:popover-open) {
  overflow: hidden;
}
.landing-preview-fullscreen {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.landing-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: #07111f;
}
.landing-preview-fullscreen .full-design-preview {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  width: 100%;
}
.full-design-preview .editor-app-nav {
  flex-wrap: wrap;
}
.full-design-preview .editor-app-nav > strong {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.full-design-preview .editor-app-nav > div {
  min-width: 0;
  flex-wrap: wrap;
  overflow: visible;
}

/* The full-page shell supplies navigation and footer; sample cards add no frame. */
.full-design-preview .design-page-content {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.full-design-preview .template-full-canvas .template-landing {
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
}
.full-design-preview [data-complete-preview-page] {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--background);
}
.full-design-preview [data-complete-preview-page] > .design-page-content {
  flex: 1;
}
.full-design-preview [data-preview-footer] {
  background: var(--background);
  color: var(--muted);
}

/* Match generated navigation: single-row page links and separate account links. */
.full-design-preview .editor-app-nav {
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: center;
}
.full-design-preview .editor-app-nav > strong {
  flex-shrink: 0;
  white-space: nowrap;
}
.full-design-preview .editor-app-nav > div {
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
}
.full-design-preview .editor-app-nav > .design-account-links {
  flex-shrink: 0;
  white-space: nowrap;
}
.full-design-preview .design-account-links:empty { display: none; }

/* Keep the native file picker directly clickable over the editor logo slot. */
.editor-navbar-logo-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.editor-navbar-logo-input:disabled { cursor: not-allowed; }
.editor-app-nav label:focus-within { outline: 2px solid var(--editor-primary); outline-offset: 3px; }

.receipt-upload { padding: 1.25rem; border: 1px dashed rgba(94,234,212,.4); border-radius: .85rem; background: rgba(94,234,212,.05); }
.receipt-upload-input { display: block; width: 100%; margin-top: .85rem; color: #cbd5e1; font-size: .875rem; }
.receipt-upload-input::file-selector-button { margin-right: 1rem; padding: .75rem 1.15rem; border: 1px solid #5eead4; border-radius: .65rem; background: #5eead4; color: #071321; font-weight: 700; cursor: pointer; box-shadow: 0 2px 6px #0003; }
.receipt-upload-input::file-selector-button:hover { background: #99f6e4; }
.receipt-upload-input:focus-visible { outline: 2px solid #5eead4; outline-offset: 4px; border-radius: .65rem; }
.receipt-preview { margin-top: 1rem; padding: 1rem; border: 1px solid #ffffff26; border-radius: .75rem; background: #071321; }
.receipt-preview-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; overflow-wrap: anywhere; }
.receipt-remove-button { padding: .5rem .75rem; border: 1px solid #ffffff40; border-radius: .5rem; color: #e2e8f0; font-size: .8rem; cursor: pointer; }
.receipt-remove-button:hover { background: #ffffff15; }
.receipt-preview-image { width: 100%; max-height: 28rem; object-fit: contain; border-radius: .5rem; }
.receipt-preview-pdf { width: 100%; height: 28rem; border: 0; border-radius: .5rem; background: white; }
.editor-progress-dialog { width:min(420px,calc(100vw - 32px)); margin:auto; padding:32px; border:1px solid #ffffff26; border-radius:20px; background:#102030; color:#f8fafc; text-align:center; box-shadow:0 20px 80px #0008; }
.editor-progress-dialog::backdrop { background:#020617b3; backdrop-filter:blur(4px); }
.editor-progress-dialog h2 { margin:18px 0 10px; font-size:1.25rem; font-weight:800; }
.editor-progress-dialog p { color:#cbd5e1; line-height:1.6; font-size:.9rem; }
.editor-progress-dialog button { margin-top:24px; padding:10px 18px; border:1px solid #5eead466; border-radius:10px; color:#5eead4; font-weight:700; cursor:pointer; }
.editor-progress-spinner { width:44px; height:44px; margin:0 auto; border:4px solid #5eead433; border-top-color:#5eead4; border-radius:50%; animation:editor-progress-spin .8s linear infinite; }
.editor-progress-spinner[hidden] { display:none; animation:none; }
@keyframes editor-progress-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .editor-progress-spinner { animation:none; } }