/* ----------------------720°全景弹窗样式------------------------- */
 /* ----------------------720°全景弹窗样式------------------------- */

/* 全景展示区域主容器 */
.panorama-display-area {
    position: relative;
    width: 100%;
    height: calc(450 / 1080 * 100vh);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0;
}

/* 椭圆背景 - 车辆下方的椭圆底座 */
.oval-background {
    position: absolute;
    bottom: calc(30 / 1080 * 100vh);
    width: 70%;
    height: calc(120 / 1080 * 100vh);
    max-height: 120px;
    z-index: 1;
    opacity: 0.8;
}

/* 车辆图片容器 */
.image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* 车辆图片 */
.panorama-image {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: opacity 0.1s;
}

/* 360度旋转图标 - 显示在图片上方 */
.rotation-icon {
    position: absolute;
    top: calc(20 / 1080 * 100vh);
    right: calc(20 / 1080 * 100vh);
    width: calc(60 / 1080 * 100vh);
    height: calc(60 / 1080 * 100vh);
    z-index: 3;
    opacity: 0.8;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading动画样式 */
.panorama-loading {
    z-index: 10;
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--identify);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}
.loading-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.loading-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 2;
}

.circle-progress {
    fill: none;
    stroke: var(--identify);
    stroke-width: 2;
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s ease;
}

.loading-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
    color: #333;
	visibility: hidden;
}
/* 拖动提示样式 */
.panorama-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #666;
    font-size: 14px;
    z-index: 2;
}

/* 新的导航容器样式 - 调整间距 */
.car-selection-container {
    margin: 0.3rem 0 0.2rem;
    position: relative;
}

/* 导航标签样式 */
.nav-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: calc(8 / 1080 * 100vh);
}

/* 导航项样式 - 修改字体以匹配图片 */
.nav-item {
    /* font-size: calc(18 / 1080 * 100vh); */
    color: #000;
    padding: calc(18 / 1080 * 100vh) calc(32 / 1080 * 100vh);
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    /* font-family: Montserrat-Bold; */
    letter-spacing: 1px;
	/* font-size: calc(26 / 1080 * 100vh); */
	/* line-height: calc(26 / 1080 * 100vh); */
	/* font-family: Montserrat; */
	font-weight: 400; 

}

/* 导航项激活状态 */
.nav-item.active {
    color: var(--identify);
	color: #000;
/* font-family: Montserrat; */
	font-weight: 700;
/* font-style: Bold; */ 

}

/* 导航分隔线样式 */
.nav-divider {
    width: 1px;
    height: calc(52 / 1080 * 100vh);
    background-color: #e0e0e0;
}

/* 底部横线样式 */
.nav-bottom-line {
    width: 24vw;
    height: 1px;
    background-color: #e0e0e0;
	margin-left: auto;
    margin-right: auto;
}

/* 标签内容区域样式 */
.tab-content {
    position: relative;
    /* margin-top: 0.2rem;  */
	width: 100%;
	display: flex;
}

/* 标签面板样式 */
.tab-panel {
    display: none;
    width: 100%;
    /* 固定高度以确保切换时高度不变化 */
    min-height: calc(200 / 1080 * 100vh);
	margin-top: calc(30 / 1080 * 100vh);
	min-height: 0px
}

/* 标签面板激活状态 */
.tab-panel.active {
    display: block;
}

/* 车型选择样式 - 调整为与色卡一致的长度和间距 */
.car-models {
    display: flex;
    justify-content: center;
    gap: calc(20 / 1080 * 100vh); /* 与色卡间距一致 */
    margin: calc(0 / 1080 * 100vh) auto; /* 减少上下边距 */
    width: fit-content; /* 宽度适应内容 */
    padding: 0 calc(50 / 1080 * 100vh); /* 添加左右内边距以匹配色卡宽度 */
}

.car-model {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: calc(20 / 1080 * 100vh) calc(10 / 1080 * 100vh); /* 增加上下padding确保图片在方框中居中 */
    position: relative;
    border: 2px solid transparent; /* 未选中时透明边框占位 */
    border-radius: 8px; /* 添加圆角 */
    transition: all 0.3s ease; /* 添加过渡效果 */
}

.car-model img {
    width: calc(150 / 1080 * 100vh);
    height: auto;
    margin-bottom: calc(5 / 1080 * 100vh); /* 减少图片下方空白 */
}

