/* 付款流程共用的警示對話框：支付選擇頁與付款頁 */
.warn-dialog {
    font-family: "微軟正黑體", "Heiti TC", "LiHei Pro", "WenQuanYi Zen Hei", Georgia, Serif;
    display: none;
    width: 87%;
    height: 200px;
    background-color: white;
    border-radius: 5px;
    position: fixed;
    z-index: 200;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    text-align: center;
    box-shadow: 0 2px 5px 1px rgb(68, 68, 68);
}

.warn-dialog-head {
    height: 60px;
    background-color: #E94B24;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.warn-dialog-icon {
    margin: 12px;
    width: 36px;
    height: 36px;
    fill: #fff;
}

.warn-dialog-text {
    height: 80px;
    position: relative;
}

/* 高度依內容，訊息換行才不會溢出容器 */
.warn-dialog-text p {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    white-space: pre-line;
}

.warn-dialog-foot {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    border-top: 1px solid rgb(155, 155, 155);
    box-sizing: border-box;
}

/* button 的字級與顏色都不繼承，需自行指定，否則會落到瀏覽器預設 */
.warn-dialog-btn {
    flex: 1;
    border: none;
    background-color: transparent;
    font-family: inherit;
    font-size: 18px;
    color: #333;
    -webkit-appearance: none;
    appearance: none;
}
