.page-memora-quote {
  background: #f4f6f3;
}

.memora-designer-page {
  width: min(100% - 40px, 1320px);
  margin: 0 auto;
  padding: 36px 0 72px;
  color: #202a25;
}

.memora-designer-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.memora-designer-heading h1 {
  margin: 0;
  color: #202a25;
  font-size: 34px;
  font-weight: 650;
  line-height: 1.15;
}

.memora-designer-heading p:last-child {
  max-width: 680px;
  margin: 10px 0 0;
  color: #59665e;
  line-height: 1.55;
}

.memora-designer-kicker {
  margin: 0 0 8px;
  color: #a84c43;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.memora-designer-back {
  flex: 0 0 auto;
  padding-bottom: 4px;
  color: #285848;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.memora-designer-grid {
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(420px, 1.08fr);
  align-items: start;
  gap: 28px;
}

.memora-designer-controls {
  min-width: 0;
  padding: 0 4px;
}

.memora-designer-section {
  padding: 20px 0 24px;
  border-bottom: 1px solid #d7dfd9;
}

.memora-designer-section:first-child {
  padding-top: 4px;
}

.memora-product-source-select {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.memora-product-picker-trigger {
  display: grid;
  width: 100%;
  min-height: 76px;
  grid-template-columns: 64px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid #c8d2cb;
  border-radius: 4px;
  color: #202a25;
  background: #fff;
  text-align: left;
}

.memora-product-picker-trigger img,
.memora-product-choice img,
.memora-product-choice-placeholder {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: contain;
  background: #f1f3f1;
}

.memora-product-picker-trigger img {
  width: 64px;
  height: 56px;
}

.memora-product-picker-trigger span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.memora-product-picker-trigger strong,
.memora-product-choice span {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.memora-product-picker-trigger small {
  color: #647168;
  font-size: 12px;
}

.memora-product-picker-trigger > i {
  color: #647168;
}

.memora-product-picker {
  width: min(900px, calc(100vw - 24px));
  max-width: none;
  max-height: min(82vh, 760px);
  padding: 0;
  border: 1px solid #c8d2cb;
  border-radius: 4px;
  color: #202a25;
  background: #fff;
  box-shadow: 0 18px 60px rgba(19, 33, 25, .28);
}

.memora-product-picker::backdrop {
  background: rgba(22, 32, 26, .58);
}

.memora-product-picker-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid #d7dfd9;
  background: #fff;
}

.memora-product-picker-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}

.memora-icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #bdc9c1;
  border-radius: 3px;
  color: #285848;
  background: #fff;
}

.memora-product-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  max-height: calc(min(82vh, 760px) - 61px);
  overflow: auto;
  padding: 14px;
}

.memora-product-choice {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(120px, 1fr) auto;
  gap: 8px;
  padding: 8px;
  border: 1px solid #d3dbd5;
  border-radius: 4px;
  color: #303a33;
  background: #fff;
  text-align: left;
}

.memora-product-choice img,
.memora-product-choice-placeholder {
  height: 140px;
  border-radius: 2px;
}

.memora-product-choice-placeholder {
  display: grid;
  place-items: center;
  color: #647168;
  font-size: 24px;
}

.memora-product-choice[aria-pressed="true"] {
  border-color: #28644c;
  box-shadow: inset 0 0 0 1px #28644c;
}

.memora-product-choice:focus-visible,
.memora-product-picker-trigger:focus-visible,
.memora-icon-button:focus-visible {
  outline: 3px solid rgba(53, 113, 88, .25);
  outline-offset: 2px;
}

.memora-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.memora-section-heading > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid #9aaba0;
  border-radius: 50%;
  color: #285848;
  font-size: 12px;
  font-weight: 700;
}

.memora-section-heading h2 {
  margin: 0;
  color: #202a25;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
}

.memora-section-heading p {
  margin: 4px 0 0;
  color: #647168;
  font-size: 13px;
  line-height: 1.45;
}

.memora-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.memora-shape-picker {
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
  padding: 2px 3px 8px 2px;
}

.memora-designer-form.has-shape-picker #memora-shape {
  display: none;
}

.memora-designer-form.has-shape-picker .memora-shape-picker {
  display: grid;
}

.memora-shape-option {
  display: grid;
  min-width: 0;
  min-height: 66px;
  grid-template-rows: 42px auto;
  gap: 2px;
  padding: 4px;
  border: 1px solid #d3dbd5;
  border-radius: 3px;
  color: #39463e;
  background: #fff;
  cursor: pointer;
}

.memora-shape-option[hidden],
.memora-accessory-option[hidden],
.memora-option-catalog-toolbar[hidden],
.memora-option-pagination[hidden] {
  display: none !important;
}

.memora-shape-option img {
  width: 100%;
  height: 42px;
  object-fit: contain;
}

.memora-shape-option.is-style-default {
  align-content: center;
  background: #f5f8f5;
}

.memora-shape-option.is-style-default i {
  align-self: center;
  justify-self: center;
  color: #28644c;
  font-size: 22px;
}

.memora-shape-option span {
  overflow: hidden;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memora-shape-option[aria-pressed="true"] {
  border-color: #28644c;
  box-shadow: inset 0 0 0 1px #28644c;
}

.memora-shape-option:focus-visible {
  outline: 3px solid rgba(53, 113, 88, .25);
  outline-offset: 1px;
}

.memora-accessory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.memora-accessory-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #c8d2cb;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.memora-accessory-option:focus-within {
  border-color: #4d806c;
  box-shadow: 0 0 0 3px rgba(53, 113, 88, .14);
}

