/* Owner shop dashboard ("As minhas lojas"). Width follows .discovery-shell. */
.my-shops-main { --ms-line: #e5e7e3; --ms-muted: #64706c; --ms-soft: #9aa39f; --ms-dark: #153e35;
  --ms-ok-bg: #e9f3e8; --ms-ok: #145331; --ms-warn-bg: #fff1d5; --ms-warn: #91641d; --ms-warn-line: #e39b12;
  --ms-err-bg: #fdecea; --ms-err: #b3261e; --ms-err-line: #c62828; --ms-info-bg: #e8effa; --ms-info: #1e4c9a;
  --ms-gray-bg: #eef0ee; --ms-gray: #55605c; padding: 36px 0 72px; }
.my-shops { color: var(--mk-ink, #103e36); font-size: 14px; }
.my-shops .eyebrow { margin-bottom: 8px; }
.ms-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.ms-head h1 { font-size: 34px; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
.ms-sub { color: var(--ms-muted); margin: 6px 0 0; }
.ms-muted { color: var(--ms-muted); }

.ms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; padding: 9px 14px;
  font: inherit; font-weight: 600; font-size: 13.5px; line-height: 1.2; border: 1px solid #d6dcd8; background: #fff; color: var(--mk-ink, #103e36);
  white-space: nowrap; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.ms-btn:hover { background: #f3f6f4; text-decoration: none; color: var(--mk-ink, #103e36); }
.ms-btn-pri { background: var(--ms-dark); border-color: var(--ms-dark); color: #fff; }
.ms-btn-pri:hover { background: #0f3029; color: #fff; }
.ms-btn[disabled] { background: #eceeec; color: #a3aaa6; border-color: #e3e6e3; cursor: not-allowed; }
.ms-btn-lg { padding: 12px 18px; font-size: 14.5px; }
.ms-btn-icon { padding: 9px 13px; font-weight: 800; letter-spacing: 1px; }
.my-shops form { margin: 0; display: inline-flex; }
.my-shops form.ms-tools { display: flex; }

.ms-empty { background: #fff; border: 1px solid var(--ms-line); border-radius: 18px; padding: 48px 20px; text-align: center; }
.ms-empty p { color: var(--ms-muted); font-size: 16px; margin: 0 0 18px; }


.ms-tools { display: flex; gap: 10px; margin-bottom: 6px; }
.ms-search { flex: 1; display: flex; align-items: center; gap: 8px; border: 1px solid #d6dcd8; background: #fff; border-radius: 10px; padding: 0 12px; }
.ms-search input { flex: 1; border: 0; outline: 0; background: transparent; padding: 10px 0; font: inherit; min-width: 0; }
.ms-select { border: 1px solid #d6dcd8; background: #fff; border-radius: 10px; padding: 9px 12px; font: inherit; color: inherit; }

.ms-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ms-line); margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
.ms-tab { padding: 13px 14px; font-weight: 600; color: var(--ms-muted); border-bottom: 2.5px solid transparent; white-space: nowrap; display: flex; gap: 8px; align-items: center; text-decoration: none; }
.ms-tab:hover { color: var(--mk-green, #075b48); text-decoration: none; }
.ms-tab em { font-style: normal; font-size: 12px; background: var(--ms-gray-bg); border-radius: 20px; padding: 1px 8px; color: var(--ms-gray); }
.ms-tab.is-active { color: var(--mk-green, #075b48); border-color: var(--mk-green, #075b48); }
.ms-tab.is-active em { background: var(--mk-green, #075b48); color: #fff; }

.ms-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.ms-card { background: #fff; border: 1px solid var(--ms-line); border-radius: 18px; position: relative; padding: 18px 20px 16px 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ms-card::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 7px; border-radius: 18px 0 0 18px; }
.ms-card.is-red { border-color: #f1c5c1; }
.ms-card.is-red::before { background: var(--ms-err-line); }
.ms-card.is-amber { border-color: #f0dcae; }
.ms-card.is-amber::before { background: repeating-linear-gradient(180deg, var(--ms-warn-line) 0 6px, #f8d68e 6px 10px); }
.ms-card.is-muted { background: #f7f8f7; }
.ms-card.is-muted .ms-thumb img { filter: grayscale(1); opacity: .6; }

.ms-top { display: flex; gap: 18px; }
.ms-thumb { position: relative; width: 240px; height: 168px; border-radius: 12px; overflow: hidden; background: #eceae3; flex: none; }
.ms-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-thumb-state { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; color: var(--ms-muted); }
.ms-thumb-state.is-bad { color: var(--ms-err); }
.ms-thumb-count { position: absolute; right: 7px; bottom: 7px; background: rgba(0,0,0,.62); color: #fff; font-size: 11.5px; border-radius: 6px; padding: 2px 7px; font-weight: 600; }
.ms-thumb-tag { position: absolute; left: 7px; top: 7px; background: rgba(255,255,255,.94); font-size: 10.5px; border-radius: 6px; padding: 2px 6px; font-weight: 700; color: var(--mk-green, #075b48); }
.ms-nophoto { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ms-warn); border: 2px dashed #e7c27a; border-radius: 12px; background: #fffaf0; font-weight: 700; font-size: 12.5px; text-align: center; text-decoration: none; }
.ms-nophoto > span { font-size: 24px; }
.ms-nophoto small { font-weight: 500; }
a.ms-nophoto:hover { background: #fff3da; text-decoration: none; color: var(--ms-warn); }

.ms-body { min-width: 0; flex: 1; }
.ms-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ms-title h2 { margin: 0 4px 0 0; font-size: 19px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ms-pill { font-size: 12px; font-weight: 600; border-radius: 20px; padding: 3px 10px; display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.ms-pill.is-ok { background: var(--ms-ok-bg); color: var(--ms-ok); }
.ms-pill.is-warn { background: var(--ms-warn-bg); color: var(--ms-warn); }
.ms-pill.is-err { background: var(--ms-err-bg); color: var(--ms-err); }
.ms-pill.is-info { background: var(--ms-info-bg); color: var(--ms-info); }
.ms-pill.is-gray { background: var(--ms-gray-bg); color: var(--ms-gray); }
.ms-pill.is-dark { background: #3b4441; color: #fff; }
.ms-meta { color: var(--ms-muted); font-size: 13px; margin: 7px 0 0; line-height: 1.6; }
.ms-meta strong { color: var(--mk-ink, #103e36); font-weight: 600; }
.ms-chips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.ms-chip { font-size: 11.5px; color: var(--ms-gray); border: 1px solid var(--ms-line); border-radius: 6px; padding: 2px 7px; background: #fafbfa; }
.ms-chip.is-warn { color: var(--ms-warn); border-color: #f0dcae; background: #fffaf0; }

.ms-steps { display: flex; align-items: center; list-style: none; margin: 0; padding: 2px 0; }
.ms-step { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ms-soft); font-weight: 600; white-space: nowrap; }
.ms-step + .ms-step::before { content: ""; flex: 1; height: 2px; background: #dfe3e0; margin: 0 8px; min-width: 14px; }
.ms-step { flex: 0 0 auto; }
.ms-step + .ms-step { flex: 1 1 auto; }
.ms-step i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d5dad7; display: grid; place-items: center; font-style: normal; font-size: 11px; background: #fff; flex: none; }
.ms-step.is-done { color: var(--ms-ok); }
.ms-step.is-done i { background: var(--ms-ok); border-color: var(--ms-ok); color: #fff; }
.ms-step.is-done + .ms-step.is-done::before, .ms-step.is-done + .ms-step.is-cur::before, .ms-step.is-done + .ms-step.is-bad::before { background: var(--ms-ok); }
.ms-step.is-cur { color: var(--mk-ink, #103e36); }
.ms-step.is-cur i { border-color: var(--mk-green, #075b48); box-shadow: 0 0 0 3px #d9eadf; }
.ms-step.is-bad { color: var(--ms-err); }
.ms-step.is-bad i { background: var(--ms-err); border-color: var(--ms-err); color: #fff; }

.ms-note { border-radius: 11px; padding: 10px 13px; font-size: 13px; line-height: 1.45; }
.ms-note b { display: block; margin-bottom: 2px; }
.ms-note.is-err { background: var(--ms-err-bg); color: #7d1a14; border: 1px solid #f4c9c5; }
.ms-note.is-warn { background: var(--ms-warn-bg); color: #6b4507; border: 1px solid #f0dcae; }
.ms-note.is-info { background: var(--ms-info-bg); color: #1d3f7c; border: 1px solid #cddcf5; }
.ms-note.is-gray { background: var(--ms-gray-bg); color: #3f4845; border: 1px solid #dde1de; }
.ms-note.is-dark { background: #3b4441; color: #eef1ef; border: 1px solid #3b4441; }
.ms-note-extra { margin: 6px 0 0; }
.ms-check { list-style: none; padding: 0; margin: 7px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 16px; }
.ms-check li { font-size: 12.5px; }
.ms-check .is-ok { color: var(--ms-ok); }
.ms-check .is-missing { color: var(--ms-err); font-weight: 700; }
.ms-check .is-optional { color: var(--ms-muted); }

.ms-history summary { cursor: pointer; color: var(--mk-green, #075b48); font-weight: 700; font-size: 12.5px; list-style: none; }
.ms-history summary::-webkit-details-marker { display: none; }
.ms-history summary::after { content: " ▾"; }
.ms-history[open] summary::after { content: " ▴"; }
.ms-history ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ms-history li { border: 1px solid var(--ms-line); background: #fafbfa; border-radius: 9px; padding: 7px 10px; font-size: 12.5px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; }
.ms-history time { color: var(--ms-muted); }
.ms-history li p { flex-basis: 100%; margin: 0; color: #7d1a14; }

.ms-foot { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--ms-line); padding-top: 12px; flex-wrap: wrap; }
.ms-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ms-foot-info { margin-left: auto; text-align: right; font-size: 12px; color: var(--ms-muted); }
.ms-foot-info .is-stale { color: var(--ms-warn); font-weight: 700; }

.ms-menu { position: relative; }
.ms-menu > summary { list-style: none; }
.ms-menu > summary::-webkit-details-marker { display: none; }
.ms-menu[open] > summary { background: #edf3ef; border-color: #9fbfb0; }
.ms-menu-panel { position: absolute; left: 0; top: calc(100% + 6px); width: 290px; background: #fff; border: 1px solid var(--ms-line); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(16,62,54,.18); padding: 6px; z-index: 30; display: flex; flex-direction: column; }
.ms-menu-panel a, .ms-menu-panel button { display: block; width: 100%; text-align: left; padding: 9px 11px; border-radius: 8px; font: inherit; font-size: 13.5px;
  color: var(--mk-ink, #103e36); background: none; border: 0; cursor: pointer; text-decoration: none; }
.ms-menu-panel form { display: block; }
.ms-menu-panel a:hover, .ms-menu-panel button:hover { background: #f1f4f2; text-decoration: none; }
.ms-menu-panel small { display: block; color: var(--ms-muted); font-size: 11.5px; margin-top: 1px; }
.ms-menu-panel hr { border: 0; border-top: 1px solid var(--ms-line); margin: 5px 0; }
.ms-menu-panel .is-danger { color: var(--ms-err); }
.ms-menu-panel button:disabled { opacity: .6; cursor: not-allowed; }
.ms-menu-panel button:disabled:hover { background: transparent; }

.ms-claims { margin-top: 40px; }
.ms-claims h2 { font-size: 18px; margin: 0 0 12px; }
.ms-claim { background: #fff; border: 1px solid var(--ms-line); border-radius: 14px; padding: 13px 18px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 10px; }
.ms-claim-reason { flex-basis: 100%; font-size: 12.5px; color: var(--ms-err); }


.ms-filter-note { margin: -8px 0 18px; color: var(--ms-muted); font-size: 13px; }
.ms-filter-note a { color: var(--mk-green, #075b48); font-weight: 700; }

.ms-btn-danger-outline { color: var(--ms-err); border-color: #efc4c0; }
.ms-btn-danger-outline:hover { background: var(--ms-err-bg); color: var(--ms-err); }

/* Photo carousel on the card cover */
.ms-gallery { position: absolute; inset: 0; }
.ms-gallery-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.ms-gallery-track::-webkit-scrollbar { display: none; }
.ms-slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.ms-slide img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; }
.ms-gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9);
  color: var(--mk-ink, #103e36); font-size: 20px; line-height: 26px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.2); padding: 0; opacity: .85; }
.ms-gallery-nav:hover { opacity: 1; }
.ms-gallery-nav.is-prev { left: 6px; }
.ms-gallery-nav.is-next { right: 6px; }

/* Confirmation dialog */
/* The dialog is appended to <body>, outside .my-shops-main: it needs its own tokens. */
.ms-confirm { --ms-dark: #153e35; --ms-err-line: #c62828; --ms-err: #b3261e; --ms-err-bg: #fdecea; --ms-line: #e5e7e3; }
.ms-confirm { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100vh - 32px); border: 0; border-radius: 16px; padding: 22px 22px 18px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(16,62,54,.28); color: var(--mk-ink, #103e36); font-family: inherit; }
.ms-confirm::backdrop { background: rgba(16, 30, 26, .45); }
.ms-confirm h2 { margin: 0 0 8px; font-size: 18px; }
.ms-confirm p { margin: 0 0 18px; color: #4b5753; font-size: 14px; line-height: 1.5; }
.ms-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }
.ms-confirm .is-danger { background: var(--ms-err-line, #c62828); border-color: var(--ms-err-line, #c62828); color: #fff; }
.ms-confirm .is-danger:hover { background: #a61f1f; color: #fff; }

/* Operational state form */
.ms-ops-choices { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.ms-ops-choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #d6dcd8; border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #fff; }
.ms-ops-choice input { margin-top: 3px; accent-color: #075b48; }
.ms-ops-choice b { display: block; }
.ms-ops-choice small { color: #64706c; }
.ms-ops-choice:has(input:checked) { border-color: #075b48; box-shadow: 0 0 0 1px #075b48 inset; background: #f6faf7; }
.ms-ops-form:has(input[value="OPEN"]:checked) .ms-ops-reason,
.ms-ops-form:has(input[value="OPEN"]:checked) .ms-ops-reopen,
.ms-ops-form:has(input[value="PERMANENTLY_CLOSED"]:checked) .ms-ops-reopen { display: none; }

@media (max-width: 1100px) {
  .ms-thumb { width: 190px; height: 140px; }
}
@media (max-width: 600px) {
  .my-shops-main { padding: 20px 0 44px; }
  .ms-head { align-items: center; }
  .ms-head h1 { font-size: 25px; }
  .ms-head .ms-btn-lg { padding: 10px 12px; font-size: 13px; }
  .ms-tools { flex-wrap: wrap; }
  .ms-search { flex-basis: 100%; }
  .ms-tools .ms-select { flex: 1; min-width: 0; }
  .ms-tools button[type="submit"] { display: none; }
  .ms-tabs { border: 0; gap: 6px; margin: 12px 0 20px; }
  .ms-tab { border: 1px solid var(--ms-line); border-radius: 20px; padding: 7px 12px; background: #fff; }
  .ms-tab.is-active { background: var(--mk-green, #075b48); color: #fff; }
  .ms-tab.is-active em { background: #fff; color: var(--mk-green, #075b48); }
  .ms-card { padding: 16px 14px 14px 20px; gap: 10px; }
  .ms-top { gap: 12px; }
  .ms-thumb { width: 92px; height: 92px; }
  .ms-thumb-tag, .ms-nophoto small { display: none; }
  .ms-thumb-count { font-size: 10.5px; padding: 1px 5px; right: 4px; bottom: 4px; }
  .ms-gallery-nav { width: 22px; height: 22px; font-size: 16px; line-height: 20px; }
  .ms-nophoto { font-size: 11px; }
  .ms-title h2 { width: 100%; font-size: 16.5px; }
  .ms-chips, .ms-steps { display: none; }
  .ms-check { grid-template-columns: 1fr; }
  .ms-actions { width: 100%; }
  .ms-actions > .ms-btn-pri, .ms-actions > form:first-child { flex: 1 1 auto; }
  .ms-actions > form:first-child .ms-btn { width: 100%; }
  .ms-ov-row { gap: 6px; }
  .ms-ov small { display: none; }
  .ms-foot-info { width: 100%; text-align: left; margin: 0; }
  .ms-menu-panel { left: auto; right: 0; width: min(290px, 80vw); }
}

/* Overview strip (replaces the three summary tiles) */
.ms-overview { background: #fff; border: 1px solid var(--ms-line); border-radius: 16px; padding: 12px 16px; margin-bottom: 22px; display: grid; gap: 8px; }
.ms-ov-row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.ms-ov { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 20px; font-size: 13.5px; color: var(--mk-ink, #103e36); text-decoration: none; border: 1px solid transparent; }
.ms-ov i { font-style: normal; font-weight: 800; }
.ms-ov b { font-size: 15px; }
.ms-ov small { color: inherit; opacity: .75; font-size: 12px; }
.ms-ov.is-ok { background: var(--ms-ok-bg); color: var(--ms-ok); }
.ms-ov.is-warn { background: var(--ms-warn-bg); color: var(--ms-warn); }
.ms-ov.is-info { background: var(--ms-info-bg); color: var(--ms-info); }
a.ms-ov:hover { text-decoration: none; border-color: currentColor; }
a.ms-ov.is-active { box-shadow: 0 0 0 2px currentColor inset; }
.ms-slot { margin: 0; font-size: 12.5px; color: var(--ms-muted); }
.ms-slot b { color: var(--mk-ink, #103e36); font-weight: 700; }

/* Opening status on the meta line */
.ms-hours { margin: 4px 0 0; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.ms-hours i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.ms-hours.is-ok { color: var(--ms-ok); }
.ms-hours.is-gray { color: var(--ms-gray); }

/* Back link and linked breadcrumb on account sub-pages (my shops, favorites, followed shops). */
.ms-back { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 16px -6px; padding: 5px 10px 5px 6px; border-radius: 8px;
  color: var(--mk-green, #075b48); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.ms-back:hover { background: #eef4f1; text-decoration: none; }
.ms-back:focus-visible { outline: 2px solid var(--mk-green, #075b48); outline-offset: 2px; }
.ms-crumbs { text-transform: uppercase; }
.ms-crumbs a { color: inherit; text-decoration: none; }
.ms-crumbs a:hover { color: var(--mk-green, #075b48); text-decoration: underline; }

