/**
 * WGP Custom Option UI — 결제/옵션 시안 (PC 카드 + 모바일 하단바·패널)
 */

@media (prefers-reduced-motion: reduce) {
	.wgp-option-card,
	.wgp-flat-card,
	.wgp-overlay,
	.wgp-panel,
	.wgp-selected-item,
	.wgp-add-btn,
	.wgp-npay-btn,
	.wgp-cart-btn,
	.wgp-buy-btn {
		transition: none !important;
	}

	.wgp-selected-item {
		animation: none !important;
	}
}

:root {
	--wgp-primary: #e8192c;
	--wgp-primary-hover: #c8101f;
	--wgp-buy-hover-bg: #a71722;
	--wgp-black: #111111;
	--wgp-gray-dark: #444444;
	--wgp-gray: #888888;
	--wgp-gray-light: #f2f2f2;
	--wgp-border: #e0e0e0;
	--wgp-white: #ffffff;
	--wgp-npay: #00DE5A;
	--wgp-badge-1: #ff6b35;
	--wgp-badge-2: #e8192c;
	--wgp-badge-3: #c00080;
	--wgp-radius: 10px;
	--wgp-shadow: 0 3px 18px rgba(0, 0, 0, 0.08);
	--wgp-wrap-max: min(100%, 400px);
}

.wgp-cou-root--matrix .wgp-add-btn {
	display: none !important;
}

.wgp-cou-root {
	box-sizing: border-box;
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
	font-size: 13px;
	color: var(--wgp-black);
	min-width: 0;
	max-width: 100%;
}

.wgp-cou-root *,
.wgp-cou-root *::before,
.wgp-cou-root *::after {
	box-sizing: border-box;
}

body.wgp-cou-active.wgp-cou-hide-native-variations .variations_form .variations,
body.wgp-cou-active.wgp-cou-hide-native-variations .variations_form .woocommerce-variation-add-to-cart {
	display: none !important;
}

.wgp-select-hint {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: var(--wgp-radius);
	background: var(--wgp-gray-light);
	color: var(--wgp-gray-dark);
	font-size: 12px;
	line-height: 1.45;
}

.wgp-notice {
	margin: 0;
	padding: 12px 16px;
	border-radius: 8px;
	background: #f5f5f5;
	color: #555;
	font-size: 14px;
}

/* ── PC 카드 ── */
.wgp-cou-wrap--desktop {
	width: 100%;
	/*max-width: var(--wgp-wrap-max);*/
	margin-left: auto;
	margin-right: auto;
	background: var(--wgp-white);
	border: 1px solid var(--wgp-border);
	border-radius: var(--wgp-radius);
	box-shadow: var(--wgp-shadow);
	padding: 25px;
	min-width: 0;
	max-width: 100%;
	/* 요약 열만 좁을 때: 뷰포트가 아니라 카드 폭 기준으로 반응 */
	container-type: inline-size;
	container-name: wgp-cou-desktop;
}

.wgp-brand {
	font-size: 16px;
	font-weight: 400;
	/* letter-spacing: 0.12em; */
	color: #0e0e2c;
	text-transform: uppercase;
	
}

.wgp-product-name {
	font-size: 45px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #0e0e2c;
	margin-top: -30px;
	margin-bottom: 20px;

	
}

/* ── 매트릭스 그리드 ── */
.wgp-option-grid {
	display: grid;
	/* 열 개수는 JS에서 product 옵션 수에 맞게 설정 */
	grid-template-columns: auto minmax(0, 1fr);
	gap: 4px;
	margin-bottom: 10px;
}

/*
 * PC 매트릭스: minmax(68px)×열 + 행라벨 > 카드 폭이면 잘리지 않도록 항상 가로 스크롤 허용
 * (컨테이너 440px까지 기다리면 그 사이 구간에서 오른쪽이 씹힘)
 */
.wgp-cou-wrap--desktop .wgp-option-grid--desktop {
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-gutter: stable;
	padding-bottom: 6px;
}

.wgp-cou-wrap--desktop .wgp-option-grid--desktop > .wgp-col-header:not(.row-label),
.wgp-cou-wrap--desktop .wgp-option-grid--desktop > .wgp-option-card {
	min-width: 64px;
}

