
@charset "UTF-8";

/* ===== 기본 Input 스타일 ===== */
.bnk-inputset {
  display: inline-block;
  border-radius: var(--radius-4);
  border: 1px solid var(--foundation-line-gray-2);
  background: var(--foundation-bg-bg-white);
  transition: border-color 0.3s ease;
  position: relative;
  box-sizing: border-box;
}

.bnk-inputset input {
  background: none;
  border: none;
  height: 50px;
  padding: 0 16px;
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--foundation-font-black);
  caret-color: var(--foundation-primary-bnk-red);
  outline: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.input-processing { 
  
}
.input-processing.full { }
.input-processing.full .bnk-inputset {
  display:flex
}
.input-processing.full .bnk-inputset input {
  width:100%
}



.input-processing .bnk-inputset { 
  display: inline-flex;
}
.input-processing .bnk-inputset .clear-btn-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 0;
  gap:8px
}
.input-processing .bnk-inputset .clear-btn-wrap .clear-button {
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  background-image: url('../image/icon/custom/input-mask-close.png');
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;

}

.input-processing .bnk-inputset .clear-btn-wrap .clear-button.visible {
  opacity: 1;
  visibility: visible;
}

/* Clear button이 있을 때 input padding 조정 */
.bnk-inputset.close input {
  /* padding-right: 48px; */
}


.bnk-inputset.readonly { 
  background: var(--foundation-font-gray-2);
}
.bnk-inputset.readonly input:read-only { 
  color: var(--foundation-font-gray-2);
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.08px;
}


/* ===== Input 비활성화 ===== */
.bnk-inputset.disabled { 
  background: var(--foundation-bg-bg-3);
  border-color: var(--foundation-line-gray-3);
  overflow: hidden;
}


/* input:disabled 속성으로 비활성화된 경우 */
.bnk-inputset.disabled input:disabled {
  background: var(--foundation-bg-bg-3);
  color: var(--foundation-font-gray-3);
  cursor: not-allowed;
  font-weight: bold;
  letter-spacing: -0.08px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 브라우저 기본 스타일 리셋 */
.bnk-inputset input:disabled {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-weight: bold !important;
}


.bnk-inputset input::placeholder {
    color: var(--foundation-font-gray-4);
    font-size: 1.6rem;
    font-style: normal;
    font-weight: 700;
    line-height: 100%; /* 16px */
    letter-spacing: -0.08px;
}

/* ===== Input 크기 변형 ===== */
.bnk-inputset.small input {
  height: 40px;
  font-size: 1.4rem;
}

.bnk-inputset.medium input {
  height: 50px;
  font-size: 1.6rem;
}

.bnk-inputset.large input {
  height: 60px;
  font-size: 1.8rem;
}

/* ===== Input 스타일 변형 ===== */
.bnk-inputset.outline input {
  border: 2px solid var(--foundation-line-gray-2);
}

.bnk-inputset.filled input {
  background: var(--foundation-bg-bg-2);
}

.bnk-inputset.borderless input {
  border: none;
}

/* ===== Input 상태 ===== */
.bnk-inputset.success input {
  border-color: var(--palette-green-base);
}

.bnk-inputset.error input {
  border-color: var(--foundation-primary-bnk-red);
}

.bnk-inputset.warning input {
  border-color: var(--foundation-ui-warning);
}

/* ===== Input 그룹 ===== */
.bnk-inputset.group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bnk-inputset.group input {
  flex: 1;
}

.bnk-inputset.group .prefix,
.bnk-inputset.group .suffix {
  padding: 0 12px;
  font-size: 1.4rem;
  color: var(--foundation-font-gray-2);
  white-space: nowrap;
}

.bnk-inputset.incert {
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  padding-right: 16px;
  /* width: 100%; */
  gap: 8px;
}
.bnk-inputset.incert input {
  flex:1;
  /* width: 100%; */
  width: 100%;
  padding-right: 0;
}
.bnk-inputset.incert .incert-inwarp {
  padding: 0 0 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  justify-content: flex-end;
  /* flex: auto; */
}
.bnk-inputset.incert .incert-inwarp .count {
  color: var(--foundation-primary-bnk-red);
  font-size: 1.4rem;
  font-style: normal;
  font-weight: 700;
  line-height: 100%; /* 14px */
  letter-spacing: -0.07px;
}

.bnk-inputset.incert.close .clear-btn-wrap {
  flex: none;
}

.bnk-inputset.incert.close input {
  min-width: 0;
}





/* readonly input이 있는 경우 포커스 효과 제거 */

.bnk-inputset:not(.ckbox):not(.rdo):has(textarea[readonly]),
.bnk-inputset:not(.ckbox):not(.rdo):has(input[readonly]) {
  border-color: var(--foundation-line-gray-2);
  outline: none;
  border-width: 1px;
}

/* ===== Input 읽기 전용 ===== */
.bnk-inputset:not(.ckbox):not(.rdo).readonly {
  border-color: var(--foundation-line-gray-2);
  background: var(--foundation-bg-bg-1);
}

.bnk-inputset:not(.ckbox):not(.rdo).readonly input {
  cursor: not-allowed;
  color: var(--foundation-font-gray-2);
}

/* ===== Input 닫기 버튼 ===== */
.bnk-inputset.close {
  position: relative;
  padding-right: 16px;
}



/* 접근성: 호버 스타일 (데스크톱에서만) */
@media (hover: hover) {
  .bnk-inputset.close .clear-button:hover {
    opacity: 0.8;
  }
}

/* 포커스 스타일 */
/* .bnk-inputset.close .clear-button:focus {
  outline: 2px solid var(--foundation-primary-bnk-red);
  outline-offset: 2px;
  border-radius: 2px;
} */

/* ===== Input 검증 상태 ===== */
.bnk-inputset.processing {
  border-color: var(--palette-semantic-warning);
}

.bnk-inputset.success {
  border-color: var(--foundation-ui-success);
}

.bnk-inputset.error {
  border-color: var(--foundation-ui-error);
}

/* 처리중 아이콘 */
.bnk-inputset .icon.processing {
  background-image: url('../image/icon/icon-loading.svg');
  animation: spin 1s linear infinite;
}

/* 성공 아이콘 */

.bnk-inputset .icon.error,
.bnk-inputset .icon.success { 
  width:20px; height:20px;
}
.bnk-inputset .icon.success {
  background: url('../image/icon-input-sucess.png') no-repeat 0 0 / 100%;
}

/* 에러 아이콘 */
.bnk-inputset .icon.error {
  background: url('../image/icon-input-effectiveness.png') no-repeat 0 0 / 100%;
}

/* 로딩 애니메이션 */
@keyframes spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

/* 메시지 영역 */
.process-msg {
  margin-top: 0;
  /* overflow: hidden; */
}
.process-msg .msg:first-child {
  margin-top:8px
}
.process-msg .msg + .msg {
  margin-top:4px
}

.helpmsg {
  color: var(--foundation-font-gray-2);
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 21px */
  letter-spacing: -0.07px;
}


.input-processing .validation-message {
  font-size: 1.4rem;
  color: var(--palette-semantic-information);
  line-height: 1.4;
  margin: 0;
}

.input-processing .validation-message {
  display: block;
}

.input-processing .validation-message[hidden] {
  display: none;
}

.input-processing .success-message {
  font-size: 1.4rem;
  color: var(--foundation-primary-bnk-red);
  line-height: 1.4;
  margin: 0;
  display: block;
}

.input-processing .success-message[hidden] {
  display: none;
}

/* 검증 메시지 강제 표시 디버깅 */
.input-processing .validation-message:not([hidden]) {
  display: block;
  visibility: visible;
  opacity: 1;
  color: var(--palette-semantic-information);
}

/* 아이콘 기본 스타일 */
.bnk-inputset .icon {

}

.bnk-inputset .bnk-btn.icon.custom-grid01 {
  padding-right:16px
}

/* 아이콘이 있을 때 input padding 조정 */
.bnk-inputset.processing input,
.bnk-inputset.success input,
.bnk-inputset.error input {
  padding-right: 80px;
}

/* ===== Money Input 읽기 전용 ===== */
.bnk-inputset.money.readonly {
  border-color: var(--foundation-line-gray-3);
  background: var(--foundation-bg-bg-3);
}

.bnk-inputset.money.readonly input {
  cursor: not-allowed;
  color: var(--foundation-font-gray-2);
}

.bnk-inputset.money.readonly .text {
  color: var(--foundation-font-gray-2);
}

.input-select {display: flex;}
.input-select .bnk-inputset.select {}

/* ===== Select 컴포넌트 ===== */
.select-wrapper {
  position: relative;
  display: block;
}
.select-wrapper .bnk-inputset.select {width:100%}

/* Select 전용 스타일 */
.bnk-inputset.select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 200px;
  min-height: 50px;
  padding: 0 16px;
  background: var(--foundation-bg-bg-white);
  border: 1px solid var(--foundation-line-gray-2);
  border-radius: var(--radius-4);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
  gap: 0;
  text-align: left;
}

