.dpp-monitor {
	border: 1px solid var(--dpp-primary, currentColor);
	margin: 24px 0;
	padding: 16px;
	max-width: var(--dpp-monitor-max-width, none);
}

.dpp-monitor--compact {
	padding: 12px;
}

.dpp-monitor--compact .dpp-monitor__summary p {
	margin-bottom: 4px;
}

.dpp-monitor--compact .dpp-alert-form {
	gap: 6px;
}

.dpp-monitor__title {
	font-size: 1.2rem;
	margin: 0 0 12px;
}

.dpp-monitor__summary p {
	margin: 0 0 8px;
}

.dpp-alert-form {
	display: grid;
	gap: 8px;
	max-width: 420px;
}

.dpp-alert-form input {
	max-width: 100%;
}

.dpp-alert-form__button {
	justify-self: start;
	background-color: var(--dpp-primary, currentColor);
	border-color: var(--dpp-primary, currentColor);
	color: var(--dpp-button-text, #fff);
}

.dpp-alert-form__button:hover,
.dpp-alert-form__button:focus {
	background-color: var(--dpp-accent, currentColor);
	border-color: var(--dpp-accent, currentColor);
	color: var(--dpp-button-text, #fff);
}

.dpp-monitor__message {
	font-weight: 600;
	margin: 0 0 12px;
}

.dpp-price-chart {
	border: 1px solid var(--dpp-primary, currentColor);
	margin: 16px 0;
	padding: 14px;
}

.dpp-price-chart__header {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 10px;
}

.dpp-price-chart__header h3 {
	font-size: 1rem;
	margin: 0;
}

.dpp-price-chart__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	font-size: 0.9rem;
}

.dpp-price-chart__svg {
	display: block;
	width: 100%;
	height: 220px;
	overflow: visible;
}

.dpp-price-chart__grid {
	stroke: currentColor;
	stroke-opacity: 0.18;
	stroke-width: 1;
}

.dpp-price-chart__line {
	fill: none;
	stroke: var(--dpp-chart-line, currentColor);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.dpp-price-chart__point {
	fill: var(--dpp-chart-point, currentColor);
	stroke: Canvas;
	stroke-width: 2;
}

.dpp-price-chart__label {
	fill: currentColor;
	font-size: 12px;
}

.dpp-price-chart__axis-labels {
	display: flex;
	justify-content: space-between;
	font-size: 0.85rem;
	opacity: 0.8;
	padding-left: 56px;
	padding-right: 20px;
}

.dpp-price-chart__empty {
	margin: 12px 0;
	font-style: italic;
}

.dpp-price-history-table {
	margin-top: 18px;
}

.dpp-price-chart--bar .dpp-price-chart__bar {
	fill: var(--dpp-chart-bar, currentColor);
	opacity: 0.82;
}

.dpp-price-chart--bar .dpp-price-chart__bar:hover,
.dpp-price-chart__point:hover {
	opacity: 1;
}

.dpp-lowest-price-message {
	color: var(--dpp-low-price, currentColor);
	font-size: 0.92rem;
	font-weight: 600;
	margin: 6px 0 8px;
}


.dpp-price-history-table-wrap {
	max-width: 100%;
	overflow-x: auto;
}

.dpp-inline-checks {
	margin-top: 8px;
}

@media (max-width: 640px) {
	.dpp-price-chart {
		padding: 10px;
	}

	.dpp-price-chart__header {
		display: block;
	}

	.dpp-price-chart__stats {
		margin-top: 8px;
	}

	.dpp-price-chart__svg {
		height: 190px;
	}

	.dpp-price-chart__axis-labels {
		padding-left: 0;
		padding-right: 0;
	}

	.dpp-price-history-table thead {
		display: none;
	}

	.dpp-price-history-table,
	.dpp-price-history-table tbody,
	.dpp-price-history-table tr,
	.dpp-price-history-table td {
		display: block;
		width: 100%;
	}

	.dpp-price-history-table tr {
		border-bottom: 1px solid rgba(0, 0, 0, 0.12);
		padding: 8px 0;
	}

	.dpp-price-history-table td {
		display: grid;
		grid-template-columns: minmax(110px, 42%) 1fr;
		gap: 10px;
		padding: 6px 0;
		text-align: right;
	}

	.dpp-price-history-table td::before {
		content: attr(data-label);
		font-weight: 600;
		text-align: left;
	}
}
