/* ============================================================================
   送出前的 E-Mail 確認框

   為什麼自己一份 CSS,不沿用 common.css 的 .msgBox
   ---------------------------------------------------------------------------
   .msgBox 的皮在 common.css 是跟「已加入購物書包」那個 popup 綁死的,
   而 crt.js 的 POP_CARDINFO() 是用 `$('.msgBox').addClass('on')` 打開它 ——
   選擇器會一次命中所有 .msgBox。若這個確認框也掛 .msgBox,
   加入購物車時會連帶把它一起打開。所以皮自己抄一份,class 完全獨立。

   顯示 / 隱藏仍沿用 common.css 的 .pop / .pop.on / .pop .bg(那三條是共用的)。
   ============================================================================ */

.pop.emailConfirmBox {
    font-size: 0;
}

/* inline-block 垂直置中的老招:一個 100% 高的 0 寬 pseudo element 當基準線 */
.pop.emailConfirmBox:before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    height: 100%;
    width: 0;
}

.pop.emailConfirmBox > * {
    font-size: 16px;
    display: inline-block;
    vertical-align: middle;
}

.pop.emailConfirmBox .each {
    width: 560px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    z-index: 1000;
    background: #fff;
    border-radius: 5px;
    text-align: center;
    padding: 40px 20px;
}

.pop.emailConfirmBox .each .content {
    font-size: 20px;
    line-height: 1.5em;
    color: #666;
    text-align: center;
    width: 90%;
    display: inline-block;
}

.pop.emailConfirmBox .each .content .title {
    font-size: 24px;
    color: #1c1c1c;
    line-height: 1.6em;
    margin: 0 0 8px 0;
}

.pop.emailConfirmBox .each .content .note {
    font-size: 16px;
    color: #8a8a8a;
    line-height: 1.6em;
    margin: 0 0 20px 0;
}

/* 這一行就是整個功能的重點:把信箱放大到「看一眼就會發現打錯」的程度。
   word-break 是必要的 —— 長信箱在手機上不斷行會撐破整個框。 */
.pop.emailConfirmBox .each .content .emailConfirmValue {
    font-size: 28px;
    font-weight: bold;
    color: #c9151e;
    line-height: 1.5em;
    margin: 0 0 24px 0;
    padding: 14px 10px;
    background: #f6f6f6;
    border-radius: 5px;
    word-break: break-all;
}

.pop.emailConfirmBox .each .content .btn a {
    width: 170px;
    height: 60px;
    text-align: center;
    color: #fff;
    line-height: 60px;
    font-size: 22px;
    background: #c9151e;
    border-radius: 5px;
    display: inline-block;
    margin: 5px 8px;
}

/* 「我要修改」是次要動作,做成灰的,避免跟主要動作搶視線 */
.pop.emailConfirmBox .each .content .btn a.emailConfirmCancel {
    background: #8a8a8a;
}

.pop.emailConfirmBox .each .content .btn a:hover {
    background: #980107;
}

.pop.emailConfirmBox .each .content .btn a.emailConfirmCancel:hover {
    background: #6b6b6b;
}

.pop.emailConfirmBox .each .closeBtn {
    position: absolute;
    right: 10px;
    top: 10px;
    text-align: center;
    font-size: 0;
    width: 40px;
    height: 40px;
    transition: 0.5s;
    background: #cccccc;
    border-radius: 5px;
}

.pop.emailConfirmBox .each .closeBtn:before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    height: 100%;
    width: 0;
}

.pop.emailConfirmBox .each .closeBtn > * {
    font-size: 16px;
    display: inline-block;
    vertical-align: middle;
}

.pop.emailConfirmBox .each .closeBtn span {
    background: url(../img/pic22.png) no-repeat left top;
    width: 21px;
    height: 21px;
    display: inline-block;
    vertical-align: middle;
    transition: 0.5s;
    transform: rotate(0deg);
}

.pop.emailConfirmBox .each .closeBtn:hover span {
    transform: rotate(180deg);
}

@media screen and (max-width: 767px) {
    .pop.emailConfirmBox .each {
        width: 80vw;
    }

    .pop.emailConfirmBox .each .content .emailConfirmValue {
        font-size: 22px;
    }

    .pop.emailConfirmBox .each .content .btn a {
        width: 45%;
        font-size: 18px;
        margin: 5px 2%;
    }
}
