:root {
	--wcog-border: #e8e8ea;
	--wcog-surface: #ffffff;
	--wcog-surface-muted: #f7f7f8;
	--wcog-text: #111111;
	--wcog-muted: #6c6c73;
	--wcog-accent: #c71630;
	--wcog-accent-soft: rgba(199, 22, 48, 0.08);
	--wcog-shadow: 0 10px 28px rgba(17, 17, 17, 0.05);
}

#wcog-gift-wrap {
	margin: 0 0 16px;
}

#wcog-gift-wrap[hidden] {
	display: none !important;
}

.wcog-gift-box {
	border: 1px solid var(--wcog-border);
	border-radius: 14px;
	background: var(--wcog-surface);
	box-shadow: var(--wcog-shadow);
	overflow: hidden;
}

.wcog-gift-box__top {
	padding: 16px 16px 14px;
}

.wcog-gift-box__bottom {
	padding: 14px 16px 16px;
	border-top: 1px solid var(--wcog-border);
	background: var(--wcog-surface);
}

.wcog-gift-box__header {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	margin-bottom: 10px;
}

.wcog-gift-box__header-copy {
	order: 2;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.wcog-gift-box__title {
	display: block;
	color: var(--wcog-text);
	font-size: 16px;
	line-height: 1.3;
	font-weight: 700;
}

.wcog-gift-box__subtitle {
	display: block;
	margin-top: 2px;
	color: #535151;
	font-size: 12px;
	line-height: 1.4;
}

.wcog-gift-box__header-icon {
	order: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(199, 22, 48, 0.14);
	border-radius: 10px;
	background: var(--wcog-accent-soft);
	color: var(--wcog-accent);
	flex: 0 0 auto;
}

.wcog-gift-box__icon {
	font-size: 15px;
	line-height: 1;
}

.wcog-gift-progress {
	display: block;
	margin: 0 -16px;
	padding-top: 12px;
	padding-left: 16px;
	padding-right: 16px;
	border-top: 1px solid var(--wcog-border);
}

.wcog-gift-progress__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.wcog-gift-progress__current,
.wcog-gift-progress__target {
	color: var(--wcog-text);
	font-size: 13px;
	line-height: 1.3;
	font-weight: 600;
}

.wcog-gift-progress__target {
	color: var(--wcog-muted);
	font-weight: 500;
}

.wcog-gift-progress__track {
	position: relative;
	height: 8px;
	border-radius: 999px;
	background: #efeff1;
	overflow: hidden;
}

.wcog-gift-progress__fill {
	position: absolute;
	inset: 0 auto 0 0;
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--wcog-accent);
}

.wcog-gift-slider {
	position: relative;
	display: block;
	padding: 0 8px;
}

.wcog-gift-carousel__viewport {
	overflow: hidden;
	touch-action: pan-y;
	cursor: grab;
}

.wcog-gift-slider.is-dragging .wcog-gift-carousel__viewport {
	cursor: grabbing;
}

.wcog-gift-slider.is-dragging {
	user-select: none;
}

.wcog-gift-carousel__track,
.wcog-gift-single {
	display: flex;
	gap: 10px;
}

.wcog-gift-carousel__track {
	will-change: transform;
}

.wcog-gift-chip {
	display: grid;
	grid-template-columns: minmax(56px, 20%) minmax(0, 1fr);
	align-items: center;
	column-gap: 14px;
	flex: 0 0 100%;
	width: 100%;
	min-height: 72px;
	padding: 12px;
	border: 1px solid var(--wcog-border);
	border-radius: 12px;
	background: var(--wcog-surface);
	color: var(--wcog-text);
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.wcog-gift-chip:hover:not(:disabled) {
	border-color: var(--wcog-accent);
}

.wcog-gift-chip.is-selected {
	border-color: var(--wcog-accent);
	background: var(--wcog-accent-soft);
}

.wcog-gift-chip:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.wcog-gift-chip__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1;
	border: 1px solid #f0f0f1;
	border-radius: 8px;
	background: #ffffff;
	overflow: hidden;
}

.wcog-gift-chip__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.wcog-gift-chip__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-width: 0;
}

