.brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 172px !important;
  min-height: 62px !important;
  padding: 7px 13px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.97) !important;
}

.brand .joor-live-logo {
  display: block !important;
  width: 158px !important;
  max-width: 42vw !important;
  height: auto !important;
  max-height: 52px !important;
  object-fit: contain !important;
}

@media (max-width: 640px) {
  .brand {
    min-width: 132px !important;
    min-height: 48px !important;
    padding: 5px 9px !important;
  }

  .brand .joor-live-logo {
    width: 122px !important;
    max-height: 40px !important;
  }
}

html.joor-store-open,
body.joor-store-open {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

.joor-embedded-store {
  position: fixed;
  z-index: 2147483646;
  inset: 0;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
}

.joor-embedded-store__bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(96px, 1fr) auto minmax(96px, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: max(6px, env(safe-area-inset-top)) 12px 6px;
  border-bottom: 1px solid #e7e7e7;
  background: rgba(255, 255, 255, 0.98);
}

.joor-embedded-store__back {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 3px;
  min-width: 44px;
  min-height: 40px;
  margin: 0;
  padding: 4px 8px 4px 2px;
  border: 0;
  background: transparent;
  color: #222222;
  font: 500 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.joor-embedded-store__back span:first-child {
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

.joor-embedded-store__logo {
  display: block;
  width: 112px;
  max-height: 38px;
  object-fit: contain;
}

.joor-embedded-store__spacer {
  min-width: 44px;
}

.joor-embedded-store__frame {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.joor-embedded-store__loading {
  position: absolute;
  z-index: 3;
  inset: 58px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  color: #343434;
  font: 500 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: opacity 160ms ease;
}

.joor-embedded-store__loading.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.joor-embedded-store__spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e6e6e6;
  border-top-color: #1f2937;
  border-radius: 50%;
  animation: joor-store-spin 700ms linear infinite;
}

@keyframes joor-store-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .joor-embedded-store {
    grid-template-rows: 54px minmax(0, 1fr);
  }

  .joor-embedded-store__bar {
    grid-template-columns: minmax(86px, 1fr) auto minmax(86px, 1fr);
    min-height: 54px;
    padding-inline: 8px;
  }

  .joor-embedded-store__back {
    font-size: 13px;
  }

  .joor-embedded-store__logo {
    width: 96px;
    max-height: 34px;
  }

  .joor-embedded-store__loading {
    inset-block-start: 54px;
  }
}