.bnk-inputset.select.transfer-bank-trigger {
  width:100%
}

.bnk-inputset.select.colmun-fixed .select-value{
  padding: 17px 0;
  display: block;
}


.bnk-inputset.select:focus-within,
.bnk-inputset.select.on {
  border-color: var(--foundation-primary-black);
}

.bnk-inputset.select .select-value {
  white-space: normal; /* 줄바꿈 허용 */
  color: var(--foundation-font-gray-4);
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5; /* 줄 간격 조정 (줄바꿈 지원) */
  letter-spacing: -0.08px;
  flex: 1;
  text-align: left;
}

.bnk-inputset.select .select-value.select-value--selected {
  color: var(--foundation-font-black);
  font-size: 1.6rem;
  font-weight: 700;
}

.bnk-inputset.select .select-arrow {
  width: 20px;
  height: 20px;
  background-image: url('../image/icon/custom/chevron-down.svg');
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
  /* transition: transform 0.2s ease; */
  /* flex-shrink: 0; */
}

.bnk-inputset.select.open .select-arrow {
  transform: rotate(180deg);
}

.bnk-inputset.select.open,
.bnk-inputset:not(.ckbox):not(.rdo):focus-within,
.bnk-inputset:not(.ckbox):not(.rdo).on {
  border: 2px solid var(--foundation-font-black);
 
}

.bnk-inputset:not(.ckbox):not(.rdo):focus-within input { 
  height:48px;
  
}

/* .input-date-range 내부의 .bnk-inputset은 포커스 스타일 제외 */
.input-date-range .bnk-inputset:not(.ckbox):not(.rdo):focus-within,
.input-date-range .bnk-inputset:not(.ckbox):not(.rdo).on {
  border: none;
}

.input-date-range .bnk-inputset:not(.ckbox):not(.rdo):focus-within input {
  /* height: 50px; */
}
.bnk-inputset:not(.ckbox):not(.rdo):focus-within input:read-only { 
  height:50px
}

.bnk-inputset .select-value {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--foundation-font-black);
  flex: 1;
}


/* Select 드롭다운 스타일 */
.select-dropdown {
  position: absolute;
  top: 120%;
  left: 0;
  right: 0;
  background: var(--foundation-bg-bg-white);
  border: 2px solid var(--foundation-primary-black);
  /* border-top: none; */
  border-radius: var(--radius-4);
  /* max-height: 200px; */
  /* overflow-y: auto; */
  z-index: 1000;
}

.select-option {
  padding: 12px 16px;
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--foundation-font-black);
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: normal; /* 줄바꿈 허용 */
  line-height: 1.5; /* 줄 간격 조정 */
}

.select-option:last-child {
  border-bottom: none;
}

/* 접근성: 호버 스타일 (데스크톱에서만) */
@media (hover: hover) {
  .select-option:hover {
    background: var(--foundation-bg-bg-2);
  }
}

.select-option.selected {
  /* background: var(--primary);
  color: var(--foundation-line-white); */
}

/* Select 크기 변형 */
.bnk-inputset.select.small {
  height: 40px;
  padding: 0 12px;
}

.bnk-inputset.select.small .select-value {
  font-size: 1.4rem;
}

.bnk-inputset.select.small .select-option {
  font-size: 1.4rem;
  padding: 10px 12px;
}

.bnk-inputset.select.large {
  height: 60px;
  padding: 0 20px;
}

.bnk-inputset.select.large .select-value {
  font-size: 1.8rem;
}

.bnk-inputset.select.large .select-option {
  font-size: 1.8rem;
  padding: 16px 20px;
}

/* Select 상태 */
.bnk-inputset.select.success {
  border-color: var(--palette-green-base);
}

.bnk-inputset.select.error {
  border-color: var(--foundation-primary-bnk-red);
}

.bnk-inputset.select.warning {
  border-color: var(--foundation-ui-warning);
}

/* Select 비활성화 */
.bnk-inputset.select:has(.sr-only:disabled) {
  background: var(--foundation-bg-bg-3);
  border-color: var(--foundation-line-gray-3);
  cursor: not-allowed;
}

.bnk-inputset.select:has(.sr-only:disabled) .select-value {
  color: var(--foundation-font-gray-2);
}

/* Select 도움말 텍스트 */
.select-help-text {
  margin-top: 4px;
  font-size: 1.2rem;
  color: var(--foundation-font-gray-2);
}

/* ===== Money Input ===== */
.bnk-inputset.unit,
.bnk-inputset.money {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 16px;
}

.bnk-inputset.money input {flex: 1;text-align: left;padding-right: 0;}

.bnk-inputset.money.close.right input {
    text-align: right;
}

.bnk-inputset.unit .text,
.bnk-inputset.money .text {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--foundation-font-black);
  white-space: nowrap;
  padding-right: 0;
  display: none;
}


.money-count {
  display: flex;
  /* align-items: center; */
  justify-content: flex-end;
  gap: 0;
  color: var(--foundation-font-gray-2);
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 400;
  line-height: 140%; /* 16.8px */
  letter-spacing: -0.06px;
  margin-top: 8px;
}

.money-count .money-count-value {

}

.money-count .money-count-unit {
  
}

/* Number Input 화살표 제거 */
.bnk-inputset input[type="number"]::-webkit-outer-spin-button,
.bnk-inputset input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bnk-inputset input[type="number"] {
  -moz-appearance: textfield;
}


.bnk-inputset.search { 
  display:flex;
  align-items: center;
  padding-right:16px
}
.bnk-inputset.search.close .bnk-icon.icon-memo {
  width:20px;
  height:20px;
  flex:none
}

.bnk-inputset.search .clear-btn-wrap + .icon-line-search {
  margin-left:8px
}
.bnk-inputset.search.right input {text-align:right}
.bnk-inputset.search input,
.bnk-inputset.search textarea {
  width:100%
}

