.mspbs-result {
  --result-ink: #181818;
  --result-document: #a78306;
  background: #fefefe;
  color: var(--result-ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.mspbs-result-header {
  height: 134px;
  padding: 14px 16px 0;
  background: #fefefe;
}

.mspbs-result-toolbar {
  display: grid;
  grid-template-columns: 40px 1fr 60px;
  grid-template-rows: 36px;
  align-items: center;
  max-width: 680px;
  height: 36px;
  margin-inline: auto;
}

.mspbs-result-menu {
  position: relative;
}

.mspbs-result-menu-summary {
  display: grid;
  place-items: center;
  width: 40px;
  height: 36px;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  list-style: none;
  background: #fff;
}

.mspbs-result-menu-summary::-webkit-details-marker {
  display: none;
}

.mspbs-result-menu-lines,
.mspbs-result-menu-lines::before,
.mspbs-result-menu-lines::after {
  width: 24px;
  height: 2.5px;
  border-radius: 1px;
  background: var(--result-ink);
}

.mspbs-result-menu-lines {
  position: relative;
}

.mspbs-result-menu-lines::before,
.mspbs-result-menu-lines::after {
  position: absolute;
  left: 0;
  content: '';
}

.mspbs-result-menu-lines::before { top: -7.5px; }
.mspbs-result-menu-lines::after { top: 7.5px; }

.mspbs-result-menu-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 2;
  display: grid;
  min-width: 160px;
  border: 1px solid #565656;
  background: #fff;
}

.mspbs-result-menu-panel a {
  padding: 8px 12px;
  text-decoration: none;
}

.mspbs-result-menu-panel a:hover { background: #f4f6fa; }

.mspbs-result-brand {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 48px;
  height: 46px;
}

.mspbs-result-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mspbs-result-brand-fallback {
  display: grid;
  justify-items: center;
  font-size: 8px;
  line-height: 12px;
  color: #412508;
}

.mspbs-result-brand-fallback span {
  width: 38px;
  border-radius: 50%;
  background: #946f13;
  font-size: 21px;
  font-weight: 900;
  line-height: 25px;
  text-align: center;
  letter-spacing: .02em;
}

.mspbs-result-languages {
  position: relative;
  width: 60px;
}

.mspbs-result-language-toggle,
.mspbs-result-language-options button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 29px;
  padding: 0;
  border: 0;
  background: #fff;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.mspbs-result-language-toggle {
  gap: 4px;
  border: 1px solid #565656;
}

.mspbs-result-language-toggle::after {
  width: 0;
  height: 0;
  border-top: 5px solid #4a4a4a;
  border-inline: 4px solid transparent;
  content: '';
}

.mspbs-result-language-options {
  position: absolute;
  top: 28px;
  right: 0;
  z-index: 2;
  width: 100%;
  border: 1px solid #565656;
}

.mspbs-result-language-options button {
  height: 27px;
}

.mspbs-result-language-options button:hover,
.mspbs-result-language-options button[aria-pressed='true'] {
  background: #181818;
  color: #fff;
}

.mspbs-result h1 {
  margin: 25px 0 0;
  color: var(--result-ink);
  font-size: 20.5px;
  font-weight: 800;
  line-height: 24px;
  letter-spacing: normal;
  text-align: center;
}

.mspbs-result-status {
  display: grid;
  grid-template-columns: 42px 1fr 14px;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 69px;
  padding: 10px 22px 10px 13px;
  border: 0;
  background: #f6f8fb;
  color: #080909;
  text-align: left;
}

.mspbs-result-status-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  background: #1d3f87;
  color: #d0f4df;
  font-weight: 800;
}

.mspbs-result-status-icon span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #90c8ab;
  border-radius: 50%;
}

.mspbs-result-status-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mspbs-result-status-copy strong {
  color: #107701;
  font-size: 18px;
  font-weight: 850;
  line-height: 22px;
  letter-spacing: .025em;
}

.mspbs-result-status-copy > span {
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}