.car-model span {
     font-size: calc(16 / 1080 * 100vh);
    font-family: var(--font-sans);
    text-align: center;
    display: none; /* 隐藏车型名称，因为HTML中已经注释掉了 */
}

.car-model.active {
    border: 2px solid #000; /* 选中时显示黑色边框 */
    background-color: #fff; /* 确保背景为白色 */
}

.car-model .check-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    width: calc(30 / 1080 * 100vh);
    height: calc(30 / 1080 * 100vh);
    background-color: transparent; /* 未选中时透明背景 */
    border-radius: 50%; /* 圆形 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent; /* 未选中时透明对号 */
    font-size: calc(20 / 1080 * 100vh);
    font-weight: bold;
    z-index: 10;
    /* 确保对号元素始终占位，防止选中时布局跳动 */
}

.car-model.active .check-icon {
     background-color: #000; /* 选中时黑色圆形背景 */
    color: var(--identify); /* 选中时橙色对号 */
}

/* 颜色选择器样式 - 调整间距和居中 */
.color_con_min {
    display: flex;
    justify-content: center;
    margin-top: 0.05rem; /* 减少顶部间距 */
}

 

.control {
    margin-top: 0.05rem; /* 颜色选择器离横线更近 */
    display: flex;
    justify-content: center;
    width: 100%;
}
 
.color-center {
    display: flex;
    justify-content: center;
    gap: calc(20 / 1080 * 100vh);
    width: fit-content;
    margin: 0 auto;
}


/* 颜色选择器中的颜色块样式 - 确保居中 */
.control .color-box .box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 0;
    margin-left: 0;
    position: relative;
}

