/* SRP model tiles: the "Shop by model" / "Shop by make" carousel between the SRP search field
   and the feature chips. Every class is dn-smt- prefixed so nothing here reaches the theme's own
   rules, and text colours are pinned because the theme paints a:hover red. Nissan and model names
   must stay black, grey or white; red is only ever the selected border. */

.dn-smt {
	display: block;
	margin: 14px 0 0;
	font-family: inherit;
	color: #111;
}

/* --- Heading row + arrows --- */

.dn-smt-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
}

.dn-smt-heading,
.dn-smt .dn-smt-heading {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .02em;
	color: #111;
	text-transform: none;
}

.dn-smt-arrows {
	display: flex;
	gap: 8px;
	flex: 0 0 auto;
}

.dn-smt-arrows[hidden] {
	display: none;
}

.dn-smt-arrow {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #d9dadd;
	border-radius: 22px;
	background: #fff;
	color: #111;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color .12s ease, box-shadow .12s ease;
}

.dn-smt-arrow:hover {
	border-color: #adafb3;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.dn-smt-arrow:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

.dn-smt-arrow[disabled] {
	opacity: .35;
	cursor: default;
	box-shadow: none;
}

/* --- Tile track --- */

.dn-smt-track,
.dn-smt ul.dn-smt-track {
	list-style: none;
	margin: 0;
	padding: 0 0 4px;
	display: flex;
	gap: 12px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.dn-smt-track::-webkit-scrollbar {
	display: none;
}

.dn-smt-item,
.dn-smt .dn-smt-item {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 0 0 auto;
	scroll-snap-align: start;
	background: none;
}

.dn-smt-item:before,
.dn-smt-item:after {
	content: none;
}

.dn-smt-tile,
.dn-smt a.dn-smt-tile {
	box-sizing: border-box;
	width: 132px;
	height: 118px;
	padding: 8px;
	border: 1px solid #d9dadd;
	border-radius: 10px;
	background: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	text-decoration: none;
	color: #111;
	transition: border-color .12s ease, box-shadow .12s ease;
}

.dn-smt-tile:hover,
.dn-smt a.dn-smt-tile:hover {
	border-color: #adafb3;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
	color: #111;
	text-decoration: none;
}

.dn-smt-tile:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

/* Red is reserved for this one border. */
.dn-smt-tile.is-selected,
.dn-smt a.dn-smt-tile.is-selected {
	border: 2px solid #c3002f;
	padding: 7px;
}

.dn-smt-tile-all,
.dn-smt a.dn-smt-tile-all {
	gap: 4px;
}

.dn-smt-total {
	font-family: inherit;
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	color: #111;
}

.dn-smt-all-label {
	font-size: 14px;
	font-weight: 600;
	color: #111;
	text-align: center;
}

.dn-smt-img {
	width: 104px;
	height: 42px;
	max-width: 100%;
	object-fit: contain;
	display: block;
}

.dn-smt-logo {
	width: 68px;
	height: 68px;
	max-width: 100%;
	object-fit: contain;
	display: block;
}

.dn-smt-name {
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.15;
	color: #111;
	text-align: center;
}

/* Logo-less make: the name carries the tile so it is never blank. */
.dn-smt-make-name {
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.15;
	color: #111;
	text-align: center;
}

.dn-smt-count {
	font-size: 12px;
	line-height: 1.3;
	color: #55585e;
	text-align: center;
}

/* --- Second row: models of the picked make --- */

.dn-smt-pills-wrap {
	margin-top: 10px;
}

.dn-smt-pills-wrap[hidden] {
	display: none;
}

.dn-smt-pills-label {
	font-size: 13px;
	font-weight: 600;
	color: #55585e;
	margin-bottom: 8px;
}

.dn-smt-pills,
.dn-smt ul.dn-smt-pills {
	list-style: none;
	margin: 0;
	padding: 0 0 4px;
	display: flex;
	gap: 8px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.dn-smt-pills::-webkit-scrollbar {
	display: none;
}

.dn-smt-pills li {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 0 0 auto;
	background: none;
}

.dn-smt-pills li:before,
.dn-smt-pills li:after {
	content: none;
}

.dn-smt-pill,
.dn-smt a.dn-smt-pill {
	box-sizing: border-box;
	height: 44px;
	padding: 0 16px;
	border: 1px solid #d9dadd;
	border-radius: 22px;
	background: #fff;
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: #111;
	white-space: nowrap;
	transition: border-color .12s ease, box-shadow .12s ease;
}

.dn-smt-pill:hover,
.dn-smt a.dn-smt-pill:hover {
	border-color: #adafb3;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
	color: #111;
	text-decoration: none;
}

.dn-smt-pill:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

.dn-smt-pill.is-selected,
.dn-smt a.dn-smt-pill.is-selected {
	border: 2px solid #c3002f;
	padding: 0 15px;
}

.dn-smt-pill-name {
	font-size: 14px;
	font-weight: 600;
	color: #111;
}

.dn-smt-pill-count {
	font-size: 12px;
	color: #55585e;
}

/* The stable node the JS swaps the row into when the sidebar condition changes. */
.dn-smt-root {
	display: block;
}

/* Dim while an ajax refresh or a row swap is in flight, same as the feature chips. */
.dn-smt-root.is-locked,
.dn-smt-root.is-swapping {
	opacity: .45;
	pointer-events: none;
}

.dn-smt-root.is-swapping {
	transition: opacity .12s ease;
}

@media (prefers-reduced-motion: reduce) {
	.dn-smt-root.is-swapping {
		transition: none;
	}
}

/* --- Phone: native scroll with a tile peeking, no arrows --- */

@media (max-width: 600px) {
	.dn-smt-arrows {
		display: none;
	}

	.dn-smt-heading,
	.dn-smt .dn-smt-heading {
		font-size: 18px;
	}

	/* Proximity, not mandatory: 29 make tiles fight momentum scrolling under mandatory snap. */
	.dn-smt-track,
	.dn-smt ul.dn-smt-track {
		padding-right: 24px;
	}

	.dn-smt-tile,
	.dn-smt a.dn-smt-tile {
		width: 124px;
		height: 112px;
	}

	.dn-smt-pills,
	.dn-smt ul.dn-smt-pills {
		padding-right: 24px;
	}
}
