/* 구매자 모달 - 동의 섹션 컨테이너 */
.order-buyer-consents {
	display: grid;
	gap: 8px;
	margin-top: 4px;
	padding: 14px;
	border: 1px solid #d9e5f6;
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(244, 248, 255, 0.98) 0%, rgba(251, 253, 255, 0.98) 100%);
	transition: border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.order-buyer-consents.is-all-checked {
	border-color: #9fc0ff;
	background: linear-gradient(180deg, rgba(235, 244, 255, 0.98) 0%, rgba(245, 250, 255, 0.98) 100%);
	box-shadow: 0 0 0 6px rgba(11, 99, 246, 0.08);
	animation: orderConsentPulse 0.6s ease;
}

/* 구매자 모달 - 개별 동의 체크 */
.order-buyer-agree-item {
	background: #ffffff;
}

.order-buyer-consents .order-buyer-agree {
	gap: 8px;
	padding: 12px 14px;
	border-radius: 14px;
	line-height: 1.45;
}

.order-buyer-consents .order-buyer-agree span strong {
	font-size: 14px;
	line-height: 1.35;
}

.order-buyer-consents .order-buyer-agree span em {
	display: inline;
	margin-top: 0;
	margin-left: 6px;
	font-size: 12px;
	line-height: 1.4;
}

.order-buyer-consents .order-buyer-agree > .order-field-error {
	margin-left: 24px;
}

/* 구매자 모달 - 약관/방침 아코디언 카드 */
.order-buyer-consent-card {
	border: 1px solid #d8e2f1;
	border-radius: 14px;
	background: #ffffff;
	overflow: hidden;
}

.order-buyer-consent-summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	padding: 12px 14px;
	list-style: none;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	color: #102038;
}

.order-buyer-consent-summary::-webkit-details-marker {
	display: none;
}

/* 구매자 모달 - 아코디언 제목/메타 */
.order-buyer-consent-title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	flex: 1 1 auto;
	min-width: 0;
}

.order-buyer-consent-meta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 8px;
	border-radius: 999px;
	background: #eaf2ff;
	font-size: 11px;
	font-weight: 700;
	color: #0b63f6;
}

/* 구매자 모달 - 필수 배지 */
.order-buyer-required-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px 7px;
	border-radius: 999px;
	background: #0b63f6;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	color: #ffffff;
}

.order-buyer-consent-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

.order-buyer-consent-arrow::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 7px;
	height: 7px;
	border-right: 2px solid #6b7a92;
	border-bottom: 2px solid #6b7a92;
	transform: translate(-50%, -65%) rotate(45deg);
	transition: transform 0.24s ease;
}

.order-buyer-consent-card[open] .order-buyer-consent-arrow::before {
	transform: translate(-50%, -35%) rotate(-135deg);
}

/* 구매자 모달 - 아코디언 본문 */
.order-buyer-consent-body {
	max-height: 148px;
	padding: 12px 14px;
	overflow-y: auto;
	border-top: 1px solid #eef3fb;
	background: #ffffff;
	font-size: 13px;
	line-height: 1.55;
	color: #4d5d77;
}

.order-buyer-consent-body p {
	margin: 0;
}

.order-buyer-consent-body p + p {
	margin-top: 6px;
}

/* 구매자 모달 - 전체 동의 강조 모션 */
@keyframes orderConsentPulse {
	0% {
		transform: scale(1);
	}
	35% {
		transform: scale(1.01);
	}
	100% {
		transform: scale(1);
	}
}

@media (max-width: 480px) {
	.order-buyer-consents {
		gap: 7px;
		padding: 10px;
		border-radius: 16px;
	}

	.order-buyer-consent-card {
		border-radius: 12px;
	}

	.order-buyer-consent-summary {
		gap: 10px;
		padding: 11px 12px;
	}

	.order-buyer-consent-title {
		gap: 6px;
		font-size: 14px;
		line-height: 1.35;
		letter-spacing: -0.01em;
	}

	.order-buyer-required-badge {
		padding: 2px 6px;
		font-size: 9px;
	}

	.order-buyer-consent-arrow {
		width: 16px;
		height: 16px;
		flex-basis: 16px;
	}

	.order-buyer-consent-arrow::before {
		width: 6px;
		height: 6px;
	}

	.order-buyer-consent-body {
		max-height: 128px;
		padding: 10px 12px;
		font-size: 12px;
		line-height: 1.5;
	}

	.order-buyer-consents .order-buyer-agree {
		display: grid;
		grid-template-columns: 20px minmax(0, 1fr);
		align-items: start;
		gap: 10px;
		padding: 11px 12px;
		border-radius: 12px;
	}

	.order-buyer-consents .order-buyer-agree input {
		margin: 2px 0 0;
	}

	.order-buyer-consents .order-buyer-agree span {
		min-width: 0;
	}

	.order-buyer-consents .order-buyer-agree span strong {
		display: flex;
		align-items: center;
		gap: 6px;
		flex-wrap: wrap;
		font-size: 13px;
		line-height: 1.35;
		letter-spacing: -0.01em;
		word-break: keep-all;
	}

	.order-buyer-consents .order-buyer-agree span em {
		display: block;
		margin-top: 4px;
		margin-left: 0;
		font-size: 11px;
		line-height: 1.45;
		word-break: keep-all;
	}

	.order-buyer-consents .order-buyer-agree > .order-field-error {
		grid-column: 2;
		margin-left: 0;
	}

	.order-buyer-agree-all {
		background: linear-gradient(180deg, #edf4ff 0%, #eaf2ff 100%);
	}

	.order-buyer-help {
		font-size: 13px;
		line-height: 1.5;
		word-break: keep-all;
	}

	.order-buyer-actions {
		gap: 10px;
	}

	.order-buyer-actions .btn-main,
	.order-buyer-actions .btn-sub {
		min-height: 54px;
	}
}
