/* Your room: the chip in the header, the phone bar, the room sheet, and the cards and lines the
   store shows once it is shaped to a room. Calm: cream, dark green, cobalt, one yellow note. */
:root { --rm-green: #134e3a; --rm-cobalt: #1e3fa6; --rm-yellow: #f2c230; --rm-cream: #faf4e4; --rm-ink: #111; }

/* ---------------- the chip ---------------- */
.rm-chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 500 12.5px/1 Inter, system-ui, sans-serif; letter-spacing: .01em; text-transform: none; color: var(--rm-ink);
  background: var(--rm-cream); border: 1px solid rgba(19, 78, 58, .45); border-radius: 999px;
  padding: 7px 12px 7px 9px; white-space: nowrap; max-width: 260px;
}
.rm-chip:hover { border-color: var(--rm-green); background: #fff; }
.rm-chip:focus-visible { outline: 2px solid var(--rm-cobalt); outline-offset: 2px; }
.rm-chip-t { overflow: hidden; text-overflow: ellipsis; }
.rm-dots { display: inline-flex; }
.rm-dots i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); margin-left: -4px; }
.rm-dots i:first-child { margin-left: 0; }
.rm-dots-empty i { background: transparent; border: 1.5px dashed var(--rm-green); }
.rm-chip.rm-set { border-color: var(--rm-green); }
.site-header .header-icons .rm-chip { margin-right: 4px; }

