[v-cloak] { display: none; }

:root {
  --ink: #2b343d;
  --ls-primary-color: #41cea8;
  --ls-primary-color-dark: #319c7f;
  --ls-primary-color-tint: #d9f5ed;
  --ls-primary-color-disabled: #9fd5c6;
  --ink-light: #4c5c74;
  --ink-faint: #8593a8;
  --paper: #e9ecef;
  --panel: #ffffff;
  --brass: #b8863c;
  --brass-dark: #8f6a2b;
  --brass-tint: #f3e9d8;
  --glass: #6e93a6;
  --glass-tint: #e4ecef;
  --border: #d8dce1;
  --danger: #a6432b;
  --font-display: "Rubik", "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

/* ---------- backdrop product page ---------- */
#lsTitle {
  color: #fff;
}

.ls-page-header {
  padding: 22px 32px;

  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--border);
}

.ls-product {
  max-width: 760px;
  margin: 64px auto;
  padding: 0 32px;
  display: flex;
  gap: 48px;
  align-items: center;
}

.ls-product-visual {
  flex: 0 0 220px;
  height: 160px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ls-product-info p {
  margin: 0 0 6px;
}

.ls-product-eyebrow {
  color: var(--ink-faint);
  font-size: 13px;
}

.ls-product-info h1 {
  font-size: 30px;
  margin: 0 0 8px;
  font-weight: 600;
}

.ls-product-desc {
  color: var(--ink-light);
  font-size: 15px;
}

.ls-product-price {
  font-family: var(--font-mono);
  font-size: 19px;
  margin: 14px 0 20px !important;
}

.ls-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 11px 20px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.ls-btn-success {
  background: var(--ls-primary-color);
  color: #fff;
}

.ls-btn-success:hover {
  background: var(--ls-primary-color-dark);
}

.ls-btn-success:disabled {
  background: var(--ls-primary-color-disabled);
  cursor: not-allowed;
}

.ls-btn-ghost {
  background: transparent;
  color: var(--ink-light);
  border-color: var(--border);
}

.ls-btn-ghost:hover {
  border-color: var(--ink-faint);
  color: var(--ink);
}

/* ---------- overlay + modal shell ---------- */

.ls-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(22, 35, 59, 0.55);
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.ls-overlay.ls-open {
  display: flex;
}

.ls-modal {
  width: 100%;
  max-width: 900px;
  max-height: 88vh;
  background: var(--panel);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(22, 35, 59, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ls-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 26px;
  background: var(--ink);
  color: #fff;
}

.ls-modal-eyebrow {
  margin: 0 0 4px;
  font-size: 12.5px;
  color: #aebbd1;
}

.ls-modal-header h2 {
  margin: 0;

  font-size: 19px;
  font-weight: 600;
}

.ls-close {
  background: transparent;
  border: none;
  color: #aebbd1;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.ls-close:hover {
  color: #fff;
}

.ls-modal-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* ---------- vertical rail ---------- */

.ls-rail {
  flex: 0 0 232px;
  border-right: 1px solid var(--border);
  padding: 26px 20px;
  background: #fbfbfa;
  overflow-y: auto;
  min-width: 0;
}

.ls-rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ls-rail li {
  position: relative;
  display: flex;
  gap: 14px;
  padding-bottom: 30px;
  cursor: default;
}

.ls-rail li:last-child {
  padding-bottom: 0;
}

.ls-rail li.ls-clickable {
  cursor: pointer;
}

.ls-rail li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 16px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.ls-rail li:last-child::before {
  display: none;
}

.ls-marker {
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  margin-top: 3px;
  border: 2px solid var(--ink-faint);
  background: var(--panel);
  transform: rotate(45deg);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.ls-rail-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-faint);
  transition: color 0.2s ease;
}

.ls-rail-sub {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--ink-faint);
}

.ls-rail li.ls-active .ls-marker {
  border-color: var(--ls-primary-color);
  background: var(--ls-primary-color);
}

.ls-rail li.ls-active .ls-rail-title {
  color: var(--ink);
}

.ls-rail li.ls-active .ls-rail-sub {
  color: var(--ink-light);
}

.ls-rail li.ls-done .ls-marker {
  border-color: var(--ls-primary-color);
  background: var(--ls-primary-color);
}

.ls-rail li.ls-done .ls-rail-title {
  color: var(--ink-light);
}

/* mobile progress bar (hidden on desktop) */
.ls-rail-mobile {
  display: none;
}

/* ---------- panel / step content ---------- */

.ls-panel {
  flex: 1;
  padding: 28px 30px;
  overflow-y: auto;
  min-width: 0;
}

.ls-step-content {
  display: none;
  animation: ls-fade 0.25s ease;
}

.ls-step-content.ls-visible {
  display: block;
}

@keyframes ls-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ls-panel h3 {
  font-size: 20px;
  margin: 0 0 6px;
  font-weight: 600;
}

.ls-step-hint {
  margin: 0 0 22px;
  color: var(--ink-light);
  font-size: 14.5px;
}

.ls-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ls-card {
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.ls-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  /* keeps all four cards the same height regardless of source image size */
  object-fit: contain;
  /* crops rather than distorts if aspect ratios don't match */
  border-radius: 6px;
  margin-bottom: 6px;
  background: #FFF;
  /* shows while loading / if an image is missing */
}

.ls-card:hover {
  border-color: var(--ls-primary-color-dark);
}

.ls-card.ls-selected {
  border-color: var(--ls-primary-color);
  background: var(--ls-primary-color-tint);
}