.wgp-col-header {
	background: none;
	border: none;
	font-size: 16px;
	font-weight: 400;
	color: #0e0e2c;
	text-align: center;
	padding: 2px 2px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wgp-col-header.row-label {
	min-height: 1px;
}

.wgp-option-card {
	position: relative;
	border: 1px solid #0e0e2c;
	border-radius: 5px;
	padding: 20px 0 15px;
	min-height: 0;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.18s, box-shadow 0.18s, transform 0.12s, background 0.18s;
	background: #fff;
	user-select: none;
	font: inherit;
	color: inherit;
}

.wgp-option-card:hover:not(.out-of-stock):not(.wgp-cell--empty):not(:disabled):not(.is-selected) {
	background: #f4f5f6;
	border: 1px solid #0e0e2c;
	box-shadow: none;
	transform: none;
}

.wgp-option-card.is-selected {
	background: #f4f5f6;
	border: 1px solid #0e0e2c;
	box-shadow: none;
	transform: none;
}

.wgp-option-card.out-of-stock,
.wgp-option-card.wgp-cell--empty {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.wgp-option-card.out-of-stock .wgp-card-price {
	text-decoration: line-through;
}

.wgp-badge {
	position: absolute;
	top: -1px;
	right: -1px;
	background: var(--wgp-badge-1);
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	padding: 0px 5px;
	border-radius: 0 5px 0 5px;
	letter-spacing: 0.02em;
}

.wgp-badge.b-12 {
	background: var(--wgp-badge-2);
}

.wgp-badge.b-15 {
	background: var(--wgp-badge-3);
}

.wgp-card-price {
	font-size: 16px;
	font-weight: 600;
	color: #0e0e2c;
	display: block;
	margin-bottom: 1px;
	line-height: 1.15;
}

.wgp-card-monthly {
	font-size: 10px;
	color: var(--wgp-gray);
	display: block;
	white-space: nowrap;
	line-height: 1.2;
}

.wgp-row-label {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	font-size: 16px;
	font-weight: 400;
	color: #0e0e2c;
	padding-right: 3px;
	white-space: nowrap;
	max-width: 72px;
	line-height: 1.2;
}

/*
 * 카드 폭이 좁을 때(2열 레이아웃 요약칸 등): 행 라벨 줄바꿈·셀 최소 너비·필요 시 가로 스크롤
 * 뷰포트 991px 이하는 모바일 UI이므로, 컨테이너 쿼리는 넓은 화면의 PC 카드만 대상
 */
@container wgp-cou-desktop (max-width: 560px) {
	.wgp-cou-wrap--desktop {
		padding: 18px 14px;
	}

	.wgp-brand {
		font-size: 14px;
		font-weight: 400;
	}

	.wgp-product-name {
		font-size: 40px;
		margin-top: -25px;
		margin-bottom: 14px;
		margin-bottom: 25px;
	}

	.wgp-option-grid {
		gap: 3px;
	}

	.wgp-col-header {
		font-size: 13px;
		padding: 2px;
	}

	.wgp-row-label {
		font-size: 13px;
		max-width: 64px;
		white-space: normal;
		word-break: keep-all;
	}

	.wgp-option-card {
		padding: 12px 4px 10px;
	}

	.wgp-card-price {
		font-size: 14px;
	}

	.wgp-card-monthly {
		font-size: 11px;
		white-space: normal;
		text-align: center;
	}
}

@container wgp-cou-desktop (max-width: 440px) {
	.wgp-cou-wrap--desktop .wgp-option-grid--desktop > .wgp-col-header:not(.row-label),
	.wgp-cou-wrap--desktop .wgp-option-grid--desktop > .wgp-option-card {
		min-width: 70px;
	}

	.wgp-cou-wrap--desktop .wgp-option-grid--desktop > .wgp-row-label {
		min-width: 52px;
		max-width: 56px;
	}
}

/* 컨테이너 쿼리 미지원 브라우저: 뷰포트가 중간대일 때만 대략 동일하게 압축 */
@supports not (container-type: inline-size) {
	@media (max-width: 1100px) and (min-width: 992px) {
		.wgp-cou-wrap--desktop {
			padding: 18px 14px;
		}

		.wgp-product-name {
			font-size: 28px;
			margin-top: 0;
			margin-bottom: 14px;
			line-height: 1.12;
		}

		.wgp-option-grid {
			gap: 3px;
		}

		.wgp-col-header {
			font-size: 13px;
		}

		.wgp-row-label {
			font-size: 13px;
			max-width: 64px;
			white-space: normal;
			word-break: keep-all;
		}

		.wgp-option-card {
			padding: 12px 4px 10px;
		}

		.wgp-card-price {
			font-size: 14px;
		}

		.wgp-cou-wrap--desktop .wgp-option-grid--desktop > .wgp-col-header:not(.row-label),
		.wgp-cou-wrap--desktop .wgp-option-grid--desktop > .wgp-option-card {
			min-width: 68px;
		}
	}
}

/* ── 플랫(속성 2개 아님) ── */
.wgp-options-flat {
	margin-bottom: 14px;
}

.wgp-option-group {
	margin-bottom: 14px;
}

.wgp-option-group-label {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	color: var(--wgp-gray-dark);
}

.wgp-option-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wgp-flat-card {
	padding: 10px 14px;
	border: 1.5px solid var(--wgp-border);
	border-radius: 8px;
	background: var(--wgp-gray-light);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	font: inherit;
	color: var(--wgp-gray-dark);
	transition: border-color 0.15s, background 0.15s;
}

.wgp-flat-card:hover:not(:disabled):not(.is-out-of-stock) {
	border-color: var(--wgp-primary);
}

.wgp-flat-card.is-active {
	border-color: var(--wgp-primary);
	background: #fff9f9;
	box-shadow: 0 0 0 1px var(--wgp-primary);
}

.wgp-flat-card:disabled,
.wgp-flat-card.is-out-of-stock {
	opacity: 0.38;
	cursor: not-allowed;
	text-decoration: line-through;
}

/* ── 옵션 담기 ── */
.wgp-add-btn {
	display: block;
	width: 100%;
	padding: 9px;
	border: 1.5px dashed var(--wgp-border);
	border-radius: 8px;
	background: none;
	color: var(--wgp-gray);
	font-size: 12px;
	font-weight: 600;
	cursor: not-allowed;
	opacity: 0.5;
	transition: all 0.18s;
	margin-bottom: 10px;
	letter-spacing: -0.01em;
	font-family: inherit;
}

.wgp-add-btn.active {
	border-color: var(--wgp-primary);
	color: var(--wgp-primary);
	opacity: 1;
	cursor: pointer;
}

.wgp-add-btn.active:hover {
	background: #fff0f1;
}

/* ── 선택 목록 ── */
.wgp-selected-list {
	/* border-top: 1px solid var(--wgp-border); */
	padding-top: 8px;
	margin-bottom: 10px;
	display: none;
}

.wgp-selected-list.has-items {
	display: block;
}

.wgp-selected-list.has-items.is-scroll {
	max-height: 130px;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	padding-right: 2px;
}

.wgp-selected-item {
	padding: 10px 12px;
	background: var(--wgp-gray-light);
	border-radius: 8px;
	margin-bottom: 8px;
	animation: wgpSlideIn 0.2s ease;
}

.wgp-selected-item-inner {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
}

.wgp-item-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 8px;
}

.wgp-item-text-col {
	flex: 1;
	min-width: 0;
}

.wgp-item-line--product {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 4px;
}

.wgp-item-brand {
	display: none !important;
}

.wgp-item-product {
	font-size: 18px;
	font-weight: 700;
	color: #4a4a68;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.wgp-item-line--option {
	font-size: 15px;
	font-weight: 500;
	color: var(--wgp-gray-dark);
	line-height: 1.35;
	word-break: break-word;
}

.wgp-item-qty-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

@keyframes wgpSlideIn {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.wgp-item-stepper,
.wgp-qty-control {
	display: inline-flex;
	align-items: center;
	width: auto;
	height: 34px;
	border: 1px solid var(--wgp-border);
	border-radius: 6px;
	overflow: hidden;
	background: var(--wgp-white);
	flex-shrink: 0;
	box-sizing: border-box;
}

.wgp-step-btn,
.wgp-qty-btn {
	width: 28px;
	height: 34px;
	padding: 0;
	border: 0;
	line-height: 34px;
	font-size: 16px;
	font-weight: 600;
	color: var(--wgp-gray-dark);
	box-sizing: border-box;
	background: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
	font-family: inherit;
	flex-shrink: 0;
}

.wgp-step-btn:hover,
.wgp-qty-btn:hover {
	background: var(--wgp-border);
}

.wgp-step-qty,
.wgp-qty-input {
	width: 34px;
	min-width: 34px;
	max-width: 34px;
	height: 34px;
	padding: 0;
	margin: 0;
	border: 0;
	text-align: center;
	line-height: 34px;
	font-size: 14px;
	font-weight: 500;
	color: #121212;
	background: #fff;
	box-sizing: border-box;
	outline: none;
	flex-shrink: 0;
	-webkit-appearance: none;
	appearance: none;
}

.wgp-item-price {
	font-size: 16px;
	font-weight: 700;
	color: #4a4a68;
	min-width: 72px;
	text-align: right;
	flex-shrink: 0;
}

.wgp-item-remove {
	width: 22px;
	height: 22px;
	border: none;
	background: none;
	cursor: pointer;
	color: #bbb;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border-radius: 50%;
	transition: background 0.15s, color 0.15s;
	padding: 0;
	font-family: inherit;
	line-height: 1;
	margin-top: -2px;
}

.wgp-item-remove:hover {
	background: #ffe0e0;
	color: var(--wgp-primary);
}

/* ── 합계 ── */
.wgp-total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0 10px;
	/* border-top: 1.5px solid var(--wgp-black); */
}

.wgp-total-label {
	font-size: 20px;
	font-weight: 700;
	color: #0e0e2c;
}

.wgp-total-price {
	font-size: 18px;
	font-weight: 700;
	color: #0e0e2c;
	letter-spacing: -0.02em;
}

/* ── N pay + 액션 ── */
.wgp-npay-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 15px;
	background: #fff;
	border: 1px solid #d9d9d9;
	border-radius: 5px;
	margin-bottom: 8px;
	cursor: pointer;
	font-size: 20px;
	font-weight: 700;
	color: #00de5a;
	transition: background 0.2s ease, border-color 0.2s ease, backdrop-filter 0.2s ease, -webkit-backdrop-filter 0.2s ease;
	font-family: inherit;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.wgp-npay-btn::-moz-focus-inner {
	border: 0;
	padding: 0;
}

.wgp-npay-btn:hover:not(:disabled),
.wgp-npay-btn:active:not(:disabled),
.wgp-npay-btn:focus:not(:disabled),
.wgp-npay-btn:focus-visible:not(:disabled) {
	background: rgba(255, 255, 255, 0.72);
	color: #00de5a;
	border: 1px solid #d9d9d9;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	outline: none !important;
	outline-offset: 0;
	box-shadow: none !important;
}

.wgp-npay-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width:22px;
	height: 22px;
	min-width: 22px;
	min-height: 22px;
	flex-shrink: 0;
	box-sizing: border-box;
	padding: 0;
	background: var(--wgp-npay);
	color: #fff;
	font-size: 15px;
	font-weight: 900;
	line-height: 1;
	border-radius: 50%;
	letter-spacing: -0.01em;
}

