/*
 * membercenter-legacy.css
 * 滲透測試修正：移除 Bootstrap 3 後的替代樣式
 *
 * 會員中心原本在 SignIn / FOCredentialSignIn / Profiles / Point/Transaction / Notify/Settings
 * 這幾頁載入 Bootstrap 3.3.7 CSS，部分畫面依賴其預設樣式。
 * 本檔只補上「membercenter.min.css 沒有覆寫、但畫面實際用到」的樣式，
 * 數值對齊原 Bootstrap 3 預設值，讓移除 Bootstrap 後版面維持不變。
 * 載入順序與原 Bootstrap 相同 (pluginCSS，早於 membercenter.min.css)，
 * 因此同名樣式仍以 membercenter.min.css 為準。
 */

/* ===== 基底 (原 Bootstrap scaffolding / normalize) ===== */
html {
    font-size: 10px; /* .btn-max 的 padding 使用 rem，需維持原本 10px 基準 */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

b, strong { font-weight: 700; }

img {
    border: 0;
    vertical-align: middle;
}

svg:not(:root) { overflow: hidden; }

hr {
    height: 0;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
}

a:focus {
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

label {
    max-width: 100%;
    margin-bottom: 5px;
}

[role="button"] { cursor: pointer; }

/* ===== 表單元素 ===== */
button { overflow: visible; }

button,
select { text-transform: none; }

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button; /* iOS Safari 才會套用自訂按鈕樣式 */
    cursor: pointer;
}

button[disabled],
html input[disabled] { cursor: default; }

button::-moz-focus-inner,
input::-moz-focus-inner {
    padding: 0;
    border: 0;
}

input[type="checkbox"],
input[type="radio"] {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    margin: 4px 0 0;
    line-height: normal;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { height: auto; }

input[type="file"] { display: block; }

textarea { overflow: auto; }

.form-group { margin-bottom: 15px; }

.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.form-control:focus {
    border-color: #66afe9;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}

.input-group { position: relative; }

/* 點數交易頁：原生日期欄位 (取代 bootstrap-datetimepicker) */
input[type="date"].form-control {
    min-height: 34px;
    -webkit-appearance: none; /* iOS Safari 維持指定高度 */
    -moz-appearance: textfield;
}

input[type="date"].form-control::-webkit-date-and-time-value { text-align: left; }

/* ===== 按鈕 (原 Bootstrap .btn 未被 membercenter 覆寫的部分) ===== */
.btn {
    margin-bottom: 0;
    font-weight: 400;
    background-image: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.btn:active,
.btn.active {
    background-image: none;
    outline: 0;
    -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
}

.text-center { text-align: center; }

/* ===== 關閉按鈕 ===== */
.close {
    float: right;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .2;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    opacity: .5;
}

button.close {
    -webkit-appearance: none;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
}

/* ===== 彈窗 (Profiles 頭像裁切，取代 Bootstrap modal) ===== */
body.modal-open { overflow: hidden; }

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    outline: 0;
    background-color: rgba(0, 0, 0, .5); /* 原 Bootstrap 背景遮罩 */
}

.modal.in { display: block; }

.modal-dialog {
    position: relative;
    width: auto;
    margin: 10px;
}

.modal-content {
    position: relative;
    background-color: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 6px;
    outline: 0;
    -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
    box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
}

@media (min-width: 768px) {
    .modal-dialog {
        width: 600px;
        margin: 30px auto;
    }

    .modal-content {
        -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
        box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
    }
}
/* .modal-lg 寬度沿用 membercenter.min.css (>=992px 時 640px) */

/* ===== jquery-confirm 提示窗寬度 =====
 * 原本 jquery-confirm 使用 Bootstrap 格線 (col-md-4 / col-sm-6 / col-xs-10) 決定寬度，
 * 移除 Bootstrap 後改由 jquery-confirm.defaults.js 關閉 useBootstrap，並以下列寬度維持原本大小。
 */
.jconfirm .jconfirm-box { width: calc(83.33333vw - 30px); }

@media (min-width: 768px) {
    .jconfirm .jconfirm-box { width: 345px; }
}

@media (min-width: 992px) {
    .jconfirm .jconfirm-box { width: 293px; }
}

@media (min-width: 1200px) {
    .jconfirm .jconfirm-box { width: 360px; }
}
