/* ASP Product Promotions - front-end offer block.
   Class names are namespaced (asp-pp) so they never collide with the
   existing compatible-parts snippet. */

.asp-pp-offer {
	border: 1px solid #e3e6ea;
	border-radius: 6px;
	overflow: hidden;
	margin: 0 0 20px;
	background: #fff;
}

.asp-pp-offer__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	background: #f4f6f8;
	padding: 14px 16px;
}

.asp-pp-offer__heading {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.asp-pp-offer__label {
	color: #5d6c76;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .03em;
}

.asp-pp-offer__headline {
	font-weight: 700;
	font-size: 18px;
	font-family: Georgia, "Times New Roman", serif;
	color: #000;
}

.asp-pp-offer__toggle {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border: 1px solid #cfd4da;
	background: #fff;
	border-radius: 4px;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	color: var(--global-palette2, #1f3a5f);
}
.asp-pp-offer__toggle:hover { background: #edf7fa; }

.asp-pp-offer.is-collapsed .asp-pp-offer__body { display: none; }

.asp-pp-offer__support {
	margin: 0;
	padding: 12px 16px 0;
	color: #5d6c76;
	font-size: 14px;
}

.asp-pp-offer__list {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 4px 0;
}

/* Rows */
.asp-pp-row {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 16px;
	border-top: 1px solid #eef1f4;
}
.asp-pp-row:first-child { border-top: 0; }

.asp-pp-row__thumb img {
	width: 54px;
	height: 54px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.asp-pp-row__info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.asp-pp-row__name {
	font-weight: 700;
	font-size: 14px;
	color: #000;
	text-decoration: none;
}
.asp-pp-row__name:hover { text-decoration: underline; }

.asp-pp-row__desc { color: #7a8290; font-size: 13px; }

.asp-pp-row__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 2px;
}
.asp-pp-row__price { font-weight: 700; font-size: 13px; }
.asp-pp-row__price del { font-weight: 400; opacity: .7; margin-right: 4px; }
.asp-pp-row__link { font-size: 13px; text-decoration: underline; }

.asp-pp-row__oos {
	display: inline-block;
	align-self: flex-start;
	margin-top: 6px;
	font-size: 12px;
	color: #7a8290;
	background: #f1f3f5;
	border: 1px solid #e3e6ea;
	border-radius: 3px;
	padding: 3px 8px;
}

.asp-pp-row__qtywrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding-top: 4px;
}

.asp-pp-qty { display: flex; align-items: center; gap: 6px; }
.asp-pp-qty button {
	width: 32px;
	height: 32px;
	border: 1px solid #cfd4da;
	background: #fff;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	color: var(--global-palette2, #1f3a5f);
	padding: 0;
}
.asp-pp-qty button:hover { background: #edf7fa; }
.asp-pp-qty button:disabled { opacity: .4; cursor: not-allowed; }
.asp-pp-qty.is-disabled { opacity: .45; }

.asp-pp-qty__input {
	width: 46px;
	height: 32px;
	text-align: center;
	border: 1px solid #cfd4da;
	border-radius: 4px;
	font-weight: 600;
	-moz-appearance: textfield;
}
.asp-pp-qty__input::-webkit-outer-spin-button,
.asp-pp-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.asp-pp-row__add {
	border: 1px solid currentColor;
	background: var(--global-palette2, #1f3a5f);
	color: #fff;
	font-weight: 600;
	padding: 7px 14px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	white-space: nowrap;
	width: 100%;
}
.asp-pp-row__add:disabled { background: #6c7a86; cursor: default; }

.asp-pp-offer__shopall {
	display: inline-block;
	margin: 4px 16px 16px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
}

/* Category page notice */
.asp-pp-cat-notice {
	border: 1px solid #cfe3d6;
	background: #eef8f1;
	color: #0a6b3b;
	border-radius: 6px;
	padding: 12px 16px;
	margin: 0 0 16px;
	font-size: 14px;
}

@media (max-width: 600px) {
	.asp-pp-row { flex-wrap: wrap; }
	.asp-pp-row__qtywrap { width: 100%; align-items: flex-start; padding-top: 4px; }
	.asp-pp-row__add { width: auto; }
}