.mspbs-result-chevron {
  justify-self: end;
  width: 9px;
  height: 9px;
  margin-right: 2px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  border-radius: 1px;
  transform: rotate(-45deg);
}

.mspbs-result-body {
  padding-bottom: 12px;
  background: #eef1f7;
  color: #21262d;
}

.mspbs-result-image {
  display: grid;
  place-items: center;
  height: min(90vw, 362px);
  margin: 0;
}

.mspbs-result-image img {
  width: min(58.5vw, 235px);
  height: min(58.5vw, 235px);
  object-fit: contain;
  transform: translate(1px, 2px);
}

.mspbs-result-image-fallback {
  display: grid;
  place-content: center;
  width: min(58vw, 234px);
  min-height: min(54vw, 217px);
  border: 1px solid #d3d3db;
  border-radius: 3px;
  background: linear-gradient(#f6f6f7 0 66%, #a78a18 66% 100%);
  box-shadow: 0 3px 6px #0002;
  color: #4f321e;
  font-size: 32px;
  font-weight: 850;
  text-align: center;
}

.mspbs-result-information {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 20px;
}

.mspbs-result-description {
  margin: 0;
  font-size: 14px;
  font-weight: 550;
  line-height: 21px;
}

.mspbs-result-strength {
  margin: 16px 0 0;
  color: #777b80;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.mspbs-result-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-items: center;
  width: min(83.6%, 336px);
  margin: 28px auto -6px;
}

.mspbs-result-action {
  display: grid;
  place-items: center;
  width: min(31.6vw, 127px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fffbe9;
}

.mspbs-result-action:has(img[hidden]) {
  background: var(--result-document);
  box-shadow: 0 5px 14px #80600038;
}

.mspbs-result-action img {
  width: 100%;
  height: 100%;
  mask-image: radial-gradient(circle closest-side, #000 88%, transparent 100%);
  object-fit: contain;
}

.mspbs-result-action-fallback {
  position: relative;
  width: 54%;
  height: 46%;
  border: 3px solid currentColor;
  border-radius: 8px;
}

.mspbs-result-shop-fallback::before {
  position: absolute;
  left: 25%;
  bottom: 100%;
  width: 50%;
  height: 41%;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 100% 100% 0 0;
  content: '';
}

.mspbs-result-shop-fallback::after {
  position: absolute;
  inset: 15% 13% 18%;
  background: currentColor;
  clip-path: polygon(12% 0, 88% 0, 100% 38%, 87% 38%, 87% 100%, 72% 100%, 72% 38%, 62% 38%, 62% 100%, 15% 100%, 15% 38%, 28% 38%, 28% 80%, 48% 80%, 48% 38%, 0 38%);
  content: '';
}

.mspbs-result-paper-fallback::before {
  position: absolute;
  inset: 20% 16% 40%;
  background: repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 6px);
  content: '';
}

.mspbs-result-paper-fallback::after {
  position: absolute;
  right: -10%;
  bottom: -23%;
  width: 50%;
  aspect-ratio: 1;
  border: 4px solid currentColor;
  border-radius: 50%;
  background: var(--result-document);
  content: '';
}

.mspbs-result-dialog {
  width: min(calc(100% - 40px), 380px);
  min-height: 119px;
  margin: auto;
  padding: 16px 20px 13px;
  border: 0;
  border-radius: 20px;
  background: #1c1b1d;
  box-shadow: 0 10px 35px #0004;
  color: #fff;
}

.mspbs-result-dialog::backdrop { background: rgb(0 0 0 / 43%); }

.mspbs-result-dialog p {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 22px;
}

.mspbs-result-dialog button {
  display: block;
  min-height: 28px;
  margin: 18px 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4285e6;
  font-size: 16px;
  font-weight: 600;
  line-height: 21px;
}

@media (min-width: 740px) {
  .mspbs-result-status {
    grid-template-columns: 42px minmax(0, 600px) 14px;
    justify-content: center;
  }
}
