/* HOLT Truck Centers Core: structural rules only. The theme owns the look. */

.htc-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* hidden must win over any display the theme sets on grids, cards and panels */
.htc-inv [hidden],
.htc-inv-panel [hidden],
.htc-loc [hidden],
.htc-detail [hidden],
.htc-inv-grid[hidden],
.htc-inv-empty[hidden],
.htc-loc-card[hidden] {
	display: none !important;
}

.htc-inv-grid,
.htc-inv-chips,
.htc-inv-checks,
.htc-inv-card__meta,
.htc-detail__thumbs {
	list-style: none;
	margin: 0;
	padding: 0;
}

.htc-inv-card__photo img,
.htc-detail__main img,
.htc-detail__thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.htc-inv-card__photo {
	position: relative;
	display: block;
}

/* stroke icons used by the cards, chips, pager, toggle and search */
.htc-inv svg,
.htc-inv-panel svg,
.htc-carousel__arrow svg {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -0.15em;
}

.htc-inv.is-loading .htc-inv-grid {
	opacity: 0.5;
	transition: opacity 0.2s;
}

.htc-inv-panel__apply.is-loading {
	opacity: 0.7;
}

.htc-carousel {
	position: relative;
}

/* editor preview of the carousel wrapper */
.editor-styles-wrapper .htc-carousel-editor {
	border: 1px dashed #999;
	padding: 8px;
}

.editor-styles-wrapper .htc-carousel-editor__label {
	font-size: 12px;
	color: #666;
	margin: 0 0 8px;
}

.editor-styles-wrapper .htc-carousel-editor__slides { display: block; }
.editor-styles-wrapper .htc-carousel-editor__slides > .wp-block-cover,
.editor-styles-wrapper .htc-carousel-editor__slides > .block-editor-block-list__block { width: 100%; max-width: none; margin: 0 0 12px; }
.editor-styles-wrapper .htc-carousel-editor__slides > .wp-block-cover.alignfull { margin-left: 0; margin-right: 0; }
