/**
 * Frontend styles for JSP Discontinued Products
 */

/* Notification Banner */
.jsp-discontinued-banner {
	background-color: #fffbeb;
	border: 1px solid #fde68a;
	border-left: 5px solid #d97706;
	border-radius: 8px;
	padding: 18px 20px;
	margin: 24px 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	color: #1f2937;
	font-family: inherit;
}

.jsp-discontinued-banner__header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 6px;
}

.jsp-discontinued-banner__icon {
	color: #d97706;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	padding-top: 2px;
}

.jsp-discontinued-banner__titles {
	flex: 1;
}

.jsp-discontinued-banner__title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	color: #92400e;
	line-height: 1.35;
}

.jsp-discontinued-banner__message {
	margin: 4px 0 0 0;
	font-size: 0.95rem;
	color: #78350f;
	line-height: 1.45;
}

/* Products List Inside Banner */
.jsp-discontinued-banner__products {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 16px;
}

.jsp-discontinued-banner__item {
	display: flex;
	align-items: center;
	gap: 14px;
	background-color: #ffffff;
	border: 1px solid #fed7aa;
	border-radius: 6px;
	padding: 10px 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.jsp-discontinued-banner__item:hover {
	border-color: #f59e0b;
	box-shadow: 0 4px 6px -1px rgba(217, 119, 6, 0.08), 0 2px 4px -1px rgba(217, 119, 6, 0.04);
	transform: translateY(-1px);
}

.jsp-discontinued-banner__thumb {
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f3f4f6;
}

.jsp-discontinued-banner__thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jsp-discontinued-banner__item-details {
	flex: 1;
	min-width: 0;
}

.jsp-discontinued-banner__item-title {
	display: block;
	font-weight: 600;
	color: #1f2937;
	text-decoration: none;
	font-size: 0.95rem;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jsp-discontinued-banner__item-title:hover,
.jsp-discontinued-banner__item-title:focus {
	color: #d97706;
	text-decoration: underline;
}

.jsp-discontinued-banner__item-price {
	margin-top: 3px;
	font-size: 0.9rem;
	color: #4b5563;
	font-weight: 500;
}

.jsp-discontinued-banner__item-price del {
	color: #9ca3af;
	font-weight: normal;
	margin-right: 4px;
}

.jsp-discontinued-banner__item-price ins {
	text-decoration: none;
	color: #111827;
	font-weight: 600;
}

.jsp-discontinued-banner__item-action {
	flex-shrink: 0;
}

.jsp-discontinued-banner__button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	background-color: #d97706 !important;
	color: #ffffff !important;
	border-radius: 4px;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none !important;
	border: 1px solid #d97706;
	transition: background-color 0.2s ease, border-color 0.2s ease;
	line-height: 1.4;
}

.jsp-discontinued-banner__button:hover,
.jsp-discontinued-banner__button:focus {
	background-color: #b45309 !important;
	border-color: #b45309 !important;
	color: #ffffff !important;
}

/* Catalog Loop Badge */
.jsp-discontinued-loop-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 9;
	background: rgba(31, 41, 55, 0.88);
	backdrop-filter: blur(4px);
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	padding: 4px 9px;
	border-radius: 4px;
	line-height: 1.2;
	pointer-events: none;
}

/* Responsive */
@media (max-width: 580px) {
	.jsp-discontinued-banner__item {
		flex-wrap: wrap;
	}

	.jsp-discontinued-banner__item-action {
		width: 100%;
		margin-top: 4px;
	}

	.jsp-discontinued-banner__button {
		width: 100%;
		justify-content: center;
		text-align: center;
	}
}

/* Delivery Element Visibility */
body.product-is-discontinued .delivery,
body.discontinued-variation-selected .delivery,
.delivery.jsp-discontinued-hide {
	display: none !important;
}

