/* ECOVIAN 나이스페이 링크결제 — 프런트 결제 화면
   테마 색을 맞추려면 --enp-accent 만 덮어쓰면 된다. */

.enp-wrap {
	--enp-accent: #6d28e8;
	--enp-accent-dark: #5316c4;
	--enp-grad: linear-gradient(90deg, #7c2ae8, #4b28e0);
	--enp-text: #1f2330;
	--enp-muted: #6b7280;
	--enp-line: #e6e8ef;
	--enp-bg: #ffffff;

	max-width: 480px;
	margin: 0 auto;
	padding: 8px 0 40px;
	color: var(--enp-text);
	font-size: 15px;
	line-height: 1.6;
	word-break: keep-all;
}

.enp-card {
	position: relative;
	overflow: hidden;
	background: var(--enp-bg);
	border: 1px solid var(--enp-line);
	border-radius: 16px;
	padding: 28px 24px;
	box-shadow: 0 10px 34px rgba(24, 27, 43, .09);
}

/* 사이트 헤더와 같은 보라색 그라데이션을 카드 상단에 얇게 얹는다. */
.enp-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var(--enp-grad);
}

/* ── 헤더 ───────────────────────────────── */

.enp-head {
	text-align: center;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--enp-line);
}

.enp-badge {
	display: inline-block;
	background: rgba(109, 40, 232, .1);
	color: var(--enp-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
	padding: 4px 10px;
	border-radius: 999px;
}

.enp-goods {
	margin: 0 0 6px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.4;
}

.enp-amount {
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--enp-accent);
}

.enp-amount small {
	font-size: 18px;
	font-weight: 700;
	margin-left: 2px;
}

/* ── 정보 목록 ───────────────────────────── */

.enp-meta {
	margin: 18px 0 0;
	padding: 0;
	font-size: 14px;
}

.enp-meta > div {
	display: flex;
	gap: 12px;
	padding: 7px 0;
}

.enp-meta dt {
	flex: 0 0 76px;
	margin: 0;
	color: var(--enp-muted);
	font-weight: 500;
}

.enp-meta dd {
	flex: 1;
	margin: 0;
	word-break: break-all;
}

.enp-account {
	font-weight: 700;
	font-size: 17px;
	letter-spacing: .01em;
}

/* ── 입력 필드 ───────────────────────────── */

.enp-fields {
	margin-top: 20px;
	display: grid;
	gap: 12px;
}

.enp-fields label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--enp-muted);
}

.enp-fields label small {
	font-weight: 400;
}

.enp-req {
	color: #e04b4b;
}

.enp-fields input {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 11px 13px;
	font-size: 15px;
	color: var(--enp-text);
	background: #fff;
	border: 1px solid var(--enp-line);
	border-radius: 9px;
	box-sizing: border-box;
}

.enp-fields input:focus {
	outline: none;
	border-color: var(--enp-accent);
	box-shadow: 0 0 0 3px rgba(109, 40, 232, .13);
}

/* ── 결제수단 ───────────────────────────── */

.enp-methods {
	margin-top: 22px;
}

.enp-methods-title {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--enp-muted);
	margin-bottom: 8px;
}

.enp-methods-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
	gap: 8px;
}

.enp-method {
	position: relative;
	display: block;
	margin: 0;
}

.enp-method input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.enp-method span {
	display: block;
	text-align: center;
	padding: 12px 6px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid var(--enp-line);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .15s, background .15s, color .15s;
}

.enp-method input:checked + span {
	border-color: var(--enp-accent);
	background: rgba(109, 40, 232, .07);
	color: var(--enp-accent);
}

.enp-method input:focus-visible + span {
	box-shadow: 0 0 0 3px rgba(109, 40, 232, .2);
}

/* ── 할부 ───────────────────────────────── */

.enp-quota {
	margin-top: 20px;
}

.enp-quota-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--enp-muted);
	margin-bottom: 8px;
}

.enp-quota-select {
	display: block;
	width: 100%;
	padding: 11px 13px;
	font-size: 15px;
	color: var(--enp-text);
	background: #fff;
	border: 1px solid var(--enp-line);
	border-radius: 9px;
	box-sizing: border-box;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b7280' stroke-width='1.8' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}

.enp-quota-select:focus {
	outline: none;
	border-color: var(--enp-accent);
	box-shadow: 0 0 0 3px rgba(109, 40, 232, .13);
}

.enp-quota-hint {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--enp-muted);
}

