/* ── Journey page shell ── */
.lion-journey-body {
  margin: 0;
  background: #f4f8fb;
}

.lion-journey-page {
  background:
    linear-gradient(180deg, #f8fbfd 0%, #f4f8fb 38%, #f4f8fb 100%);
  min-height: calc(100vh - 120px);
}

.lion-journey-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.25rem clamp(1rem, 3vw, 3rem) 2rem;
  display: grid;
  gap: 1.5rem;
  font-family: 'Manrope', sans-serif;
}

.lion-journey-page--embedded {
  min-height: 0;
  background: transparent;
}

.lion-journey-container--embedded {
  padding: 0;
}

.lion-journey-page--embedded .lion-quote-fullbleed {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* ── Base card ── */
.lion-card,
.lion-quote-wrap {
  background: #fff;
  border: 1px solid #dbe7ef;
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 12px 30px rgba(25, 47, 61, 0.07);
}

.lion-muted { color: #556; }

/* ── Progress bar ── */
.lion-progress {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.lion-progress-horizontal {
  width: 100%;
  grid-template-columns: repeat(var(--lion-progress-steps, 7), minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0;
}

.lion-progress-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lion-progress-horizontal .lion-progress-item {
  position: relative;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  text-align: center;
}

.lion-progress-horizontal .lion-progress-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 50%;
  width: calc(100% + 0.5rem);
  height: 2px;
  background: #c9d7e4;
  z-index: 0;
}

.lion-progress-horizontal .lion-progress-done:not(:last-child)::after {
  background: #1f5f8b;
}

.lion-progress-item .dot {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid #b8c0cc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  background: #fff;
  z-index: 1;
}

.lion-progress-done .dot {
  background: #1f5f8b;
  border-color: #1f5f8b;
  color: #fff;
}

.lion-progress-current .dot {
  background: #1f5f8b;
  border-color: #1f5f8b;
  color: #fff;
}

.lion-progress-todo .dot {
  color: #486178;
}

.lion-progress-label {
  font-size: 0.84rem;
  color: #2f4860;
  line-height: 1.25;
  text-align: center;
}

.lion-progress-meta {
  font-size: 0.74rem;
  color: #5d7285;
  line-height: 1.25;
  text-align: center;
}

/* ── Quote form inputs (shared) ── */
.lion-journey-page .lion-quote-form input,
.lion-journey-page .lion-quote-form textarea {
  border: 1px solid #c6d7e8;
  border-radius: 12px;
  background: #ffffff;
  color: #17324a;
  padding: 0.78rem 0.84rem;
  box-shadow: inset 0 1px 2px rgba(23, 50, 74, 0.06);
}

.lion-journey-page .lion-quote-form input:focus,
.lion-journey-page .lion-quote-form textarea:focus {
  outline: none;
  border-color: #3c85b8;
  box-shadow: 0 0 0 3px rgba(60, 133, 184, 0.18);
}

/* ── Progress strip card ── */
.lion-journey-progress-strip {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 1.5rem;
  background: #ffffff;
  border: 1px solid #dbe7ef;
  box-shadow: 0 10px 26px rgba(25, 47, 61, 0.06);
}

/* ── Two-column grid ── */
.lion-quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 1.4rem;
  align-items: start;
}

.lion-quote-items-col,
.lion-quote-info-col {
  display: grid;
  gap: 1.4rem;
}

.lion-quote-info-col {
  align-content: start;
}

/* ── Quote page full-bleed wrapper ── */
.lion-quote-fullbleed {
  width: 100%;
  min-height: calc(100vh - 90px);
  border-radius: 0;
  box-shadow: none;
  border: 0;
  padding: 2rem clamp(1rem, 3vw, 3rem) 2.8rem;
  background: transparent;
}

.lion-quote-header {
  max-width: 1180px;
  margin: 0 auto 1rem;
}

.lion-quote-header h2 {
  margin: 0 0 0.45rem;
  color: #123247;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.lion-quote-header h1 {
  margin: 0 0 0.45rem;
  color: #123247;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.lion-quote-header p {
  max-width: 840px;
  margin: 0;
  color: #4c6273;
  font-size: 1rem;
  line-height: 1.55;
}

.lion-quote-form {
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d6e0e5;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(25, 47, 61, 0.12);
  padding: clamp(1rem, 2vw, 1.5rem);
}

.lion-quote-steps {
  position: relative;
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lion-quote-steps::before {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(12.5% + 18px);
  right: calc(12.5% + 18px);
  height: 2px;
  background: #d7e2e8;
}

.lion-quote-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0 0.4rem;
  color: #425b6c;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.lion-quote-steps li.is-current {
  color: #123247;
}

.lion-quote-steps li.is-complete {
  color: #17324a;
}

.lion-quote-steps strong {
  position: relative;
  z-index: 1;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid #d7e2e8;
  border-radius: 999px;
  background: #fff;
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  flex: 0 0 auto;
}

.lion-quote-steps li.is-current strong {
  border-color: #16486a;
  background: #16486a;
  color: #fff;
  box-shadow: 0 0 0 5px rgba(22, 72, 106, 0.12);
}

.lion-quote-steps li.is-complete strong {
  border-color: #16486a;
  background: #16486a;
  color: #fff;
}

.lion-quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  align-items: start;
}

.lion-selected-products {
  display: grid;
  gap: 0.75rem;
  border: 1px solid #d7e2e8;
  border-radius: 8px;
  padding: 1rem;
  background: #ffffff;
}

.lion-custom-lines {
  display: grid;
  gap: 0.75rem;
}

.lion-selected-products h3,
.lion-custom-lines h3,
.lion-contact-panel-heading h3,
.lion-submit-panel h3 {
  margin: 0;
  color: #17324a;
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0;
}

.lion-selected-products p,
.lion-custom-lines p,
.lion-upload-panel p {
  margin: 0;
  color: #607684;
  font-size: 0.82rem;
  line-height: 1.45;
}

.lion-selected-products ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

.lion-selected-products li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  min-width: 0;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  background: #f9fbfc;
  padding: 0.55rem 0.65rem;
  color: #223c50;
  font-weight: 700;
}

