/* Shared by the initial HTML and React loading states. */
.brand-loader {
  --loader-size: 72px;
  --loader-mark: 42px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 100%;
  color: var(--ink, #172033);
}
.brand-loader-small {
  --loader-size: 44px;
  --loader-mark: 26px;
}
.brand-loader-large {
  --loader-size: 96px;
  --loader-mark: 58px;
}
.brand-loader-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--loader-size);
  height: var(--loader-size);
  flex: none;
}
.brand-loader .brand-loader-mark > img {
  position: static;
  display: block;
  width: var(--loader-mark);
  height: var(--loader-mark);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  animation: none;
}
.brand-loader-ring {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 3px solid var(--line, #e5e7eb);
  border-top-color: var(--accent, #3157d5);
  border-right-color: var(--accent, #3157d5);
  border-radius: 50%;
  animation: brand-loader-spin 1s linear infinite;
}
.brand-loader-label {
  font:
    500 13px/1.6 Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  color: inherit;
  text-align: center;
}
.brand-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  gap: 10px;
  color: var(--muted, #5b6575);
  font-size: 12px;
  text-align: center;
}
.brand-placeholder > img {
  position: static;
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  aspect-ratio: 1;
  background: transparent;
  animation: none;
}
.route-loading {
  display: grid;
  place-items: center;
  min-height: 65vh;
  padding: 40px 20px;
}
.initial-loading {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #eceef1;
  color: #172033;
}
:root[data-theme="dark"] .initial-loading {
  background: #0c1626;
  --ink: #edf4ff;
  --accent: #99c4ff;
  --line: #263554;
}
.loading-products {
  position: relative;
  min-height: 270px;
}
.loading-products-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--canvas) 80%, transparent);
  border-radius: 10px;
  pointer-events: none;
}
.branded-image {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.branded-image > .branded-image-content {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.branded-image.is-loading > .branded-image-content {
  opacity: 0;
}
.branded-image-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: var(--stage, #f0f2f5);
}
.product-image > .branded-image {
  position: absolute;
  inset: 0;
}
.gallery-thumbnails .branded-image {
  height: calc(100% - 19px);
}
.import-image-preview {
  aspect-ratio: 4/3;
  height: auto;
  border-radius: 8px;
  background: var(--soft);
}
.banner-placeholder {
  display: grid;
  place-items: center;
}
.adm-product-thumb.branded-image {
  width: 48px;
  height: 48px;
}
.adm-banner-thumb.branded-image {
  width: 96px;
  height: 54px;
}
:is(.adm-product-thumb, .adm-banner-thumb) .brand-placeholder > img {
  width: 26px;
  height: 26px;
}
:is(.adm-product-thumb, .adm-banner-thumb) .brand-placeholder > span {
  display: none;
}
@keyframes brand-loader-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand-loader-ring {
    animation: none;
  }
}
