/* Arta – product price history chart */
.arta-pc-modal .modal-dialog { max-width: 720px; }
.arta-pc-modal .modal-content { border: 0; border-radius: 16px; overflow: hidden; }
@media (max-width: 575.98px) { .arta-pc-modal .modal-content { border-radius: 0; } }

.arta-pc-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 24px; border-bottom: 1px solid #ebecf0;
}
.arta-pc-close { background: transparent; border: 0; padding: 0; display: flex; cursor: pointer; }

.arta-pc-body { padding: 20px 24px 24px; }
@media (max-width: 575.98px) { .arta-pc-body { padding: 16px; } }

.arta-pc-label { font-size: 13px; color: #6b778c; margin: 0 0 8px; }

.arta-pc-variants { margin-bottom: 18px; }

.arta-pc-chips {
	display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
	scrollbar-width: thin;
}
.arta-pc-chips button {
	flex: 0 0 auto; white-space: nowrap; font: inherit; font-size: 13px;
	padding: 7px 14px; border-radius: 999px; cursor: pointer;
	border: 1px solid #dfe1e6; background: #fff; color: #253858;
	transition: border-color .15s, background-color .15s, color .15s;
}
.arta-pc-chips button:hover { border-color: #ee4562; }
.arta-pc-chips button.is-active { border: 2px solid #172b4d; padding: 6px 13px; background: #fdecef; color: #c8223f; font-weight: 700; }

.arta-pc-stats {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px;
}
.arta-pc-stats > div { border: 1px solid #ebecf0; border-radius: 10px; padding: 10px 12px; min-width: 0; }
.arta-pc-stats span { display: block; font-size: 12px; color: #6b778c; margin-bottom: 4px; }
.arta-pc-stats strong { display: block; font-size: 14px; color: #253858; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 575.98px) {
	.arta-pc-stats strong { font-size: 12px; white-space: normal; line-height: 1.6; }
	.arta-pc-stats > div { padding: 8px; }
}

.arta-pc-chart { position: relative; min-height: 230px; }
.arta-pc-canvas { width: 100%; direction: ltr; }
.arta-pc-svg { display: block; width: 100%; height: auto; touch-action: pan-y; user-select: none; }
.arta-pc-svg .grid { stroke: #ebecf0; stroke-width: 1; }
.arta-pc-svg .axis { fill: #8993a4; font-size: 11px; font-family: inherit; direction: rtl; unicode-bidi: embed; }
.arta-pc-svg .line { fill: none; stroke: #ee4562; stroke-width: 2; stroke-linejoin: round; }
.arta-pc-svg .off-band { fill: #f4f5f7; }
.arta-pc-svg .off-line { stroke: #a5adba; stroke-width: 2; stroke-dasharray: 4 4; }
.arta-pc-svg .guide { stroke: #c1c7d0; stroke-width: 1; stroke-dasharray: 3 3; }
.arta-pc-svg .dot { fill: #fff; stroke: #ee4562; stroke-width: 2.5; }
.arta-pc-svg .dot-off { stroke: #a5adba; }

.arta-pc-tooltip {
	position: absolute; z-index: 2; pointer-events: none; min-width: 130px;
	background: #253858; color: #fff; border-radius: 10px; padding: 8px 12px;
	font-size: 12px; line-height: 1.7; text-align: center; white-space: nowrap;
	box-shadow: 0 6px 16px rgba(9, 30, 66, .2);
}
.arta-pc-tooltip .tt-date { color: #c1c7d0; }
.arta-pc-tooltip .tt-price { font-size: 13px; font-weight: 700; }
.arta-pc-tooltip .tt-price.is-off { color: #ffb3c0; }
.arta-pc-tooltip .tt-old { display: flex; gap: 6px; justify-content: center; align-items: center; color: #c1c7d0; }
.arta-pc-tooltip .tt-old span { background: #ee4562; color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; }

.arta-pc-state {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	text-align: center; font-size: 13px; color: #6b778c; background: rgba(255, 255, 255, .85); padding: 16px;
}
.arta-pc-state[hidden] { display: none; }

.arta-pc-legend { display: flex; gap: 18px; margin-top: 10px; font-size: 12px; color: #6b778c; }
.arta-pc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.arta-pc-legend .dot { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.arta-pc-legend .dot-price { background: #ee4562; }
.arta-pc-legend .dot-off { background: repeating-linear-gradient(90deg, #a5adba 0 4px, transparent 4px 7px); }
.arta-pc-svg .mark { fill: #ee4562; }

/* three stock states: instock (red line), outofstock (grey), must_contact_us (amber) */
.arta-pc-svg .contact-band { fill: #fef6e7; }
.arta-pc-svg .contact-line { stroke: #f0b646; stroke-width: 2; stroke-dasharray: 4 4; }
.arta-pc-svg .dot-contact { stroke: #f0b646; }
.arta-pc-svg .mark-off { fill: #a5adba; }
.arta-pc-svg .mark-contact { fill: #f0b646; }
.arta-pc-tooltip .tt-price.is-contact { color: #ffd88a; }
.arta-pc-legend .dot-contact { background: repeating-linear-gradient(90deg, #f0b646 0 4px, transparent 4px 7px); }
.arta-pc-stats strong.is-outofstock { color: #6b778c; }
.arta-pc-stats strong.is-must_contact_us { color: #c58a12; }
.arta-pc-state.is-soft { background: transparent; inset: auto 0 40% 0; pointer-events: none; }
.arta-pc-legend { flex-wrap: wrap; }

/* sub-header: caption + "last price update" badge */
.arta-pc-subhead {
	display: flex; align-items: center; justify-content: space-between;
	flex-wrap: wrap; gap: 10px; margin-bottom: 14px;
}
.arta-pc-subhead .arta-pc-label { font-size: 14px; color: #42526e; }
.arta-pc-updated {
	display: inline-flex; align-items: center; gap: 10px;
	background: #fff8e6; border: 1px solid #f5d27a; border-radius: 999px;
	padding-inline-start: 14px; padding-inline-end: 14px; /* RTL: text on the right, icon on the left */
	padding-top: 4px; padding-bottom: 4px;
	font-size: 13px; color: #253858; line-height: 1.6;
}
.arta-pc-updated[hidden] { display: none; }
.arta-pc-updated strong { color: #c8223f; font-weight: 700; }
.arta-pc-updated-sep { width: 1px; align-self: stretch; margin: 4px 0; background: #e6c56a; }
.arta-pc-updated-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: 8px; background: #f8c33c;
}
.arta-pc-stats > div { box-shadow: 0 1px 3px rgba(9, 30, 66, .06); }
@media (max-width: 575.98px) {
	.arta-pc-updated { font-size: 12px; }
	.arta-pc-updated-icon { width: 28px; height: 28px; }
	.arta-pc-updated-icon svg { width: 17px; height: 17px; }
}