.control .color-box .box .c-box {
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.control .color-box .box .d {
    font-size: 0.14rem;
    margin-top: 0.1rem; /* 减少颜色块和文字间距 */
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: static; /* 改为静态定位 */
    text-align: center; /* 确保文字居中 */
}

.control .color-box .box.active .d {
    opacity: 1;
}

/* 移除左右导航按钮 */
.panorama-navigation {
    display: none !important;
}

.panorama-nav-btn {
    display: none !important;
}



/* 外饰容器样式 */
.panorama-main {
    width: 100%;
    height: calc(700 / 1080 * 100vh);
    position: relative;
	/* top: calc(10 / 1080 * 100vh); */
}

/* 内饰容器样式 */
/* .panorama-main-interior {
    width: 100%;
    height: calc(700 / 1080 * 100vh);
    position: relative;
	
	top: calc(10 / 1080 * 100vh);
} */

/* 全景容器 */
.panorama-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 全景视图 */
.panorama-view {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.panorama-view.hidden {
    display: none;
}
/* oval-icon */

/* 360图标样式 */
.oval-icon {
    position: absolute;
    z-index: 10;
    object-fit: contain;
    width: calc(137 / 1080 * 100vh);
    height: calc(47.86 / 1080 * 100vh);
    margin: 0 auto calc(20 / 1080 * 100vh);
    display: block;
	top: 0;

}
/* 椭圆形托底样式 */
.oval-base-img {
    position: absolute;
    z-index: 1;
    object-fit: contain;
    max-width: 90%;
    height: auto;
    bottom: calc(60 / 1080 * 100vh);
    left: 0;
    right: 0;
    margin: 0 auto;
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    /* 全景展示区域 */
    .panorama-display-area {
        height: calc(400 / 375 * 100vw);
        margin: 0.3rem 0;
    }
    
    /* 椭圆背景 */
    .oval-background {
        bottom: calc(20 / 375 * 100vw);
        width: 80%;
        height: calc(100 / 375 * 100vw);
    }
    
    /* 车辆图片 */
    .panorama-image {
        max-width: 90%;
        max-height: 90%;
    }
    
    /* 360度旋转图标 */
    .rotation-icon {
        top: calc(15 / 375 * 100vw);
        right: calc(15 / 375 * 100vw);
        width: calc(50 / 375 * 100vw);
        height: calc(50 / 375 * 100vw);
    }
	/* 椭圆形托底样式 */
	.oval-base-img {
		position: absolute;
		z-index: 1;
		object-fit: contain;
		max-width: 100%;
		height: auto;
		bottom: calc(112 / 375 * 100vw);
		left: 0;
		right: 0;
		margin: 0 auto;
	}
    
    /* Loading样式 */
    .loading-spinner {
        width: calc(50 / 375 * 100vw);
        height: calc(50 / 375 * 100vw);
        margin: 0 auto calc(8 / 375 * 100vw);
    }
    
    .loading-text {
        font-size: calc(14 / 375 * 100vw);
    }
    
    /* 拖动提示 */
    .panorama-hint {
        bottom: calc(8 / 375 * 100vw);
        font-size: calc(12 / 375 * 100vw);
    }
    
    /* 导航容器 */ 
    .car-selection-container { 
    	position: relative;
		width: 100%; 
	}
    /* 导航项 */
    .nav-tabs {
        margin-bottom: calc(6 / 375 * 100vw);
    }
    
    .nav-item {
        /* font-size: calc(16 / 375 * 100vw); */
        padding: calc(6 / 375 * 100vw) calc(20 / 375 * 100vw);
    }


 

 
    
    /* .nav-divider {
        height: calc(14 / 375 * 100vw);
    } */

	/* 导航分隔线样式 */
.nav-divider {
    width: 1px;
    height: calc(42 / 375 * 100vw);
    background-color: #e0e0e0;
}

/* 底部横线样式 */
.nav-bottom-line {
    width: 80%;
    height: 1px;
    background-color: #e0e0e0;
	margin-left: auto;
    margin-right: auto;
}
    
    /* 车型选择 */
    .car-models {
		display: flex;
    	justify-content: center;
		gap: calc(15 / 375 * 100vw);
        margin: calc(10 / 375 * 100vw) auto; 
        padding: 0 calc(0 / 375 * 100vw);  
    }
    
    .car-model img {
        width: calc(120 / 375 * 100vw);
        margin-bottom: calc(5 / 375 * 100vw); /* 减少底部空白 */
    }
    
    .car-model span {
        font-size: calc(14 / 375 * 100vw);
        text-align: center;
    }
    
    .car-model .check-icon {
        font-size: calc(16 / 375 * 100vw);
    }
    
    /* 颜色选择器 */
    .color-center {
        display: flex;
    	justify-content: center;
     	gap: calc(15 / 375 * 100vw);
    	width: fit-content;
    	margin: 0 auto;  
		
    }
    
    /* 调整移动端颜色选择器间距 */
    .control {
        margin-top: 0.05rem;
    }
    
    .color_con_min {
        margin-top: 0.05rem;
		width: 100%;
    }
    
    /* 360图标样式 */
    .oval-icon {
        position: absolute;
        z-index: 1;
        object-fit: contain;
        width: calc(88 / 375 * 100vw);
        height: auto;
        margin: 0 auto calc(0 / 375 * 100vw);
        display: block;


		 
 
	top: 0;
    }

    .panorama-main {
        width: 100%;
        height: calc(350 / 375 * 100vw);
        position: relative;
			/* top: calc(10  / 375 * 100vw); */
    } 

	.control .color-box .box .c-box {
		width: 0.45rem;
		height: 0.45rem; 
	}
	.control .color-box .box .d {
		font-size: 0.24rem;
		margin-top: 0.3rem; /* 减少颜色块和文字间距 */ 
	}

}
/* 确保隐藏类有足够的优先级 */
 
/* 修改PC端内饰模式下的全景图容器样式 */
@media (min-width: 768px) {
    /* 全景图主容器样式 - 确保满屏 */
    .panorama-main.interior-fullscreen {
        width: 100vw !important;
        height: calc(100vh - 0.8rem) !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
        z-index: 1 !important;
        left: 0 !important;
        top: 0 !important;
        overflow: hidden !important;
        background-color: transparent !important;
        box-sizing: border-box !important;
        transform: none !important;
        border: none !important;
        max-width: 100vw !important;
    }
    
      /* 全景图容器样式 */
    .panorama-container.interior-fullscreen {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 1 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        justify-content: stretch !important;
        align-items: stretch !important;
    }
    
    /* 确保Pannellum容器占满 - 关键修复 */
    .panorama-container.interior-fullscreen .pnlm-container {
        width: 100% !important;
        height: 100% !important;
        position: absolute !important; /* 改为absolute确保占满父容器 */
        top: 0 !important;
        left: 0 !important;
        right: 0 !important; /* 添加right确保从右侧也填满 */
        bottom: 0 !important; /* 添加bottom确保从底部也填满 */
        z-index: 101 !important;
        background-color: transparent !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Pannellum画布样式 */
    .panorama-container.interior-fullscreen .pnlm-canvas {
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }
    
    /* Pannellum舞台样式 */
    .panorama-container.interior-fullscreen .pnlm-stage {
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }
    
    /* 悬浮组件样式 - 改为absolute使其悬浮 */
    .car-selection-container.interior-floating {
        position: absolute !important; /* 改为absolute使其悬浮 */
        bottom: calc(125 / 1080 * 100vh) !important; /* 固定在底部 */
        left: 50% !important; /* 水平居中 */
        transform: translateX(-50%) !important; /* 水平居中 */
        width: 28% !important; /* 控制宽度 */ 
        /* margin: 0 !important;
        padding: 1rem !important; */
        /* background-color: rgba(255, 255, 255, 0.9) !important; */
        border-radius: 10px !important;
        z-index: 100 !important; /* 确保在全景图上方 */
        /* backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important; */
		background-color: #00000050;
		padding: 12px !important;
    }
    /* 添加悬浮窗模式下的导航项白色字体样式 */
	.car-selection-container.interior-floating .nav-item {
		color: #fff !important;
	}

	.car-selection-container.interior-floating .nav-item.active {
		color: #fff !important;
		font-weight: 700;
	}
    /* 确保色卡也参与悬浮 */
    .interior-floating-content {
        position: relative !important;
        z-index: 101 !important;
    }
    
    /* 修复外饰360汽车不显示的问题 */
    #exterior-panorama {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* 修复导航标签样式 */
    .nav-item {
        position: relative !important;
        z-index: 102 !important;
    }
    
    /* 修复色卡选择器样式 */
    .color-box {
        position: relative !important;
        z-index: 102 !important;
    }
	/* 确保Pannellum容器占满 */
    .panorama-container.interior-fullscreen .pnlm-container,
    .panorama-container.interior-fullscreen .pnlm-canvas,
    .panorama-container.interior-fullscreen .pnlm-stage {
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
	/* 关键修复：移除内饰模式下的padding */
    .color.interior-no-padding {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-top: 0 !important;
    }
	/* PC端内饰选中状态的白色样式类 */ 
	.pc-interior-selected .c-box::after {
		border: 2px solid #ffffff !important;
		width: 0.45rem;
		height: 0.45rem;
	}
	.pc-interior-selected .d {
		color: white !important;
	}
	/* 新增：PC端内饰鼠标悬停效果 */
	#interior-panel .color-box .box:hover .c-box::after {
		border: 2px solid #ffffff !important;
	
	} 
	#interior-panel .color-box .box.pc-interior-selected .c-box {
		position: relative;
	}
	
	#interior-panel .color-box .box.pc-interior-selected .c-box::before {
		content: '';
		position: absolute;
		top: -4px;
		right: -4px;
		width: 16px;
		height: 16px;
		content: '✓';
        background: #fff;
        color: #222;
        border-radius: 50%;
        text-align: center;
        font: 12px/16px sans-serif;
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center;
		z-index: 10;
	}
	#interior-panel .control .color-box .box .c-box {
		width: 0.39rem;
		height: 0.39rem;
		border-radius: 50%;
		cursor: pointer;
		position: relative;
		border: 2px solid #ffffff !important; 
		padding: 0.02rem; /* 添加内边距来增加边框和色卡内容之间的距离 */
		background-clip: content-box; /* 确保背景色只应用到内容区域，而不是包括padding的整个区域 */
	}
}
@media (max-width: 768px) {
    .banner .detail { 
        padding: 0 0.48rem;
        justify-content: center;
        display: flex;
        flex-direction: column;
        align-items: center; 
    }
 
	.gs-title-box-btn , .gs-title-box-btn-2{ 
		position: relative;
		left: auto;
		top: auto;
		bottom: auto;
		left: auto;
		justify-content: flex-start; 
		width: 80%;
		margin-bottom: 0.2rem;
	} 
}
/* ... existing code ... */
 
