/* Logo 左右滑動容器 */
.car-logo-scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    gap: 30px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;

    padding: 10px 5px 18px !important;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* 每個 Logo 固定寬度，不能被壓縮 */
.car-logo-scroll figure {
    flex: 0 0 90px !important;
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    margin: 0 !important;
}

/* Logo 圖片尺寸 */
.car-logo-scroll figure img {
    display: block !important;
    width: 90px !important;
    height: 65px !important;
    object-fit: contain !important;
}

/* 防止第一個 Logo 被左側裁掉 */
.car-logo-scroll figure:first-child {
    margin-left: 0 !important;
}
/* 隱藏經銷商表單的送出按鈕 */
.wp-block-jetpack-contact-form.ecan-dealer-selector button.pushbutton-wide {
    display: none !important;
}

/* 隱藏送出按鈕上方的空白段落 */
.wp-block-jetpack-contact-form.ecan-dealer-selector p.contact-submit {
    display: none !important;
}
/* E-CAN 經銷商顯示區：取消內縮 */
#ecan-dealer-results {
    width: 90% !important;
    max-width: 1400px !important;
}

/* 取消動態載入內容的寬度限制 */
#ecan-dealer-results .ecan-dealer-content {
    width: 100% !important;
    max-width: none !important;
}

/* 讓經銷商欄列使用完整寬度 */
#ecan-dealer-results .wp-block-columns {
    width: 100% !important;
    max-width: none !important;
}

/* 取消 WordPress 群組的內容寬度限制 */
#ecan-dealer-results .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: none !important;
}
/* ==========================================
   E-CAN 經銷商選單
   深色 / 淺色模式相容修正
========================================== */

/* 1. 淺色模式：預設外觀 */
.ecan-dealer-selector select {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #dddddd !important;
    color-scheme: light;
}

/* 2. 淺色模式：下拉選項 */
.ecan-dealer-selector select option {
    background-color: #ffffff;
    color: #333333;
}

/* 3. 深色模式：支援常見的主題切換類別 */
body.dark-mode .ecan-dealer-selector select,
body.dark .ecan-dealer-selector select,
html.dark .ecan-dealer-selector select,
body[data-theme="dark"] .ecan-dealer-selector select,
html[data-theme="dark"] .ecan-dealer-selector select {
    background-color: #303036 !important;
    color: #ffffff !important;
    border-color: #555555 !important;
    color-scheme: dark;
}

/* 4. 深色模式：下拉選項 */
body.dark-mode .ecan-dealer-selector select option,
body.dark .ecan-dealer-selector select option,
html.dark .ecan-dealer-selector select option,
body[data-theme="dark"] .ecan-dealer-selector select option,
html[data-theme="dark"] .ecan-dealer-selector select option {
    background-color: #303036;
    color: #ffffff;
}

/* 5. 隱藏經銷商表單的送出按鈕 */
.ecan-dealer-selector button[type="submit"],
.ecan-dealer-selector input[type="submit"],
.ecan-dealer-selector button.pushbutton-wide {
    display: none !important;
}

/* 6. 避免表單多餘的間距 */
.ecan-dealer-selector p.contact-submit {
    display: none !important;
}
/* E-CAN 經銷商卡片連結顏色統一 */

/* 連結預設繼承卡片文字顏色 */
#ecan-dealer-results .ecan-dealer-content a,
#ecan-dealer-results .ecan-dealer-content a:visited {
    color: inherit !important;
    text-decoration: none !important;
}

/* 滑鼠移過連結時變成 E-CAN 藍色 */
#ecan-dealer-results .ecan-dealer-content a:hover {
    color: #1688c7 !important;
    text-decoration: none !important;
}