/* .bnk-inputset.search input {padding-right:0} */
.bnk-inputset.search .search{
  display: inline-block;
  width: 24px;
  height: 24px;
  padding: 4px;
  background: url(../image/icon/icon-search.png) center / 15px 16px no-repeat;
  font-size: 0;
  color: rgba(0, 0, 0, 0);
  margin-right:16px
}
.bnk-inputset.search input:hover + button.search,
.bnk-inputset.search input:focus + button.search{opacity:1;}
.bnk-inputset.search button.search:hover ~ input,
.bnk-inputset.search button.search:focus ~ input,
.bnk-inputset.search button.search:active ~ input{border:1px solid var(--foundation-primary-black);}
.bnk-inputset.search input:disabled:hover + button.search{opacity:0.3;}





/* ===== Password Input ===== */
.bnk-inputset.password {
  position: relative;
}

.bnk-inputset.password .password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--foundation-font-gray-2);
  transition: color 0.2s ease;
}

/* 접근성: 호버 스타일 (데스크톱에서만) */
@media (hover: hover) {
  .bnk-inputset.password .password-toggle:hover {
    color: var(--foundation-font-black);
  }
}

.bnk-inputset.password input {
  padding-right: 48px;
}

.bnk-inputset.password .password-toggle svg {
  width: 16px;
  height: 16px;
}

/* ===== Checkbox 스타일 ===== */
.bnk-inputset.ckbox {
  border: none;
  font-size: 0;
  background: none;
}

.bnk-inputset.ckbox label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  height: 24px;
  line-height: 24px;
  color: var(--foundation-font-black);
  font-size: 1.4rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.08px;
  /* 접근성: 터치 타겟 크기 개선 */
  min-height: 44px;
  padding: 10px 0;
}

.bnk-inputset.ckbox label input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--foundation-icon-gray-2);
  border-radius: 50%;
  background: url('../image/icon/custom/input-check-icon.svg') no-repeat center 52% / 12px 9px;
  /* background: var(--foundation-line-white);
  background-image: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 9px; */
  transition: all 0.2s ease;
  cursor: pointer;
  /* 접근성: 포커스 표시 개선 */
  outline: none;
}

/* 접근성: 포커스 스타일 */
.bnk-inputset.ckbox label input[type="checkbox"]:focus {
  /* outline: 2px solid var(--foundation-primary-bnk-red);
  outline-offset: 2px;
  border-color: var(--foundation-primary-bnk-red); */
}

/* 접근성: 호버 스타일 (데스크톱에서만) */
@media (hover: hover) {
  .bnk-inputset.ckbox label:hover input[type="checkbox"] {
    border-color: var(--foundation-primary-bnk-red);
    /* box-shadow: 0 0 0 2px rgba(210, 19, 0, 0.1); */
  }
}

.bnk-inputset.ckbox label input[type="checkbox"]:checked {
  background-color: var(--foundation-icon-red);
  background-image: url('../image/icon/custom/input-check-checked-icon.svg');
  border-color: var(--foundation-icon-red);
}

/* Checkbox 타입1 스타일 */
.bnk-inputset.ckbox.ty1 label {
  /* 접근성: 터치 타겟 크기 개선 */
  min-height: auto;
  padding: 0;
  height: unset;
  line-height: 1;
  /* display: block; */
  /* border: 1px solid #f00; */
}

.bnk-inputset.ckbox.ty1 label input[type="checkbox"] {
  background-image: url('../image/icon/custom/input-check-icon-ty1.svg');
  background-size: 100%;
  border: none;
  width: 15px;
  height: 11px;
  margin-bottom: 1px;
  border-radius: 0;
  flex: none;
}

.bnk-inputset.ckbox.ty1 label input[type="checkbox"]:checked {
  background-color: transparent;
  background-image: url('../image/icon/custom/input-check-checked-icon-ty1.svg');
  border: none
}

/* Checkbox 타입1 Small 스타일 */
.bnk-inputset.ckbox.ty1.sm label {
  font-size: 1.4rem;
  font-weight: normal;
  /* 접근성: 터치 타겟 크기 개선 (시각적 크기는 작게, 터치 영역은 크게) */
  min-height: 44px;
  padding: 18px 0;
}

.bnk-inputset.ckbox.ty1.sm label input[type="checkbox"] {
  background-image: url('../image/input-check-icon-ty1.png');
  background-size: 100%;
  border: none;
  width: 12px;
  height: 8px;
  margin-bottom: 3px;
}

.bnk-inputset.ckbox.ty1.sm label input[type="checkbox"]:checked {
  background-color: transparent;
  background-image: url('../image/input-check-checked-icon-ty1.png');
}

/* Checkbox 타입2 스타일 */
.bnk-inputset.ckbox.ty2 label {
  /* 접근성: 터치 타겟 크기 개선 */
  min-height: 44px;
  padding: 14px 0;
}

.bnk-inputset.ckbox.ty2 label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-2);
  background-size: 8px 5px;
  background-image: none;
}

.bnk-inputset.ckbox.ty2 label input[type="checkbox"]:checked {
  background-image: url('../image/input-check-checked-icon.png');
}

/* 접근성: 스크린 리더 전용 클래스 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 접근성: 비활성화 상태 개선 */
.bnk-inputset.ckbox label input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.bnk-inputset.ckbox label input[type="checkbox"]:disabled + * {
  cursor: not-allowed;
  opacity: 0.5;
}

/* 접근성: 유효성 검사 실패 상태 */
.bnk-inputset.ckbox label input[type="checkbox"][aria-invalid="true"] {
  border-color: var(--foundation-primary-bnk-red);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

/* 접근성: 필수 입력 표시 */
.bnk-inputset.ckbox label input[type="checkbox"][aria-required="true"] + *::after {
  content: " *";
  color: var(--foundation-primary-bnk-red);
  font-weight: bold;
}

/* ===== Radio 버튼 스타일 ===== */

.input-radio-group {
  display:flex;
  gap: 16px;
  flex-wrap: wrap;
}
.bnk-inputset.rdo { 
  border: none;
}

.input-radio-group.ty1 .bnk-inputset { 
  flex:1
}

.input-radio-group .bnk-inputset + .bnk-inputset {/* margin-left:16px; */}

.bnk-inputset.rdo label input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--foundation-icon-gray-2);
  border-radius: 50%;
  background:var(--foundation-bg-bg-1);
  background-image: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 9px;
  /* transition: all 0.2s ease; */
  cursor: pointer;
}

.bnk-inputset.rdo label input[type="radio"]:checked {
  background: url('../image/icon/custom/input-radio-checked-icon.png') no-repeat center / 10px 10px;
  border-color: var(--foundation-primary-bnk-red);
  border-width: 0.15rem;
  /* border-width: 1px; */
}

/* 라디오 버튼 on 클래스 스타일 */
.bnk-inputset.rdo.on label input[type="radio"] {
  background: url('../image/icon/custom/input-radio-checked-icon.png') no-repeat center / 10px 10px;
}

/* 라디오 버튼 라벨 스타일 */
.bnk-inputset.rdo label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  height: 18px;
  color: var(--foundation-font-black);
  font-size: 1.4rem;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 21px */
  letter-spacing: -0.07px;
}



/* 라디오 버튼 disabled 스타일 */
.bnk-inputset.rdo label input[type="radio"]:disabled { 
  border-color: var(--foundation-line-gray-2);
  background: var(--foundation-bg-bg-2);
  cursor: not-allowed;
}