.wcog-gift-chip__title {
	display: block;
	width: 100%;
	color: var(--wcog-text);
	font-size: 14px;
	line-height: 1.35;
	font-weight: 600;
	text-align: left;
}

.wcog-gift-chip__price {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.3;
}

.wcog-gift-chip__price-current {
	color: var(--wcog-accent);
	font-weight: 700;
}

.wcog-gift-chip__price-original {
	display: inline-block;
	color: #535151;
	font-weight: 500;
	text-decoration: line-through;
}

.wcog-gift-selected {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wcog-gift-selected__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.wcog-gift-selected__label {
	display: inline-block;
	color: var(--wcog-muted);
	font-size: 12px;
	line-height: 1.3;
	font-weight: 600;
}

.wcog-gift-selected__card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(56px, 20%) minmax(0, 1fr);
	align-items: center;
	column-gap: 14px;
	width: 100%;
	min-height: 72px;
	padding: 12px 46px 12px 12px;
	border: 1px solid var(--wcog-accent);
	border-radius: 12px;
	background: var(--wcog-accent-soft);
}

.wcog-gift-selected__card .wcog-gift-chip__content {
	padding-right: 4px;
}

.wcog-gift-selected__remove {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid var(--wcog-border);
	border-radius: 999px;
	background: #ffffff;
	color: var(--wcog-text);
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.wcog-gift-selected__remove:hover {
	border-color: var(--wcog-accent);
	background: var(--wcog-accent-soft);
	color: var(--wcog-accent);
}

.wcog-gift-selected__remove i {
	font-size: 12px;
	line-height: 1;
}

.wcog-gift-carousel__controls {
	position: absolute;
	inset: 50% -10px auto;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: space-between;
	pointer-events: none;
}

.wcog-gift-slider.is-static .wcog-gift-carousel__controls {
	display: none;
}

.wcog-gift-carousel__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 1px solid var(--wcog-border);
	border-radius: 999px;
	background: #ffffff;
	color: var(--wcog-text);
	cursor: pointer;
	pointer-events: auto;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
	box-shadow: 0 4px 12px rgba(17, 17, 17, 0.08);
}

.wcog-gift-carousel__nav:hover:not(:disabled) {
	border-color: var(--wcog-accent);
	color: var(--wcog-accent);
	background: var(--wcog-accent-soft);
}

.wcog-gift-carousel__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.wcog-gift-carousel__nav span {
	font-size: 28px;
	line-height: 0.8;
	font-weight: 300;
}

.wcog-gift-wrap.is-loading .wcog-gift-chip,
.wcog-gift-wrap.is-loading .wcog-gift-carousel__nav,
.wcog-gift-wrap.is-loading .wcog-gift-selected__remove {
	pointer-events: none;
	opacity: 0.65;
}

.wcog-gift-quantity {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	font-weight: 700;
}

@media (max-width: 640px) {
	.wcog-gift-box__top,
	.wcog-gift-box__bottom {
		padding-left: 12px;
		padding-right: 12px;
	}

	.wcog-gift-box__title {
		font-size: 15px;
	}

	.wcog-gift-box__subtitle {
		font-size: 12px;
	}

	.wcog-gift-box__header-icon {
		width: 32px;
		height: 32px;
		border-radius: 9px;
	}

	.wcog-gift-progress__meta {
		flex-direction: row;
		align-items: center;
		gap: 8px;
	}

	.wcog-gift-progress {
		margin-left: -12px;
		margin-right: -12px;
		padding-left: 12px;
		padding-right: 12px;
	}

	.wcog-gift-progress__current,
	.wcog-gift-progress__target {
		font-size: 12px;
	}

	.wcog-gift-chip {
		grid-template-columns: 52px minmax(0, 1fr);
		min-height: 68px;
		padding: 10px;
	}

	.wcog-gift-chip__title {
		font-size: 13px;
	}

	.wcog-gift-selected__card {
		grid-template-columns: 52px minmax(0, 1fr);
		min-height: 68px;
		padding: 10px 42px 10px 10px;
	}

	.wcog-gift-selected__remove {
		top: 8px;
		right: 8px;
		width: 26px;
		height: 26px;
	}

	.wcog-gift-carousel__controls {
		inset-inline: -6px;
	}
}
