﻿.wallart-wizard {
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid #dfe5ea;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.wallart-wizard h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.wallart-wizard-intro {
  margin-bottom: 16px;
  color: #3f4a56;
  font-size: 0.95rem;
}

.wallart-step {
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid #e6ecf2;
  border-radius: 10px;
  background: #ffffff;
}

.wallart-step:last-child {
  margin-bottom: 0;
}

.wallart-step.is-complete {
  border-color: #7eb58f;
  box-shadow: 0 0 0 1px #c4e2cd inset;
}

.wallart-step h4 {
  margin: 0 0 10px;
  font-size: 1.06rem;
}

.wallart-field-group {
  margin-bottom: 8px;
}

.wallart-field-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.wallart-field-group input[type="text"],
.wallart-field-group select,
.wallart-field-group input[type="file"] {
  width: 100%;
  max-width: 520px;
}

.wallart-muted {
  color: #54606d;
  font-size: 0.9rem;
  margin-top: 6px;
}

.wallart-upload-preview {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  max-width: 650px;
}

.wallart-upload-item {
  border: 1px solid #d9e1e8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.wallart-upload-item img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.wallart-upload-meta {
  padding: 8px;
  font-size: 0.82rem;
  color: #34414f;
}

.wallart-choice-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.wallart-choice-card {
  display: block;
  border: 1px solid #d8e0e7;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
}

.wallart-choice-card span {
  display: block;
  margin-top: 6px;
  font-weight: 600;
}

.wallart-choice-card small {
  display: block;
  margin-top: 4px;
  color: #596673;
}

.wallart-inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.wallart-inline-options label {
  font-weight: 500;
}

.wallart-subflow {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px dashed #cad4de;
  border-radius: 8px;
  background: #fbfcfd;
}

.wallart-cropper {
  margin-top: 12px;
  max-width: 680px;
}

.wallart-crop-stage {
  position: relative;
  width: 100%;
  max-width: 680px;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  min-height: 220px;
  user-select: none;
  touch-action: none;
}

.wallart-crop-image {
  position: absolute;
  transform-origin: top left;
  left: 0;
  top: 0;
  will-change: transform;
}

.wallart-crop-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.wallart-crop-frame {
  position: absolute;
  border: 2px solid #fff;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.wallart-crop-controls {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.wallart-crop-controls input[type="range"] {
  width: 160px;
}

.wallart-generated-preview {
  margin-top: 12px;
  border: 1px solid #d9e1e8;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  max-width: 440px;
}

.wallart-generated-preview img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.wallart-flow-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.wallart-flow-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 28, 0.56);
}

.wallart-flow-modal-dialog {
  position: relative;
  width: min(560px, calc(100vw - 24px));
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.wallart-flow-modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 1px solid #d6dde5;
  background: #fff;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  line-height: 24px;
  cursor: pointer;
}

.wallart-flow-modal-dialog h4 {
  margin: 0 26px 10px 0;
}

.wallart-flow-modal-body {
  color: #2f3a45;
}

.wallart-flow-modal-body img {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #d9e1e8;
  margin-bottom: 8px;
}

.wallart-flow-modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.wallart-checkline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.wallart-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.wallart-next-actions .button.is-active {
  background: #0f6a3e;
  border-color: #0f6a3e;
  color: #fff;
}

.wallart-ordering-panel {
  --wallart-ink: #172033;
  --wallart-soft-ink: #51607a;
  --wallart-line: rgba(18, 31, 53, 0.12);
  --wallart-panel: linear-gradient(145deg, #f7f9fc 0%, #ffffff 42%, #eef3fa 100%);
  --wallart-accent: #2457d6;
  --wallart-accent-dark: #173d9e;
  --wallart-accent-soft: rgba(36, 87, 214, 0.1);
  --wallart-surface: rgba(255, 255, 255, 0.84);
  position: relative;
  border: 1px solid rgba(36, 87, 214, 0.12);
  border-radius: 22px;
  padding: 18px;
  background: var(--wallart-panel);
  margin-top: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(23, 32, 51, 0.07);
}

.wallart-ordering-panel::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -80px;
  top: -90px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(36, 87, 214, 0.12) 0%, rgba(36, 87, 214, 0) 72%);
  pointer-events: none;
}

.wallart-ordering-panel__hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  z-index: 1;
}

