/* [1] 기본 스타일 (PC: 1024px 이상) */
.inirt-modal {
	display: none;
	position: fixed;
	top: 45%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 420px; /* PC에서의 적절한 너비 */
	max-width: calc(100vw - 30px);
	background: #ffffff;
	border: 1px solid #ccc;
	border-radius: 8px;
	padding: 40px 20px 25px 20px;
	box-sizing: border-box;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
	z-index: 1000;
	overflow: hidden;
}

/* [2] 태블릿 단계 (768px ~ 1023px) */
@media screen and (max-width: 1023px) {
	.inirt-modal {
		width: 380px; /* 약간 줄여서 안정감 확보 */
		padding: 35px 18px 22px 18px;
	}
}

/* [3] 모바일 단계 (767px 이하) */
@media screen and (max-width: 767px) {
	.inirt-modal {
		/* 좌우 여백을 균일하게 주고 가변적으로 변하게 설정 */
		width: calc(100vw - 100px);
		max-width: calc(100vw - 30px); /* 너무 커지는 것 방지 */
		top: 50%; /* 모바일은 중앙 배치가 더 안정적 */
		padding: 30px 15px 20px 15px;
	}

	/* 모바일에서 버튼이 너무 작아 보인다면 텍스트 크기 조절 */
	.inirt-modal-search-btn {
		padding: 0 12px;
		font-size: 14px;
		white-space: nowrap;
	}
}

/* [추가] 초소형 모바일 (320px 이하) */
@media screen and (max-width: 320px) {
	.inirt-modal {
		width: calc(100vw - 20px); /* 여백을 줄여 공간 확보 */
		max-width: calc(100vw - 20px);
		padding: 25px 10px 15px 10px;
	}
}

/* 검색 패널: InputWrap과 Button을 하나로 연결 */
.inirt-modal-search-panel {
	display: flex;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	align-items: stretch; /* 높이 통일 */
}

.inirt-addr-list-panel {
	margin-top: 20px;
	min-height: 400px;
	height: 400px;
	overflow-y: auto;
}

/* 입력창을 감싸는 박스 (왼쪽) */
.inirt-modal-search-input-wrap {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	box-sizing: border-box;
	align-items: center;
	border: 2px solid #333;
	border-right: none; /* 검색 버튼과 겹치는 선 제거 */
	border-radius: 4px 0 0 4px; /* 사각형 느낌의 왼쪽 곡률 */
	padding: 0 10px;
	background: #fff;
}

.inirt-modal-search-input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	border: none;
	outline: none;
	padding: 10px 0;
	font-size: 14px;
}

/* 삭제 버튼 (X) */
.inirt-modal-search-clear-btn {
	background: none;
	border: none;
	color: #ccc;
	cursor: pointer;
	font-size: 18px;
	padding: 0 5px;
}

.inirt-modal-search-clear-btn:hover {
	color: #333;
}

/* 검색 버튼 (오른쪽) */
.inirt-modal-search-btn {
	flex: 0 0 auto;
	box-sizing: border-box;
	white-space: nowrap;
	background: #333;
	color: #fff;
	border: 2px solid #333;
	border-radius: 0 4px 4px 0; /* 사각형 느낌의 오른쪽 곡률 */
	padding: 0 20px;
	cursor: pointer;
	font-weight: bold;
	font-size: 14px;
}

.inirt-modal-search-btn:hover {
	background: #000;
}

/* 닫기 버튼 */
.inirt-modal-close-btn {
	position: absolute;
	top: 5px;
	right: 5px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #999;
}

.inirt-addr-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.inirt-addr-table th {
	background-color: #fff;
	border-bottom: 1px solid #333;
	padding: 10px 5px;
	text-align: center;
	font-weight: bold;
}

.inirt-addr-table td {
	padding: 5px;
	border-bottom: 1px solid #eee;
	vertical-align: middle;
}

.inirt-addr-table tr:nth-child(even) td {
	background-color: #f9f9f9;
}

.inirt-addr-container {
	max-width: 800px;
	margin: 0 auto;
}

.inirt-addr-header {
	text-align: left;
	font-size: 14px;
	font-weight: bold;
	border-bottom: 1px solid #000;
	padding-bottom: 5px;
}

.inirt-addr-count {
	color: #0056b3;
}

.inirt-addr-column-no {
	width: 20px;
	text-align: center;
}

.inirt-addr-column-address {
	text-align: left;
}

.inirt-addr-column-zip {
	width: 55px;
	text-align: center;
	color: #555;
}

.inirt-addr-road-addr {
	display: block;
	text-decoration: none;
	margin: 0;
	margin-bottom: 2px;
	cursor: pointer;
}

.inirt-addr-jibun-addr {
	display: block;
	color: #666;
	font-size: 12px;
}

.inirt-addr-jibun-label {
	color: #888;
	margin-right: 4px;
}

/* .inirt-addr-tag { */
/* 	display: inline-block; */
/*     padding: 1px 5px; */
/*     border-radius: 2px; */
/*     background-color: #efe7ff; */
/*     color: #4e3785; */
/*     font-size: 8px; */
/*     line-height: 16px; */
/*     font-weight: 400; */
/*     vertical-align: middle; */
/*     box-sizing: border-box; */
/*     margin-right: 10px; */
/*     width: 40px; */
/*     text-align: center; */
/* } */
.inirt-addr-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 5px 0;
	cursor: pointer;
}

.inirt-addr-tag {
	flex: 0 0 40px;
	display: inline-block;
	padding: 1px 5px;
	border-radius: 2px;
	background-color: #efe7ff;
	color: #4e3785;
	font-size: 8px;
	line-height: 16px;
	font-weight: 400;
	box-sizing: border-box;
	text-align: center;
}

.inirt-addr-text {
	flex: 1;
	min-width: 0;
	line-height: 18px;
	word-break: keep-all;
	overflow-wrap: break-word;
}

.inirt-addr-row:hover {
	color: #0056b3;
}

.inirt-addr-row:hover .inirt-addr-text {
	text-decoration: underline;
}

/* Pagination */
.inirt-addr-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 12px;
	padding-bottom: 8px;
}

.inirt-addr-page-btn {
	min-width: 26px;
	height: 24px;
	padding: 0 6px;
	border: 1px solid #ccc;
	background-color: #fff;
	color: #333;
	font-size: 12px;
	cursor: pointer;
	border-radius: 3px;
}

.inirt-addr-page-btn:hover:not(:disabled) {
    border-color: #3a1d7c;
    color: #ffffff;
    background-color: #3a1d7c;
}

.inirt-addr-page-btn.active {
	border-color: #3a1d7c;
	background-color: #3a1d7c;
	color: #fff;
	font-weight: bold;
}

.inirt-addr-page-btn:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.inirt-addr-loading, .inirt-addr-empty {
	padding: 20px 0;
	text-align: center;
	color: #666;
	font-size: 12px;
}

.inirt-addr-zip {
    width: 100%;
    text-align: right;
    margin-bottom: 5px;
    font-size: 15px;
    color: #3a1d7c;
}

.inirt-addr-page-notice {
  margin-top: 6px;
  text-align: center;
  font-size: 11px;
  color: #777;
}