.bnk-inputset.rdo label input[type="radio"]:checked:disabled {
  background: url('../image/icon/custom/input-radio-disabled-icon.png') no-repeat center / 10px 10px;
}

/* 라디오 스타일 타입 */
.input-radio-style { 
  display: flex; 
  gap: 16px;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.input-radio-style > li {
  margin: 0;
  padding: 0;
  display: flex;
  position: relative;
  flex: 1;
  z-index: 10;
}

.input-radio-style.ty1 {
  background: var(--foundation-bg-bg-white);
  gap: 0;
  position:relative;
  min-height: 48px;
}

.input-radio-style.ty1.balance > li { flex:1 }
.input-radio-style.ty1::before {
  content:"";
  display:block;
  border: 1px solid var(--foundation-line-gray-2);
  border-radius: var(--radius-6);
  overflow: hidden;
  position: absolute;
  top:0;
  right:0;
  bottom:0;
  left:0;
  z-index:0;
}

.input-radio-style.ty1 .bnk-inputset.on + .bnk-inputset::before { 
  display: none;
}

/* Grid 타입 라디오 스타일 */
.input-radio-style.ty1.grid { 
  display: grid;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}



.input-radio-style.ty1 > li .bnk-inputset.rdo > label {
  width: 100%;
  height: 100%;
  padding: 0 8px;
  justify-content: center;
  text-align: center;
}

.input-radio-style.ty1 > li .bnk-inputset.rdo.on > label {
  background: var(--foundation-primary-bnk-red);
  color: var(--foundation-line-white);
}

/* Grid 레이아웃 */
.input-radio-style.ty1.grid.grid-2x2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.input-radio-style.ty1.grid.grid-3x3 {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
}

.input-radio-style.ty1.grid.grid-4x2 {
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

/* Grid 구분선 */
.input-radio-style.ty1.grid.grid-2x2 > li:nth-child(2n+3) .bnk-inputset.rdo::before,
.input-radio-style.ty1.grid.grid-2x2 > li:nth-child(2n+3) .bnk-inputset.rdo::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--foundation-line-gray-2);
  z-index: 1;
}

.input-radio-style.ty1.grid.grid-3x3 > li:nth-child(3n+4) .bnk-inputset.rdo::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--foundation-line-gray-2);
  z-index: 1;
}

.input-radio-style.ty1.grid.grid-4x2 > li:nth-child(4n+5) .bnk-inputset.rdo::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--foundation-line-gray-2);
  z-index: 1;
}

/* ===== Textarea 스타일 ===== */
.bnk-inputset.textarea textarea {
  background: none;
  border: none;
  padding: 12px 16px;
  font-size: 1.6rem;
  font-weight: bold; /* input과 동일한 스타일 */
  color: var(--foundation-font-black);
  outline: none;
  font-family: inherit;
  line-height: 1.5;
  min-height: 50px; /* input height와 유사하게 */
  box-sizing: border-box;
  vertical-align: top;
  resize: none;
  width: 100%;
}

.bnk-inputset textarea::placeholder {
  font-size: 1.6rem;
  font-weight: normal;
  color: var(--foundation-font-gray-4);

}

.bnk-inputset textarea:focus {
  outline: none;
}

/* Textarea focus 스타일 */


.textarea-txtwrap { 
  display: inline-block;
}

.textarea-txtwrap .textarea-counter { 
  display:block;
  text-align: right;
  color: var(--foundation-font-gray-2);
  text-align: right;
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.06px;
  padding:12px 12px 12px 0
}
/* Textarea readonly 스타일 */
.bnk-inputset.textarea.readonly {
  background: var(--foundation-bg-bg-1);
  border-color: var(--foundation-line-gray-2);
}

.bnk-inputset.textarea.readonly textarea {
  background: var(--foundation-bg-bg-1);
  border-color: var(--foundation-line-gray-2);
  color: var(--foundation-font-gray-2);
  cursor: not-allowed;
}

.bnk-inputset.textarea.readonly textarea,
.bnk-inputset.textarea.disabled textarea { 
  overflow: hidden;
}

.bnk-inputset.textarea.readonly .textarea-counter {
  background: var(--foundation-bg-bg-1);
}

/* Textarea disabled 스타일 */
.bnk-inputset.textarea.disabled {
  background: var(--foundation-bg-bg-3);
  border-color: var(--foundation-line-gray-3);
}

.bnk-inputset.textarea.disabled textarea {
  background: var(--foundation-bg-bg-3);
  border-color: var(--foundation-line-gray-3);
  color: var(--foundation-font-gray-3);
  cursor: not-allowed;
}

.bnk-inputset.textarea.disabled .textarea-counter {
  background: var(--foundation-bg-bg-3);
}

/* ===== 마스킹 입력 ===== */
.input-mask {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--foundation-line-gray-2);
  background: var(--foundation-line-white);
  padding-right: 33px;
  border-radius: var(--radius-4);
  transition: border-color 0.3s ease;
}

.input-mask .bnk-inputset {
  border: none;
  background: none;
}

.input-mask .bar {
  color: var(--foundation-font-gray-2);
  font-weight: bold;
  font-size: 1.6rem;
  user-select: none;
}

.input-mask .masking {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.input-mask .masking .mask-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--foundation-font-gray-4);
  flex-shrink: 0;
}

/* 두 번째 타입 마스킹 스타일 */
.input-mask.type2 {
  padding-right: 16px;
}

.input-mask.type2 .bnk-inputset {
  border: none;
  background: none;
  padding: 0;
  position: relative;
}

.input-mask.type2 .bnk-inputset {
  flex:1;
  /* border: 1px solid #f00; */
}
.input-mask.type2 .masking-wrap {
  flex:1;
  display: flex;
  /* border: 1px solid #f00; */
}
.input-mask.type2 .masking-wrap .bnk-inputset {
  flex:none
}
.input-mask.type2 .masking-wrap .bnk-inputset input {
  width: 20px;
  padding: 0;
  text-align: center;
  color: transparent;
  caret-color: transparent;
  text-indent: -9999px;
  overflow: hidden;
  position: relative;
}

.input-mask.type2 .bnk-inputset input {
  border: none;
  background: none;
  padding: 0 16px;
  width: 80px;
  /* text-align: center; */
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--foundation-font-black);
  width: 100%;
}

.input-mask.type2 .bnk-inputset:nth-of-type(3) input {
  width: 20px;
  color: transparent;
  caret-color: transparent;
  text-indent: -9999px;
  overflow: hidden;
}

.input-mask.type2 .masking-wrap .bnk-inputset {
  position: relative;
}

.input-mask.type2 .display-value {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--foundation-font-black);
  pointer-events: none;
}

.input-mask.type2 .masking .mask-dot.active {
  background-color: var(--foundation-font-black);
}

.input-mask.type2 .clear-button {
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--foundation-font-gray-2);
  transition: color 0.2s ease, opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../image/icon/custom/input-mask-close.png');
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  visibility: hidden;
}

.input-mask.type2 .clear-button.visible {
  opacity: 1;
  visibility: visible;
}

/* type3 (운전면허번호) 스타일 */
.input-mask.type3 { padding-left: 16px; }
.bnk-list.inputfrm > li .input-processing .input-mask.type3 > .bnk-inputset:nth-of-type(1),
.bnk-list.inputfrm > li .input-processing .input-mask.type3 > .bnk-inputset:nth-of-type(3), 
.bnk-list.inputfrm > li .input-processing .input-mask.type3 > .bnk-inputset:nth-of-type(6) {
  width:20px;
  flex:none;
  /* border:1px solid #f00; */
 }
