/* ========================================
   공통
======================================== */

.customs-page {
    width: 100%;
    min-height: 100vh;
    background: var(--color-bg-emphasis);

}

.customs-page .inwrap {
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* 공통 이미지 */
.customs-page img {
    display: block;
    max-width: 100%;
}




/* ========================================
   상단 헤더
======================================== */

.customs-header {
    height: 60px;
    margin-bottom: 12px;
}

.customs-header .inwrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;

}

/* 뒤로가기 */
.customs-header__back {
    position: absolute;
    top: 50%;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
    cursor: pointer;
}

.customs-header__back img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}


.customs-header h2 {
    font-weight: 600;
}

/* ========================================
   콘텐츠 공통
======================================== */

.customs-section-title {
    font-weight: 600;
    font-size: 14px;
    margin-left: 8px;
    margin-bottom: 10px;


}

/* ========================================
   정보 입력 카드
======================================== */

.customs-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 20px;
    border-radius: 24px;
    background: #fff;
    box-sizing: border-box;
}

.customs-field {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.customs-field>label {
    font-size: 13px;
    font-weight: 500;
    word-break: keep-all;
}

/* 입력 필드 공통 */
.customs-field input,
.customs-field select {
    display: block;
    width: 100%;
    height: 42px;
    min-width: 0;
    padding: 0 14px;
    border: 1px solid var(--color-line-default);
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    box-sizing: border-box;
    outline: none;
}

.customs-field input::placeholder {
    color: var(--color-text-placeholder);
    letter-spacing: -0.85px;
}

.customs-field input:focus,
.customs-field select:focus {
    border-color: #8f8f8f;
}

/* 숫자 입력 화살표 제거 */
.customs-field input::-webkit-inner-spin-button,
.customs-field input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.customs-field input[type="number"] {
    appearance: textfield;
}



/* ========================================
   커스텀 드롭다운
======================================== */

.custom-select {
    position: relative;
    width: 100%;
    min-width: 0;
}

.custom-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--color-line-default);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    position: relative;
}

.custom-select__trigger::after {
    position: absolute;
    content: "";
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #B2B3B4;
    border-right: 1px solid #B2B3B4;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    right: 14px;
    transition: transform 0.2s ease;
}


.custom-select.is-open .custom-select__trigger::after {
    transform: translateY(-50%) rotate(225deg);

}


.custom-select__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;


}


.custom-select.is-open {
    z-index: 20;
}

.custom-select.is-open .custom-select__trigger {
    border-color: var(--color-primary);
}


.custom-select.is-disabled .custom-select__trigger::after {
    opacity: 0.6;
}


/* 옵션 목록 */
.custom-select__options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 30;
    width: 100%;
    max-height: 180px;
    margin: 0;
    padding: 4px;
    overflow-y: auto;
    border: 1px solid var(--color-line-light);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 16px rgb(0 0 0 / 10%);
    list-style: none;
    box-sizing: border-box;
}

.custom-select__options[hidden] {
    display: none;
}

.custom-select.is-open .custom-select__options {
    display: block;
}

.custom-select__options li {
    margin: 0;
    padding: 0;
}

.custom-select__options li button {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--color-text-secondary);
    font-family: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}


.custom-select__options li button:focus-visible {
    outline: none;
    background: #F9F6FF;
    color: var(--color-primary);

}

.custom-select__options li button:focus-visible {
    box-shadow: inset 0 0 0 1px var(--color-primary);
}

.custom-select__options li button[aria-selected="true"] {
    background: #F9F6FF;
    color: var(--color-primary);
    font-weight: 600;
}

/* 비활성화 */
.custom-select.is-disabled .custom-select__trigger {
    background: #fff;
    color: #aaa;
    cursor: not-allowed;
}

.custom-select.is-disabled .custom-select__arrow {
    opacity: 0.6;
}





/* 소분류 */
.customs-field--sub {
    margin-top: 0;
}

/* 버튼 영역 */
.customs-form__buttons {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.customs-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.customs-button--reset {
    background: var(--color-bg-emphasis);
    color: var(--color-text-secondary);
}

.customs-button--preview {
    background: #111;
    color: #fff;
}





/* ========================================
   예상 관부가세 계산
======================================== */

.customs-result-section {
    margin-top: 30px;
}


.customs-result-card {
    padding: 24px 20px;
    border-radius: 24px;
    background: #fff;
    box-sizing: border-box;
}


/* 계산 내역 */
.customs-result-card dl {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 16px;
}

.customs-result-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 18px;
    font-size: 14px;
}

.customs-result-list dt {
    color: var(--color-text-muted);

}

.customs-result-list dd {
    color: var(--color-text-primary);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}



/* 총 비용 */
.customs-result-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #111;
}

.customs-result-total strong:first-child {
    font-size: 14px;
    font-weight: 700;
}

.customs-result-total .customsTotal {
    color: var(--color-primary);
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}







/* ========================================
   예상비용 안내
======================================== */

.customs-notice {
    margin-top: 24px;
    padding-bottom: 60px;
}


.customs-notice .customs-section-title {
    display: flex;
    align-items: center;
    gap: 8px;

}

.customs-notice .customs-section-title img {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    object-fit: contain;
}

.customs-notice__content {
    padding: 0 8px;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.4;

}


.customs-notice__content em {
    color: var(--color-primary);
    font-style: normal;
}

.customs-notice__contact {
    margin-top: 8px;
}