/*custom style for Intiaro 360 Configurator*/

.intiaro-viewer-embed {
  height: 100%;
}

.custom-view-type .intiaro360:has(.intiaro-non-visual-thumbnail) .help-text {
  display: none;
}

.custom-view-type .intiaro360:has(.intiaro-non-visual-thumbnail) .slider {
  visibility: hidden;
}

.intiaro360player:has(.intiaro-non-visual-thumbnail) .loading-screen {
  display: none;
}

/* The "Illustrative image" badge describes the product thumbnail shown instead of the 3D view, so it waits for the
   thumbnail - a product without a 3D model gets the configurator's own "Visualization not available" card instead.
   The badge has to stay a direct child of the element that wraps the configurator. */
:not(:has(.intiaro-non-visual-thumbnail)) > app-info-badge {
  display: none;
}

/* 360 sets the configurator container background inline to var(--Background-Neutral-Subtle)
   (a gray) when no backgroundColor token is configured. Override the token here so the inline
   value resolves to white without needing !important. The token is used only for this background. */
.intiaro-configurator-container {
  --Background-Neutral-Subtle: #fff;
}

/* 360 draws the frame of the menu on a layer that ends exactly where its clipping ancestors end, and the right
   edge of the frame is cut off at some browser zooms (seen at 125% in Chrome). The container draws the frame
   instead: its own border lies outside the area it clips. The second rule works inside the shadow root of the
   menu, where 360 copies this file. Remove both once 360 no longer loses the edge, and after a change of the menu
   in 360 check that the frame is still a single line. */
.intiaro-menu-container {
  box-sizing: border-box;
  border: 1px solid var(--intiaro-border-default, #cfd6dd);
}

.intiaro-menu-box .navigation-stack__layer {
  border: 0;
}

/* The "Visualization not available" card of 360 takes its colours from the white label's colour scheme: the tear
   sheet button and the icon in the main button colour, the hovered button in the secondary one. The tokens are
   set on the card only - 360 uses them for the Sectional Builder and the AR guide too. */
.intiaro-viewer-fallback {
  --intiaro-accent-primary: var(--main-button-color, #0d6175);
  --intiaro-accent-active: var(--secondary-button-color, #097c69);
}

/* The views without the menu (the design view and the design previews) put `.intiaro360player` on the viewer, and
   the stylesheet of 360 strips every button inside that class of its background, colour, font, padding and width,
   also while hovered. The tear sheet button of the card gets back what 360 gives it. */
.intiaro360player .intiaro-viewer-fallback__cta {
  width: 100%;
  padding: 0 14px;
  border: 0;
  background-color: var(--intiaro-accent-primary, #0d6175);
  color: var(--intiaro-content-on-accent, #ffffff);
  font: 600 13.5px "Inter", sans-serif;
}

/* Hovered while disabled (360 disables the button for the time the tear sheet is generated). */
.intiaro360player .intiaro-viewer-fallback__cta:hover {
  background-color: var(--intiaro-accent-primary, #0d6175);
}

.intiaro360player .intiaro-viewer-fallback__cta:hover:not(:disabled),
.intiaro360player .intiaro-viewer-fallback__cta:active:not(:disabled) {
  background-color: var(--intiaro-accent-active, #097c69);
}
