/* 費用試算結果樣式 */

/* 試算結果容器 */
.fee-result {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    background-color: #ffffff;
    padding: 0 15px 10px;
    margin-top: 10px;
}

/* 標題 */
.fee-result__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 13px;
    color: #383838;
    margin-bottom: 10px;
}

/* 運送方式區塊 */
.fee-result__shipping-method {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #eaeaea;
    margin-bottom: 10px;
}

/* 運送方式標題列 */
.fee-result__method-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 32px;
    padding: 0 15px;
    background-color: #707070;
}

.fee-result__method-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 13px;
    color: #ffffff;
}

/* 費用明細容器 */
.fee-result__details {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

/* 超過重量限制的費用明細 */
.fee-result__details--disabled {
    opacity: 0.4;
}

/* 費用項目行 */
.fee-result__item {
    display: flex;
    align-items: flex-start;
    padding: 5px 20px;
    min-height: 26px;
}

/* 費用項目標籤 */
.fee-result__label {
    font-size: 13px;
    font-weight: 400;
    line-height: 13px;
    color: #383838;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 160px;
    flex-shrink: 0;
}

/* 優惠標籤 */
.fee-result__discount-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 13px;
    padding: 0 4px;
    border: 0.5px solid #ff7800;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 400;
    line-height: 13px;
    color: #ff7800;
    margin-left: 4px;
}

/* 費用項目值 */
.fee-result__value {
    font-size: 13px;
    font-weight: 400;
    line-height: 13px;
    color: #707070;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

/* 刪除線價格 */
.fee-result__value--strikethrough {
    text-decoration: line-through;
    text-decoration-skip-ink: none;
}

/* 問號圖示 */
.fee-result__question-icon {
    font-size: 13px;
    color: #aaaaaa;
    cursor: pointer;
    position: relative;
}

/* 灰色背景區塊（第一次、第二次付款金額） */
.fee-result__summary {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #f7f7f7;
}

.fee-result__summary-label {
    font-size: 13px;
    font-weight: 400;
    line-height: 13px;
    color: #383838;
    width: 160px;
    flex-shrink: 0;
}

.fee-result__summary-value {
    font-size: 13px;
    font-weight: 400;
    line-height: 13px;
    color: #707070;
}

/* 總費用區塊 */
.fee-result__total {
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

.fee-result__total-label {
    font-size: 13px;
    font-weight: 700;
    line-height: 13px;
    color: #383838;
    width: 160px;
    flex-shrink: 0;
}

.fee-result__total-value {
    font-size: 20px;
    font-weight: 700;
    line-height: 13px;
    color: #ff7800;
}

/* 分隔線 */
.fee-result__divider {
    width: 100%;
    height: 1px;
    background-color: #c6c6c6;
}

/* 優惠活動區塊 */
.fee-result__promotions {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
}

/* 優惠項目 */
.fee-result__promotion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    min-height: 38px;
}

/* 優惠狀態圖示 */
.fee-result__promotion-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* 優惠狀態文字（已符合/未符合） */
.fee-result__promotion-status {
    font-size: 13px;
    font-weight: 400;
    line-height: 13px;
    margin: 0 8px;
    white-space: nowrap;
}

.fee-result__promotion-status--qualified {
    color: #FF7800;
}

.fee-result__promotion-status--unqualified {
    color: #C6C6C6;
}

/* 優惠活動名稱 */
.fee-result__promotion-name {
    flex: 1;
    font-size: 13px;
    font-weight: 400;
    line-height: 13px;
    margin: 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fee-result__promotion-name--active {
    color: #707070;
}

.fee-result__promotion-name--inactive {
    color: #C6C6C6;
}

/* 優惠箭頭 */
.fee-result__promotion-arrow {
    width: 8px;
    height: 14px;
    flex-shrink: 0;
}

/* 優惠箭頭連結樣式 */
a.fee-result__promotion-arrow {
    display: inline-block;
    text-decoration: none;
}

/* 優惠副標題 */
.fee-result__promotion-subtitle {
    font-size: 11px;
    font-weight: 400;
    line-height: 13px;
    color: #c6c6c6;
    margin-left: 8px;
}

/* 注意事項 */
.fee-result__notes {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
}

.fee-result__notes-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    color: #aaaaaa;
    margin-bottom: 4px;
}

.fee-result__notes-list {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.fee-result__notes-item {
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    color: #aaaaaa;
}

.fee-result__notes-link {
    color: #aaaaaa;
    text-decoration: underline;
    text-decoration-skip-ink: none;
}

/* 本地運費提示框 */
.fee-result__local-shipping-tooltip {
    position: absolute;
    top: calc(100% + 6px);
    left: -130px;
    width: 155px;
    padding: 12px 10px;
    background-color: #ffffff;
    border: 1px solid #aaaaaa;
    z-index: 100;
    display: none;
}

.fee-result__local-shipping-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 135px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid #aaaaaa;
}

.fee-result__local-shipping-tooltip-text {
    font-size: 11px;
    font-weight: 400;
    line-height: 16px;
    color: #aaaaaa;
    margin: 0;
    white-space: pre-wrap;
}

.fee-result__question-icon:hover .fee-result__local-shipping-tooltip {
    display: block;
}
