/* 費用試算結果彈窗組件樣式 */

/* 彈窗容器 */
.fee-result-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.fee-result-modal--show {
    display: flex;
}

/* 遮罩層 */
.fee-result-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* 彈窗內容 */
.fee-result-modal__content {
    position: relative;
    background-color: #fff;
    border-radius: 10px;
    width: 700px;
    max-width: calc(100% - 40px);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 標題列 */
.fee-result-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 10px;
    border-bottom: 1px solid #eaeaea;
    flex-shrink: 0;
}

.fee-result-modal__title {
    font-size: 18px;
    font-weight: 700;
    color: #383838;
}

/* 關閉按鈕 */
.fee-result-modal__close {
    cursor: pointer;
    font-size: 18px;
    color: #999;
    padding: 4px;
}

.fee-result-modal__close:hover {
    color: #333;
}

/* 內容區域（可捲動） */
.fee-result-modal__body {
    padding: 0 24px 24px;
    overflow-y: auto;
    flex: 1;
}

/* 內嵌的 fee-result 覆寫 */
.fee-result-modal__body .fee-result {
    padding: 0;
    margin-top: 0;
}

/* 隱藏重複標題（彈窗 header 已有標題） */
.fee-result-modal__body .fee-result__title {
    display: none;
}