.input-mask.type3 .bnk-inputset input {
  border: none;
  background: none;
  padding: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--foundation-font-black);
  width: 100%;
}

.input-mask.type3 .masking-wrap {
  flex: none;
  display: flex;
  align-items: center;
  position: relative;
}

.input-mask.type3 .masking-wrap .bnk-inputset {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.input-mask.type3 .masking-wrap .bnk-inputset input {
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  text-indent: -9999px;
  outline: none;
  position: absolute;
  left: 0;
  top: 0;
}

.input-mask.type3 .masking-wrap .masking {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.input-mask.type3 .masking .mask-dot.active {
  background-color: var(--foundation-font-black);
}


.input-date-range.on,
.input-mask.on { 
  border:2px solid var(--foundation-font-black);
}
.input-date-range.on .bnk-inputset input,
.input-mask.on .bnk-inputset input { height:48px }
.input-mask.on .bnk-inputset:not(.ckbox):not(.rdo):focus-within,
.input-date-range.on .bnk-inputset:not(.ckbox):not(.rdo):focus-within { 
  border:none
}

/* 접근성: 호버 스타일 (데스크톱에서만) */
@media (hover: hover) {
  .input-mask.type2 .clear-button:hover {
    color: var(--foundation-font-black);
  }
}

/* 마스킹 입력 읽기 전용 스타일 */
.input-mask.readonly {
  border-color: var(--foundation-line-gray-3);
  background: var(--foundation-bg-bg-3);
}

.input-mask.readonly input {
  cursor: not-allowed;
  color: var(--foundation-font-gray-2);
}

/* 두 번째 타입 마스킹 읽기 전용 스타일 */
.input-mask.type2.readonly {
  border-color: var(--foundation-line-gray-3);
  background: var(--foundation-bg-bg-3);
}

.input-mask.type2.readonly input {
  cursor: not-allowed;
  color: var(--foundation-font-gray-2);
}

/* 두 번째 타입 마스킹 읽기 전용 - value가 있는 상태 */
.input-mask.type2.readonly .display-value {
  color: var(--foundation-font-gray-2);
}

/* display-value 읽기 전용 스타일 */
.input-mask.type2 .display-value.readonly {
  color: var(--foundation-font-gray-2);
}

/* ===== Money Input 하단 정보 표시 ===== */
.bnk-inputset.money .info-display {
  margin-top: 4px;
  font-size: 1.2rem;
  color: var(--foundation-font-gray-2);
  text-align: right;
}

.bnk-inputset-money-txtinfo {
  display: inline-block;
}

.bnk-inputset-money-txtinfo .info-display {
  margin-top: 4px;
  font-size: 1.2rem;
  color: var(--foundation-font-gray-2);
  text-align: right;
}

/* ===== Input 너비 변형 ===== */
.bnk-inputset.w-1\/4 {
  width: 25%;
}

.bnk-inputset.w-1\/3 {
  width: 33.333333%;
}

.bnk-inputset.w-1\/2 {
  width: 50%;
}

.bnk-inputset.w-2\/3 {
  width: 66.666667%;
}

.bnk-inputset.w-3\/4 {
  width: 75%;
}

.bnk-inputset.w-full {
  width: 100%;
}

/* ===== Toggle Switch ===== */
.toggle-switch { 
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
.toggle-switch .bnk-inputset.ckbox {
  border: none;
  font-size: 0;
  background: transparent;
}

.toggle-switch .bnk-inputset.ckbox label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  height: 24px;
  line-height: 24px;
  color: var(--palette-global-black);
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.08px;
  min-height:auto
}

/* 토글 스위치에 labeltxt 클래스 스타일 추가 */
.toggle-switch .labeltxt {
  display: inline-block;
  color: var(--foundation-font-black);
  font-size: 1.4rem;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 21px */
  letter-spacing: -0.07px;
}
.toggle-switch .bnk-inputset.ckbox label .toggle-inner {
    position:relative;
}
.toggle-switch .bnk-inputset.ckbox label .bg {
 width: 48px;
 height: 24px;
 background: var(--foundation-line-gray-3);
 background:var(--palette-gray-600);
 border-radius: var(--radius-6);
 transition: background-color 0.2s ease;
 position: relative;
 display: block;
}

.toggle-switch .bnk-inputset.ckbox input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.toggle-switch .bnk-inputset.ckbox input[type="checkbox"]:checked + label .toggle-inner .bg {
  background: var(--foundation-global-red);
}

.toggle-switch .bnk-inputset.ckbox.on label .toggle-inner .bg {
  background: var(--foundation-global-red);
}

.toggle-switch .bnk-inputset.ckbox label .toggle-inner::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch .bnk-inputset.ckbox input[type="checkbox"]:checked + label .toggle-inner::after,
.toggle-switch .bnk-inputset.ckbox.on label .toggle-inner::after {
  transform: translateX(24px);
}

/* Toggle Switch - ty1, ty2 (Navigation Header) */
.toggle-switch.ty1 .bnk-inputset.ckbox label,
.toggle-switch.ty2 .bnk-inputset.ckbox label {
  height: 20px;
  line-height: 20px;
  color: var(--foundation-font-gray-1);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -0.07px;
}

.toggle-switch.ty1 .bnk-inputset.ckbox label .bg,
.toggle-switch.ty2 .bnk-inputset.ckbox label .bg {
  background: var(--foundation-bg-bg-1);
  border: 1px solid var(--foundation-line-gray-2);
  border-radius: 999px;
  box-sizing: border-box;
}

.toggle-switch.ty1 .bnk-inputset.ckbox.on label .toggle-inner .bg,
.toggle-switch.ty1 .bnk-inputset.ckbox input[type="checkbox"]:checked + label .toggle-inner .bg {
  background: var(--foundation-font-gray-1);
  border-color: var(--foundation-font-gray-1);
}

.toggle-switch.ty1 .bnk-inputset.ckbox label .toggle-inner::after,
.toggle-switch.ty2 .bnk-inputset.ckbox label .toggle-inner::after {
  border: 1px solid var(--foundation-line-gray-2);
  box-shadow: none;
}

.toggle-switch.ty1 .bnk-inputset.ckbox.on label .toggle-inner::after,
.toggle-switch.ty1 .bnk-inputset.ckbox input[type="checkbox"]:checked + label .toggle-inner::after,
.toggle-switch.ty2 .bnk-inputset.ckbox.on label .toggle-inner::after,
.toggle-switch.ty2 .bnk-inputset.ckbox input[type="checkbox"]:checked + label .toggle-inner::after {
  border-color: transparent;
}

/* Toggle Switch - ty1 (32x20) */
.toggle-switch.ty1 .bnk-inputset.ckbox label .bg {
  width: 32px;
  height: 20px;
}

.toggle-switch.ty1 .bnk-inputset.ckbox label .toggle-inner::after {
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
}

.toggle-switch.ty1 .bnk-inputset.ckbox.on label .toggle-inner::after,
.toggle-switch.ty1 .bnk-inputset.ckbox input[type="checkbox"]:checked + label .toggle-inner::after {
  transform: translateX(12px);
}

/* Toggle Switch - ty2 (40x22, Navigation Header large) */
.toggle-switch.ty2 .bnk-inputset.ckbox label {
  height: 22px;
  line-height: 22px;
}

.toggle-switch.ty2 .bnk-inputset.ckbox label .bg {
  width: 40px;
  height: 22px;
  
}
.toggle-switch.ty2 .bnk-inputset.ckbox.on label .bg {
  border:none
}
.toggle-switch.ty2 .bnk-inputset.ckbox label .toggle-inner::after {
  width: 14px;
  height: 14px;
  left: 4px;
  top: 4px;
}

.toggle-switch.ty2 .bnk-inputset.ckbox.on label .toggle-inner::after,
.toggle-switch.ty2 .bnk-inputset.ckbox input[type="checkbox"]:checked + label .toggle-inner::after {
  transform: translateX(18px);
}

/* ===== 웹접근성: 스크린 리더 전용 텍스트 ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== 웹접근성: Input Label 스타일 ===== */
.input-label {
  display: block;
  margin-bottom: 4px;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--palette-global-black);
  line-height: 1.5;
}

.input-label .required-indicator {
  color: var(--foundation-primary-bnk-red);
  margin-left: 2px;
  font-weight: bold;
}

/* ===== 웹접근성: 도움말 텍스트 스타일 ===== */
.help-text {
  margin-top: 4px;
  font-size: 1.2rem;
  color: var(--foundation-font-gray-2);
  line-height: 1.4;
}

/* ===== 웹접근성: 오류 메시지 스타일 ===== */
.error-text {
  margin-top: 4px;
  font-size: 1.2rem;
  color: var(--foundation-primary-bnk-red);
  line-height: 1.4;
  font-weight: 500;
}

/* ===== InputUnit 스타일 ===== */
.input-unit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  border: 2px solid var(--foundation-line-gray-2);
  background: var(--foundation-line-white);
  border-radius: var(--radius-4);
  transition: border-color 0.3s ease;
  overflow: hidden;
}