.wgp-action-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.wgp-cart-btn {
	padding: 13px;
	background: #f4f5f6;
	border-radius: 5px;
	font-size: 15px;
	font-weight: 600;
	color: #0e0e2c;
	cursor: pointer;
	transition: background 0.18s, border-color 0.18s;
	font-family: inherit;
	border: 1px solid transparent;
}

.wgp-cart-btn:hover:not(:disabled),
.wgp-cart-btn:active:not(:disabled),
.wgp-cart-btn:focus:not(:disabled),
.wgp-cart-btn:focus-visible:not(:disabled) {
	background: #e2e5ea;
	color: #0e0e2c;
	border: 1px solid transparent;
	outline: none;
	box-shadow: none;
}

.wgp-buy-btn {
	padding: 18px;
	border: 1px solid transparent;
	background: #be1924;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 800;
	color: var(--wgp-white);
	cursor: pointer;
	transition: background 0.18s;
	letter-spacing: -0.01em;
	font-family: inherit;
	-webkit-tap-highlight-color: transparent;
	box-sizing: border-box;
}

.wgp-buy-btn:hover:not(:disabled),
.wgp-buy-btn:active:not(:disabled),
.wgp-buy-btn:focus:not(:disabled),
.wgp-buy-btn:focus-visible:not(:disabled) {
	background: var(--wgp-buy-hover-bg);
	border: 1px solid transparent;
	color: var(--wgp-white);
	outline: none;
	box-shadow: none;
}

