/*
Theme Name: MiltonCAT
Theme URI: https://miltoncat.com
Description: GeneratePress child theme for MiltonCAT. Ships the fully-custom equipment detail templates for CPC (new_equipment) and DSF (used_equipment) Caterpillar listings. The detail layout, tabs, gallery, and inquiry forms live here as theme-override single-*.php templates; the utility bar, nav, and footer come from GeneratePress.
Author: MiltonCAT / Getfused
Author URI: https://getfused.com
Template: generatepress
Version: 1.1.0
License: Proprietary
Text Domain: miltoncat-gp
*/

/*
 * ============================================================================
 *  THIS FILE IS SHARED. Two teams write here.
 * ----------------------------------------------------------------------------
 *  ABOVE this block - the WordPress theme header. Getfused-managed; WordPress
 *  requires it and the release script rewrites the Version line. Leave it.
 *
 *  BELOW the marker - MiltonCAT site developers. Yours. A Getfused deploy
 *  never writes this file, so anything you add here is safe.
 *
 *  This is also the right place to restyle the equipment detail pages.
 *  GeneratePress enqueues this file as "generate-child", which prints AFTER
 *  assets/css/equipment-detail.css, so a plain same-specificity rule here
 *  beats one there - you do not need !important, and you should not edit
 *  equipment-detail.css itself (it is overwritten on every deploy).
 *
 *  Full ownership map: _OWNERSHIP.md in this directory.
 * ============================================================================
 */

/* ============================================================================
 *  SITE CUSTOMIZATIONS - YOUR CODE GOES BELOW THIS LINE
 * ============================================================================ */

/* --- Relocated 2026-08-25 from assets/css/equipment-detail.css --------------
   These ten rules had been edited directly into the Getfused-managed equipment
   stylesheet, where every deploy would have silently reverted them. They are
   unchanged in effect - this file loads later, so they still win. Six strip
   focus/hover borders; the last two restyle the buttons (weight 700 -> 400,
   square corners, larger text, ink-on-hover primary).
   -------------------------------------------------------------------------- */
body .mc-detail .latest-model-cta {
    margin: 16px 0;
}

@media (min-width: 1025px) {
    body .mc-detail .detail-grid.is-rail-sticky .rail {
        grid-row: 1;
    }
}

.gallery__main .slick-slide {
	height: auto;
}

.video-facade:hover,
.video-facade:focus { border-width: 0px !important; }

.mc-detail .gallery__thumb:hover { border-width: 0 !important; }

.mc-detail .tabs__tab:hover,
.mc-detail .tabs__tab:focus {
	border-width: 0px 0px 3px 0px !important;
	border-bottom: 3px solid var(--cat-yellow);
}

.mc-detail .accordion__trigger:focus,
.mc-detail .accordion__trigger:hover { border-width: 0px !important; }

.mc-detail .unit-toggle button:hover,
.mc-detail .unit-toggle button:focus { border-width: 0 !important; }

.mc-detail button.pill-toggle:hover,
.mc-detail button.pill-toggle:focus { border-width: 1px !important; color: var(--ink); }

.mc-detail .btn {
	font-weight: 400;
	border-radius: 0;
	font-size: 1.125rem;
}

.mc-detail .btn--primary:hover { background: var(--ink); color: var(--white); }

/* --- Site styles ---------------------------------------------------------- */
.ratio-1-1 img {
	aspect-ratio: 1/1;
	object-fit: cover;
}

.ratio-contain {
	object-fit: contain!important;
}

.mega-menu-item:last-of-type {
	margin-right: 0!important;
}

.fwpl-btn,
input[type=button],
button,
.fwpl-btn:hover,
.fwpl-btn:focus,
input[type=button]:hover,
input[type=button]:focus,
button:hover,
button:focus {
	text-decoration: none!important;
}

.elementor-kit-8 .facetwp-reset {
    background-color: transparent;
}
.elementor-kit-8 .facetwp-reset:hover,
.elementor-kit-8 .facetwp-reset:focus {
    background-color: #000!important;
}

.is-empty {
	display: none!important;
}

body .facetwp-input-wrap,
body .facetwp-search,
body .facetwp-dropdown {
	width: 100%;
}
body .facet-wrap h6 {
	margin-bottom: 6px;
}
body .facetwp-facet {
    margin-bottom: 18px;
}
/* body .fwpl-btn {
	background-color: var(--e-global-color-primary);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--e-global-color-text);
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #0000;
    border-radius: 0 0 0 0;
	padding: 11px 32px 9px;
}
body .fwpl-btn:hover,
body .fwpl-btn:focus {
	background-color: var(--e-global-color-text);
    color: var(--e-global-color-d6cea4e);
} */
body .facetwp-pager {
	margin-top: 1rem;
}
body .facetwp-page {
	padding: 8px 12px;
	background-color: #f1f1f1;
}
body .facetwp-page.active,
body .facetwp-page:hover,
body .facetwp-page:focus {
	background-color: #FFCC00;
}
body .facetwp-template .fwpl-result > .fwpl-row {
	height: 100%;
}

.facetwp-type-hierarchy_select select:not(:last-of-type) {
	margin-bottom: 8px;
}

.facetwp-hierarchy_select.is-disabled {
	display: none;
}

body .facetwp-number.facetwp-number-max,
body .facetwp-number.facetwp-number-min {
	width: calc(50% - 26px);
	margin-right: 6px;
}
body input.facetwp-submit {
    padding: 4px 9px !important;
    font-size: 1rem !important;
}
body .facetwp-type-number_range {
	display: flex;
}

.equipment-title h3 {
	margin-bottom: .5rem;
}

.equipment-title a {
	color: var(--mc-ink);
	text-decoration: none;
}

.equipment-title a:is(:hover,:focus) {
	text-decoration: underline;
}

.used-equipment-location {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.equipment-card-btn {
	display: flex;
	margin-top: 1rem;
}

.used-equipment-card h3,
.new-equipment-card h3 {
	margin-bottom: 1rem;
}
.used-equipment-card .used-price {
	font-size: 1.25rem;
	margin-bottom: .5rem;
}

.site-main.mc-listing {
	background-color:#fff!important;
}