.lion-selected-products li span {
  flex: 0 0 auto;
  min-width: 3.2rem;
  color: #7b472d;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.lion-customer-library li span {
  color: #1f5f8b;
}

.lion-library-product-option {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 0.55rem !important;
  min-width: 0;
  flex: 1;
}

.lion-library-product-option input[type='checkbox'] {
  width: 1rem;
  flex: 0 0 auto;
  accent-color: #16486a;
}

.lion-library-product-option strong {
  min-width: 0;
  color: #223c50;
}

.lion-library-product-qty {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 0.4rem !important;
  flex: 0 0 auto;
  color: #607684 !important;
  font-size: 0.78rem !important;
}

.lion-library-product-qty input {
  width: 4.5rem !important;
  padding: 0.45rem !important;
}

#lion-add-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-self: start;
  width: auto;
  border-radius: 6px;
}

#lion-add-line svg {
  flex: 0 0 auto;
}

/* Journey page items card overrides the quote-form blue tint */
.lion-journey-top-card {
  background: #ffffff;
  border-color: #d4e2ee;
}

.lion-custom-lines h3 {
  margin: 0;
}

.lion-custom-line-row {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(360px, 1fr) minmax(260px, 0.52fr);
  gap: 0.8rem;
  align-items: start;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  background: #f9fbfc;
  padding: 0.8rem 3rem 0.8rem 0.8rem;
}

.lion-product-size-group {
  grid-template-columns: minmax(320px, 1fr) minmax(260px, 0.52fr);
  padding-right: 0.8rem;
}

.lion-product-field {
  display: grid;
  gap: 0.35rem;
}

.lion-catalogue-link {
  justify-self: end;
  color: #1f5f8b;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
}

