/* Generated file. Source: shared/brand/styles/orders/detail-breakdown.css. Do not edit directly. Run: node tools/brand/sync-shared-brand.mjs */
/* Component breakdown — canvas + labels */
body[data-orders-surface="cs-detail"] .orders-breakdown-canvas {
  position: relative;
  min-height: 380px;
  border-radius: inherit;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 39px, var(--orders-grid-overlay) 39px, var(--orders-grid-overlay) 40px),
    repeating-linear-gradient(90deg, transparent 0, transparent 79px, var(--orders-grid-overlay) 79px, var(--orders-grid-overlay) 80px),
    linear-gradient(180deg, color-mix(in srgb, var(--orders-tone-custom-soft) 10%, transparent), rgba(10, 12, 15, 0.99));
}

body[data-orders-surface="cs-detail"] .orders-breakdown-canvas.has-image {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: rgba(10, 12, 15, 0.99);
  min-height: 200px;
}

body[data-orders-surface="cs-detail"] .orders-breakdown-canvas.has-image .orders-breakdown-placeholder {
  display: none;
}

body[data-orders-surface="cs-detail"] .orders-breakdown-legend {
  position: absolute;
  right: 20px;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
}

body[data-orders-surface="cs-detail"] .orders-breakdown-img {
  max-height: 360px;
  width: auto;
  object-fit: contain;
  border-radius: var(--orders-geom-radius);
}

body[data-orders-surface="cs-detail"] .orders-breakdown-canvas.has-image[data-breakdown-count="2"] .orders-breakdown-img {
  max-width: calc(50% - 12px);
}

body[data-orders-surface="cs-detail"] .orders-breakdown-canvas.has-image[data-breakdown-count="3"] .orders-breakdown-img {
  max-width: calc(33.33% - 16px);
}

@media (max-width: 720px) {
  body[data-orders-surface="cs-detail"] .orders-breakdown-img {
    max-height: 240px;
  }

  body[data-orders-surface="cs-detail"] .orders-breakdown-canvas.has-image {
    flex-direction: column;
    gap: 12px;
  }

  body[data-orders-surface="cs-detail"] .orders-breakdown-legend {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
  }
}

body[data-orders-surface="cs-detail"] .orders-breakdown-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--orders-subtle);
  font-family: var(--font-mono) !important;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
}

body[data-orders-surface="cs-detail"] .orders-breakdown-placeholder::before {
  content: "[ " attr(data-orders-breakdown-placeholder) " ]";
}

body[data-orders-surface="cs-detail"] .orders-breakdown-label {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-family: var(--font-mono) !important;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orders-tone-custom-bright);
  transform: none;
  transition: color 200ms ease;
}

body[data-orders-surface="cs-detail"] .orders-breakdown-label:hover {
  color: var(--orders-tone-custom-bright);
  transform: none;
}

body[data-orders-surface="cs-detail"] .orders-breakdown-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orders-tone-custom-bright);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--orders-tone-custom-soft);
}

body[data-orders-surface="cs-detail"] .orders-breakdown-label::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--orders-tone-custom-line);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
}

body[data-orders-surface="cs-detail"] .orders-breakdown-label:hover::after {
  opacity: 0.6;
  transform: translate(-50%, -50%) scale(1.4);
}

@media (prefers-reduced-motion: reduce) {
  body[data-orders-surface="cs-detail"] .orders-breakdown-label,
  body[data-orders-surface="cs-detail"] .orders-breakdown-label::after {
    transition: none !important;
    transform: none !important;
  }
}