.wallart-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.07);
  color: var(--wallart-ink);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wallart-ordering-panel__hero h3 {
  margin: 8px 0 6px;
  color: var(--wallart-ink);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.08;
}

.wallart-ordering-panel__hero p {
  margin: 0;
  max-width: 520px;
  color: var(--wallart-soft-ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

.wallart-panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.wallart-panel-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--wallart-line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--wallart-ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.wallart-material-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 10px;
}

.wallart-material-card {
  display: grid;
  gap: 6px;
  text-align: left;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 16px;
  padding: 13px;
  background: var(--wallart-surface);
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
}

.wallart-material-card:hover,
.wallart-material-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(36, 87, 214, 0.34);
  box-shadow: 0 16px 30px rgba(23, 32, 51, 0.1);
  outline: none;
}

.wallart-material-card.is-selected {
  border-color: rgba(36, 87, 214, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 246, 255, 0.98) 100%);
  box-shadow: 0 14px 28px rgba(36, 87, 214, 0.12);
}

.wallart-material-card__eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--wallart-accent-soft);
  color: var(--wallart-accent-dark);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wallart-material-card__title {
  color: var(--wallart-ink);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.1;
}

.wallart-material-card__headline {
  color: var(--wallart-ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.wallart-material-card__summary {
  color: var(--wallart-soft-ink);
  font-size: 0.8rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wallart-material-card__meta,
.wallart-material-card__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wallart-material-card__meta span,
.wallart-material-card__highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.06);
  color: var(--wallart-ink);
  font-size: 0.7rem;
  font-weight: 700;
}

.wallart-material-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.wallart-material-card__price {
  display: grid;
  gap: 2px;
}

.wallart-price-current {
  color: var(--wallart-ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.wallart-price-compare {
  color: var(--wallart-accent-dark);
  font-size: 0.68rem;
  font-weight: 700;
}

.wallart-material-card__price .wallart-price-current,
.wallart-material-card__price .wallart-price-compare,
.wallart-size-card__price .wallart-price-current,
.wallart-size-card__price .wallart-price-compare,
.wallart-extra-card__price .wallart-price-current,
.wallart-extra-card__price .wallart-price-compare,
.wallart-selection-summary__price .wallart-price-current,
.wallart-selection-summary__price .wallart-price-compare,
.wallart-order-summary__price .wallart-price-current,
.wallart-order-summary__price .wallart-price-compare {
  display: block;
}

.wallart-selection-summary__price .wallart-price-current,
.wallart-order-summary__price .wallart-price-current {
  color: #fff;
}

.wallart-selection-summary__price .wallart-price-compare,
.wallart-order-summary__price .wallart-price-compare {
  color: rgba(255, 255, 255, 0.72);
}

.wallart-material-card__cta {
  color: var(--wallart-accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.wallart-material-card--extra {
  display: none;
}

.wallart-material-cards.is-expanded .wallart-material-card--extra {
  display: grid;
}

.wallart-material-more-wrap {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.wallart-material-more-button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(36, 87, 214, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--wallart-accent-dark);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.wallart-ordering-hidden-fields {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.wallart-order-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
}

.wallart-order-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 15, 27, 0.66);
  backdrop-filter: blur(6px);
}

.wallart-order-modal__dialog {
  position: relative;
  width: min(980px, calc(100vw - 32px));
  margin: 3vh auto 0;
  max-height: 92vh;
  overflow: auto;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
  box-shadow: 0 30px 80px rgba(8, 14, 26, 0.28);
}

.wallart-order-modal__close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--wallart-line);
  border-radius: 999px;
  background: #fff;
  color: var(--wallart-ink);
  font-size: 1rem;
  cursor: pointer;
}

.wallart-order-modal__header h4 {
  margin: 10px 0 8px;
  color: var(--wallart-ink);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.wallart-order-modal__header p {
  margin: 0;
  color: var(--wallart-soft-ink);
  line-height: 1.6;
}

.wallart-order-modal__content {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.78fr);
  gap: 16px;
  margin-top: 18px;
}

.wallart-order-modal__main {
  display: grid;
  gap: 18px;
}

.wallart-order-section {
  padding: 18px;
  border: 1px solid var(--wallart-line);
  border-radius: 24px;
  background: rgba(242, 246, 251, 0.58);
}

.wallart-order-section__heading {
  margin-bottom: 14px;
}

.wallart-order-section__heading h5 {
  margin: 0 0 4px;
  color: var(--wallart-ink);
  font-size: 1.04rem;
}

.wallart-order-section__heading p {
  margin: 0;
  color: var(--wallart-soft-ink);
  line-height: 1.55;
}

.wallart-size-cards,
.wallart-extra-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.wallart-size-card,
.wallart-extra-card {
  display: grid;
  gap: 8px;
  align-content: start;
  text-align: left;
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(23, 32, 51, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.wallart-size-card:hover,
.wallart-size-card:focus-visible,
.wallart-extra-card:hover,
.wallart-extra-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(36, 87, 214, 0.34);
  outline: none;
}

.wallart-size-card.is-selected,
.wallart-extra-card.is-selected {
  border-color: rgba(36, 87, 214, 0.44);
  background: linear-gradient(180deg, rgba(241, 246, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 14px 26px rgba(36, 87, 214, 0.12);
}

.wallart-size-card__title,
.wallart-extra-card__title {
  color: var(--wallart-ink);
  font-size: 1rem;
  font-weight: 800;
}

.wallart-size-card__ratio,
.wallart-extra-card__badge {
  color: var(--wallart-accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wallart-size-card__price,
.wallart-extra-card__price {
  color: var(--wallart-soft-ink);
  line-height: 1.4;
}

.wallart-extra-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
}

.wallart-order-summary {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(36, 87, 214, 0.14);
  background: linear-gradient(180deg, #f3f7ff 0%, #edf3ff 100%);
  color: var(--wallart-ink);
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.08);
}

.wallart-order-summary__eyebrow {
  color: var(--wallart-accent-dark);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wallart-order-summary__title {
  font-size: 1.3rem;
  font-weight: 800;
}

.wallart-order-summary__line {
  color: var(--wallart-soft-ink);
  line-height: 1.5;
}

.wallart-order-summary__price {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 32, 51, 0.1);
  color: var(--wallart-ink);
}

.wallart-order-summary__price .wallart-price-current {
  color: var(--wallart-ink);
}

.wallart-order-summary__price .wallart-price-compare {
  color: var(--wallart-soft-ink);
}

.wallart-modal-submit {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2457d6 0%, #173d9e 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(36, 87, 214, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  cursor: pointer;
}

.wallart-modal-submit[disabled] {
  opacity: 0.45;
  box-shadow: none;
  cursor: not-allowed;
}

.wallart-modal-submit:not([disabled]):hover,
.wallart-modal-submit:not([disabled]):focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(36, 87, 214, 0.3);
  filter: brightness(1.04);
  outline: none;
}

.wallart-modal-secondary {
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: var(--wallart-soft-ink);
  font-weight: 700;
  box-shadow: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.wallart-modal-secondary:hover,
.wallart-modal-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(36, 87, 214, 0.16);
  color: var(--wallart-ink);
  outline: none;
}

body.wallart-modal-open {
  overflow: hidden;
}

form.cart .single_add_to_cart_button {
  display: none !important;
}

@media (max-width: 980px) {
  .wallart-order-modal__content {
    grid-template-columns: 1fr;
  }

  .wallart-order-summary {
    order: -1;
  }
}

@media (max-width: 640px) {
  .wallart-wizard,
  .wallart-ordering-panel {
    padding: 12px;
  }

  .wallart-step {
    padding: 10px;
  }

  .wallart-next-actions .button {
    width: 100%;
  }

  .wallart-ordering-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .wallart-ordering-panel__hero,
  .wallart-order-modal__content {
    grid-template-columns: 1fr;
    display: grid;
  }

  .wallart-panel-links {
    justify-content: flex-start;
  }

  .wallart-modal-submit,
  .wallart-modal-secondary {
    width: 100%;
    min-width: 0;
  }

  .wallart-order-modal__dialog {
    margin-top: 2vh;
    width: calc(100vw - 16px);
    max-height: 96vh;
    overflow: auto;
    padding: 18px;
    border-radius: 22px;
  }

  .wallart-flow-modal-dialog {
    margin-top: 4vh;
    width: calc(100vw - 16px);
    padding: 12px;
  }

  .wallart-flow-modal-actions .button {
    width: 100%;
  }
}