.lion-product-group-heading {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.lion-product-group-heading strong {
  color: #17324a;
  font-size: 1rem;
}

.lion-product-group-heading span {
  color: #526f84;
  font-size: 0.82rem;
  font-weight: 700;
}

.lion-add-size-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lion-size-quantity-list {
  display: grid;
  gap: 0.5rem;
  width: 100%;
}

.lion-size-quantity {
  display: grid;
  grid-template-columns: minmax(3rem, auto) auto minmax(1.75rem, 1fr);
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 44px;
  border: 1px solid #c9d9e4;
  border-radius: 6px;
  background: #fff;
  padding: 0.35rem 0.4rem 0.35rem 0.65rem;
}

.lion-size-label {
  color: #17324a;
  font-size: 0.9rem;
  font-weight: 800;
}

.lion-size-quantity .lion-size-quantity-control {
  display: grid;
  grid-template-columns: 2.5rem 3.5rem 2.5rem;
  align-items: center;
  gap: 0;
}

.lion-size-quantity input[type="number"] {
  width: 3.5rem;
  min-height: 40px;
  border-radius: 0;
  padding: 0.35rem;
  text-align: center;
}

.lion-quantity-step {
  width: 2.5rem;
  min-height: 40px;
  border: 1px solid #b9ccd8;
  background: #eef5f8;
  color: #17324a;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.lion-quantity-step:first-of-type {
  border-radius: 6px 0 0 6px;
  border-right: 0;
}

.lion-quantity-step:last-of-type {
  border-left: 0;
  border-radius: 0 6px 6px 0;
}

.lion-quantity-step:focus-visible {
  outline: 3px solid rgba(31, 95, 139, 0.25);
  outline-offset: 2px;
}

.lion-size-remove {
  width: 1.75rem;
  height: 1.75rem;
  justify-self: end;
  border: 0;
  background: transparent;
  color: #8a4d36;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.lion-add-size {
  min-height: 34px;
  border: 1px dashed #6d9bb8;
  border-radius: 6px;
  background: #f4f9fc;
  color: #1f5f8b;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.lion-add-size:hover,
.lion-add-size:focus-visible {
  border-style: solid;
  background: #e8f3f9;
}

.lion-line-remove {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid #d6e0e5;
  border-radius: 999px;
  background: #fff;
  color: #7b472d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.lion-line-remove:hover,
.lion-line-remove:focus {
  border-color: #bf562f;
  color: #bf562f;
  outline: none;
}

.lion-custom-line-row label {
  min-width: 0;
  align-content: start;
}

.lion-line-photo {
  width: 88px;
  height: 88px;
  border: 1px solid #d6e0e5;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #607684;
  font-size: 0.78rem;
  font-weight: 700;
}

.lion-line-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lion-line-photo-empty {
  display: none;
}

.lion-line-main {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}

.lion-line-aside {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  min-width: 0;
}

.lion-line-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  border-top: 1px solid #e1e8ed;
  padding-top: 0.7rem;
}

.lion-line-upload-fields,
.lion-line-upload-fields > div:first-child {
  display: grid;
  gap: 0.15rem;
}

.lion-line-upload strong {
  color: #17324a;
  font-size: 0.9rem;
}

.lion-line-upload span {
  color: #607684;
  font-size: 0.8rem;
}

.lion-line-upload .lion-upload-controls {
  grid-template-columns: 1fr;
}

.lion-line-notes textarea {
  min-height: 100%;
}

.lion-contact-panel {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
  border: 1px solid #d7e2e8;
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
}

.lion-contact-panel-heading {
  display: grid;
  gap: 0.25rem;
}

.lion-contact-panel-heading h3 {
  margin: 0;
  color: #17324a;
}

.lion-quote-notes-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 0.9rem;
  align-items: start;
}

.lion-upload-state {
  display: none;
}

.lion-submit-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
  border: 1px solid #d7e2e8;
  border-radius: 8px;
  background: #fbf7f3;
  padding: 1rem;
}

.lion-submit-panel span {
  color: #7b472d;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lion-submit-panel h3 {
  margin: 0.25rem 0 0.35rem;
  color: #17324a;
}

.lion-submit-panel p {
  max-width: 760px;
  margin: 0;
  color: #4c6273;
  font-size: 0.92rem;
  line-height: 1.55;
}

.lion-submit-actions {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
}