.wgp-cart-btn:disabled,
.wgp-buy-btn:disabled {
	opacity: 0.38;
	cursor: not-allowed;
}

/* ── 모바일: 하단 바 ── */
.wgp-mobile-bar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 999;
	background: var(--wgp-white);
	border-top: 1px solid var(--wgp-border);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
	padding: 2px 14px calc(2px + env(safe-area-inset-bottom, 0px));
	gap: 8px;
	align-items: stretch;
	--wgp-mobile-cta-height: 52px;
}

.wgp-mobile-npay {
	flex: 1;
	min-height: var(--wgp-mobile-cta-height);
	padding: 0 12px;
	border: 1.5px solid var(--wgp-npay);
	border-radius: 5px;
	background: var(--wgp-white);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 20px;
	font-weight: 700;
	font-family: inherit;
	gap: 4px;
	color: #111;
	transition: border-color 0.18s, border-width 0.18s, background 0.18s;
	-webkit-tap-highlight-color: transparent;
	box-sizing: border-box;
}

.wgp-mobile-npay:hover,
.wgp-mobile-npay:active,
.wgp-mobile-npay:focus,
.wgp-mobile-npay:focus-visible {
	background: #f0f8f4;
	color: #111;
	border: 1.5px solid var(--wgp-npay);
	outline: none;
	box-shadow: none;
}