.memora-accessory-option .form-check-input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.memora-accessory-option span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.memora-accessory-option strong {
  color: #202a25;
  font-size: 13px;
  line-height: 1.35;
}

.memora-accessory-option small {
  color: #647168;
  font-size: 12px;
  line-height: 1.4;
}

.memora-diy-asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.memora-diy-asset-inputs {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.memora-diy-catalog-toolbar,
.memora-option-catalog-toolbar {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 9px;
  border: 1px solid #d9e0db;
  border-radius: 5px;
  background: #f7faf8;
}

.memora-diy-catalog-search,
.memora-option-catalog-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid #cbd6ce;
  border-radius: 4px;
  background: #fff;
}

.memora-diy-catalog-search label,
.memora-option-catalog-search label {
  flex: 0 0 auto;
  color: #577064;
}

.memora-diy-catalog-search input,
.memora-option-catalog-search input {
  width: 100%;
  min-width: 0;
  padding: 7px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #26352d;
  font-size: 13px;
}

.memora-diy-catalog-filters,
.memora-option-catalog-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.memora-diy-catalog-filters label,
.memora-option-catalog-filters label {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: #68776e;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.memora-diy-catalog-filters select,
.memora-option-catalog-filters select {
  width: 100%;
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid #cbd6ce;
  border-radius: 4px;
  background: #fff;
  color: #2d3b33;
  font-size: 12px;
  text-transform: none;
}

.memora-diy-catalog-meta,
.memora-option-catalog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: #66766d;
  font-size: 11px;
}

.memora-diy-catalog-meta strong,
.memora-option-catalog-meta strong {
  color: #28644c;
  font-size: 11px;
}

.memora-diy-selected-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  white-space: nowrap;
}

.memora-diy-selected-toggle input {
  accent-color: #28644c;
}

.memora-diy-clear,
.memora-option-clear {
  padding: 0;
  border: 0;
  background: transparent;
  color: #28644c;
  font: inherit;
  cursor: pointer;
}

.memora-diy-clear:disabled,
.memora-option-clear:disabled {
  color: #9ba8a0;
  cursor: default;
}

.memora-diy-asset-option {
  display: grid;
  min-width: 0;
  min-height: 82px;
  position: relative;
  grid-template-columns: 52px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid #d3dbd5;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.memora-diy-asset-option.is-selected {
  border-color: #28644c;
  box-shadow: inset 0 0 0 1px #28644c;
  background: #f5faf7;
}

.memora-diy-asset-option img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.memora-diy-asset-check {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #c5d0c8;
  border-radius: 50%;
  color: transparent;
  font-size: 13px;
}

.memora-diy-asset-option.is-selected .memora-diy-asset-check {
  border-color: #28644c;
  background: #28644c;
  color: #fff;
}

.memora-diy-asset-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.memora-diy-asset-copy strong,
.memora-diy-asset-copy small {
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.memora-diy-asset-copy strong {
  color: #303a33;
  font-size: 13px;
}

.memora-diy-asset-copy small {
  color: #68746c;
  font-size: 11px;
}

.memora-diy-asset-option:focus-within {
  outline: 3px solid rgba(53, 113, 88, .25);
  outline-offset: 1px;
}

.memora-diy-asset-option:focus-visible {
  outline: 3px solid rgba(53, 113, 88, .25);
  outline-offset: 1px;
}

.memora-diy-pagination,
.memora-option-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.memora-diy-pagination button,
.memora-option-pagination button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #cbd6ce;
  border-radius: 4px;
  background: #fff;
  color: #315b47;
  font-size: 11px;
  cursor: pointer;
}

.memora-diy-pagination button:disabled,
.memora-option-pagination button:disabled {
  color: #a5b0a9;
  cursor: default;
  opacity: .7;
}

.memora-diy-page-indicator,
.memora-option-page-indicator {
  min-width: 78px;
  color: #68776e;
  font-size: 11px;
  text-align: center;
}

.memora-diy-face-editor {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 18px;
}

.memora-diy-face-editor-heading {
  display: flex;
  width: min(100%, 360px);
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #303a33;
  font-size: 13px;
}

.memora-face-editor-actions,
.memora-object-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.memora-diy-face-editor-heading button,
.memora-object-tools button,
.memora-add-inscription {
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid #bdc9c1;
  border-radius: 3px;
  color: #285848;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
}

.memora-object-tools {
  width: min(100%, 360px);
  flex-wrap: wrap;
  min-height: 36px;
  padding: 5px 0;
  color: #536057;
  font-size: 12px;
}

.memora-object-tools[hidden] {
  display: none;
}

.memora-object-tools input[type="range"] {
  width: 110px;
  accent-color: #28644c;
}

.memora-object-tools output {
  min-width: 28px;
  color: #303a33;
  font-variant-numeric: tabular-nums;
}

.memora-inscription-list {
  display: grid;
  gap: 8px;
}

.memora-inscription-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid #d7dfd9;
}

.memora-inscription-item textarea {
  min-width: 0;
  resize: vertical;
}

.memora-inscription-style {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(145px, 1.8fr) repeat(3, minmax(78px, 1fr)) auto auto;
  align-items: end;
  gap: 6px;
}

.memora-inscription-style-field {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: #536057;
  font-size: 11px;
  font-weight: 650;
}

.memora-inscription-style-field .form-control,
.memora-inscription-style-field .form-select {
  min-width: 0;
  min-height: 34px;
}