.lion-submit-panel .lion-autosave-status {
  color: #526f84;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.lion-quote-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.lion-quote-form label {
  display: grid;
  gap: 0.35rem;
  color: #263d4f;
  font-weight: 600;
  font-size: 0.9rem;
}

.lion-quote-form input,
.lion-quote-form textarea,
.lion-quote-form button {
  font: inherit;
}

.lion-quote-form input,
.lion-quote-form textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #cbd8df;
  border-radius: 8px;
  padding: 0.76rem;
  background: #fff;
}

/* ── Upload controls ── */
.lion-upload-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.lion-upload-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
}

.lion-upload-controls input[type='file'] {
  min-width: 0;
}

.lion-upload-success,
.lion-upload-error {
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-size: 0.9rem;
}

.lion-upload-success {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: #e8f6ea;
  color: #20512a;
}

.lion-upload-error {
  background: #fdebea;
  color: #7f241d;
}

.lion-upload-remove {
  border: 1px solid #d5deea;
  background: #fff;
  color: #1d4f76;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.lion-upload-remove:hover {
  background: #eef6ff;
}

/* ── Buttons ── */
.lion-btn {
  border: 0;
  border-radius: 999px;
  background: #bf562f;
  color: #fff;
  padding: 0.7rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.lion-btn-secondary {
  background: #1f5f8b;
}

.lion-btn-secondary:hover {
  background: #16486a;
}

/* ── Messages ── */
.lion-message {
  border-radius: 10px;
  padding: 0.7rem;
}

.lion-success {
  background: #e7f4e5;
  color: #275e2f;
}

.lion-error {
  background: #feeceb;
  color: #8a2b23;
}

.lion-mini-link {
  color: #6a3d20;
  text-decoration: underline;
}

/* ── Journey shell ── */
.lion-journey-shell {
  min-height: auto;
}

.lion-journey-shell h2,
.lion-journey-shell h3,
.lion-journey-shell h4 {
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0;
}

.lion-journey-header {
  width: min(1120px, 92vw);
  max-width: 100%;
  margin-bottom: 1rem;
}

.lion-journey-header h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 3.3vw, 3rem);
  line-height: 1.05;
}

.lion-journey-grid {
  max-width: 1180px;
  margin: 0 auto;
  gap: 1.4rem;
  background: #ffffff;
  border: 1px solid #d6e0e5;
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(25, 47, 61, 0.08);
  padding: clamp(1rem, 2vw, 1.5rem);
}

.lion-journey-info-col,
.lion-quote-items-col > .lion-journey-history-card,
.lion-quote-items-col > .lion-journey-additional-card {
  display: none;
}

/* ── Project details card ── */
.lion-journey-project-card,
.lion-journey-additional-card {
  display: grid;
  gap: 0.8rem;
}

.lion-journey-payment-section,
.lion-journey-project-section {
  display: grid;
  gap: 1rem;
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
}

.lion-journey-project-section {
  grid-column: 1 / -1;
}

.lion-journey-project-heading {
  border-bottom: 1px solid #e1e8ed;
  padding-bottom: 0.8rem;
}

.lion-journey-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.lion-journey-project-col {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.7rem;
  border: 1px solid #e4edf3;
  border-radius: 8px;
  background: #fbfdfe;
  padding: 0.8rem;
}

.lion-journey-project-col h4 {
  margin: 0;
  color: #17324a;
  font-size: 0.95rem;
}

.lion-journey-project-card {
  background: rgba(31, 95, 139, 0.05);
  border: 1px solid #d6e3ef;
  border-radius: 12px;
  padding: 0.9rem;
}

.lion-journey-history-section {
  display: grid;
  gap: 1rem;
  border-radius: 8px;
}

.lion-journey-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #e1e8ed;
}

.lion-journey-history-heading h3 {
  margin: 0;
}

.lion-history-list--section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

/* 2-col grid for project details fields */
.lion-journey-static-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem 1rem;
  margin: 0;
}

.lion-journey-static-grid div {
  min-width: 0;
}

.lion-journey-static-grid dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4d7696;
  margin: 0 0 0.15rem;
}

.lion-journey-static-grid dd {
  margin: 0;
  color: #16364d;
  font-weight: 500;
  word-break: break-word;
}

