/* Customer design review page. Colours, font and corner radius are taken from the makeaball.com theme
   (navy #000b39, button red #c21f3d, text #1b1b1b, Nunito, 5px corners). Every rule is under .mabr so the
   page can be placed inside a store page later without touching the store's own styles. */
body.mabr-page { margin: 0; background: #f4f6f8; }
body.mabr-page .mabr { min-height: 100vh; }
.mabr { --navy: #000b39; --red: #c21f3d; --red-dark: #a01832; --text: #1b1b1b; --muted: #5d6470; --line: #dfe3e8; --soft: #f4f6f8;
  --good: #0f7a06; --good-bg: #e9f6e7; --warn: #8a5300; --warn-bg: #fdf1dc; --info-bg: #e8eefb; --bad: #b3261e;
  color: var(--text); font: 17px/1.5 Nunito, "Segoe UI", system-ui, sans-serif; padding-bottom: 96px; text-align: left; }
.mabr *, .mabr *::before, .mabr *::after { box-sizing: border-box; }
.mabr [hidden] { display: none !important; }
.mabr-top { background: #fff; border-top: 6px solid var(--navy); border-bottom: 1px solid var(--line); padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mabr-top img { display: block; height: 48px; width: auto; }
.mabr-top span { font-weight: 800; color: var(--navy); letter-spacing: .02em; }
.mabr main { max-width: 900px; margin: 0 auto; padding: 22px 16px 24px; }
.mabr h1 { font-size: 28px; line-height: 1.2; font-weight: 800; margin: 0 0 8px; color: var(--navy); }
.mabr h2 { font-size: 20px; line-height: 1.25; font-weight: 800; margin: 0; }
.mabr h3 { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 28px 0 10px; }
.mabr p { margin: 0 0 12px; }
.mabr .muted { color: var(--muted); font-size: 15px; }
.mabr .card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; margin-bottom: 18px; }
.mabr label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.mabr input[type=text], .mabr textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; color: var(--text); border: 1px solid #b9c0c9; border-radius: 5px; padding: 12px; background: #fff; }
.mabr input[type=text]:focus, .mabr textarea:focus { outline: 3px solid #b9c8f5; border-color: var(--navy); }
.mabr textarea { min-height: 96px; resize: vertical; }
.mabr button { font: inherit; font-weight: 700; border: 1px solid #b9c0c9; background: #fff; color: var(--text); border-radius: 5px; padding: 12px 20px; min-height: 48px; cursor: pointer; }
.mabr button:hover { background: var(--soft); }
.mabr button:focus-visible, .mabr .pick:focus-within { outline: 3px solid #b9c8f5; outline-offset: 2px; }
.mabr button.primary { background: var(--red); border-color: var(--red); color: #fff; }
.mabr button.primary:hover { background: var(--red-dark); }
.mabr button.primary:disabled { opacity: .6; cursor: default; }
.mabr .err { color: var(--bad); font-size: 15px; font-weight: 700; }
.mabr #findErr { margin: 0 0 10px; min-height: 1px; }

/* greeting */
.mabr .hello { border-top: 4px solid var(--red); }
.mabr .hello .order { font-weight: 700; color: var(--muted); font-size: 15px; margin-bottom: 4px; }
.mabr .steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; counter-reset: s; }
.mabr .steps li { counter-increment: s; background: var(--soft); border-radius: 6px; padding: 12px 12px 12px 46px; position: relative; font-size: 15px; line-height: 1.35; }
.mabr .steps li::before { content: counter(s); position: absolute; left: 12px; top: 11px; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.mabr .allbar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.mabr .allbox { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.mabr .check { background: var(--warn-bg); color: #4d3000; border-radius: 6px; padding: 12px 14px; font-size: 15px; margin: 16px 0 0; }

/* one design */
.mabr .design { padding: 0; overflow: hidden; }
.mabr .design.answered-yes { border-color: var(--good); box-shadow: 0 0 0 1px var(--good); }
.mabr .design.answered-no { border-color: #d9a441; box-shadow: 0 0 0 1px #d9a441; }
.mabr .d-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding: 18px 22px 14px; }
.mabr .d-num { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mabr .qty { color: var(--muted); font-weight: 700; font-size: 16px; white-space: nowrap; }
.mabr .pill { font-size: 14px; font-weight: 800; padding: 4px 12px; border-radius: 14px; white-space: nowrap; }
.mabr .pill.good { background: var(--good-bg); color: var(--good); }
.mabr .pill.warn { background: var(--warn-bg); color: var(--warn); }
.mabr .pill.wait { background: var(--info-bg); color: var(--navy); }
.mabr .panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 22px; }
.mabr .panel { margin: 0; }
.mabr .panel button { all: unset; display: block; width: 100%; cursor: zoom-in; position: relative; border-radius: 6px; }
.mabr .panel img { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.mabr .panel .zoom { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 11, 57, .82); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 12px; }
.mabr .panel figcaption { font-size: 14px; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.mabr .d-body { padding: 16px 22px 20px; }
.mabr .choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mabr .pick { margin: 0; border: 2px solid #b9c0c9; border-radius: 6px; padding: 14px; cursor: pointer; font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; min-height: 56px; background: #fff; }
.mabr .pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mabr .pick .mark { width: 24px; height: 24px; border-radius: 50%; border: 2px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.mabr .pick.yes { color: var(--good); }
.mabr .pick.no { color: var(--warn); }
.mabr .pick:hover { background: var(--soft); }
.mabr .pick.on.yes { background: var(--good); border-color: var(--good); color: #fff; }
.mabr .pick.on.no { background: var(--warn-bg); border-color: #d9a441; }
.mabr .changes { margin-top: 16px; }
.mabr .said { background: var(--soft); border-left: 4px solid #d9a441; border-radius: 0 6px 6px 0; padding: 10px 14px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mabr .said b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.mabr .small .panels img { max-height: 200px; }

/* send bar, always in view */
.mabr .bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 11, 57, .1); z-index: 5; }
.mabr .bar-in { max-width: 900px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.mabr .bar-text { display: flex; flex-direction: column; min-width: 0; }
.mabr .bar button { flex: none; }

/* thank you */
.mabr .done { text-align: center; padding: 44px 22px; border-top: 4px solid var(--good); }
.mabr .done .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--good); color: #fff; font-size: 36px; line-height: 64px; margin: 0 auto 16px; }

/* larger view. The buttons are set out in full (with !important) because the store theme styles every button. */
.mabr .lightbox { position: fixed; inset: 0; background: rgba(18, 18, 20, .9); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 16px; }
.mabr .lightbox figure { margin: 0; text-align: center; }
.mabr .lightbox img { max-width: min(92vw, 1400px); max-height: 82vh; background: #fff; border-radius: 8px; display: block; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.mabr .lightbox figcaption { color: #fff; font-weight: 700; margin-top: 12px; font-size: 15px; }
.mabr .lightbox button.lb-btn { all: unset; box-sizing: border-box; position: fixed; z-index: 10000; width: 46px !important; height: 46px !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important;
  border: 0 !important; border-radius: 50% !important; background: #fff !important; color: #1b1b1b !important; box-shadow: 0 2px 10px rgba(0, 0, 0, .35) !important; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .12s ease; }
.mabr .lightbox button.lb-btn[hidden] { display: none !important; }
.mabr .lightbox button.lb-btn:hover { transform: scale(1.08); }
.mabr .lightbox button.lb-btn:focus-visible { outline: 3px solid #b9c8f5; outline-offset: 2px; }
.mabr .lightbox button.lb-close { top: 16px; right: 16px; }
.mabr .lightbox button.lb-prev { left: 16px; top: calc(50% - 23px); }
.mabr .lightbox button.lb-next { right: 16px; top: calc(50% - 23px); }
.mabr .lb-btn svg { display: block; pointer-events: none; }

/* adding photos to a change request */
.mabr .up-label { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.mabr .up-label span { font-weight: 400; color: var(--muted); }
.mabr .drop { display: flex; align-items: center; gap: 14px; margin: 0; padding: 16px; border: 2px dashed #b9c0c9; border-radius: 8px; background: var(--soft); cursor: pointer; font-weight: 400; transition: border-color .12s, background .12s; }
.mabr .drop:hover, .mabr .drop.over, .mabr .drop:focus-within { border-color: var(--navy); background: var(--info-bg); }
.mabr .drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mabr .drop-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 28px; line-height: 42px; text-align: center; font-weight: 400; }
.mabr .drop-text { display: flex; flex-direction: column; min-width: 0; }
.mabr .drop-text b { font-size: 16px; }
.mabr .drop-text small { font-size: 14px; color: var(--muted); }
.mabr .thumbs, .mabr .up-errs { list-style: none; margin: 0; padding: 0; }
.mabr .thumbs li { display: grid; grid-template-columns: 56px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; margin-top: 10px; padding: 8px 10px; border: 1px solid var(--line); border-left: 4px solid var(--good); border-radius: 6px; background: #fff; }
.mabr .thumbs img { grid-row: 1 / 3; width: 56px; height: 56px; object-fit: cover; border-radius: 4px; background: var(--soft); }
.mabr .t-name { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mabr .t-ok { grid-column: 2; font-size: 14px; font-weight: 700; color: var(--good); display: flex; align-items: center; gap: 6px; }
.mabr .t-ok i, .mabr .up-errs i { flex: none; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-style: normal; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.mabr .t-ok i { background: var(--good); }
.mabr .thumbs button.t-x { grid-column: 3; grid-row: 1 / 3; border: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: underline; text-transform: none; letter-spacing: 0; padding: 8px; min-height: 0; }
.mabr .thumbs button.t-x:hover { color: var(--bad); background: none; }
.mabr .up-errs li { margin-top: 10px; padding: 10px 12px; border: 1px solid #e7b4b0; border-left: 4px solid var(--bad); border-radius: 6px; background: #fdecea; color: #7a1712; font-size: 14px; font-weight: 700; display: flex; gap: 8px; align-items: flex-start; overflow-wrap: anywhere; }
.mabr .up-errs i { background: var(--bad); margin-top: 1px; }

@media (max-width: 640px) {
  .mabr { font-size: 16px; }
  .mabr h1 { font-size: 24px; }
  .mabr .card { padding: 18px 16px; }
  .mabr .design { padding: 0; }
  .mabr .d-head, .mabr .d-body { padding-left: 16px; padding-right: 16px; }
  .mabr .panels { padding: 12px 16px; grid-template-columns: 1fr; }
  .mabr .steps { grid-template-columns: 1fr; }
  .mabr .choice { grid-template-columns: 1fr; }
  .mabr .allbar button { flex: 1 1 100%; }
  .mabr .bar-in { flex-direction: column; align-items: stretch; gap: 8px; }
  .mabr .bar-text { text-align: center; }
  .mabr { padding-bottom: 130px; }
}