.ls-card-title {
  font-weight: 600;
  font-size: 15px;
}

.ls-card-desc {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.4;
}

.ls-card-price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-light);
  margin-top: 4px;
}

.ls-card.ls-selected .ls-card-price {
  color: var(--ls-primary-color-dark);
}

.ls-lens-icon {
  margin-bottom: 2px;
}

.ls-lens-icon svg path {
  transition:
    fill 0.15s ease,
    stroke 0.15s ease;
}

.ls-card-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}

/* coatings list layout */
.ls-coating-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ls-coating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
}

.ls-coating.ls-locked {
  cursor: default;
  background: #fafaf9;
}

.ls-coating.ls-selected {
  border-color: var(--ls-primary-color);
  background: var(--ls-primary-color-tint);
}

.ls-coating-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ls-checkbox {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink-faint);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ls-coating.ls-selected .ls-checkbox,
.ls-coating.ls-locked .ls-checkbox {
  background: var(--ls-primary-color);
  border-color: var(--ls-primary-color);
}

.ls-checkbox svg {
  display: none;
  width: 11px;
  height: 11px;
}

.ls-coating.ls-selected .ls-checkbox svg,
.ls-coating.ls-locked .ls-checkbox svg {
  display: block;
}

.ls-coating-name {
  font-weight: 600;
  font-size: 14.5px;
  display: block;
}

.ls-coating-desc {
  font-size: 13px;
  color: var(--ink-light);
  margin-top: 2px;
}

.ls-coating-price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-light);
  white-space: nowrap;
}

/* prescription step */
.ls-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.ls-tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-faint);
  padding: 9px 4px 12px;
  margin-right: 18px;
  border-bottom: 2px solid transparent;
}

.ls-tab.ls-tab-active {
  color: var(--ink);
  border-color: var(--ls-primary-color);
}

.ls-rx-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
}

.ls-rx-table th {
  text-align: left;
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 600;
  padding: 0 8px 8px 0;
}

.ls-rx-table td {
  padding: 0 8px 10px 0;
}

.ls-rx-table td:first-child {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-light);
  width: 34px;
}

.ls-rx-input {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 13.5px;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--ink);
}

.ls-rx-input:focus {
  outline: none;
  border-color: var(--glass);
}

.ls-pd-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.ls-pd-row label {
  font-size: 13.5px;
  color: var(--ink-light);
}

.ls-pd-row .ls-rx-input {
  width: 90px;
}

.ls-field-warning {
  display: none;
  color: var(--danger);
  font-size: 12.5px;
  margin-top: 8px;
}

.ls-field-warning.ls-show {
  display: block;
}

.ls-dropzone {
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  padding: 34px 20px;
  text-align: center;
  color: var(--ink-light);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ls-dropzone:hover {
  border-color: var(--glass);
}

.ls-dropzone strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
  font-size: 14.5px;
}

.ls-dropzone.ls-has-file {
  border-style: solid;
  border-color: var(--ls-primary-color);
  color: var(--ink);
}

.ls-dropzone.ls-dragover { border-style: solid; border-color: var(--ls-primary-color); background: var(--ls-primary-color-tint); }
.ls-dropzone.ls-dragover strong,
.ls-dropzone.ls-dragover span { pointer-events: none; }

.ls-note {
  background: var(--glass-tint);
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.5;
}

/* review step */
.ls-review-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.ls-review-row:first-child {
  padding-top: 0;
}

.ls-review-label {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: 0 0 3px;
}

.ls-review-value {
  font-size: 14.5px;
  font-weight: 600;
  margin: 0;
}

.ls-review-value span {
  font-weight: 400;
  color: var(--ink-light);
}

.ls-review-right {
  text-align: right;
  flex: 0 0 auto;
}

.ls-review-price {
  font-family: var(--font-mono);
  font-size: 14px;
}

.ls-review-edit {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--glass);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.ls-review-edit:hover {
  text-decoration: underline;
}

.ls-success {
  text-align: center;
  padding: 30px 10px;
}

.ls-success svg {
  margin-bottom: 14px;
}

.ls-success h3 {
  margin-bottom: 8px;
}

.ls-success p {
  color: var(--ink-light);
  font-size: 14.5px;
}

/* ---------- footer ---------- */

.ls-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  border-top: 1px solid var(--border);
  background: #fbfbfa;
}

.ls-total {
  display: flex;
  flex-direction: column;
}

.ls-total span {
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 2px;
}

.ls-total strong {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 600;
}

.ls-actions {
  display: flex;
  gap: 10px;
}

/* ---------- responsive ---------- */

@media (max-width: 680px) {
  .ls-product {
    flex-direction: column;
    align-items: flex-start;
    margin: 32px auto;
  }

  .ls-product-visual {
    width: 100%;
  }

  .ls-overlay {
    padding: 0;
  }

  .ls-modal {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
  }

  .ls-rail {
    display: none;
  }

  .ls-rail-mobile {
    display: block;
    padding: 16px 22px 0;
  }

  .ls-rail-mobile-top {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--ink-light);
    margin-bottom: 8px;
  }

  .ls-rail-mobile-track {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
  }

  .ls-rail-mobile-fill {
    height: 100%;
    background: var(--ls-primary-color);
    width: 20%;
    transition: width 0.25s ease;
  }

  .ls-choice-grid {
    grid-template-columns: 1fr;
  }

  .ls-panel {
    padding: 20px 22px;
  }

  .ls-modal-footer {
    flex-direction: column;
    gap: 1rem;
  }
}
