/* -----------------------------------------------------------------------
 * aphis-cop-display.css
 * ----------------------------------------------------------------------- */

/* Positioning context — covers bs-swiper (.product-card) and Bootscore category (.card.product) */
.product-card,
.card.product {
	position: relative;
}

/* Carousel-caption-style overlay at the bottom of the image.
 * JS sets bottom = .card-body height so the overlay sits at the image boundary. */
.aphis-cop-ships-to {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 30%; /* fallback until JS runs */
	background: rgba(0, 0, 0, 0.5);
	padding: 4px 10px;
	border-radius: 0 0 5px 5px;
	color: #fff;
	font-size: 0.65rem;
	line-height: 1.4;
	text-align: center;
	z-index: 10;
	pointer-events: none;
	opacity: 0; /* hidden until JS positions and reveals it */
}

.aphis-cop-ships-to strong {
	color: #fff;
}

@media (min-width: 576px) {
	.aphis-cop-ships-to { font-size: 0.72rem; }
}

@media (min-width: 768px) {
	.aphis-cop-ships-to { font-size: 0.78rem; }
}

@media (min-width: 992px) {
	.aphis-cop-ships-to { font-size: 0.85rem; }
}

/* -----------------------------------------------------------------------
 * Single product page
 * ----------------------------------------------------------------------- */

.aphis-cop-single-states {
	margin: 0.75rem 0 1.25rem;
	padding: 0.85rem 1.25rem;
	background: #e8f4f7;
	border-left: 5px solid #4a90a4;
	border-radius: 0 4px 4px 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.aphis-cop-single-states .aphis-cop-states-label {
	display: block;
	font-weight: 700;
	font-size: 0.85rem;
	color: #2d6a7f;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 0.5rem;
}

.aphis-cop-single-states .aphis-cop-states-list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.92rem;
	line-height: 1.8;
	color: #222;
	columns: 2;
}

@media (min-width: 768px) {
	.aphis-cop-single-states .aphis-cop-states-list { columns: 3; }
}

@media (min-width: 992px) {
	.aphis-cop-single-states .aphis-cop-states-list { columns: 4; }
}

@media (min-width: 1200px) {
	.aphis-cop-single-states .aphis-cop-states-list { columns: 5; }
}

.aphis-cop-single-states .aphis-cop-states-summary {
	font-size: 1rem;
	font-weight: 600;
	color: #222;
}

/* Admin preview reuses the single-states style */
.aphis-cop-preview-wrap .aphis-cop-single-states {
	margin-top: 0;
}