/* //----------------------- */

/* RTL: merged with ar/s07 (single stylesheet for en + ar) */
html[dir="rtl"] .margin_right {
	margin-right: 0;
	margin-left: 3.3rem;
}

html[dir="rtl"] #interior-panel .color-box .box.pc-interior-selected .c-box::before {
	right: auto;
	left: -4px;
}

@media (max-width: 768px) {
	html[dir="rtl"] .margin_right {
		margin-left: 0;
	}
}
html[lang="ar"] .kv-text .gs-title-box {
  justify-content: flex-end;
}
.panorama-container { touch-action: pan-y; }

/* The original configuration rules depend on the old left/right column markup.
   Give the inline viewer its own complete layout and swatch styles. */
.color.s07-viewer {
    display: block;
    width: 100%;
    padding: 0 5% 48px;
    box-sizing: border-box;
}
.s07-viewer > .color-content { width: 100%; margin: 0; }
.s07-viewer .panorama-main { height: clamp(300px, 42vw, 650px); }
.s07-viewer #exterior-panorama { height: 100%; }
.s07-viewer #image-container { width: 100%; }
.s07-viewer #panorama-image { width: 100%; height: 100%; object-fit: contain; }
.s07-viewer .car-selection-container {
    width: 100%;
    margin: 24px auto 0;
    box-sizing: border-box;
}
.s07-viewer .nav-tabs { width: 100%; margin: 0; justify-content: center; }
.s07-viewer .nav-item { font-size: 18px; padding: 16px 28px; }
.s07-viewer .nav-bottom-line { width: min(100%, 520px); margin: 0 auto; }
.s07-viewer .tab-content { width: 100%; }
.s07-viewer .tab-panel { margin-top: 24px; min-height: 104px; }
.s07-viewer .tab-panel .color_con_min { width: 100%; margin: 0; }
.s07-viewer .control { width: 100%; margin: 0; }
.s07-viewer .control .color-box {
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    max-width: 100%;
    width: auto;
    margin: 0 auto;
}
.s07-viewer .control .color-box .box { width: 94px; margin: 0; cursor: pointer; }
.s07-viewer .control .color-box .box .c-box {
    display: block;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 50%;
}
.s07-viewer .box[data-color="phantom-gray"] .c-box { background: #999; }
.s07-viewer .box[data-color="ocean-blue"] .c-box { background: #0e336a; }
.s07-viewer .box[data-color="sky-blue"] .c-box { background: #90a9c2; }
.s07-viewer .box[data-color="snow-white"] .c-box { background: #f7f7f2; }
.s07-viewer .box[data-color="pearl-white"] .c-box { background: #f0f0f0; }
.s07-viewer .box[data-color="starlit-black"] .c-box { background: #151515; }
.s07-viewer .box[data-color="obsidian-black"] .c-box { background: #272727; }
.s07-viewer .box[data-color="porcelain-white"] .c-box { background: #e5e5e5; }
.s07-viewer .box[data-color="lafite-red"] .c-box { background: #7e343a; }
.s07-viewer .control .color-box .box.active .c-box {
    outline: 2px solid #333;
    outline-offset: 4px;
}
.s07-viewer .control .color-box .box .d {
    font-size: 12px;
    line-height: 1.4;
    margin-top: 12px;
    white-space: normal;
    color: #555;
}
.s07-viewer .car-model img { width: 120px; }
@media (max-width: 768px) {
    .color.s07-viewer { padding: 0 16px 32px; }
    .s07-viewer .panorama-main { height: 320px; }
    .s07-viewer .nav-item { font-size: 14px; padding: 14px 18px; }
    .s07-viewer .control .color-box { gap: 16px 8px; }
    .s07-viewer .control .color-box .box { width: 82px; }
}
/* Keep the six exterior finishes in one row, as on the mobile reference. */
@media (max-width: 768px) {
    .s07-viewer .control .color-box {
        width: 100%;
        flex-wrap: nowrap;
        gap: 0;
        align-items: flex-start;
    }
    .s07-viewer .control .color-box .box {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        min-height: 76px;
        padding-top: 8px;
    }
    .s07-viewer .control .color-box .box .c-box { width: 25px; height: 25px; }
    .s07-viewer .control .color-box .box .d {
        position: absolute;
        top: 42px;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        max-width: 110px;
        margin: 0;
        font-size: 11px;
    }
    .s07-viewer .control .color-box .box:first-child .d { left: 0; transform: none; }
    .s07-viewer .control .color-box .box:last-child .d { left: auto; right: 0; transform: none; }
    .s07-viewer .car-selection-container { margin-top: 12px; }
}

/* Let the configuration section follow the viewer and controls' content height. */
.st_ping:has(> .s07-viewer) {
    min-height: 0;
}