/* ── Artwork thumbnails ── */
.lion-journey-thumbs {
  border-top: 1px solid rgba(31, 95, 139, 0.12);
  padding-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.lion-journey-thumbs-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4d7696;
  margin: 0;
}

.lion-thumb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lion-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #c8d9e9;
  cursor: pointer;
  background: #f0f7ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lion-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lion-thumb-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 48, 74, 0.55);
  color: #fff;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.15s;
}

.lion-thumb:hover .lion-thumb-zoom,
.lion-thumb:focus .lion-thumb-zoom {
  opacity: 1;
}

.lion-thumb-doc {
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.62rem;
  color: #2e4d67;
  text-decoration: none;
  text-align: center;
  padding: 0.35rem;
  word-break: break-all;
}

.lion-thumb-doc-icon {
  font-size: 1.4rem;
}

/* ── Artwork modal ── */
.lion-thumb-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 36, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  z-index: 9999;
  padding: 2rem;
}

.lion-thumb-modal[hidden] {
  display: none;
}

.lion-thumb-modal img {
  max-width: min(90vw, 900px);
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.lion-thumb-modal p {
  color: #d8e8f6;
  font-size: 0.9rem;
  margin: 0;
}

.lion-thumb-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: #fff;
  font-size: 1.3rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lion-thumb-modal-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* ── Order table ── */
.lion-order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.lion-order-table th,
.lion-order-table td {
  padding: 0.55rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(31, 95, 139, 0.1);
}

.lion-order-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4d7696;
  font-weight: 700;
}

.lion-order-table tfoot td {
  border-top: 2px solid rgba(31, 95, 139, 0.2);
  border-bottom: 0;
}

.lion-ot-shipping td,
.lion-ot-grand td {
  border-top: 0;
}

.lion-ot-foot-label {
  text-align: right;
}

/* ── Approval checkbox ── */
.lion-approval-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: #4d6578;
  font-style: italic;
  margin: 0.25rem 0 0.6rem;
  line-height: 1.4;
  cursor: pointer;
}

.lion-approval-check {
  flex-shrink: 0;
  margin-top: 0.15rem;
  width: 1rem;
  height: 1rem;
  accent-color: #bf562f;
  cursor: pointer;
}

.lion-ot-qty {
  width: 3rem;
  text-align: center;
}

.lion-ot-size {
  width: 5rem;
  font-weight: 800;
  color: #17324a;
}

.lion-ot-desc strong,
.lion-ot-colour {
  display: block;
}

.lion-ot-colour {
  margin-top: 0.15rem;
  color: #607684;
  font-size: 0.78rem;
  font-weight: 700;
}

.lion-ot-desc-continuation {
  border-top-color: transparent;
}

.lion-ot-photo {
  width: 4.6rem;
  text-align: center;
}

.lion-ot-photo img,
.lion-ot-photo span {
  width: 56px;
  height: 56px;
  border: 1px solid #d6e0e5;
  border-radius: 8px;
  background: #f7fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #607684;
  font-size: 0.72rem;
  font-weight: 700;
}

.lion-ot-photo img {
  object-fit: cover;
}

.lion-ot-unit {
  width: 6rem;
  text-align: right;
  white-space: nowrap;
}

.lion-ot-total {
  width: 6rem;
  text-align: right;
  white-space: nowrap;
}

/* ── Order history ── */
.lion-journey-history-card {
  display: grid;
  gap: 0.75rem;
}

.lion-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.lion-history-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  border: 1px solid #e2ecf5;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: #f8fbff;
}

.lion-history-avatar {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #1f5f8b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.lion-history-body {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 0.25rem;
}

.lion-history-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.5rem;
  font-size: 0.85rem;
}

.lion-history-author {
  color: #1f5f8b;
}

.lion-history-date {
  color: #7a8fa0;
  font-size: 0.8rem;
  margin-left: auto;
}

.lion-history-content {
  font-size: 0.87rem;
  color: #2a3f52;
  word-break: break-word;
}

.lion-history-content a {
  color: #1f5f8b;
  word-break: break-all;
}