.input-unit .bnk-inputset {
  border: none;
  background: none;
}

.input-unit .bnk-inputset select {
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 1.4rem;
  color: var(--foundation-font-black);
  outline: none;
  width: 100%;
  min-width: 120px;
}

.input-unit .bnk-inputset select:focus {
  outline: none;
}

.input-unit .bnk-inputset select:disabled {
  color: var(--foundation-font-gray-3);
  cursor: not-allowed;
}

.input-unit .bnk-inputset input {
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 1.4rem;
  color: var(--foundation-font-black);
  outline: none;
  width: 100%;
  min-width: 150px;
}



.input-unit .bnk-inputset input:focus {
  outline: none;
}

.input-unit .bnk-inputset input:disabled {
  color: var(--foundation-font-gray-3);
  cursor: not-allowed;
}

/* 접근성: 호버 스타일 (데스크톱에서만) */
@media (hover: hover) {
  .input-unit:hover {
    border-color: var(--foundation-line-gray-1);
  }
}

.input-unit:focus-within {
  border-color: var(--foundation-primary-black);
}

/* InputUnit 내부 bar 스타일 */
.input-unit .bar {
  margin: 0 8px;
  color: var(--foundation-font-gray-3);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
}

/* InputUnit readonly 스타일 */
.input-unit.readonly {
  background: var(--foundation-bg-bg-1);
  border-color: var(--foundation-line-gray-2);
}

.input-unit.readonly .bnk-inputset input,
.input-unit.readonly .bnk-inputset select {
  background: var(--foundation-bg-bg-1);
  color: var(--foundation-font-gray-2);
  cursor: not-allowed;
}

/* InputUnit disabled 스타일 */
.input-unit:has(input:disabled),
.input-unit:has(select:disabled) {
  background: var(--foundation-bg-bg-3);
  border-color: var(--foundation-line-gray-3);
}

.input-unit:has(input:disabled) .bnk-inputset input,
.input-unit:has(select:disabled) .bnk-inputset select {
  background: var(--foundation-bg-bg-3);
  color: var(--foundation-font-gray-3);
  cursor: not-allowed;
}

/* Select 컴포넌트 readonly/disabled 스타일 */
.input-unit.readonly .select-value {
  color: var(--foundation-font-gray-2);
}

.input-unit:has(select:disabled) .select-value {
  color: var(--foundation-font-gray-3);
}



/* Date Input 스타일 - input-date-range로 통합 */
.input-date-range {
  display: flex;
  position: relative;
  border-radius: var(--radius-4);
  border: 1px solid var(--foundation-line-gray-2);
  background: var(--foundation-bg-bg-white);
  transition: border-color 0.3s ease;
  padding: 0 16px;
  overflow: hidden;
}

.input-date-range .bnk-inputset {
  display: inline-flex;
  align-items: center;
  border:none;
  border-radius:0
}

/* flatpickr 원본 CSS보다 더 구체적인 선택자로 override */
.input-date-range .bnk-inputset input.flatpickr-input {
  width: auto;
  border: none;
}

.input-date-range .bnk-inputset input {

}



.input-date-range .bnk-inputset input:disabled {
  background-color: var(--foundation-line-gray-1);
  color: var(--foundation-font-gray-3);
  cursor: not-allowed;
}

.calendar-button {
  width: 20px;
  height: 20px;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 접근성: 호버 스타일 (데스크톱에서만) */
@media (hover: hover) {
  .calendar-button:hover {
    background-color: var(--foundation-line-gray-1);
  }
  
  .calendar-button:disabled:hover {
    background-color: transparent;
  }
}

.calendar-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Flatpickr 스타일은 위의 Date Input 공통 스타일 섹션에서 관리됩니다 */ 

/* InputUnit 관련 CSS는 src/components/Input.css에서 관리됩니다 */

/* 일반 inputset 내부 select-value 스타일 */
.bnk-inputset.readonly .select-value {
  color: var(--foundation-font-gray-2);
}

.bnk-inputset:has(select:disabled) .select-value {
  color: var(--foundation-font-gray-3);
}

/* Input 관련 CSS */

.input-radio-style.ty1.grid > li {
  margin: 0;
  padding: 0;
  display:flex;
  position:relative
}
.input-radio-style.ty1 > li .bnk-inputset.rdo > label::after {
  content: "";
  display: block;
  width: 1px;
  height: 10px;
  background: var(--foundation-line-gray-2);
  position: absolute;
  top: 0;
  right: 0px;
  bottom: 0;
  margin: auto;
  z-index: -1;
  /* background: aqua; */
}

.input-radio-style.ty1 > li + li .bnk-inputset.on.rdo::before { 
  display:none
}
.input-radio-style.ty1 > li + li .bnk-inputset.on { 
  z-index: 10;
}
.input-radio-style.ty1 > li .bnk-inputset.rdo > label { 
  color: var(--foundation-font-gray-2);
  font-size: 1.4rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.07px;
}
.input-radio-style.ty1 > li.on .bnk-inputset.rdo > label {
  color: var(--foundation-font-black);
  font-weight:800
}
.input-radio-style.ty1 > li .bnk-inputset.rdo.on > label { 
  color: var(--palette-global-black);
  font-weight:800
}

.input-radio-style.ty1 > li.on .bnk-inputset.rdo > label::before {
  content:"";
  position:absolute;
  top:0;
  right: -1px;
  bottom:0;
  left: -1px;
  border-radius: var(--radius-6);
  border: 2px solid var(--foundation-global-red);
  background: transparent;
  /* z-index:100; */
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.05);
  }

/* 2x2 배열 */
.input-radio-style.ty1.grid.grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
}


