/* 費用試算組件樣式 - 完全按照 Figma 設計規格 */

/* 容器 */
.fee-calculator {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 15px;
    width: 100%;
    background-color: #ffffff;
    margin-bottom: 10px;
}

/* 表單容器 */
.fee-calculator__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* 欄位行（通用） */
.fee-calculator__field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* 欄位左側容器（標籤 + 輸入） */
.fee-calculator__field-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 320px;
}

/* 標籤容器 */
.fee-calculator__label-wrapper {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* 標籤文字 */
.fee-calculator__label {
    font-size: 12px;
    font-weight: 400;
    line-height: 13px;
    color: #333333;
}

/* 商品金額標籤特殊行高 */
.fee-calculator__label--amount {
    line-height: 20px;
    letter-spacing: 0.36px;
}

/* 問號圖示 */
.fee-calculator__question-icon {
    font-size: 14px;
    color: #aaaaaa;
    flex-shrink: 0;
    cursor: pointer;
}

/* 提示框容器 */
.fee-calculator__tooltip-wrapper {
    position: relative;
    display: inline-flex;
}

/* 提示框 */
.fee-calculator__tooltip {
    position: absolute;
    top: calc(100% + 4px);
    left: -40px;
    width: 137px;
    height: 44px;
    padding: 6px 10px;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 0;
    z-index: 100;
    display: flex;
    align-items: center;
}

/* 提示框箭頭 */
.fee-calculator__tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 40px;
    width: 6px;
    height: 4px;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='4' viewBox='0 0 6 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 0L6 4H0L3 0Z' fill='%23CCCCCC'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* 提示框文字 */
.fee-calculator__tooltip-text {
    font-size: 11px;
    font-weight: 400;
    line-height: 16px;
    color: #aaaaaa;
    margin: 0;
    white-space: pre-wrap;
    width: 118px;
}

/* 提示框連結 */
.fee-calculator__tooltip-link {
    font-size: 11px;
    font-weight: 400;
    line-height: 16px;
    color: #aaaaaa;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    cursor: pointer;
}

.fee-calculator__tooltip-link:hover {
    color: #888888;
}

/* 輸入框容器 */
.fee-calculator__input-wrapper {
    display: flex;
    align-items: center;
    width: 215px;
    height: 30px;
    padding: 0 15px;
    border: 1px solid #cccccc;
    border-radius: 0;
    background-color: #ffffff;
}

/* 輸入框 */
.fee-calculator__input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 11px;
    font-weight: 400;
    line-height: normal;
    color: #000000;
    background-color: transparent;
}

/* 預估當地運費輸入框特殊規格（設計稿：12px） */
#feeCalcShipping.fee-calculator__input {
    font-size: 12px;
}

/* 預估商品重量輸入框特殊規格（設計稿：12px） */
#feeCalcWeight.fee-calculator__input {
    font-size: 12px;
}

/* 輸入框 placeholder */
.fee-calculator__input::placeholder {
    font-size: 12px;
    color: #aaaaaa;
}

/* 下拉選單容器 */
.fee-calculator__select-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 215px;
    height: 30px;
    padding: 0 15px;
    border: 1px solid #cccccc;
    border-radius: 0;
    background-color: #ffffff;
    position: relative;
    cursor: pointer;
}

/* 下拉選單文字 */
.fee-calculator__select-text {
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    color: #000000;
}

/* 消費税下拉選單特殊規格（設計稿：11px） */
#feeCalcTaxText.fee-calculator__select-text {
    font-size: 11px;
}

/* 下拉箭頭 */
.fee-calculator__dropdown-arrow {
    width: 9px;
    height: 5px;
    flex-shrink: 0;
    transform: rotate(180deg);
}

/* 單位文字 */
.fee-calculator__unit {
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    color: #333333;
}

/* 尺寸欄位特殊佈局 */
.fee-calculator__size-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 215px;
}

.fee-calculator__size-label {
    display: flex;
    align-items: center;
    width: 55px;
    font-size: 12px;
    font-weight: 400;
    line-height: 13px;
    color: #333333;
}

.fee-calculator__size-input-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    height: 30px;
    padding: 0 15px;
    border: 1px solid #cccccc;
    border-radius: 0;
    background-color: #ffffff;
}

.fee-calculator__size-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    color: #000000;
    background-color: transparent;
}

.fee-calculator__size-input::placeholder {
    font-size: 12px;
    color: #aaaaaa;
}

/* 付款方式欄位 */
.fee-calculator__payment-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.fee-calculator__payment-left {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 320px;
}

.fee-calculator__payment-label-wrapper {
    display: flex;
    align-items: center;
    height: 30px;
}

/* 付款方式選項容器 */
.fee-calculator__payment-options {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 215px;
}

/* 單選項目 */
.fee-calculator__radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 15px 0;
    width: 100%;
}

/* 單選按鈕 */
.fee-calculator__radio-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* 單選文字 */
.fee-calculator__radio-text {
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    color: #000000;
}

/* 操作按鈕區域 */
.fee-calculator__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    width: 100%;
}

/* 試算按鈕 */
.fee-calculator__submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    background-color: #ff7800;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.fee-calculator__submit-btn-text {
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.7px;
    color: #ffffff;
}

/* 重置連結 */
.fee-calculator__reset-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.fee-calculator__reset-link {
    font-size: 12px;
    font-weight: 400;
    line-height: 13px;
    color: #aaaaaa;
    text-decoration: none;
    cursor: pointer;
}

.fee-calculator__reset-link:hover {
    text-decoration: underline;
}

/* 下拉選單 */
.fee-calculator__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #ebebeb;
    border-top: none;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.fee-calculator__dropdown-item {
    display: flex;
    align-items: center;
    height: 34px;
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    color: #000000;
    cursor: pointer;
    border-bottom: 1px solid #ebebeb;
    transition: background-color 0.2s;
}

.fee-calculator__dropdown-item:last-child {
    border-bottom: none;
}

.fee-calculator__dropdown-item:hover {
    background-color: #f5f5f5;
}

.fee-calculator__dropdown-item--active {
    background-color: #f5f5f5;
    color: #000000;
}

/* 下拉選單容器需要 relative */
.fee-calculator__select-wrapper {
    position: relative;
}
