/******************************************************************************************************/
/******************************************** MOBIL ***************************************************/
/******************************************************************************************************/

.modelviewer {
    width: 100%;
    display: block;
    position: relative;
    /* Height will be controlled by classes */
}

.initial-height {
    height: 30vh;
    margin: auto;
    width: 100%;
}

.modelviewer .hotspot-dot {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    border: none;
    border-color: var(--e-global-color-accent);
    background-color: var(--e-global-color-accent);
    box-sizing: border-box;
    pointer-events: auto;
    padding: 0;
    cursor: pointer;
    position: absolute;
    transform: translate(-50%, -50%);
}

.modelviewer .hotspot-dot:not([data-visible]) {
  background: transparent;
  border: 4px solid var(--e-global-color-accent);
  border-radius: 16px;
  box-shadow: none;
  height: 32px;
  pointer-events: none;
  width: 32px;
}

.selectMV {
    background-color: #FFF;
	color: #000;
}

.labelMV {
    font-family: "Made Tommy Local", Sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.2em;
    letter-spacing: 1.1px;
    padding: 10px 0;
}

.modelviewer .hotspot-dot[slot="hotspot-hand"] {
    --min-hotspot-opacity: 0;
    background-color: rgb(255, 255, 255);
}

.modelviewer .hotspot-dot[slot="hotspot-foot"]:not([data-visible]) {
    background-color: transparent;
    border: 3px solid rgb(255, 255, 255);
}

.annotation {
    display: none;
    background-color: #fff;
    border: solid;
    border-color: var(--e-global-color-accent);
    position: absolute;
    z-index: 10;
    max-width: 200px;
    overflow-wrap: break-word;
    padding: 10px;
}

/* This keeps child nodes hidden while the element loads */
:not(:defined)>* {
    display: none;
}

.mv_lazyload {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.mv-container .mv_button_play,
.mv-container .mv_button_play:focus {
  padding: 12px 24px;
  width: 100%;
  background: var(--e-global-color-accent);
  color: var(--e-global-color-primary);
  transition: background 0.3s ease, color 0.3s ease;
  font-family: var(--e-global-typography-36b25c8-font-family), Sans-serif;
  font-size: var(--e-global-typography-36b25c8-font-size);
  font-weight: var(--e-global-typography-36b25c8-font-weight);
  line-height: var(--e-global-typography-36b25c8-line-height);
  letter-spacing: var(--e-global-typography-36b25c8-letter-spacing);
  word-spacing: var(--e-global-typography-36b25c8-word-spacing);
  border: 0;
  position: absolute;
  left: 50%;
  bottom: 15%;
  transform: translateX(-50%); 
}

.mv-container .mv_button_play:hover{
    background: var( --e-global-color-primary );
    color: var( --e-global-color-accent );
	border:0;
}

.mv_button_load {
	cursor: pointer;
    background-repeat: no-repeat;
    background-size: 24px 24px;
    background-position: 6% 50%;
	padding: 12px 24px;
    width: fit-content;
    background: var( --e-global-color-accent );
    color: var( --e-global-color-primary );
    transition: background 0.3s ease, color 0.3s ease;
    font-family: var( --e-global-typography-36b25c8-font-family ), Sans-serif;
    font-size: var( --e-global-typography-36b25c8-font-size );
    font-weight: var( --e-global-typography-36b25c8-font-weight );
    line-height: var( --e-global-typography-36b25c8-line-height );
    letter-spacing: var( --e-global-typography-36b25c8-letter-spacing );
    word-spacing: var( --e-global-typography-36b25c8-word-spacing );	
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate3d(-50%, -50%, 0);
    z-index: 100;
}

.mv_button_load:hover{
    background: var( --e-global-color-primary );
    color: var( --e-global-color-accent );
}

.modelviewer:not(.initial-height) {
    margin: auto;
    width: 100%;
    height: 50vh; /* Base mobile height */
    display: block; /* Ensure model-viewer is a block-level element */
}

.mv-container .mv-controls {
    display: none;
    position: relative; /* Mobile-first: relative positioning */
    bottom: auto; /* Reset bottom */
    left: auto; /* Reset left */
    margin-top: 16px; /* Space below model on mobile */
    max-width: unset;
    transform: unset;
    pointer-events: auto;
    z-index: 100;
    background: #111;
    padding: 20px;
    color: white;
    width: 100%; /* Full width on mobile */
}
 .checkboxMV .mv-show-dimensions {
    accent-color: #FFCC00;
}

.dot {
    display: none;
}

.glass {
    background: rgba(255, 255, 255, 0.37);
    backdrop-filter: blur(8px) contrast(0.89) saturate(1.27);
    -webkit-backdrop-filter: blur(8px) contrast(0.89) saturate(1.27);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.dim {
    border-radius: 0px;
    border: none;
    box-sizing: border-box;
    color: rgba(0, 0, 0, 0.8);
    display: block;
    font-size: 3vw; /* Adjust for mobile */
    font-weight: 700;
    max-width: 128px;
    overflow-wrap: break-word;
    padding: 0.5em 1em;
    position: absolute;
    width: max-content;
    height: max-content;
    transform: translate3d(-50%, -50%, 0);
    pointer-events: none;
    --min-hotspot-opacity: 0;
}

.dimensionLineContainer {
    pointer-events: none;
}

.dimensionLine {
    stroke: #000000;
    stroke-width: 2;
    stroke-dasharray: 2;
}

.hide {
    display: none;
}

.checkboxMV {
    display: flex;
	flex-flow: row;
	align-items: center;
    gap: 1rem;
}


/******************************************************************************************************/
/******************************************** TABLET **************************************************/
/******************************************************************************************************/

@media only screen and (min-width: 768px) {

    .initial-height {
        height: 60vh;
    }

    .modelviewer:not(.initial-height) {
        height: 60vh; /* Adjust for tablet */
    }
    
    .dim {
        font-size: 1em; /* Reset to default or adjust for tablet */
    }
    	
	.mv-container .mv_button_play,
    .mv-container .mv_button_play:focus {
	  padding: 12px 24px;
	  width: fit-content;
	}
}
  

/******************************************************************************************************/
/******************************************** LAPTOP **************************************************/
/******************************************************************************************************/

@media only screen and (min-width: 1200px) {

    .initial-height {
        height: 80vh;
    }

    .modelviewer:not(.initial-height) {
        height: 80vh; /* Adjust for laptop */
    }

    .mv-container .mv-controls {
        position: absolute; /* Go back to absolute for larger screens */
        bottom: 16px;
        left: 16px;
        margin-top: 0; /* Reset margin */
        width: unset;
		min-width: 235px;
    }	
}
  
/******************************************************************************************************/
/******************************************** DESKTOP *************************************************/
/******************************************************************************************************/

@media only screen and (min-width: 1400px) {

    .initial-height {
        height: 80vh;
    }
    
    .modelviewer:not(.initial-height) {
        height: 80vh; /* Keep the same or adjust for desktop */
    }
}