@charset "utf-8";
/* CSS Document */

/* Moved here from the DealerShark theme's style.css so the ribbon looks the same under any theme. The pages that print cards load it:
   search.php, used-cars.php, vehicle.php, the DealerShark home page, and the page builder's vehicles block (VehicleInventoryRibbon::stylesheet()). */

/*-------------------------------------------------------------------------------------------------
    Vehicle card ribbon - the diagonal band across the top-right corner of a card's photo

    ? Printed by VehicleInventoryRibbon::html() inside the photo's box (.result-picture on the search
    ? tiles and the carousels, .dp-el-picture on the page builder's vehicles block, .results-table-thumb
    ? on the table layout). That box is position: relative and clips its children, so the band is cut
    ? to the corner with no wrapper of its own. The box under it is a square the size of the corner;
    ? the text is the band, turned 45 degrees.

    ? Colours are the VehicleInventoryRibbon::$colors presets, white text on every one at a contrast of
    ? 4.5 or better. New is always green and Sale always red; the rest are for the dealership's own text.
-------------------------------------------------------------------------------------------------*/

.vehicle-ribbon {
	position: absolute;
	top: 0;
	right: 0;
	width: 120px;
	height: 120px;
	overflow: hidden;
	pointer-events: none;
	z-index: 2;
}

.vehicle-ribbon-text {
	position: absolute;
	display: block;
	top: 26px;
	right: -44px;
	width: 170px;
	height: 22px;
	line-height: 22px;
	transform: rotate(45deg);
	background: #263238;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.vehicle-ribbon-red .vehicle-ribbon-text { background: #c62828; }
.vehicle-ribbon-green .vehicle-ribbon-text { background: #2e7d32; }
.vehicle-ribbon-blue .vehicle-ribbon-text { background: #1565c0; }
.vehicle-ribbon-orange .vehicle-ribbon-text { background: #bf360c; }
.vehicle-ribbon-gold .vehicle-ribbon-text { background: #8a6100; }
.vehicle-ribbon-dark .vehicle-ribbon-text { background: #263238; }

/* A longer custom text steps the type down so it stays on the band */
.vehicle-ribbon-medium .vehicle-ribbon-text {
	font-size: 10.5px;
	letter-spacing: 0.04em;
}

.vehicle-ribbon-long .vehicle-ribbon-text {
	font-size: 9px;
	letter-spacing: 0.02em;
}

/* The thumbnail in the results table */
.vehicle-ribbon-small {
	width: 76px;
	height: 76px;
}

.vehicle-ribbon-small .vehicle-ribbon-text {
	top: 15px;
	right: -28px;
	width: 108px;
	height: 16px;
	line-height: 16px;
	font-size: 8px;
	letter-spacing: 0.03em;
}

.vehicle-ribbon-small.vehicle-ribbon-medium .vehicle-ribbon-text { font-size: 7px; }
.vehicle-ribbon-small.vehicle-ribbon-long .vehicle-ribbon-text { font-size: 6.5px; }