/* ── 구매조건 동의 ───────────────────────── */

.enp-agree {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin-top: 22px;
	padding: 13px 14px;
	border: 1px solid var(--enp-line);
	border-radius: 10px;
	background: #fbfbfd;
	font-size: 13.5px;
	line-height: 1.6;
	cursor: pointer;
}

.enp-agree input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--enp-accent);
	cursor: pointer;
}

.enp-agree a {
	color: var(--enp-accent);
	font-weight: 600;
	text-decoration: underline;
}

.enp-until {
	display: block;
	margin-top: 1px;
	font-size: 12px;
	color: var(--enp-muted);
}

/* ── 버튼 ───────────────────────────────── */

.enp-pay {
	display: block;
	width: 100%;
	margin-top: 24px;
	padding: 16px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	background: var(--enp-grad);
	border: 0;
	border-radius: 11px;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(109, 40, 232, .28);
	transition: transform .12s, box-shadow .15s, filter .15s;
}

.enp-pay:hover {
	filter: brightness(1.07);
	box-shadow: 0 8px 22px rgba(109, 40, 232, .34);
}

.enp-pay:active {
	transform: translateY(1px);
}

.enp-pay:disabled {
	opacity: .55;
	cursor: progress;
}

.enp-foot {
	margin: 14px 0 0;
	font-size: 12.5px;
	color: var(--enp-muted);
	text-align: center;
	line-height: 1.6;
}

.enp-testmode {
	color: #b45309;
}

/* ── 결과 화면 ───────────────────────────── */

.enp-card-done,
.enp-card-notice {
	text-align: center;
}

.enp-card-done .enp-meta,
.enp-card-notice .enp-meta {
	text-align: left;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--enp-line);
}

.enp-check {
	width: 56px;
	height: 56px;
	margin: 4px auto 14px;
	border-radius: 50%;
	background: var(--enp-accent);
	color: #fff;
	font-size: 30px;
	line-height: 56px;
	font-weight: 700;
}

.enp-check-wait {
	background: #f0a020;
}

.enp-done-title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
}

.enp-sub {
	margin: 0 0 14px;
	font-size: 14px;
	color: var(--enp-muted);
}

.enp-receipts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.enp-receipt {
	display: inline-block;
	padding: 11px 20px;
	font-size: 14px;
	font-weight: 600;
	color: var(--enp-accent);
	border: 1px solid var(--enp-accent);
	border-radius: 9px;
	text-decoration: none;
}

.enp-receipt:hover {
	background: rgba(109, 40, 232, .07);
}

/* ── 현금영수증 ─────────────────────────── */

/* 주의: 클래스명을 .enp-receipt 로 쓰면 매출전표 "버튼" 스타일(inline-block + 테두리)을
   그대로 상속받아 블록이 내용 크기로 쪼그라든다. 반드시 .enp-cashreceipt 를 쓸 것. */
.enp-cashreceipt {
	display: block;
	width: 100%;
}

.enp-receipt-no {
	margin-top: 12px;
	width: 100%;
}

.enp-receipt-no label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--enp-muted);
}

.enp-receipt-no input {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 11px 13px;
	font-size: 15px;
	color: var(--enp-text);
	background: #fff;
	border: 1px solid var(--enp-line);
	border-radius: 9px;
	box-sizing: border-box;
}

.enp-receipt-no input:focus {
	outline: none;
	border-color: var(--enp-accent);
	box-shadow: 0 0 0 3px rgba(109, 40, 232, .13);
}

.enp-receipt-hint {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--enp-muted);
}

[hidden] {
	display: none !important;
}

.enp-notice-error .enp-done-title {
	color: #c0392b;
}

/* ── 알림 배너 ───────────────────────────── */

.enp-alert {
	margin-bottom: 14px;
	padding: 13px 16px;
	border-radius: 11px;
	font-size: 14px;
	line-height: 1.5;
}

.enp-alert strong {
	display: block;
	margin-bottom: 2px;
}

.enp-alert-error {
	background: #fdecea;
	color: #a4261a;
}

@media (max-width: 480px) {
	.enp-card {
		padding: 24px 18px;
		border-radius: 14px;
	}

	.enp-amount {
		font-size: 30px;
	}
}