.lion-history-item-compact {
  padding: 0.55rem;
}

.lion-history-item-compact .lion-history-meta {
  font-size: 0.78rem;
}

.lion-history-item-compact .lion-history-date {
  margin-left: 0;
}

.lion-history-item-compact .lion-history-content {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Payment card ── */
.lion-journey-payment-card {
  border-color: #d4856a;
  background: #fff8f5;
  display: grid;
  gap: 0.75rem;
}

.lion-journey-payment-card h3 {
  color: #bf562f;
}

.lion-journey-payment-card .lion-btn {
  background: #bf562f;
  justify-self: start;
}

.lion-journey-payment-card .lion-btn:hover {
  background: #9c4224;
}

/* ── Payment button (inline width) ── */
.lion-btn-payment {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  text-decoration: none;
  justify-self: end;
}

.lion-btn-payment-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.lion-payment-received-card {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid #87cfa8;
  background: linear-gradient(135deg, #e4f7ea 0%, #d8f3df 100%);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(33, 94, 58, 0.14);
}

.lion-payment-received-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #2f8f4f;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.lion-payment-received-card h4 {
  margin: 0;
  color: #1c6b3d;
  font-size: 1rem;
}

.lion-payment-received-card p {
  margin: 0.2rem 0 0;
  color: #2f5c3f;
  font-size: 0.9rem;
}

/* ── History avatars ── */
.lion-avatar-admin {
  background: #1f5f8b;
  overflow: hidden;
  padding: 0;
}

.lion-avatar-admin img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.lion-avatar-you {
  background: #bf562f;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── History "show more" ── */
.lion-history-item[hidden] {
  display: none;
}

.lion-history-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.lion-history-more-wrap[hidden] {
  display: none;
}

.lion-btn-show-more {
  background: none;
  border: 1px solid #c0d4e8;
  border-radius: 999px;
  color: #1f5f8b;
  font: inherit;
  font-size: 0.87rem;
  font-weight: 600;
  padding: 0.45rem 1.3rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.lion-btn-show-more:hover {
  background: #eaf3fb;
  border-color: #3c85b8;
}

/* ── Update form ── */
.lion-journey-update-form {
  display: grid;
  gap: 0.7rem;
}

.lion-update-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 22, 36, 0.68);
  padding: 1rem;
}

.lion-update-modal[hidden] {
  display: none;
}

.lion-update-modal-panel {
  position: relative;
  width: min(100%, 560px);
  display: grid;
  gap: 0.8rem;
  border: 1px solid #d6e0e5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(10, 22, 36, 0.35);
  padding: 1.2rem;
}

.lion-update-modal-panel h3 {
  margin: 0;
  color: #17324a;
}

.lion-update-modal-panel .lion-quote-form {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.lion-update-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid #d6e0e5;
  border-radius: 999px;
  background: #ffffff;
  color: #17324a;
  cursor: pointer;
}

.lion-add-update-trigger {
  justify-self: start;
}

/* ── Quote page page-id overrides ── */
.page-id-16 .site-main {
  min-height: calc(100vh - 76px);
  background: linear-gradient(160deg, #ebf6ff 0%, #f8fcff 52%, #eef9f6 100%);
}

.page-id-16 .section { padding: 0; }

.page-id-16 .container,
.page-id-16 .container.prose,
.page-id-16 article {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.page-id-16 article > h1 {
  display: none;
}

/* ── Upload panel ── */
.lion-upload-panel {
  display: grid;
  gap: 0.7rem;
  border: 1px solid #d7e2e8;
  border-radius: 8px;
  background: #fbf7f3;
  padding: 1rem;
}

.lion-upload-panel.lion-upload-state {
  display: none;
}

.lion-upload-panel h3 {
  margin: 0;
  color: #17324a;
}

.lion-btn-submit {
  justify-self: start;
  min-width: 220px;
  border-radius: 6px;
  padding: 0.9rem 1.2rem;
  box-shadow: none;
}

/* ── Production photos inline in order table ── */
.lion-ot-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.lion-thumb-sm {
  width: 48px;
  height: 48px;
  border-radius: 6px;
}

.lion-thumb-sm .lion-thumb-zoom {
  font-size: 0.9rem;
}

.lion-ot-row-has-photos td {
  padding-bottom: 0.6rem;
}

/* ── Journey header row with re-order button ── */
.lion-journey-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.lion-reorder-form {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.25rem;
}

.lion-journey-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.lion-btn-invoice,
.lion-btn-reorder {
  min-height: 42px;
}

.lion-btn-reorder {
  white-space: nowrap;
  font-size: 0.88rem;
  padding: 0.6rem 1.1rem;
}

/* ── Production photos card ── */
.lion-journey-production-card {
  display: grid;
  gap: 0.6rem;
}

/* ── My Orders shortcode ── */
.lion-my-orders {
  display: grid;
  gap: 1rem;
}

.lion-my-orders h2 {
  margin: 0 0 0.25rem;
  color: #1f5f8b;
}

.lion-my-orders-table {
  width: 100%;
}

.lion-my-orders-login {
  display: grid;
  gap: 0.75rem;
}

.lion-my-orders-login h2 {
  margin: 0;
  color: #1f5f8b;
}

.lion-badge-reorder {
  display: inline-block;
  font-size: 0.72rem;
  background: #eef4fb;
  color: #1f5f8b;
  border: 1px solid #c8daea;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  vertical-align: middle;
  margin-left: 0.35rem;
}

@media (max-width: 480px) {
  .lion-journey-header-top { flex-direction: column; }
  .lion-journey-header-actions,
  .lion-reorder-form,
  .lion-btn-invoice,
  .lion-btn-reorder { width: 100%; text-align: center; }
}


@media (max-width: 720px) {
  .lion-quote-fullbleed { padding: 1rem; }

  .lion-quote-grid { grid-template-columns: 1fr; }

  .lion-quote-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .lion-quote-steps::before { left: calc(12.5% + 15px); right: calc(12.5% + 15px); top: 15px; }

  .lion-quote-steps strong { width: 1.9rem; height: 1.9rem; font-size: 0.76rem; }

  .lion-quote-steps span { font-size: 0.7rem; }

  .lion-quote-notes-grid { grid-template-columns: 1fr; }

  .lion-line-upload { grid-template-columns: 1fr; }

  .lion-line-upload-fields > div:first-child { display: grid; gap: 0.15rem; }

  .lion-line-upload .lion-upload-controls { grid-template-columns: 1fr; }

  .lion-custom-line-row { grid-template-columns: 1fr; }

  .lion-product-size-group { grid-template-columns: 1fr; }

  .lion-size-quantity { grid-template-columns: minmax(3rem, auto) auto minmax(1.75rem, 1fr); }

  .lion-submit-panel { grid-template-columns: 1fr; }

  .lion-submit-actions { justify-items: stretch; }

  .lion-btn-submit { width: 100%; justify-self: stretch; }

  .lion-line-photo { width: 120px; height: 120px; }

  .lion-quote-meta-grid { grid-template-columns: 1fr; }

  .lion-upload-controls { grid-template-columns: 1fr; }

  .lion-journey-container { padding: 0.9rem 0.9rem 1.25rem; }

  .lion-journey-progress-strip { padding: 0.7rem; }

  .lion-progress-horizontal { gap: 0.3rem; }

  .lion-progress-horizontal .lion-progress-item { align-items: center; }

  .lion-progress-item .dot { width: 30px; height: 30px; font-size: 0.9rem; }

  .lion-progress-horizontal .lion-progress-item:not(:last-child)::after { top: 15px; left: 50%; width: calc(100% + 0.3rem); }

  .lion-progress-label { font-size: 0.7rem; text-align: center; }

  .lion-journey-static-grid { grid-template-columns: 1fr; }

  .lion-journey-grid { padding: 1rem; }

  .lion-journey-project-grid { grid-template-columns: 1fr; }

  .lion-history-list--section { grid-template-columns: 1fr; }

  .lion-journey-history-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .lion-order-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .lion-order-table .lion-ot-desc {
    min-width: 180px;
    white-space: normal;
  }
}