.memora-inscription-style-field .memora-inscription-color {
  width: 100%;
  min-width: 54px;
  padding: 3px;
}

.memora-inscription-style-field.memora-inscription-check {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  white-space: nowrap;
}

.memora-inscription-style-field.memora-inscription-check .form-check-input {
  margin: 0;
}

.memora-inscription-item button,
.memora-add-inscription {
  min-height: 38px;
  border: 1px solid #bdc9c1;
  border-radius: 3px;
  color: #285848;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
}

.memora-inscription-item button {
  width: 38px;
  padding: 5px;
}

.memora-add-inscription {
  margin-top: 8px;
}

.memora-add-inscription:disabled {
  cursor: not-allowed;
  opacity: .52;
}

@media (max-width: 620px) {
  .memora-inscription-style {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .memora-inscription-style .memora-inscription-family {
    grid-column: 1 / -1;
  }

  .memora-component-workbench-heading {
    flex-direction: column;
  }

  .memora-component-dimensions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.memora-diy-face-editor-frame {
  width: min(100%, 360px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #bcc8bf;
  background-color: #e4e5e0;
  background-position: center;
  background-size: cover;
}

#memora-diy-face-editor {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

#memora-diy-face-editor:active {
  cursor: grabbing;
}

.memora-field-span {
  grid-column: 1 / -1;
}

.memora-designer-controls .form-label,
.memora-material-heading .form-label {
  display: block;
  margin: 0 0 6px;
  color: #344139;
  font-size: 13px;
  font-weight: 650;
}

.memora-designer-controls .form-control,
.memora-designer-controls .form-select {
  min-height: 42px;
  border-color: #c8d2cb;
  border-radius: 3px;
  color: #202a25;
  background-color: #fff;
}

.memora-designer-controls textarea.form-control {
  min-height: 96px;
  resize: vertical;
}

.memora-designer-controls .form-control:focus,
.memora-designer-controls .form-select:focus {
  border-color: #4d806c;
  box-shadow: 0 0 0 3px rgba(53, 113, 88, .14);
}

.memora-designer-controls input[readonly] {
  color: #66736a;
  background-color: #edf1ed;
}

.memora-material-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.memora-material-heading > span:last-child {
  color: #617067;
  font-size: 13px;
  text-align: right;
}

.memora-material-swatches {
  display: none;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  padding: 2px 2px 8px;
}

.memora-designer-form.has-material-swatches .memora-material-swatches {
  display: grid;
}

.memora-designer-form.has-material-swatches .memora-material-fallback {
  display: none;
}

.memora-material-swatch {
  display: grid;
  min-width: 0;
  min-height: 64px;
  grid-template-rows: 38px auto;
  gap: 3px;
  padding: 3px;
  border: 1px solid #d3dbd5;
  border-radius: 3px;
  color: #39463e;
  background: #fff;
  cursor: pointer;
}

.memora-material-swatch img {
  width: 100%;
  height: 38px;
  border-radius: 2px;
  object-fit: cover;
}

.memora-material-swatch span {
  overflow: hidden;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memora-material-swatch[aria-pressed="true"] {
  border-color: #28644c;
  box-shadow: inset 0 0 0 1px #28644c;
}

.memora-dimensions {
  margin-top: 12px;
}

.memora-number-field {
  display: flex;
  height: 42px;
  align-items: center;
  border: 1px solid #c8d2cb;
  border-radius: 3px;
  background: #fff;
}

.memora-number-field:focus-within {
  border-color: #4d806c;
  box-shadow: 0 0 0 3px rgba(53, 113, 88, .14);
}

.memora-number-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 10px;
  border: 0;
  outline: 0;
  color: #202a25;
  background: transparent;
}

.memora-number-field span {
  padding-right: 10px;
  color: #66736a;
  font-size: 12px;
}

.memora-inscription-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.memora-inscription-label .form-label {
  margin-bottom: 6px;
}

.memora-inscription-label span {
  color: #647168;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.memora-component-workbench {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #cdd8d0;
  border-radius: 4px;
  background: #f5f8f5;
}

.memora-component-workbench[hidden] {
  display: none;
}

.memora-component-workbench-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.memora-component-workbench-heading > div {
  display: grid;
  gap: 3px;
}

.memora-component-workbench-heading strong {
  color: #263b30;
  font-size: 13px;
}

.memora-component-workbench-heading span {
  color: #637067;
  font-size: 11px;
  line-height: 1.4;
}

.memora-component-active {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid #b7cbbd;
  border-radius: 3px;
  color: #285848;
  background: #edf5ef;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.is-imported-assembly #memora-material-controls,
.is-imported-assembly .memora-shape-field,
.is-imported-assembly .memora-dimensions,
.is-imported-assembly #memora-dimensions-note,
.is-imported-assembly #memora-size-section > .memora-section-heading p,
.is-imported-assembly #memora-shape-picker,
.is-imported-assembly #memora-shape-catalog-toolbar,
.is-imported-assembly #memora-shape-pagination,
.is-imported-assembly #memora-finish,
.is-imported-assembly label[for="memora-finish"],
.is-imported-assembly label[for="memora-assembly-scale"],
.is-imported-assembly #memora-assembly-scale,
.is-imported-assembly #memora-assembly-scale-value { display:none !important; }
.is-imported-assembly #memora-component-workbench { padding:0; border:0; background:transparent; }
.is-imported-assembly #memora-component-workbench :is(button,input,select) { scroll-margin-block:110px; }
.is-imported-assembly #memora-assembly-envelope { margin-top:12px; }
.memora-modular-controls { display:grid; gap:10px; min-width:0; }
.memora-modular-heading { display:flex; align-items:center; gap:8px; min-width:0; flex-wrap:wrap; }
.memora-modular-heading img { width:64px; height:64px; object-fit:contain; background:#f4f5f4; }
.memora-modular-heading span { flex:1; min-width:100px; font-size:12px; overflow-wrap:anywhere; }
.memora-modular-heading button,.memora-modular-dialog button { border:1px solid #c8d2cb; background:#fff; color:#285848; border-radius:4px; padding:8px; }
.memora-modular-fields { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
.memora-modular-fields label { display:grid; gap:4px; font-size:12px; min-width:0; }
.memora-modular-fields select { width:100%; min-width:0; padding:8px; background:#fff; border:1px solid #c8d2cb; border-radius:4px; }
.memora-modular-swatch { width:52px; height:52px; object-fit:cover; border:1px solid #c8d2cb; border-radius:4px; }
.memora-modular-dialog { width:min(900px,calc(100vw - 24px)); max-height:85dvh; padding:18px; border:1px solid #c8d2cb; border-radius:6px; color:#202a25; }
.memora-modular-dialog::backdrop { background:rgb(0 0 0 / 45%); }
.memora-modular-dialog header { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.memora-modular-dialog h2 { font-size:20px; margin:0; }
.memora-modular-dialog input { width:100%; padding:10px; margin-bottom:14px; border:1px solid #c8d2cb; border-radius:4px; }
.memora-modular-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:12px; }
.memora-modular-grid button { display:grid; grid-template-rows:auto 1fr; gap:7px; text-align:left; font-size:12px; min-width:0; overflow-wrap:anywhere; }
.memora-modular-grid img { width:100%; aspect-ratio:1; object-fit:contain; background:#f4f5f4; }
.memora-modular-grid button[aria-pressed="true"] { border:2px solid #28644c; }
@media(max-width:575px) { .memora-modular-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }

.memora-component-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.memora-component-tab {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #bdc9c1;
  border-radius: 3px;
  color: #385248;
  background: #fff;
  font-size: 11px;
  font-weight: 650;
}

.memora-component-tab[aria-selected="true"] {
  border-color: #28644c;
  color: #fff;
  background: #28644c;
}

.memora-component-options {
  display: grid;
  gap: 8px;
}

.memora-component-enabled {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #3a4b41;
  font-size: 12px;
  font-weight: 650;
}

.memora-component-dimensions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.memora-component-dimension {
  display: grid;
  gap: 3px;
  color: #637067;
  font-size: 10px;
  font-weight: 650;
}

.memora-component-dimension input {
  width: 100%;
  min-height: 34px;
  padding: 4px 6px;
  border: 1px solid #c8d2cb;
  border-radius: 3px;
  background: #fff;
  color: #202a25;
}

.memora-component-meta {
  color: #718078;
  font-size: 10px;
}

.memora-component-add-artwork {
  justify-self: start;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid #bdc9c1;
  border-radius: 3px;
  color: #285848;
  background: #fff;
  font-size: 11px;
  font-weight: 650;
}

.memora-designer-preview {
  position: sticky;
  top: 20px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ccd5cf;
  border-radius: 4px;
  background: #fff;
}

.memora-diy-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 12px;
  border-bottom: 1px solid #d8dfda;
  background: #f5f7f5;
}

.memora-diy-methods button {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #4c5b52;
  font-size: 13px;
}

.memora-diy-methods button[aria-pressed="true"] {
  border-color: #b8cabe;
  background: #fff;
  color: #20583f;
}

.memora-diy-methods button[hidden],
.memora-photo-workspace[hidden],
.is-photo-diy [data-memora-3d-options],
.is-photo-diy .memora-canvas-wrap,
.is-photo-diy .memora-preview-controls,
.is-photo-diy .memora-preview-mode,
.is-photo-diy .memora-diy-face-editor,
.is-photo-diy .memora-component-workbench {
  display: none !important;
}

.memora-photo-toolbar {
  display: flex;
  min-height: 44px;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 12px;
  border-bottom: 1px solid #e0e5e1;
}

.memora-photo-toolbar button {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d6ded8;
  border-radius: 3px;
  background: #fff;
  color: #315b46;
}

.memora-photo-toolbar button:disabled { opacity: .4; cursor: default; }
.memora-photo-toolbar button:hover:not(:disabled) { background: #edf4ef; }
.memora-photo-toolbar span { margin-left: auto; font-size: 11px; color: #617168; overflow-wrap: anywhere; }

.memora-photo-canvas-host {
  display: flex;
  height: min(62vh, 610px);
  min-height: 340px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f1f3f1;
  touch-action: none;
}

.memora-photo-canvas-host .canvas-container { flex: 0 0 auto; }
.memora-photo-crop-dialog { width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 16px; border: 1px solid #cbd7ce; border-radius: 6px; overflow: auto; }
.memora-photo-crop-dialog::backdrop { background: rgba(20, 29, 24, .6); }
.memora-photo-crop-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.memora-photo-crop-heading h2 { margin: 0; font-size: 17px; }
.memora-photo-crop-image { height: min(52vh, 420px); background: #eef1ef; overflow: hidden; }
.memora-photo-crop-image > img { display: block; max-width: 100%; max-height: 100%; }
.memora-photo-crop-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding-top: 16px; }
.memora-photo-crop-controls label { display: grid; flex: 1 1 130px; gap: 5px; font-size: 13px; }
.memora-photo-crop-controls select { width: 100%; min-height: 38px; border: 1px solid #cbd7ce; border-radius: 3px; padding: 6px 8px; background: #fff; }
.memora-photo-crop-controls button { width: auto; min-height: 38px; margin: 0; padding: 8px 14px; font-size: 13px; }

.memora-preview-topline,
.memora-preview-controls {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  color: #38463e;
  font-size: 12px;
}

.memora-preview-controls {
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}

.memora-preview-topline {
  border-bottom: 1px solid #e0e5e1;
  font-weight: 700;
}

.memora-preview-heading-tools {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.memora-preview-heading-tools > span {
  color: #68766d;
  font-size: 10px;
  font-weight: 500;
}

.memora-preview-mode {
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #bdc9c1;
  border-radius: 3px;
  background: #fff;
}

.memora-preview-mode button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  color: #536057;
  background: transparent;
}

.memora-preview-mode button + button {
  border-left: 1px solid #bdc9c1;
}

.memora-preview-mode button.is-active {
  color: #245a46;
  background: #e8f1ec;
}

.memora-preview-mode button:focus-visible {
  position: relative;
  outline: 2px solid #2d7359;
  outline-offset: -2px;
}

.memora-preview-mode button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.memora-canvas-wrap.is-photo-view #memora-designer-canvas,
.memora-canvas-wrap.is-photo-view .memora-canvas-hud,
.memora-canvas-wrap.is-photo-view .memora-canvas-loading,
.memora-canvas-wrap.is-photo-view .memora-canvas-fallback-note,
.memora-designer-preview.is-photo-view .memora-product-reference {
  display: none;
}

.memora-canvas-wrap.is-photo-view,
.memora-canvas-wrap.is-photo-view .memora-canvas-fallback {
  background: #fff;
}

.memora-canvas-wrap.is-photo-view .memora-canvas-fallback,
.memora-canvas-wrap.is-rendered.is-photo-view .memora-canvas-fallback {
  display: block;
  padding: 24px;
}

.memora-designer-preview.is-photo-view .memora-preview-controls > span:first-child,
.memora-designer-preview.is-photo-view .memora-preview-view-tools,
.memora-designer-preview.is-photo-view .memora-preview-explode-control,
.memora-designer-preview.is-photo-view #memora-create-video,
.memora-designer-preview.is-photo-view #memora-reset-view,
.memora-designer-preview.is-photo-view #memora-assembly-open {
  display: none;
}

.memora-designer-preview.is-photo-view .memora-preview-actions {
  flex: 1 1 100%;
}

.memora-canvas-wrap {
  position: relative;
  height: min(62vh, 610px);
  min-height: 430px;
  overflow: hidden;
  background: #e8ece8;
}

#memora-designer-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  visibility: hidden;
  touch-action: none;
}

.memora-canvas-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 24px;
  object-fit: contain;
}

.memora-canvas-fallback-note {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  margin: 0;
  padding: 10px 12px;
  color: #26332b;
  background: rgba(255, 255, 255, .94);
  font-size: 13px;
  line-height: 1.45;
}

.memora-canvas-wrap.is-rendered #memora-designer-canvas {
  visibility: visible;
}

.memora-canvas-wrap.is-rendered .memora-canvas-fallback,
.memora-canvas-wrap.is-rendered .memora-canvas-fallback-note {
  display: none;
}

.memora-canvas-loading {
  position: absolute;
  inset: auto 12px 12px;
  padding: 8px 12px;
  border-radius: 2px;
  color: #fff;
  background: rgba(29, 50, 40, .82);
  font-size: 12px;
  pointer-events: none;
}

.memora-canvas-loading[hidden] {
  display: none;
}

.memora-product-reference {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  width: min(190px, 34%);
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(205, 217, 209, .96);
  border-radius: 4px;
  background: rgba(250, 252, 250, .94);
  box-shadow: 0 5px 18px rgba(34, 52, 43, .14);
  pointer-events: none;
}

.memora-product-reference-heading {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.memora-product-reference-heading span {
  color: #68766d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.memora-product-reference-heading strong {
  overflow-wrap: anywhere;
  color: #26352d;
  font-size: 13px;
  line-height: 1.35;
}

.memora-product-reference img {
  width: 100%;
  height: 92px;
  min-width: 0;
  border: 1px solid #d3dbd5;
  border-radius: 3px;
  object-fit: contain;
  background: #fff;
}

.memora-preview-controls {
  min-height: 42px;
  border-top: 1px solid #e0e5e1;
  color: #66736a;
}

.memora-preview-controls[hidden] {
  display: none;
}

.memora-preview-controls button {
  padding: 5px 9px;
  border: 1px solid #bdc9c1;
  border-radius: 3px;
  color: #285848;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
}

.memora-preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.memora-preview-controls button:disabled {
  opacity: .65;
  cursor: wait;
}

.memora-preview-view-tools,
.memora-preview-explode-control {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.memora-preview-view-label,
.memora-preview-explode-control label {
  color: #68766d;
  font-size: 11px;
  font-weight: 650;
}

.memora-view-button {
  display: inline-grid;
  width: 30px;
  height: 30px;
  padding: 0 !important;
  place-items: center;
  color: #52635a !important;
}

.memora-view-button.is-active,
.memora-view-button[aria-pressed="true"] {
  border-color: #28644c !important;
  color: #1f7054 !important;
  background: #e8f2eb !important;
}

.memora-preview-explode-control input[type="range"] {
  width: 86px;
  accent-color: #28644c;
}

.memora-preview-explode-control output {
  min-width: 62px;
  color: #425349;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.memora-canvas-hud {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  gap: 2px;
  max-width: min(330px, calc(100% - 28px));
  padding: 8px 10px;
  border: 1px solid rgba(185, 202, 191, .9);
  color: #304238;
  background: rgba(252, 254, 252, .9);
  box-shadow: 0 3px 14px rgba(30, 46, 36, .1);
  font-size: 11px;
  pointer-events: none;
}

.memora-canvas-hud strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.memora-canvas-hud span {
  color: #68766d;
  line-height: 1.35;
}

.memora-canvas-wrap:not(.is-rendered) .memora-canvas-hud {
  display: none;
}

.memora-assembly-panel {
  width: min(1120px, calc(100vw - 32px));
  max-width: none;
  max-height: min(90vh, 860px);
  margin: auto;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #c8d2cb;
  border-radius: 5px;
  border-top: 1px solid #e0e5e1;
  color: #344139;
  background: #fbfcfb;
  box-shadow: 0 18px 60px rgba(19, 33, 25, .28);
  overflow: hidden;
}

.memora-assembly-panel:not([open]) {
  display: none;
}

.memora-assembly-panel[hidden] {
  display: none;
}

.memora-assembly-panel::backdrop {
  background: rgba(22, 32, 26, .58);
}

.memora-assembly-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.memora-assembly-heading > div {
  display: grid;
  gap: 3px;
}

.memora-assembly-heading-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.memora-assembly-heading strong {
  color: #26382f;
  font-size: 14px;
}

.memora-assembly-heading span {
  color: #68766d;
  font-size: 12px;
  line-height: 1.4;
}

.memora-assembly-heading button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #bdc9c1;
  border-radius: 3px;
  color: #285848;
  background: #fff;
}

.memora-assembly-heading button:hover,
.memora-assembly-heading button:focus-visible {
  border-color: #28644c;
  color: #1f7054;
  background: #f2f7f3;
}

.memora-assembly-dialog-body {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.memora-assembly-sidebar {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 10px;
}

.memora-assembly-reference {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
  background: #eef1ee;
}

.memora-assembly-reference[hidden] {
  display: none;
}

.memora-assembly-pieces {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.memora-assembly-piece {
  display: grid;
  min-height: 50px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid #c8d2cb;
  border-radius: 3px;
  color: #344139;
  background: #fff;
  text-align: left;
  touch-action: manipulation;
}

.memora-assembly-piece[data-selected="true"] {
  border-color: #28644c;
  box-shadow: inset 0 0 0 1px #28644c;
}

.memora-assembly-piece:disabled {
  opacity: .5;
}

.memora-assembly-piece input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.memora-assembly-piece-select {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  min-width: 0;
  padding: 5px 4px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  touch-action: manipulation;
}

.memora-assembly-piece-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.memora-assembly-piece-copy strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.memora-assembly-piece-copy small {
  color: #68766d;
  font-size: 10px;
  line-height: 1.3;
}

.memora-assembly-tools {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: #536057;
  font-size: 11px;
}

.memora-assembly-tools[hidden] {
  display: none;
}

.memora-assembly-active {
  grid-column: 1 / -1;
  color: #26382f;
  font-size: 12px;
  font-weight: 700;
}

.memora-assembly-tools input[type="range"] {
  width: 100%;
  accent-color: #28644c;
}

.memora-assembly-tools output {
  min-width: 38px;
  color: #26382f;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.memora-assembly-editor-frame {
  width: 100%;
  aspect-ratio: 900 / 560;
  overflow: hidden;
  border: 1px solid #c8d2cb;
  background: #edf1ed;
  touch-action: none;
}

.memora-assembly-open {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #9ebcaf;
  border-radius: 3px;
  color: #285848;
  background: #f2f7f3;
  font-weight: 650;
}

.memora-assembly-open:hover,
.memora-assembly-open:focus-visible {
  border-color: #28644c;
  background: #e8f2eb;
}

.memora-assembly-open[hidden] {
  display: none;
}

#memora-assembly-editor {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.memora-price-summary {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  border-top: 1px solid #e0e5e1;
  color: #344139;
  background: #f4f6f3;
}

.memora-price-summary strong {
  font-size: 14px;
}

.memora-price-summary span {
  color: #69756d;
  font-size: 12px;
  line-height: 1.45;
}

.memora-price-summary.has-estimate {
  border-left: 3px solid #527b67;
}

.memora-price-summary .memora-checkout-total {
  color: #234c3e;
  font-size: 14px;
  font-weight: 700;
}

.memora-instant-contract {
  margin-top: 20px;
  padding: 16px 0;
  border-top: 1px solid #dce2dd;
  border-bottom: 1px solid #dce2dd;
}

.memora-instant-contract h2 {
  margin-bottom: 10px;
  font-size: 16px;
}

.memora-instant-contract dl {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.memora-instant-contract dl div {
  display: grid;
  grid-template-columns: minmax(110px, 150px) minmax(0, 1fr);
  gap: 10px;
}

.memora-instant-contract [hidden] {
  display: none !important;
}

.memora-instant-contract dt,
.memora-instant-contract dd {
  margin: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.memora-instant-contract dt {
  color: #69756d;
}

@media (max-width: 575px) {
  .memora-instant-contract dl div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

.memora-approved-design-video {
  width: 100%;
  max-width: 720px;
  margin: 24px auto;
}

.memora-approved-design-video video {
  display: block;
  width: 100%;
  max-height: 520px;
  background: #202a25;
}

.memora-approved-design-video figcaption {
  margin-top: 6px;
  color: #69756d;
  font-size: 13px;
}

.memora-preview-actions button:first-child {
  border-color: #527b67;
  color: #285848;
}

.memora-preview-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 14px 16px 12px;
  border-top: 1px solid #e0e5e1;
  gap: 12px;
}

.memora-preview-summary dt {
  color: #6a776e;
  font-size: 11px;
}

.memora-preview-summary dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: #26342c;
  font-size: 13px;
  font-weight: 650;
}

.memora-preview-note {
  margin: 0;
  padding: 0 16px 16px;
  color: #69756d;
  font-size: 12px;
  line-height: 1.5;
}

.memora-draft-status {
  min-height: 20px;
  margin: 0;
  padding: 0 16px 10px;
  color: #426b55;
  font-size: 12px;
}

.memora-submit {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 0 20px;
  border: 1px solid #234c3e;
  border-radius: 3px;
  color: #fff;
  background: #234c3e;
  font-size: 15px;
  font-weight: 650;
}

.memora-submit:hover {
  color: #fff;
  background: #19392e;
}

.memora-product-design-options {
  margin-top: 28px;
}

.memora-product-design-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.memora-product-design-heading h2 {
  margin: 0;
  color: #202a25;
  font-size: 20px;
  font-weight: 650;
}

.memora-product-design-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.memora-design-choice {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #d3dbd5;
  border-top: 3px solid #28644c;
  border-radius: 4px;
  background: #fff;
}

.memora-design-choice-custom {
  border-top-color: #a84c43;
}

.memora-design-choice-label {
  margin: 0 0 8px;
  color: #28644c;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.4;
}

.memora-design-choice-custom .memora-design-choice-label {
  color: #98433c;
}

.memora-design-choice h3 {
  margin: 0;
  color: #202a25;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
}

.memora-design-choice > p:not(.memora-design-choice-label) {
  margin: 8px 0 16px;
  color: #59665e;
  font-size: 13px;
  line-height: 1.5;
}

.memora-design-choice .btn {
  width: 100%;
  margin-top: auto;
  white-space: normal;
}

.memora-design-options-note {
  margin: 10px 0 0;
  color: #647168;
  font-size: 12px;
  line-height: 1.5;
}

.memora-listed-product-note {
  margin: 10px 0 0;
  color: #285848;
  font-size: 12px;
  line-height: 1.5;
}

.memora-product-mode-badges,
.memora-home-mode-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.memora-product-mode-badges {
  justify-content: center;
}

.memora-mode-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border: 1px solid #b7cbbd;
  border-radius: 3px;
  color: #285848;
  background: #edf5ef;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.memora-mode-badge-custom {
  border-color: #dbc0bc;
  color: #853d37;
  background: #fbf0ee;
}

.memora-mode-badge-quote {
  border-color: #bccbd0;
  color: #36535d;
  background: #eef4f5;
}

.memora-home-design-routes {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.memora-home-design-route {
  display: grid;
  gap: 2px;
  padding-left: 9px;
  border-left: 2px solid #28644c;
  line-height: 1.35;
}

.memora-home-design-route-custom {
  border-left-color: #a84c43;
}

.memora-home-design-route strong {
  color: #303a33;
  font-size: 12px;
}

.memora-home-design-route span {
  color: #647168;
  font-size: 11px;
}

.memora-route-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
}

[data-design-mode-switch][hidden],
[data-design-mode-link][hidden] {
  display: none !important;
}

.memora-route-choice {
  display: flex;
  min-width: 0;
  min-height: 72px;
  align-items: flex-start;
  gap: 11px;
  padding: 12px;
  border: 1px solid #ccd6cf;
  border-radius: 4px;
  color: #39463e;
  background: #fff;
  text-decoration: none;
}

.memora-route-choice:hover {
  color: #202a25;
  border-color: #789987;
  text-decoration: none;
}

.memora-route-choice > i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #28644c;
  font-size: 18px;
}

.memora-route-choice-custom > i {
  color: #a84c43;
}

.memora-route-choice > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.memora-route-choice strong {
  color: #26342c;
  font-size: 13px;
  line-height: 1.35;
}

.memora-route-choice small {
  color: #647168;
  font-size: 11px;
  line-height: 1.4;
}

.memora-route-choice-diy.active {
  border-color: #28644c;
  background: #edf5ef;
}

.memora-route-choice-custom.active {
  border-color: #a84c43;
  background: #fbf0ee;
}

.memora-custom-page {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: 36px 0 72px;
  color: #202a25;
}

.memora-custom-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.memora-custom-heading h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 650;
  line-height: 1.15;
}

.memora-custom-heading p:last-child {
  max-width: 700px;
  margin: 10px 0 0;
  color: #59665e;
  line-height: 1.55;
}

.memora-custom-form {
  padding: 22px;
  border: 1px solid #d7dfd9;
  border-radius: 4px;
  background: #fff;
}

.memora-custom-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: start;
  gap: 28px;
}

.memora-custom-fields {
  min-width: 0;
}

.memora-custom-section {
  padding: 0 0 22px;
  margin: 0 0 22px;
  border-bottom: 1px solid #d7dfd9;
}

.memora-custom-section h2 {
  margin: 0 0 14px;
  color: #202a25;
  font-size: 17px;
  font-weight: 650;
}

.memora-custom-hints {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.memora-custom-span {
  grid-column: 1 / -1;
}

.memora-custom-product {
  padding: 14px;
  border: 1px solid #d7dfd9;
  border-radius: 4px;
  background: #f8faf8;
}

.memora-custom-product img {
  display: block;
  width: 100%;
  max-height: 220px;
  margin-bottom: 12px;
  object-fit: contain;
}

.memora-product-mode {
  margin: 0 0 6px;
  color: #853d37;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.memora-custom-product h2 {
  margin: 0 0 6px;
  color: #202a25;
  font-size: 16px;
  font-weight: 650;
}

.memora-custom-product p:last-child {
  margin: 0;
  color: #647168;
  font-size: 12px;
  line-height: 1.45;
}

.memora-quote-design-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid #b7cbbd;
  border-radius: 3px;
  color: #285848;
  background: #edf5ef;
  font-size: 12px;
  font-weight: 700;
}

.memora-quote-design-type-custom {
  border-color: #dbc0bc;
  color: #853d37;
  background: #fbf0ee;
}

.memora-quote-design-summary {
  padding: 14px 16px;
  border-left: 3px solid #28644c;
  background: #fff;
}

.memora-quote-design-summary-custom {
  border-left-color: #a84c43;
}

.memora-quote-design-summary h2 {
  margin: 0 0 8px;
  color: #26342c;
  font-size: 16px;
  font-weight: 650;
}

.memora-quote-design-summary p:last-child {
  margin-bottom: 0;
}

.page-product .product-info:has(.memora-product-design-options.memora-price-by-quote) > .product-price,
.page-product .product-info:has(.memora-product-design-options.memora-price-by-quote) .product-info-bottom {
  display: none !important;
}

.product-grid-item:has(.memora-product-mode-badges.memora-price-by-quote) .product-bottom {
  display: none !important;
}

@media (max-width: 900px) {
  .memora-diy-asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .memora-designer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .memora-designer-preview {
    position: static;
    grid-row: 1;
  }

  .memora-designer-controls {
    order: 2;
  }

  .memora-designer-preview {
    order: 1;
  }

  .memora-canvas-wrap {
    height: 440px;
    min-height: 360px;
  }

  .memora-product-reference {
    width: min(170px, 38%);
  }

  .memora-preview-controls {
    align-items: flex-start;
  }

  .memora-preview-view-tools,
  .memora-preview-explode-control {
    flex: 1 1 auto;
  }

  .memora-preview-explode-control input[type="range"] {
    flex: 1 1 90px;
    width: auto;
  }

  .memora-assembly-panel {
    width: min(100% - 20px, 760px);
    max-height: calc(100vh - 24px);
    padding: 14px;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .memora-assembly-panel::-webkit-scrollbar {
    display: none;
  }

  .memora-assembly-dialog-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .memora-assembly-editor-frame {
    order: -1;
  }

  .memora-custom-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .memora-custom-product {
    grid-row: 1;
  }
}

@media (max-width: 520px) {
  .memora-preview-controls > span:first-child {
    flex: 1 0 100%;
  }

  .memora-preview-view-tools,
  .memora-preview-explode-control {
    flex-basis: 100%;
  }

  .memora-preview-actions {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .memora-designer-page {
    width: min(100% - 28px, 1320px);
    padding-top: 24px;
  }

  .memora-designer-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .memora-designer-heading h1 {
    font-size: 28px;
  }

  .memora-designer-grid {
    gap: 12px;
  }

  .memora-designer-preview {
    margin: 0 -2px;
  }

  .memora-shape-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .memora-material-swatches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .memora-canvas-wrap {
    height: 360px;
    min-height: 320px;
  }

  .memora-product-reference {
    top: 8px;
    right: 8px;
    width: 76px;
    padding: 4px;
    gap: 0;
  }

  .memora-product-reference-heading {
    display: none;
  }

  .memora-product-reference img {
    height: 64px;
  }

  .memora-preview-controls {
    padding: 0 10px;
    font-size: 11px;
  }

  .memora-preview-actions {
    justify-content: flex-end;
  }

  .memora-assembly-panel {
    width: min(100% - 12px, 560px);
    padding-right: 10px;
    padding-left: 10px;
  }

  .memora-assembly-pieces {
    grid-template-columns: minmax(0, 1fr);
  }

  .memora-preview-summary {
    padding: 12px 10px;
    gap: 8px;
  }

  .memora-preview-note {
    padding: 0 10px 12px;
  }

  .memora-material-swatches {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .memora-shape-picker {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .memora-preview-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .memora-accessory-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .memora-diy-catalog-filters,
  .memora-option-catalog-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .memora-diy-catalog-filters label:last-child {
    grid-column: 1 / -1;
  }

  .memora-diy-selected-toggle {
    margin-left: 0;
  }

  .memora-product-design-grid,
  .memora-route-switch,
  .memora-custom-hints {
    grid-template-columns: minmax(0, 1fr);
  }

  .memora-custom-page {
    width: min(100% - 28px, 1120px);
    padding-top: 24px;
  }

  .memora-custom-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .memora-custom-heading h1 {
    font-size: 28px;
  }

  .memora-custom-form {
    padding: 16px 12px;
  }

  .memora-custom-span {
    grid-column: auto;
  }
}
