/* Standalone series-specific gift card — mirrors YSSP green card style */
.yso-gift-card {
	display: block;
	margin: 14px 0;
	padding: 12px 16px;
	border-radius: 8px;
	border-left: 4px solid #3b6d11;
	background: #eaf3de;
	color: #173404;
	font-family: inherit;
	font-size: inherit;
	line-height: 1.4;
	text-decoration: none;
	transition: box-shadow 0.15s ease, border-left-color 0.15s ease;
}
.yso-gift-card:hover,
.yso-gift-card:focus {
	box-shadow: 0 2px 8px rgba( 59, 109, 17, 0.18 );
	border-left-color: #2d5a0d;
	color: #173404;
	text-decoration: none;
}
.yso-gift-inner {
	display: flex;
	align-items: center;
	gap: 12px;
}
.yso-gift-img {
	width: 56px;
	height: 56px;
	object-fit: contain;
	border-radius: 4px;
	flex: 0 0 56px;
	background: rgba( 255, 255, 255, 0.55 );
}
.yso-gift-content { flex: 1 1 auto; min-width: 0; }
/* When JS moves the card inside .yssp-perks-row, match the UPI card's flex
   behaviour (flex: 1 1 240px) so both cards share the row equally. */
.yssp-perks-row .yso-gift-card { margin: 0; flex: 1 1 240px; min-width: 0; }
.yso-gift-head {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	margin-bottom: 4px;
	opacity: 0.85;
}
.yso-gift-headline { font-size: 14px; font-weight: 700; margin: 2px 0; }
.yso-gift-subline { font-size: 13px; }

/* YourShoppy Offers — eye-catching collapsible offer box */