.input-radio-style.ty1.grid.grid-2x2 > li:nth-child(n+3)::after {
  content:"";
  display:block;
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background: var(--foundation-line-gray-2);
  z-index: 0;
}
.input-radio-style.ty1.grid.grid-2x2 > li:nth-child(2n+3)::after {
  left:12px;
}
.input-radio-style.ty1.grid.grid-2x2 > li:nth-child(2n+2)::after {
  right:12px;
}

.input-radio-style.ty1.grid > li.on + li .bnk-inputset.rdo::before,
.input-radio-style.ty1.grid.grid-2x2 > li:nth-child(2n+3) .bnk-inputset.rdo::before { 
  display:none;
}



/* 3x3 배열 */
.input-radio-style.ty1.grid.grid-3x3 {
  grid-template-columns: repeat(3, 1fr);
}

.input-radio-style.ty1.grid.grid-3x3 > li:nth-child(n+4)::after {
  content:"";
  display:block;
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background: var(--foundation-line-gray-2);
  z-index: 0;
}
.input-radio-style.ty1.grid.grid-3x3 > li:nth-child(3n+4)::after {
  left:12px;
}
.input-radio-style.ty1.grid.grid-3x3 > li:nth-child(3n+3)::after {
  right:12px;
}
.input-radio-style.ty1.grid.grid-3x3 > li:nth-child(3n+4) .bnk-inputset.rdo::before { 
  display:none;
}

/* 4x2 배열 */
.input-radio-style.ty1.grid.grid-4x2 {
  grid-template-columns: repeat(4, 1fr);
}
.input-radio-style.ty1.grid.grid-4x2 > li:nth-child(n+5)::after {
  content:"";
  display:block;
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background: var(--foundation-line-gray-2);
  z-index: 0;
}
.input-radio-style.ty1.grid.grid-4x2 > li:nth-child(4n+5)::after {
  left:12px;
}
.input-radio-style.ty1.grid.grid-4x2 > li:nth-child(4n+4)::after {
  right:12px;
}
.input-radio-style.ty1.grid.grid-4x2 > li:nth-child(4n+5) .bnk-inputset.rdo::before { 
  display:none;
}

/* Toggle Switch 관련 CSS는 src/components/Input.css에서 관리됩니다 */

/* 슬라이더 레인지 스타일 */
.slider-range {
  position: relative;
  width: 720px;
  height: 112px;
  padding-top: var(--space-16);
}

.slider-range .bar {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-10);
  background: var(--palette-gray-200);
}

.slider-range .bar .progress {
  position: absolute;
  top: 0;
  left: 40%;
  width: 50%;
  height: 100%;
  border-radius: var(--radius-10);
  background: var(--foundation-primary-bnk-red);
}

.slider-range .bar .handle {
  position: absolute;
  top: -65px;
  display: inline-flex;
  line-height: 100%;
  padding: var(--space-3);
  border-radius: var(--radius-10);
  background: #353d4e;
  color: var(--foundation-font-white);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.08px;
  cursor: default;
  user-select: none;
  white-space: nowrap;
}

.slider-range .bar .handle.start {
  left: 35%;
}

.slider-range .bar .handle.end {
  left: 85%;
}

.slider-range .bar .handle::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: 6px;
  height: 4px;
  background: url("../img/range_handle_arrow.svg") center / 100% auto no-repeat;
}

.slider-range .bar .handle .handle-text {
  pointer-events: none;
  user-select: none;
}

.slider-range .bar .handle .handle-button {
  position: absolute;
  top: 52px;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: var(--foundation-bg-bg-white);
  box-shadow: 0 4px 10px rgba(2, 16, 48, 0.15);
  cursor: pointer;
  border: none;
  outline: none;
  z-index: 10;
}

.slider-range .range {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-6);
}

.slider-range .range > span {
  line-height: 100%;
  color: var(--foundation-font-gray-2);
  font-size: 1.6rem;
  letter-spacing: -0.08px;
}

.slider-range .range > span.max {
  text-align: right;
}

/* 웹접근성을 위한 포커스 스타일 추가 */
.slider-range .bar .handle .handle-button:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
}

/* 모바일 터치 최적화 */
@media (max-width: 768px) {
  .slider-range .bar .handle .handle-button {
    width: 36px;
    height: 36px;
  }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
  .slider-range .bar {
    background: #000;
  }
  
  .slider-range .bar .progress {
    background: var(--foundation-bg-bg-white);
  }
  
  .slider-range .bar .handle {
    background: var(--foundation-bg-bg-white);
    color: #000;
  }
}


.input-radio-style .bnk-inputset.rdo {
  flex: 1;
  background: transparent;
  overflow: inherit;
}

.input-radio-style .bnk-inputset.rdo label {
    display: flex;
    height: 48px;
    text-align: center;
    justify-content: center;
    border-radius: var(--radius-6);
}

/* 라디오 스타일 타입 - 더 구체적인 선택자 */
.input-radio-style .bnk-inputset.rdo label input[type="radio"] { 
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  background-image: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 9px;
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: 0;
  position:absolute;
  left:-9999px
}

.input-radio-style .bnk-inputset.rdo label input[type="radio"]:checked,
.input-radio-style .bnk-inputset.rdo.on label input[type="radio"] {
    background-image: none;
    border-radius: 0;
    width: 0;
    height: 0;
    border: none;
    background: none;
}

.input-radio-style .bnk-inputset.rdo.on label { 
    background: var(--foundation-bg-bg-white);
    border: 2px solid var(--foundation-primary-bnk-red);
}




/* ===== Date Input 공통 스타일 ===== */

