/* Keep complete chart styles available on all handset variants. */
.gsp-price-history {
	position: relative;
	margin: 0 0 20px;
	padding: 16px;
	border: 1px solid #d7e1d9;
	border-radius: 8px;
	background: #fff;
}

.gsp-price-history h3 {
	margin: 0 0 10px;
	font-size: 1.15rem;
	text-align: center;
}

.gsp-price-history p {
	margin: 0 auto 12px;
	max-width: 650px;
	color: #59665e;
	font-size: 1.035rem;
	line-height: 1.55;
	text-align: center;
}

.gsp-price-history p.gsp-price-history__intro {
	margin-bottom: 0;
}

.gsp-price-history p strong {
	color: #287d3c;
	text-transform: capitalize;
}

.gsp-price-history--average p strong {
	color: #a66d00;
}

.gsp-price-history--high p strong {
	color: #c43b3b;
}

.gsp-price-history__chart {
	display: block;
	width: 100%;
	height: auto;
	max-height: 260px;
}

.gsp-price-history__range-chart {
	display: block;
	width: 100%;
	max-width: 560px;
	height: auto;
	margin: 0 auto;
}

.gsp-price-history__band--low {
	fill: #69b578;
}

.gsp-price-history__band--average {
	fill: #e2ad49;
}

.gsp-price-history__band--high {
	fill: #d66565;
}

.gsp-price-history__bar-outline {
	fill: none;
	stroke: #526158;
	stroke-width: 1.25;
}

.gsp-price-history__current-line {
	stroke: #17251b;
	stroke-width: 1.5;
}

.gsp-price-history__current-point {
	fill: #fff;
	stroke: #17251b;
	stroke-width: 2;
}

.gsp-price-history__current-label {
	fill: #17251b;
	font-size: 14px;
	font-weight: 400;
}

.gsp-price-history__end-price {
	fill: #59665e;
	font-size: 14px;
	font-weight: 400;
	dominant-baseline: middle;
}

.gsp-price-history__chart-separator {
	margin: 18px 0 12px;
	border-top: 1px solid #e1e7e2;
}

.gsp-price-history__axis {
	stroke: #7b8980;
	stroke-width: 1.25;
}

.gsp-price-history__grid {
	stroke: #e4e9e5;
	stroke-width: 1;
}

.gsp-price-history__tick {
	fill: #59665e;
	font-size: 11px;
}

.gsp-price-history__line {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 3;
}

.gsp-price-history__line--lowest {
	stroke: #3c9652;
}

.gsp-price-history__line--average {
	stroke: #6b7280;
	stroke-dasharray: 7 5;
}

.gsp-price-history__point {
	stroke: #fff;
	stroke-width: 1.5;
	opacity: 0;
	cursor: default;
	pointer-events: all;
}

.gsp-price-history__point--lowest {
	fill: #3c9652;
}

.gsp-price-history__point--average {
	fill: #6b7280;
}

.gsp-price-history__point:hover,
.gsp-price-history__point:focus {
	opacity: 1;
	outline: none;
}

.gsp-price-history__tooltip {
	position: absolute;
	z-index: 3;
	max-width: 260px;
	padding: 7px 10px;
	border-radius: 5px;
	color: #fff;
	background: #263329;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
	font-size: 0.8rem;
	line-height: 1.35;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, calc(-100% - 8px));
	transition: opacity 0.1s ease;
}

.gsp-price-history__tooltip.is-visible {
	opacity: 1;
}

.gsp-price-history figcaption {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
	margin-top: 6px;
	font-size: 0.85rem;
}

.gsp-price-history__key::before {
	display: inline-block;
	width: 20px;
	height: 3px;
	margin: 0 7px 3px 0;
	background: #3c9652;
	content: "";
}

.gsp-price-history__key--average::before {
	background: repeating-linear-gradient(90deg, #6b7280 0 6px, transparent 6px 10px);
}

.gsp-deal-scatter {
	position: relative;
	margin: 0 0 20px;
	padding: 16px;
	border: 1px solid #d7e1d9;
	border-radius: 8px;
	background: #fff;
}

.gsp-deal-scatter h3 {
	margin: 0 0 10px;
	font-size: 1.15rem;
	text-align: center;
}

.gsp-deal-scatter__intro {
	margin: 0 auto 12px;
	max-width: 650px;
	color: #59665e;
	font-size: 1.035rem;
	text-align: center;
}

.gsp-deal-scatter__chart {
	display: block;
	width: 100%;
	height: auto;
}

.gsp-deal-scatter__grid {
	stroke: #e4e9e5;
	stroke-width: 1;
}

.gsp-deal-scatter__axis {
	stroke: #718078;
	stroke-width: 1.5;
}

.gsp-deal-scatter__tick {
	fill: #59665e;
	font-size: 12px;
}

.gsp-deal-scatter__label {
	fill: #35443a;
	font-size: 13px;
	font-weight: 650;
}

.gsp-deal-scatter__point {
	stroke: #fff;
	stroke-width: 1.5;
	opacity: 0.62;
	cursor: pointer;
	transition: opacity .15s ease, stroke-width .15s ease;
}

.gsp-deal-scatter__point:hover,
.gsp-deal-scatter__point:focus,
.gsp-deal-scatter .ce-deal-card-link:focus .gsp-deal-scatter__point {
	opacity: 1;
	stroke: #1f2922;
	stroke-width: 2;
	outline: none;
}

.gsp-deal-scatter__point--best {
	stroke: #1f2922;
	stroke-width: 2.5;
	opacity: 1;
}

.gsp-deal-scatter__deal-label {
	fill: #263329;
	font-size: 11px;
	font-weight: 650;
	pointer-events: none;
}

.gsp-deal-scatter__tooltip {
	position: absolute;
	z-index: 3;
	width: max-content;
	max-width: min(360px, calc(100% - 16px));
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	color: #fff;
	background: #263329;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
	font-size: 0.82rem;
	line-height: 1.35;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.1s ease;
}

.gsp-deal-scatter__tooltip table {
	margin: 0;
	border: 0;
	border-collapse: collapse;
	color: inherit;
	font: inherit;
}

.gsp-deal-scatter__tooltip th,
.gsp-deal-scatter__tooltip td {
	padding: 5px 7px;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	vertical-align: top;
	text-align: left;
}

.gsp-deal-scatter__tooltip tr:last-child th,
.gsp-deal-scatter__tooltip tr:last-child td {
	border-bottom: 0;
}

.gsp-deal-scatter__tooltip th {
	color: #bfe3c8;
	font-weight: 650;
	white-space: nowrap;
}

.gsp-deal-scatter__tooltip.is-visible {
	opacity: 1;
}

.gsp-deal-scatter__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 7px 16px;
	margin-top: 8px;
	font-size: 0.82rem;
}

.gsp-deal-scatter__legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.gsp-deal-scatter__legend i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--deal-colour);
}

@media (max-width: 640px) {
	.gsp-price-history,
	.gsp-deal-scatter {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.gsp-price-history__chart,
	.gsp-deal-scatter__chart {
		width: 620px;
		max-width: none;
	}

	.gsp-price-history__chart {
		height: 190px;
		max-height: none;
	}

	.gsp-deal-scatter__chart {
		height: 370px;
	}
}