.yso-offer-box {
	margin: 12px 0;
	border: 1px solid #fed7aa;
	border-left: 3px solid #ea580c;
	border-radius: 8px;
	background: linear-gradient( 90deg, #fff7ed 0%, #fffaf2 60%, #fff 100% );
	font-family: inherit;
	font-size: 13px;
	line-height: 1.4;
	color: #1f2937;
	box-shadow: 0 1px 2px rgba( 234, 88, 12, 0.06 );
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.yso-offer-box:hover {
	box-shadow: 0 2px 6px rgba( 234, 88, 12, 0.12 );
	border-color: #fdba74;
	border-left-color: #c2410c;
}

.yso-offer-box[open] {
	background: #fff;
	border-color: #e5e7eb;
	border-left-color: #6b7280;
}

/* Always-visible summary row */
.yso-offer-box__summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	cursor: pointer;
	user-select: none;
	list-style: none;
}

.yso-offer-box__summary::-webkit-details-marker {
	display: none;
}

.yso-offer-box__summary::marker {
	content: '';
}

.yso-offer-box__icon {
	font-size: 18px;
	line-height: 1;
	flex: 0 0 auto;
}

.yso-offer-box__title {
	font-weight: 800;
	font-size: 14px;
	color: #9a3412;
	flex: 0 0 auto;
	letter-spacing: 0.1px;
}

.yso-offer-box[open] .yso-offer-box__title {
	color: #111827;
}

.yso-offer-box__campaign {
	flex: 1 1 auto;
	color: #92400e;
	font-size: 11px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.yso-offer-box[open] .yso-offer-box__campaign {
	color: #6b7280;
}

.yso-offer-box__view {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #ea580c;
	color: #fff;
	padding: 4px 10px 4px 11px;
	border-radius: 14px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	flex: 0 0 auto;
	transition: background 0.15s ease;
}

.yso-offer-box:hover .yso-offer-box__view {
	background: #c2410c;
}

.yso-offer-box[open] .yso-offer-box__view {
	background: #6b7280;
}

/* !important needed — WoodMart theme has higher-specificity rules on .summary
   descendants that flip these to display:inline-block, leaving both labels
   visible together. */
.yso-offer-box__view-label-open {
	display: none !important;
}

.yso-offer-box[open] .yso-offer-box__view-label-closed {
	display: none !important;
}

.yso-offer-box[open] .yso-offer-box__view-label-open {
	display: inline !important;
}

.yso-offer-box__toggle {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid #fff;
	transition: transform 0.15s ease;
}

.yso-offer-box[open] .yso-offer-box__toggle {
	transform: rotate(180deg);
}

/* Expanded body */
.yso-offer-box__body {
	padding: 6px 12px 10px;
	border-top: 1px solid #e5e7eb;
}

.yso-offer-box__section {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px dashed #e5e7eb;
}

.yso-offer-box__section:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.yso-offer-box__section-title {
	font-size: 10px;
	font-weight: 700;
	color: #9a3412;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	margin-bottom: 4px;
}

.yso-offer-box[open] .yso-offer-box__section-title {
	color: #c2410c;
}

/* Category accents — payment/gift mirror the YSSP card colors so the
   merge reads as the same content the customer was seeing before. */
.yso-offer-box__section[data-category="payment"] .yso-offer-box__section-title { color: #0c447c; }
.yso-offer-box__section[data-category="gift"]    .yso-offer-box__section-title { color: #3b6d11; }
.yso-offer-box__section[data-category="payment"] .yso-offer-box__item-price    { color: #0c447c; }
.yso-offer-box__section[data-category="gift"]    .yso-offer-box__item-price    { color: #3b6d11; }

.yso-offer-box__item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 4px 0;
	gap: 12px;
}

.yso-offer-box__item + .yso-offer-box__item {
	border-top: 1px dotted #f3f4f6;
}

.yso-offer-box__item-title {
	flex: 1 1 auto;
	color: #1f2937;
}

.yso-offer-box__item-price {
	font-weight: 700;
	color: #c2410c;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.yso-offer-box__footer {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

.yso-offer-box__terms {
	color: #6b7280;
	font-size: 11px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.yso-offer-box__t-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #ea580c;
	color: #fff;
	font-style: italic;
	font-weight: 700;
	font-size: 10px;
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1;
	flex: 0 0 auto;
}

.yso-offer-box__claim {
	display: inline-block;
	background: #111827;
	color: #fff;
	padding: 6px 14px;
	border-radius: 5px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
	transition: background 0.15s ease;
}

.yso-offer-box__claim:hover,
.yso-offer-box__claim:focus {
	background: #374151;
	color: #fff;
	text-decoration: none;
}

/* Brand accents on the Claim button */
.yso-brand-asus .yso-offer-box__claim { background: #000; }
.yso-brand-asus .yso-offer-box__claim:hover,
.yso-brand-asus .yso-offer-box__claim:focus { background: #333; }

.yso-brand-lenovo .yso-offer-box__claim { background: #e2231a; }
.yso-brand-lenovo .yso-offer-box__claim:hover,
.yso-brand-lenovo .yso-offer-box__claim:focus { background: #b81a13; }

.yso-brand-hp .yso-offer-box__claim { background: #0096d6; }
.yso-brand-hp .yso-offer-box__claim:hover,
.yso-brand-hp .yso-offer-box__claim:focus { background: #007ab8; }

.yso-brand-dell .yso-offer-box__claim { background: #007db8; }
.yso-brand-dell .yso-offer-box__claim:hover,
.yso-brand-dell .yso-offer-box__claim:focus { background: #00689a; }

@media (max-width: 480px) {
	.yso-offer-box__summary { padding: 9px 10px; gap: 6px; }
	.yso-offer-box__title { font-size: 13px; }
	.yso-offer-box__campaign { display: none; }
	.yso-offer-box__view { padding: 4px 9px; font-size: 10px; }
	.yso-offer-box__body { padding: 6px 10px 10px; }
	.yso-offer-box__footer { flex-direction: column; align-items: flex-start; }
	.yso-offer-box__claim { width: 100%; text-align: center; }
}