/* flatpickr 헤더 순서 변경 - 월을 먼저, 연도를 나중에 */
.flatpickr-current-month {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* numInputWrapper의 width 속성 삭제 - 더 구체적인 선택자 사용 */
.flatpickr-wrapper .flatpickr-calendar .flatpickr-current-month .numInputWrapper {
  width: auto;
}

/* flatpickr 월 셀렉터를 드롭다운으로 스타일링 - 더 구체적인 선택자 사용 */
.flatpickr-wrapper .flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-wrapper .flatpickr-calendar .flatpickr-current-month .flatpickr-yearDropdown-years {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  background-image: url('../image/icon/chevron-down.svg');
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 20px 20px;
  border: none;
  cursor: pointer;
  padding: 4px 28px 4px 8px;
  margin: 0;
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.09px;
  font-family: inherit;
  color: var(--palette-global-black);
  border-radius: var(--radius-2);
}

.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months:focus,
.flatpickr-calendar .flatpickr-current-month .flatpickr-yearDropdown-years:focus {
  outline: none;
}

/* 드롭다운 화살표 숨기기 */
.flatpickr-wrapper .flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months::-ms-expand,
.flatpickr-wrapper .flatpickr-calendar .flatpickr-current-month .flatpickr-yearDropdown-years::-ms-expand {
  display: none;
}

/* 화살표 요소들 숨기기 */
.flatpickr-current-month .arrowUp,
.flatpickr-current-month .arrowDown {
  display: none;
}

/* PC에서만 hover 효과 적용 */
@media (hover: hover) {
  .flatpickr-wrapper .flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months:hover,
  .flatpickr-wrapper .flatpickr-calendar .flatpickr-current-month .flatpickr-yearDropdown-years:hover {
    background-color: transparent;
    background-image: url('../image/icon/chevron-down.svg');
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 20px 20px;
  }
}

/* prev/next 버튼 숨기기 */
.flatpickr-current-month .flatpickr-prev-month,
.flatpickr-current-month .flatpickr-next-month {
  display: none;
}

/* flatpickr 달력 기본 스타일 */
.flatpickr-wrapper .flatpickr-calendar {
  font-family: inherit;
  border-radius: var(--radius-4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--foundation-line-gray-2);
  padding: 24px;
  width: inherit;
}

/* 요일 헤더 스타일 */
.flatpickr-wrapper .flatpickr-calendar span.flatpickr-weekday {
  color: var(--foundation-font-black);
  text-align: center;
  font-size: 1.4rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.07px;
}

/* 주말 요일 스타일 (일요일, 토요일) */
.flatpickr-wrapper .flatpickr-calendar span.flatpickr-weekday.week {
  color: var(--foundation-font-gray-3);
  font-weight: 600;
}

/* 날짜 셀 스타일 */
.flatpickr-wrapper .flatpickr-calendar .flatpickr-day {
  color: var(--palette-global-black);
  text-align: center;
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.08px;
}

/* 이전/다음 달 날짜 셀 스타일 (주말이 아닌 경우에만) */
.flatpickr-wrapper .flatpickr-calendar .flatpickr-day.prevMonthDay:not(.week),
.flatpickr-wrapper .flatpickr-calendar .flatpickr-day.nextMonthDay:not(.week) {
  color: var(--foundation-font-gray-4);
}

/* 주말 날짜 셀 스타일 (prevMonthDay, nextMonthDay 제외) */
.flatpickr-wrapper .flatpickr-calendar .flatpickr-day.week {
  color: var(--foundation-font-gray-3);
}

/* 선택된 날짜 스타일 */
.flatpickr-wrapper .flatpickr-calendar .flatpickr-day.selected {
  background: var(--foundation-primary-bnk-red);
  color: var(--foundation-font-white);
  border: none;
}

/* 오늘 날짜 스타일 */
.flatpickr-wrapper .flatpickr-calendar .flatpickr-day.today {
  border-color: var(--foundation-primary-bnk-red);
}

/* PC에서만 hover 효과 적용 */
@media (hover: hover) {
  .flatpickr-wrapper .flatpickr-calendar .flatpickr-day.selected:hover {
    background: var(--foundation-primary-bnk-red);
    border-color: var(--foundation-primary-bnk-red);
  }
  
  .flatpickr-wrapper .flatpickr-calendar .flatpickr-day:hover {
    background: var(--foundation-line-gray-1);
  }
}

/* flatpickr 내부 컨테이너 여백 */
.flatpickr-wrapper .flatpickr-calendar .flatpickr-innerContainer {
  margin-top: 30px;
}

/* DateRange 전용 스타일 */
.flatpickr-wrapper .input-date-range .flatpickr-calendar {
  padding: 24px;
  width: inherit;
}


/* DateRange 컴포넌트 스타일 */
.input-date-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-date-range .bnk-inputset {
  position: relative;
  /* display: inline-flex; */
  /* align-items: center; */
  flex: 1;
}

.input-date-range .bnk-inputset input {
  padding: 8px 0;
  border-radius: var(--radius-4);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--foundation-font-black);
  /* background-color: var(--foundation-bg-bg-1, #FFFFFF); */
  transition: border-color 0.2s ease;
  /* background: none; */
  /* height: 50px; */
  /* padding: 0 16px; */
  font-size: 1.6rem;
  font-weight: 700;
  flex: 1;
  cursor: pointer;
  width: 100%;
}

/* .input-date-range .bnk-inputset input::placeholder {
  color: #9ca3af;
  font-weight: normal;
} */

.input-date-range .bnk-inputset input:disabled {
  background-color: var(--foundation-bg-bg-1);
  color: #9ca3af;
  cursor: not-allowed;
}

.input-date-range .calendar-button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.input-date-range .calendar-button:hover {
  opacity: 0.7;
}

.input-date-range .calendar-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.input-date-range .calendar-button:disabled:hover {
  opacity: 0.5;
}

.input-date-range .bar {
  font-size: 1.6rem;
  font-weight: 500;
  color: #6b7280;
  padding: 0 4px;
  user-select: none;
  width: 6px;
  height: 2px;
  background: var(--foundation-font-gray-4);
}

/* 기본 인풋 유효성 검사 스타일 */
.input-validation {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
}

.input-validation .bnk-inputset {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-right: 16px;
}

.input-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}



/* 모바일 뷰 컨테이너 스타일 */
.mobile-view-in {
  padding-top: 4.8rem;
  height: 100%;
  overflow: auto;
  background-color: rgb(249 250 251);
  transform: scale(1);
} 

.survey-wrapper .bnk-card .input-radio-group .bnk-inputset label  {
  /* font-weight: 400; */
}

.agree { }
.agree .bnk-inputset.ckbox { }
.agree .bnk-inputset.ckbox > label{padding: 0 0 0 32px;display: block;color: var(--foundation-font-black);font-size: 1.6rem;font-style: normal;font-weight: 700;line-height: 150%; /* 24px */letter-spacing: -0.08px;word-break: keep-all;height: auto;}
.agree .bnk-inputset.ckbox > label input[type="checkbox"]  {
  position:absolute;
  top:0;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}

/* 단일 동의 + 상세보기 링크 */
.agree.link { display: flex; align-items: center; gap: 8px; }
.agree.link .bnk-inputset.ckbox { flex: 1 1 auto; min-width: 0; }
.agree.link .bnk-btn.icon { flex: none; }
.agree + .bnk-list.bullet3 { margin-top: 16px; }
.agree.link + .bnk-list.bullet3 {margin-top:22px}



.input-processing.multi {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  height: 52px;
  padding: 0 16px;
  gap: 8px;
  border: 1px solid var(--foundation-line-gray-2);
  border-radius: var(--radius-4);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.input-processing.multi .bnk-btn.select-link {
  display: flex;
  flex: 0 0 112px;
  align-items: center;
  justify-content: flex-start;
  width: 112px;
  height: 100%;
  padding: 0;
  gap: 8px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--foundation-font-black);
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -0.08px;
}
.input-processing.multi .bnk-btn.select-link .select-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.input-processing.multi .bnk-btn.select-link .bnk-icon.chevron-down {
  flex: none;
  width: 20px;
  height: 20px;
  margin-left: 0;
  background-size: 20px 20px;
}

.input-processing.multi .bnk-inputset {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  height: 100%;
  padding-right: 0;
  border: none;
  border-radius: 0;
}
.input-processing.multi .bnk-inputset input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
}
.input-processing.multi .bnk-inputset .clear-btn-wrap {
  flex: none;
  margin-left: 8px;
}
.input-processing.multi .bnk-inputset:focus-within {
  border: none;
}
.input-processing.multi.on { border: 2px solid var(--foundation-font-black); }

/* ===== 자리수 분리형 숫자 입력 (인증번호 등) — .bnk-inputset 확장 ===== */
.input-code {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.input-code .bnk-inputset.code {
  display: flex;
  width: 40px;
  height: 54px;
  background: var(--foundation-bg-bg-1);
}

.input-code .bnk-inputset.code.has-value,
.input-code .bnk-inputset.code.on,
.input-code .bnk-inputset.code:focus-within {
  background: var(--foundation-bg-bg-white);
}

.input-code .bnk-inputset.code input,
.input-code .bnk-inputset.code:focus-within input {
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: center;
  font-size: 2rem;
  line-height: 150%;
  letter-spacing: -0.1px;
}