@charset "utf-8";

/* 커스텀 알림창 */
#custom_alert_modal,
#custom_confirm_modal {
	max-width: 420px;
}
#custom_alert_modal .content,
#custom_confirm_modal .content {
	overflow: hidden;
	border: 0;
	border-radius: 12px;
	box-shadow: 0 18px 50px rgba(15, 23, 42, .22);
}
#custom_alert_modal .header,
#custom_confirm_modal .header {
	justify-content: flex-start;
	gap: 10px;
	padding: 20px 24px 12px;
	border-bottom: 0;
}
#custom_alert_modal .header .title,
#custom_confirm_modal .header .title {
	color: #111827;
	font-size: 18px;
	font-weight: 700;
}
.custom-dialog-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #e8f0fe;
	color: #1d4ed8;
	font-size: 18px;
}
.custom-dialog-icon-confirm {
	background: #fff7ed;
	color: #c2410c;
}
#custom_alert_modal .body,
#custom_confirm_modal .body {
	padding: 8px 24px 24px;
	font-size: 15px;
	line-height: 1.65;
	color: #4b5563;
}
#custom_confirm_modal .body {
	white-space: pre-line;
}
#custom_alert_modal .footer button,
#custom_confirm_modal .footer button {
	min-width: 88px;
	height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 7px;
	background: #1d4ed8;
	color: #fff;
	font-weight: 600;
}
#custom_alert_modal .footer a,
#custom_alert_modal .footer button,
#custom_confirm_modal .footer button {
	transition: background-color .2s, border-color .2s, color .2s;
}
#custom_alert_modal .footer .btn_submit:hover,
#custom_alert_modal .footer .btn_submit:focus,
#custom_confirm_modal .footer .btn_submit:hover,
#custom_confirm_modal .footer .btn_submit:focus {
	background: #1e40af;
}
#custom_confirm_modal .footer {
	gap: 8px;
}
#custom_alert_modal .footer,
#custom_confirm_modal .footer {
	padding: 16px 24px 20px;
	border-top: 1px solid #eef0f3;
}
#custom_confirm_modal .footer [data-confirm-result="false"] {
	border: 1px solid #d1d5db;
	background: #fff;
	color: #374151;
}

/* 계정 잠금 알림창 */
#custom_alert_modal.custom-alert-account-locked {
	max-width: 500px;
}
#custom_alert_modal.custom-alert-account-locked .content {
	border: 0;
	border-radius: 12px;
	box-shadow: 0 20px 50px rgba(15, 23, 42, .2);
}
.custom-alert-close {
	position: absolute;
	top: 12px;
	right: 14px;
	z-index: 1;
	border: 0;
	background: transparent;
	color: #334155;
	font-size: 26px;
	line-height: 1;
}
.custom-alert-heading {
	padding: 20px 32px 14px;
	border-bottom: 1px solid #e2e8f0;
	text-align: center;
}
.custom-alert-warning {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin: 0 auto 10px;
	border-radius: 50%;
	background: #fee2e2;
	color: #ef4444;
	font-size: 22px;
}
.custom-alert-heading h2 {
	margin: 0 0 4px;
	font-size: 22px;
	color: #0f172a;
}
.custom-alert-heading p,
.custom-alert-heading strong {
	display: block;
	margin: 10px 0 0 0;
	font-size: 13px;
}
.custom-alert-heading p {
	color: #64748b;
}
.custom-alert-heading strong {
	color: #ef4444;
}
#custom_alert_modal.custom-alert-account-locked .body {
	padding: 12px 22px 14px;
}
.custom-alert-details {
	margin: 0;
}
.custom-alert-details > div {
	display: grid;
	grid-template-columns: 135px 1fr;
	column-gap: 14px;
	align-items: center;
	min-height: 38px;
}
.custom-alert-details dt {
	font-size: 13px;
	font-weight: 700;
	color: #334155;
}
.custom-alert-details dt i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-right: 10px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #475569;
}
.custom-alert-details dd {
	margin: 0;
	font-size: 12px;
	color: #475569;
}
.custom-alert-details dd b {
	display: inline-block;
	margin-right: 8px;
	padding: 2px 7px;
	border-radius: 10px;
	background: #fee2e2;
	color: #ef4444;
}
.custom-alert-details dd span {
	color: #64748b;
}
.custom-alert-help {
	display: flex;
	gap: 10px;
	margin-top: 8px;
	padding: 12px;
	border: 1px solid #bfdbfe;
	border-radius: 6px;
	background: #eff6ff;
	color: #1d4ed8;
}
.custom-alert-help > i {
	margin-top: 2px;
	font-size: 16px;
}
.custom-alert-help b {
	display: block;
	margin-bottom: 3px;
	font-size: 13px;
}
.custom-alert-help p {
	margin: 0;
	color: #475569;
	font-size: 12px;
	line-height: 1.5;
}
#custom_alert_modal.custom-alert-account-locked .custom-alert-actions {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	padding: 12px 22px 16px;
}
#custom_alert_modal.custom-alert-account-locked .custom-alert-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 38px;
	padding: 0 8px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	color: #1d4ed8;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}
#custom_alert_modal.custom-alert-account-locked .custom-alert-button:hover,
#custom_alert_modal.custom-alert-account-locked .custom-alert-button:focus {
	border-color: #1d4ed8;
	background: #eff6ff;
	color: #1d4ed8;
}
#custom_alert_modal.custom-alert-account-locked .custom-alert-button.primary {
	border: none;
	background: #1d4ed8;
	color: #fff;
}
#custom_alert_modal.custom-alert-account-locked .custom-alert-button.primary:hover,
#custom_alert_modal.custom-alert-account-locked .custom-alert-button.primary:focus {
	background: #1e40af;
	color: #fff;
}
@media (max-width: 480px) {
	#custom_alert_modal,
	#custom_confirm_modal {
		width: calc(100% - 32px);
	}
	.custom-alert-details > div {
		grid-template-columns: 1fr;
		row-gap: 6px;
		padding: 6px 0;
	}
	.custom-alert-details > div dd {
		padding-left: 31px;
	}
	#custom_alert_modal.custom-alert-account-locked .custom-alert-actions {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* 모달 버튼 상태를 마우스와 키보드에서 동일하게 구분합니다. */
#custom_alert_modal .footer button,
#custom_confirm_modal .footer button,
#custom_alert_modal.custom-alert-account-locked .custom-alert-button,
.custom-alert-close {
	cursor: pointer;
}
#custom_confirm_modal .footer [data-confirm-result="false"]:hover,
#custom_confirm_modal .footer [data-confirm-result="false"]:focus {
	border-color: #9ca3af;
	background: #f3f4f6;
	color: #111827;
}
#custom_alert_modal .footer button:focus-visible,
#custom_confirm_modal .footer button:focus-visible,
#custom_alert_modal.custom-alert-account-locked .custom-alert-button:focus-visible,
.custom-alert-close:focus-visible {
	outline: 3px solid rgba(29, 78, 216, .3);
	outline-offset: 2px;
}
.custom-alert-close:hover,
.custom-alert-close:focus {
	border-radius: 4px;
	background: #f1f5f9;
	color: #0f172a;
}