/* the slim bar under the header, phones only */
.site-header .rm-bar { display: none; }
@media (max-width: 760px) {
  .site-header .header-icons .rm-chip-hdr { display: none !important; }
  .site-header .rm-bar {
    display: flex; justify-content: center; padding: 6px var(--pad-x, 16px) 8px;
    background: var(--rm-cream); border-top: 1px solid rgba(0, 0, 0, .08);
  }
  .site-header .rm-bar .rm-chip { max-width: 100%; background: #fff; padding: 6px 12px 6px 9px; }
  html.hdr-tuck .site-header .rm-bar { display: none; }
}
/* in the menu */
.mobile-nav > .m-room { grid-column: 1 / -1; order: 97; margin-top: 22px; }
.mobile-nav .m-room .rm-chip { font-size: 15px; padding: 10px 16px 10px 12px; max-width: 100%; }

/* ---------------- the sheet ---------------- */
html.rm-lock { overflow: hidden; }
.rm-dlg {
  border: 0; padding: 0; margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(520px, 100%); max-width: 100%;
  background: var(--rm-cream); color: var(--rm-ink); box-shadow: -18px 0 40px rgba(0, 0, 0, .14);
}
.rm-dlg[open] { animation: rm-in .28s cubic-bezier(.25, .8, .25, 1); }
.rm-dlg::backdrop { background: rgba(10, 20, 16, .38); }
@keyframes rm-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rm-dlg[open] { animation: none; } }
.rm-sheet { display: flex; flex-direction: column; height: 100%; }
.rm-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px 0; }
.rm-x { background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--rm-ink); padding: 4px 8px; }
.rm-x:focus-visible { outline: 2px solid var(--rm-cobalt); }
.rm-body { overflow-y: auto; padding: 8px 24px 32px; flex: 1; }
.rm-k { font: 600 11px/1.2 Inter, system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--rm-green); margin: 0; }
.rm-h { font-size: clamp(24px, 3vw, 30px); line-height: 1.12; margin: 6px 0 10px; text-transform: none; letter-spacing: -.01em; }
.rm-lede { font-size: 15px; line-height: 1.55; color: #2a2a2a; margin: 0 0 20px; }
.rm-muted { font-size: 13px; line-height: 1.5; color: #4a4a4a; margin: 8px 0 0; }
.rm-msg { font-size: 14px; line-height: 1.5; background: #fff; border-left: 3px solid var(--rm-yellow); padding: 10px 12px; margin: 0 0 16px; }
.rm-err { color: var(--rm-cobalt); font-size: 14px; font-weight: 500; min-height: 1px; margin: 6px 0; }

.rm-form fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.rm-form legend, .rm-field, .rm-field-l { font: 600 12px/1.2 Inter, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--rm-ink); margin: 0 0 8px; padding: 0; }
.rm-field em, .rm-field-l em { font-style: normal; font-weight: 400; letter-spacing: .04em; text-transform: none; color: #555; margin-left: 4px; }
.rm-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-kinds legend { width: 100%; }
.rm-kinds label, .rm-lights label { position: relative; cursor: pointer; }
.rm-kinds input, .rm-lights input, .rm-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rm-kinds span, .rm-lights span {
  display: inline-block; font: 500 14px/1 Inter, system-ui, sans-serif; padding: 10px 14px; background: #fff;
  border: 1px solid rgba(0, 0, 0, .22); border-radius: 999px;
}
.rm-kinds input:checked + span, .rm-lights input:checked + span { background: var(--rm-green); color: #fff; border-color: var(--rm-green); }
.rm-kinds input:focus-visible + span, .rm-lights input:focus-visible + span, .rm-chips input:focus-visible + span { outline: 2px solid var(--rm-cobalt); outline-offset: 2px; }

.rm-dims { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; align-items: start; }
.rm-field { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.rm-field small { font: 400 12.5px/1.4 Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: #555; }
.rm-len { gap: 6px; }
.rm-len > label { font: inherit; letter-spacing: inherit; text-transform: inherit; }
/* one clean field: the box is the input itself, the unit a quiet suffix inside it, one cobalt ring */
.rm-dlg .rm-in { position: relative; display: block; background: none; border: 0; outline: 0; box-shadow: none; }
.rm-dlg .rm-in input {
  display: block; width: 100%; box-sizing: border-box; margin: 0;
  font: 400 18px/1.3 Inter, system-ui, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--rm-ink);
  background: #fff !important; border: 1px solid rgba(0, 0, 0, .28) !important; border-radius: 0 !important;
  padding: 12px 14px !important; box-shadow: none !important; outline: 0 !important; -webkit-appearance: none; appearance: none;
}
.rm-dlg .rm-in input.rm-has-unit { padding-right: 44px !important; }
.rm-dlg .rm-in input::placeholder { color: #8a8a8a; opacity: 1; }
.rm-dlg .rm-in input:focus, .rm-dlg .rm-in input:focus-visible, .rm-dlg .rm-in input:hover:focus {
  outline: 2px solid #1e3fa6 !important; outline-offset: 0 !important; border-color: #1e3fa6 !important; box-shadow: none !important; border-radius: 0 !important;
}
.rm-dlg .rm-unit {
  position: absolute; right: 14px; top: 0; bottom: 0; display: flex; align-items: center; pointer-events: none;
  font: 400 15px/1.3 Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: #777;
}
.rm-dlg .rm-unit[hidden] { display: none; }
.rm-read { margin: 0; min-height: 0; font: 400 13.5px/1.45 Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: var(--rm-green); }
.rm-read:empty { display: none; }
.rm-read.rm-warn { color: #1f1f1f; background: #fff; border-left: 3px solid var(--rm-yellow); padding: 8px 10px; }
.rm-read.rm-bad { color: var(--rm-cobalt); font-weight: 500; }
.rm-fix {
  display: inline-block; margin: 6px 0 0; padding: 7px 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--rm-green); color: #fff; font: 600 13px/1 Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none;
}
.rm-hint { margin: 0; font: 400 12.5px/1.5 Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: #555; }
.rm-fill {
  display: inline-block; margin: 2px 0 0; padding: 4px 10px; border: 1px dashed var(--rm-green); border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--rm-green); font: 500 12.5px/1.3 Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none;
}
.rm-fill[hidden] { display: none; }
.rm-fitn { margin: 0; font: 600 13.5px/1.4 Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: var(--rm-cobalt); }
.rm-fitn:empty { display: none; }
.rm-dlg :is(.rm-fix, .rm-fill):focus-visible { outline: 2px solid #1e3fa6 !important; outline-offset: 2px !important; box-shadow: none !important; }

.rm-photo { margin-bottom: 18px; }
.rm-drop { position: relative; display: block; border: 1.5px dashed rgba(0, 0, 0, .35); background: #fff; padding: 16px; text-align: center; cursor: pointer; font-size: 14px; color: var(--rm-green); font-weight: 500; }
.rm-drop:hover, .rm-drop:focus-within { border-color: var(--rm-cobalt); }
.rm-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.rm-thumb { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; }
.rm-thumb img { width: 96px; height: 72px; object-fit: cover; display: block; }
.rm-thumb button { background: none; border: 0; padding: 0; font-size: 13px; text-decoration: underline; cursor: pointer; color: var(--rm-ink); }

.rm-cols[hidden] { display: none; }
.rm-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 8px; margin-bottom: 12px; }
.rm-chips label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; }
.rm-chips span { width: 36px; height: 36px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0, 0, 0, .2); box-shadow: 0 0 0 3px transparent; }
.rm-chips input:checked + span { box-shadow: 0 0 0 2px var(--rm-cream), 0 0 0 4px var(--rm-green); }
.rm-chips b { font: 400 11.5px/1.2 Inter, system-ui, sans-serif; color: #333; text-align: center; }
.rm-lights { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-lights span { font-size: 13px; padding: 8px 12px; }

.rm-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 18px 0 0; }
.rm-act .pill { margin: 0 !important; }
.rm-link { background: none; border: 0; padding: 4px 0; font: 500 14px/1.2 Inter, system-ui, sans-serif; color: var(--rm-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rm-link:hover { color: var(--rm-green); }
.rm-link:focus-visible { outline: 2px solid var(--rm-cobalt); outline-offset: 2px; }
.rm-busy { opacity: .75; }
.rm-busy #rmGo { cursor: progress; }

.rm-got { background: #fff; padding: 18px; border-top: 3px solid var(--rm-green); }
.rm-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 14px; }
.rm-facts div { margin: 0; }
.rm-facts dt { font: 600 11px/1.2 Inter, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #555; }
.rm-facts dd { margin: 4px 0 0; font-size: 17px; }
.rm-pal { display: flex; gap: 0; margin: 0 0 12px; height: 34px; }
.rm-pal span { flex: 1; }
.rm-bits { font-size: 14px; margin: 0 0 6px; }
.rm-note { font-size: 15px; line-height: 1.5; margin: 0 0 6px; color: #222; }

@media (max-width: 760px) {
  .rm-dlg { margin: auto 0 0; width: 100%; height: auto; max-height: 92vh; box-shadow: 0 -12px 40px rgba(0, 0, 0, .16); }
  @keyframes rm-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
  .rm-sheet { max-height: 92vh; }
  .rm-top { padding: 14px 16px 0; }
  .rm-body { padding: 6px 16px 28px; }
  .rm-dims { grid-template-columns: 1fr; }
}
@media (max-width: 400px) { .rm-chips { grid-template-columns: repeat(4, 1fr); } }

/* ---------------- the store, shaped ---------------- */
.rm-line {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 0 0 18px;
  font: 500 14px/1.4 Inter, system-ui, sans-serif; color: var(--rm-ink);
  padding: 10px 14px; background: var(--rm-cream); border-left: 3px solid var(--rm-green);
}
.rm-line[hidden] { display: none; }
.rm-line-t { color: var(--rm-green); font-weight: 600; }
.rm-line .rm-link { font-size: 13.5px; }
.rm-line-home { margin: -6px 0 20px; }

.p-card .rm-made { font: 600 13.5px/1.35 Inter, system-ui, sans-serif; color: var(--rm-green); margin: 4px 0 2px; }
.p-card .rm-made.rm-too { color: #3b3b3b; font-weight: 500; }
.p-card .rm-cov { display: flex; align-items: center; gap: 7px; font: 400 13px/1.35 Inter, system-ui, sans-serif; color: #333; margin: 2px 0 4px; }
.p-card .rm-cov i { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); }
.p-card .rm-price { font-size: 13px; }
.p-card .art .rm-tint {
  position: absolute; z-index: 3; left: 12px; bottom: 12px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--rm-tint); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); pointer-events: none;
}
.p-card.rm-nofit .art { opacity: .55; }
.p-card.rm-nofit .art .rm-tint { display: none; }

/* search: the size made for the room under the piece's kind */
.search-hit .rm-hit-size { color: var(--rm-green); font-weight: 600; margin-top: 2px; }
.search-hit.rm-nofit .rm-hit-size { color: #555; font-weight: 500; }

/* home: the room is the first door, the answer box the second */
.rm-start { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 26px 0 6px; max-width: 760px; }
.rm-start .rm-start-b { margin: 0 !important; background: var(--rm-green) !important; border-color: var(--rm-green) !important; color: #fff !important; }
.rm-start .rm-start-b:hover { background: #0e3b2c !important; }
.rm-start-t { flex: 1 1 280px; margin: 0; font-size: 15px; line-height: 1.5; color: #222; }
.ld-ask.rm-ask-2 { margin-top: 18px; }
@media (max-width: 600px) { .rm-start .rm-start-b { width: 100%; } }

/* one focus style inside the sheet: cobalt, never the inherited yellow ring or its black halo */
.rm-dlg :is(a, button, input, select, label):focus-visible { outline: 2px solid #1e3fa6 !important; outline-offset: 2px !important; box-shadow: none !important; }
.rm-dlg .rm-kinds input:focus-visible, .rm-dlg .rm-lights input:focus-visible, .rm-dlg .rm-chips input:focus-visible, .rm-dlg .rm-drop input:focus-visible { outline: 0 !important; }
.rm-dlg .rm-drop:focus-within { outline: 2px solid #1e3fa6; outline-offset: 2px; }
