:root {
	--wcso-accent: #81b8b6;
	--wcso-border: #d8e5e4;
	--wcso-text: #1f2a2a;
	--wcso-muted: #637273;
	--wcso-bg: #ffffff;
}

#wcso-offer-wrap {
	margin: 0 0 16px;
}

#wcso-offer-box {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--wcso-border);
	border-radius: 5px 5px 0 0;
	background: var(--wcso-bg);
	overflow: visible;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#wcso-offer-box.is-eligible {
	cursor: pointer;
}

#wcso-offer-box.is-eligible:hover,
#wcso-offer-box.is-eligible:focus-visible {
	border-color: var(--wcso-accent);
	outline: 0;
}

#wcso-offer-box.is-selected {
	border-color: var(--wcso-accent);
}

#wcso-offer-box.is-disabled {
	cursor: not-allowed;
}

.wcso-offer-box__checkbox-wrap {
	padding-top: 1px;
	position: relative;
	z-index: 1;
}

#wcso-offer-box input[type='checkbox'] {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	width: 20px;
	height: 20px;
	min-width: 20px;
	border: 1px solid #a7bcba;
	border-radius: 5px;
	background: #ffffff;
	cursor: pointer;
}

#wcso-offer-box input[type='checkbox']::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	opacity: 0;
}

#wcso-offer-box input[type='checkbox']:checked {
	background: var(--wcso-accent);
	border-color: var(--wcso-accent);
}

#wcso-offer-box input[type='checkbox']:checked::after {
	opacity: 1;
}

#wcso-offer-box input[type='checkbox']:disabled {
	cursor: not-allowed;
}

.wcso-offer-box__content {
	flex: 1;
	min-width: 0;
	position: relative;
	z-index: 1;
}

.wcso-offer-box__title {
	display: inline-block;
	margin: 0 0 6px;
	color: var(--wcso-text);
	font-size: 14px;
	line-height: 1.3;
	font-weight: 700;
	cursor: inherit;
}

.wcso-offer-box__desc {
	margin: 0;
	color: #222222;
	font-size: 13px;
	line-height: 1.5;
	font-weight: 400;
}

.wcso-offer-summary {
	margin-top: -1px;
	border: 1px solid var(--wcso-border);
	border-top: 0;
	border-radius: 0 0 5px 5px;
	background: #f7f9f9;
	padding: 10px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.wcso-offer-summary__item {
	background: #ffffff;
	border: 1px solid #e9efef;
	border-radius: 5px;
	padding: 8px 10px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.wcso-offer-summary__label {
	font-size: 11px;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #6c7a7a;
}

.wcso-offer-summary__amount {
	margin: 0;
	font-size: 14px;
	line-height: 1.25;
	font-weight: 700;
	color: #1f2a2a;
}

.wcso-offer-summary__state {
	color: #46b450;
}

.wcso-offer-summary.is-unlocked .wcso-offer-summary__item:last-child {
	border-color: rgba(70, 180, 80, 0.4);
	background: #f0f8f2;
}

.wcso-offer-summary__missing {
	color: #d63638;
}

.wcso-offer-summary.is-locked .wcso-offer-summary__item:last-child {
	border-color: rgba(214, 54, 56, 0.35);
	background: #fff6f6;
}

.wcso-offer-box__overlay {
	position: absolute;
	inset: 0;
	border-radius: 5px 5px 0 0;
	background: rgba(255, 255, 255, 0.15);
	z-index: 2;
	pointer-events: none;
}

.wcso-offer-box__status-icon {
	position: absolute;
	top: 0;
	right: 0;
	transform: translate(28%, -28%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 5px;
	border: 1px solid rgba(79, 103, 102, 0.25);
	background: rgba(255, 255, 255, 0.9);
	color: #678685;
	box-shadow: 0 6px 14px rgba(55, 80, 79, 0.08);
	z-index: 3;
	pointer-events: none;
	cursor: inherit;
}

.wcso-offer-box__status-icon.is-gift {
	color: #5c8f8d;
	border-color: rgba(92, 143, 141, 0.33);
}

@media (max-width: 600px) {
	#wcso-offer-box {
		padding: 14px;
		gap: 10px;
	}

	.wcso-offer-box__title {
		font-size: 14px;
	}

	.wcso-offer-summary {
		grid-template-columns: 1fr;
		padding: 9px;
	}
}