.wgp-mobile-buy {
	flex: 2;
	min-height: var(--wgp-mobile-cta-height);
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: 5px;
	background: #be1924;
	color: var(--wgp-white);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.01em;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.18s;
	-webkit-tap-highlight-color: transparent;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.wgp-mobile-buy-icon-img {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	display: block;
	object-fit: contain;
	pointer-events: none;
}

.wgp-mobile-buy-label {
	pointer-events: none;
}

.wgp-mobile-buy:hover,
.wgp-mobile-buy:active,
.wgp-mobile-buy:focus,
.wgp-mobile-buy:focus-visible {
	background: var(--wgp-buy-hover-bg);
	color: var(--wgp-white);
	border: 1px solid transparent;
	outline: none;
	box-shadow: none;
}

/* ── 오버레이 ── */
.wgp-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	opacity: 0;
	transition: opacity 0.28s;
}

.wgp-overlay.active {
	display: block;
}

.wgp-overlay.visible {
	opacity: 1;
}

/* ── 슬라이드 패널 ── */
.wgp-panel {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1001;
	background: var(--wgp-white);
	border-radius: 18px 18px 0 0;
	padding: 6px 18px 20px;
	transform: translateY(100%);
	transition: transform 0.32s cubic-bezier(0.22, 0.68, 0, 1.1);
	max-height: 90dvh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.wgp-panel.open {
	transform: translateY(0);
}

.wgp-panel-handle {
	width: 36px;
	height: 4px;
	background: var(--wgp-border);
	border-radius: 99px;
	margin: 10px auto 16px;
}

.wgp-panel .wgp-brand {
	font-size: 16px;
}

.wgp-panel .wgp-product-name {
	font-size: 22px;
	line-height: 1.2;
	margin-bottom: 14px;
}

/* 모바일 패널: 목록 내부 스크롤 대신 .wgp-panel 전체 스크롤 */
.wgp-panel .wgp-selected-list.has-items.is-scroll {
	max-height: none;
	overflow: visible;
	padding-right: 0;
}

.wgp-panel-cta {
	padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}

/*
 * 레이아웃 전환: 992px 미만은 모바일(하단 바·패널), 이상만 데스크톱 카드
 * 테마가 .summary 등에서 display를 덮어쓰면 두 UI가 동시에 보일 수 있어 !important 고정
 */
@media (max-width: 991px) {
	body.wgp-cou-active {
		padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
	}

	body.wgp-cou-active .wgp-cou-root .wgp-cou-wrap--desktop {
		display: none !important;
	}

	body.wgp-cou-active .wgp-cou-root .wgp-mobile-bar {
		display: flex !important;
	}
}

@media (min-width: 992px) {
	body.wgp-cou-active .wgp-cou-root .wgp-mobile-bar,
	body.wgp-cou-active .wgp-cou-root .wgp-overlay,
	body.wgp-cou-active .wgp-cou-root .wgp-panel {
		display: none !important;
	}

	body.wgp-cou-active .wgp-cou-root .wgp-cou-wrap--desktop {
		display: block !important;
	}
}

/* Astra 등 전역 input 스타일 덮어쓰기 — 선택 목록 수량 박스만 */
.wgp-selected-list .wgp-step-qty,
.wgp-panel .wgp-selected-list .wgp-step-qty,
.wgp-selected-list input.wgp-step-qty[type="text"],
.wgp-selected-list input.wgp-step-qty[type="number"] {
	width: 36px !important;
	min-width: 36px !important;
	max-width: 36px !important;
	height: 32px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: #fff !important;
	color: #121212 !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 32px !important;
	text-align: center !important;
	appearance: textfield;
	-webkit-appearance: none;
	box-sizing: border-box !important;
}

.wgp-selected-list .wgp-item-stepper {
	display: inline-flex;
	align-items: center;
	width: auto;
	height: 32px;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
}

.wgp-selected-list .wgp-step-btn {
	width: 28px;
	height: 32px;
	padding: 0;
	margin: 0;
	border: 0;
	background: #fff;
	color: #121212;
	font-size: 16px;
	line-height: 32px;
	cursor: pointer;
	box-sizing: border-box;
}

/* 테마 button :active/:focus 무력화 — 클릭·포커스도 hover와 동일 (.wgp-cou-root 범위) */
.wgp-cou-root .wgp-cart-btn:hover:not(:disabled),
.wgp-cou-root .wgp-cart-btn:active:not(:disabled),
.wgp-cou-root .wgp-cart-btn:focus:not(:disabled),
.wgp-cou-root .wgp-cart-btn:focus-visible:not(:disabled) {
	background: #e2e5ea;
	color: #0e0e2c;
	border: 1px solid transparent;
	outline: none;
	box-shadow: none;
}

.wgp-cou-root .wgp-buy-btn:hover:not(:disabled),
.wgp-cou-root .wgp-buy-btn:active:not(:disabled),
.wgp-cou-root .wgp-buy-btn:focus:not(:disabled),
.wgp-cou-root .wgp-buy-btn:focus-visible:not(:disabled) {
	background: var(--wgp-buy-hover-bg);
	border: 1px solid transparent;
	color: var(--wgp-white);
	outline: none;
	box-shadow: none;
}

.wgp-cou-root .wgp-npay-btn:hover:not(:disabled),
.wgp-cou-root .wgp-npay-btn:active:not(:disabled),
.wgp-cou-root .wgp-npay-btn:focus:not(:disabled),
.wgp-cou-root .wgp-npay-btn:focus-visible:not(:disabled) {
	background: rgba(255, 255, 255, 0.72);
	color: #00de5a;
	border: 1px solid #d9d9d9;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	outline: none !important;
	outline-offset: 0;
	box-shadow: none !important;
}

.wgp-cou-root .wgp-mobile-npay:hover,
.wgp-cou-root .wgp-mobile-npay:active,
.wgp-cou-root .wgp-mobile-npay:focus,
.wgp-cou-root .wgp-mobile-npay:focus-visible {
	background: #f0f8f4;
	color: #111;
	border: 1.5px solid var(--wgp-npay);
	outline: none;
	box-shadow: none;
}

.wgp-cou-root .wgp-mobile-buy:hover,
.wgp-cou-root .wgp-mobile-buy:active,
.wgp-cou-root .wgp-mobile-buy:focus,
.wgp-cou-root .wgp-mobile-buy:focus-visible {
	background: var(--wgp-buy-hover-bg);
	color: var(--wgp-white);
	border: 1px solid transparent;
	outline: none;
	box-shadow: none;
}

/* 단일 상품 */
.wgp-cou-root--simple .wgp-add-btn {
	display: none !important;
}

.wgp-cou-root--simple .wgp-item-remove {
	display: none !important;
}

.wgp-cou-root--simple .wgp-simple-price-card {
	display: none;
	width: 100%;
	margin-bottom: 14px;
	cursor: default;
	pointer-events: none;
}

.wgp-cou-root--simple .wgp-simple-price-card .wgp-card-price {
	font-size: 22px;
}

.wgp-cou-root--simple .wgp-selected-list {
	display: block !important;
	margin-bottom: 10px;
}

.wgp-simple-cart-wrap--hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
	margin: -1px !important;
	padding: 0 !important;
}
