.mdj-ready { padding-bottom: var(--mdj-footer-space, 110px); }
.mdj-ready [data-diy-hidden], .mdj-ready button.memora-submit[type=submit] { display: none !important; }
.mdj-nav[hidden], .mdj-heading[hidden], .mdj-footer[hidden], .mdj-review[hidden], .memora-material-browser[hidden] { display: none; }
.mdj-ready .memora-section-heading > span { display: none; }
.mdj-methods { margin-bottom: 16px; padding: 0 0 10px; background: none; }
.mdj-methods button { min-height: 44px; }
.mdj-methods button:focus-visible { outline: 2px solid #267da7; outline-offset: -2px; }
.mdj-nav ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; border-bottom: 1px solid #d1dbd5; }
.mdj-nav li { min-width: 0; }
.mdj-nav button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; padding: 10px; border: 0; border-bottom: 3px solid transparent; background: none; color: #58685e; text-align: left; font-size: 14px; line-height: 1.5; }
.mdj-nav button > span:last-child { overflow-wrap: anywhere; }
.mdj-nav button[aria-current] { border-bottom-color: #225b48; color: #225b48; background: #edf4ef; font-weight: 650; }
.mdj-number { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border: 1px solid #becdc4; border-radius: 50%; font-size: 12px; }
.mdj-nav button[aria-current] .mdj-number { background: #225b48; border-color: #225b48; color: #fff; }
.mdj-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 20px 0; scroll-margin-top: 90px; outline: none; }
.mdj-heading h2 { margin: 0; font-size: 20px; font-weight: 650; }
.mdj-heading > span { color: #5b6b61; font-size: 12px; }
.mdj-footer { position: fixed; z-index: 100; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: min(calc(100% - 40px), 1280px); padding: 12px 18px max(12px, env(safe-area-inset-bottom)); border: 1px solid #cbd7d0; border-bottom: 0; background: #fff; box-shadow: 0 -3px 12px #182d2110; }
.mdj-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #cbd7d0; border-radius: 4px; color: #225b48; background: #fff; }
.mdj-footer-counter { flex: 1; color: #5b6b61; font-size: 12px; }
.mdj-preview-button { display: none; }
.mdj-next { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; max-width: 100%; padding: 10px 18px; border: 1px solid #225b48; border-radius: 4px; color: #fff; background: #225b48; font-size: 14px; line-height: 1.5; }
.mdj-next span { overflow-wrap: anywhere; }
.mdj-next i { flex: 0 0 auto; }
.mdj-footer button:disabled, .mdj-nav button:disabled { opacity: .5; cursor: default; }
.mdj-validation { flex: 1 0 100%; color: #98392d; font-size: 13px; line-height: 1.5; margin: 0; }
.mdj-footer:has(.mdj-validation:not([hidden])) { flex-wrap: wrap; }
.mdj-nav button:focus-visible, .mdj-footer button:focus-visible, .mdj-review button:focus-visible { outline: 2px solid #267da7; outline-offset: -2px; }
.mdj-review h2 { margin: 0 0 14px; font-size: 18px; }
.mdj-review dl { margin: 0; }
.mdj-review dl > div { display: grid; grid-template-columns: 115px minmax(0, 1fr) 44px; align-items: center; gap: 10px; border-bottom: 1px solid #d7dfd9; }
.mdj-review dt, .mdj-review dd { margin: 0; padding: 10px 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.mdj-review dt { font-weight: 500; color: #5b6b61; }
.mdj-review dd { white-space: pre-line; }
.mdj-review button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 4px; color: #225b48; background: transparent; }
.mdj-review button:hover, .mdj-nav button:hover { background: #e8f1ec; }
.mdj-review-price { padding: 16px 0; font-size: 13px; line-height: 1.7; white-space: pre-line; }
.memora-material-browser { margin: 8px 0; }
.memora-material-browser-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: #5b6b61; }
.memora-material-browser-meta button { min-height: 44px; }
.memora-material-swatch[hidden] { display: none; }
.memora-material-swatch span { white-space: normal; overflow: visible; overflow-wrap: anywhere; line-height: 1.4; }
.memora-material-swatch small { display: block; color: #617067; font-size: 9px; overflow-wrap: anywhere; }
.memora-material-swatch:focus-visible { outline: 2px solid #267da7; outline-offset: 2px; }
@media (max-width: 900px) {
  .mdj-ready:not(.mdj-viewing-preview) .memora-designer-preview { display: none; }
  .mdj-ready.mdj-viewing-preview .memora-designer-controls { display: none; }
  .mdj-preview-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 10px; border: 1px solid #cbd7d0; border-radius: 4px; background: #fff; color: #225b48; font-size: 13px; line-height: 1.5; }
  .mdj-preview-button span { overflow-wrap: anywhere; }
  .mdj-ready .memora-designer-preview { grid-row: auto; scroll-margin-top: 80px; }
  .mdj-ready .memora-designer-grid { gap: 0; }
}
@media (max-width: 575px) {
  .mdj-nav button { flex-direction: column; justify-content: flex-start; gap: 6px; min-height: 94px; padding: 8px 3px; text-align: center; font-size: 11px; }
  .mdj-heading h2 { font-size: 18px; }
  .mdj-heading { padding: 16px 0; scroll-margin-top: 70px; }
  .mdj-heading > span { font-size: 11px; }
  .mdj-footer { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.7fr); width: 100%; gap: 8px; padding: 10px 10px max(10px, env(safe-area-inset-bottom)); }
  .mdj-footer-counter { display: none; }
  .mdj-validation { grid-column: 1 / -1; font-size: 12px; }
  .mdj-preview-button { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px; }
  .mdj-next { min-height: 52px; padding: 8px; font-size: 12px; gap: 6px; }
  .mdj-review dl > div { grid-template-columns: 85px minmax(0, 1fr) 44px; gap: 6px; }
  .mdj-ready .memora-material-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (any-pointer: coarse) {
  .mdj-ready .memora-material-swatch, .mdj-ready .memora-option-pagination button { min-height: 44px; }
  .mdj-ready .memora-photo-toolbar button { width: 44px; height: 44px; flex-basis: 44px; }
  .mdj-ready :is(input[type=text], input[type=email], input[type=number], input[type=search], textarea, select) { font-size: 16px; }
}
