@charset "utf-8";
/* 電腦版彈窗共用樣式：與新版內頁（css/inner-modern.css）同一套色彩、圓角與按鈕 */
body.popup-modern {
    margin: 0;
    padding: 16px;
    background: #fff;
    color: #172033;
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

body.popup-modern a {
    color: #075ea8;
}

body.popup-modern a:focus-visible,
body.popup-modern button:focus-visible,
body.popup-modern input:focus-visible,
body.popup-modern select:focus-visible,
body.popup-modern textarea:focus-visible {
    outline: 2px solid #0d7cd7;
    outline-offset: 2px;
}

/* 卡片 */
body.popup-modern .panel {
    margin: 0 0 16px;
    border: 1px solid #d9dee5;
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
}

body.popup-modern .panel > .panel-heading {
    padding: 12px 18px;
    border-bottom: 1px solid #d9dee5;
    border-radius: 0;
    background: #f5f9fd;
    color: #172033;
    font-size: 16px;
    font-weight: 600;
}

body.popup-modern .panel > .panel-heading .fa,
body.popup-modern .panel > .panel-heading .glyphicon {
    margin-right: 6px;
    color: #0d7cd7;
}

body.popup-modern .panel > .panel-body {
    padding: 16px 18px;
}

body.popup-modern .breadcrumb {
    margin: 0 0 12px;
    padding: 0;
    border-radius: 0;
    background: none;
    color: #5a6475;
    font-size: 14px;
}

/* 表格 */
body.popup-modern .table {
    margin-bottom: 0;
    font-size: 15px;
}

body.popup-modern .table > tbody > tr > td,
body.popup-modern .table > tbody > tr > th,
body.popup-modern .table > thead > tr > th {
    padding: 10px 12px;
    border-top: 1px solid #edf1f5;
    vertical-align: middle;
}

body.popup-modern .table > tbody > tr:first-child > td,
body.popup-modern .table > tbody > tr:first-child > th {
    border-top: 0;
}

body.popup-modern .table > tbody > tr.active > td,
body.popup-modern .table > tbody > tr > td.active,
body.popup-modern .table > tbody > tr.info > td,
body.popup-modern .table > tbody > tr > td.info,
body.popup-modern .table > tbody > tr.success > td,
body.popup-modern .table > tbody > tr > td.success,
body.popup-modern .table > tbody > tr.warning > td,
body.popup-modern .table > tbody > tr > td.warning {
    background: #f5f9fd;
}

/* 表單 */
body.popup-modern .form-control,
body.popup-modern input[type="text"],
body.popup-modern input[type="password"],
body.popup-modern input[type="email"],
body.popup-modern input[type="tel"],
body.popup-modern select,
body.popup-modern textarea {
    min-height: 42px;
    padding: 6px 14px;
    border: 1px solid #d9dee5;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: none;
    color: #172033;
    font-size: 15px;
}

body.popup-modern .form-control:focus,
body.popup-modern input[type="text"]:focus,
body.popup-modern input[type="password"]:focus,
body.popup-modern select:focus,
body.popup-modern textarea:focus {
    border-color: #0d7cd7;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(13, 124, 215, 0.16);
}

body.popup-modern .input-group .form-control {
    border-radius: 10px 0 0 10px;
}

body.popup-modern .input-group-btn > .btn {
    border-radius: 0 10px 10px 0;
}

/* 按鈕 */
body.popup-modern .btn,
body.popup-modern input[type="button"],
body.popup-modern input[type="submit"] {
    display: inline-flex;
    min-height: 42px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #d9dee5;
    border-radius: 999px;
    background: #fff;
    background-image: none;
    box-shadow: none;
    color: #172033;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-shadow: none;
    cursor: pointer;
}

body.popup-modern .btn-xs,
body.popup-modern .btn-sm {
    min-height: 34px;
    padding: 0 14px;
    font-size: 14px;
}

body.popup-modern .btn-primary,
body.popup-modern .btn-info,
body.popup-modern .btn-main,
body.popup-modern input[type="submit"] {
    border-color: #0d7cd7;
    background: #0d7cd7;
    color: #fff;
}

body.popup-modern .btn-primary:hover,
body.popup-modern .btn-info:hover,
body.popup-modern .btn-main:hover,
body.popup-modern input[type="submit"]:hover {
    border-color: #075ea8;
    background: #075ea8;
    color: #fff;
}

body.popup-modern .btn-success {
    border-color: #16845b;
    background: #16845b;
    color: #fff;
}

body.popup-modern .btn-warning {
    border-color: #f2a900;
    background: #f2a900;
    color: #2c2810;
}

body.popup-modern .btn-danger {
    border-color: #c9302c;
    background: #c9302c;
    color: #fff;
}

body.popup-modern .btn[disabled],
body.popup-modern .btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* 分頁 */
body.popup-modern .pagination > li > a,
body.popup-modern .pagination > li > span {
    min-width: 38px;
    padding: 8px 12px;
    border-color: #d9dee5;
    color: #075ea8;
    text-align: center;
}

body.popup-modern .pagination > .active > a,
body.popup-modern .pagination > .active > span {
    border-color: #0d7cd7;
    background: #0d7cd7;
    color: #fff;
}

/* 標籤與提示 */
body.popup-modern .label {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

body.popup-modern .alert {
    border-radius: 12px;
}

body.popup-modern img {
    max-width: 100%;
    height: auto;
}

body.popup-modern .thumbnail {
    border-color: #d9dee5;
    border-radius: 12px;
}

/* 舊的「關閉視窗」圖片按鈕 */
body.popup-modern img[src*="close_bt"],
body.popup-modern img[src*="closebt"],
body.popup-modern img[src*="close.gif"] {
    max-width: none;
}

body.popup-modern .btn-main2 {
    border-color: #f2a900;
    background: #f2a900;
    color: #2c2810 !important;
}

body.popup-modern.phone-edit-page {
    min-height: 100vh;
    padding: 20px;
    background: #f5f8fc;
}

body.popup-modern .phone-edit-card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

body.popup-modern .phone-edit-card .panel-heading {
    padding: 16px 20px;
}

body.popup-modern .phone-edit-card .panel-heading h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

body.popup-modern .phone-edit-body {
    padding: 20px;
}

body.popup-modern .phone-edit-intro {
    margin: 0 0 16px;
    color: #5a6475;
}

body.popup-modern .phone-edit-form,
body.popup-modern .phone-edit-field {
    display: grid;
    gap: 8px;
}

body.popup-modern .phone-edit-form {
    gap: 18px;
}

body.popup-modern .phone-edit-current {
    display: flex;
    min-height: 54px;
    padding: 12px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    background: #f8fafc;
}

body.popup-modern .phone-edit-current span,
body.popup-modern .phone-edit-field label {
    color: #334155;
    font-weight: 700;
}

body.popup-modern .phone-edit-current strong {
    color: #172033;
    font-size: 17px;
    letter-spacing: .04em;
}

body.popup-modern .phone-edit-input {
    display: flex;
    width: 100%;
}

body.popup-modern .phone-edit-input .input-group-addon {
    display: grid;
    width: 46px;
    flex: 0 0 46px;
    place-items: center;
    border: 1px solid #b7c7d8;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: #eef6fc;
    color: #075ea8;
}

body.popup-modern .phone-edit-input .form-control {
    width: 100%;
    min-width: 0;
    height: 46px;
    border-color: #b7c7d8;
    border-radius: 0 10px 10px 0;
}

body.popup-modern .phone-edit-help {
    margin: 0;
    color: #5a6475;
    font-size: 14px;
}

body.popup-modern .phone-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

body.popup-modern .phone-edit-actions .btn {
    min-height: 44px;
}

body.popup-modern .phone-edit-secondary {
    border-color: #b7c7d8;
    background: #fff;
    color: #334155;
}

body.popup-modern .phone-edit-error {
    display: flex;
    margin-top: 18px;
    padding: 12px 14px;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #efb3ad;
    border-radius: 10px;
    background: #fff4f2;
    color: #8f241f;
}

body.popup-modern .phone-edit-error .fa {
    margin-top: 4px;
}

body.popup-modern .phone-edit-locked {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 16px 8px 8px;
    text-align: center;
}

body.popup-modern .phone-edit-state-icon {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 50%;
    background: #eef6fc;
    color: #075ea8;
    font-size: 25px;
}

body.popup-modern .phone-edit-locked h2,
body.popup-modern .phone-edit-locked p {
    margin: 0;
}

body.popup-modern .phone-edit-locked h2 {
    font-size: 20px;
}

body.popup-modern .phone-edit-locked .btn {
    min-height: 44px;
}

body.popup-modern.phone-verify-page {
    min-height: 100vh;
    padding: 20px;
    background: #f5f8fc;
    font-size: 16px;
}

body.popup-modern .phone-verify-card {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

body.popup-modern .phone-verify-card .panel-heading {
    padding: 16px 20px;
}

body.popup-modern .phone-verify-card .panel-heading h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

body.popup-modern .phone-verify-body {
    padding: 20px;
}

body.popup-modern .phone-verify-content,
body.popup-modern .phone-verify-form,
body.popup-modern .phone-code-field {
    display: grid;
}

body.popup-modern .phone-verify-content {
    gap: 14px;
}

body.popup-modern .phone-verify-form {
    justify-items: center;
    gap: 10px;
}

body.popup-modern .phone-verify-prompt {
    margin: 0;
    color: #5a6475;
    text-align: center;
}

body.popup-modern .phone-verify-number {
    color: #c45d00;
    font-size: 26px;
    letter-spacing: .04em;
}

body.popup-modern .phone-verify-edit {
    font-size: 14px;
}

body.popup-modern .phone-code-field {
    width: 100%;
    max-width: 360px;
    margin-top: 6px;
    gap: 6px;
}

body.popup-modern .phone-code-field label {
    margin: 0;
    color: #334155;
    font-weight: 700;
}

body.popup-modern .phone-code-input {
    display: flex;
    width: 100%;
}

body.popup-modern .phone-code-input .input-group-addon {
    display: grid;
    width: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 1px solid #b7c7d8;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: #eef6fc;
    color: #075ea8;
}

body.popup-modern .phone-code-input .input-group-addon .fa {
    font-size: 20px;
}

body.popup-modern .phone-code-input .form-control {
    width: 100%;
    min-width: 0;
    height: 48px !important;
    border-color: #b7c7d8;
    border-radius: 0 10px 10px 0;
    color: #172033;
    font-size: 16px;
    letter-spacing: .08em;
}

body.popup-modern .phone-verify-actions {
    display: flex;
    width: 100%;
    margin-top: 4px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

body.popup-modern .phone-verify-actions .btn,
body.popup-modern .phone-verify-success .btn,
body.popup-modern .phone-verify-current .btn,
body.popup-modern .phone-verify-error .btn {
    min-height: 44px;
}

body.popup-modern .phone-verify-actions .btn[disabled] {
    border-color: #cbd5df;
    background: #e8edf2;
    color: #667384;
    opacity: 1;
}

body.popup-modern .phone-verify-status {
    min-height: 26px;
    color: #8f241f;
    font-size: 15px;
    text-align: center;
}

body.popup-modern .phone-verify-count {
    color: #5a6475;
}

body.popup-modern .phone-verify-ok,
body.popup-modern .phone-verify-current,
body.popup-modern .phone-verify-success {
    color: #116b49;
}

body.popup-modern .phone-verify-current,
body.popup-modern .phone-verify-success,
body.popup-modern .phone-verify-error {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 16px 8px;
    text-align: center;
}

body.popup-modern .phone-verify-current > .fa,
body.popup-modern .phone-verify-error > .fa {
    font-size: 28px;
}

body.popup-modern .phone-verify-current strong,
body.popup-modern .phone-verify-success span,
body.popup-modern .phone-verify-error strong {
    font-size: 20px;
}

body.popup-modern .phone-verify-current p {
    margin: 0;
    color: #334155;
}

body.popup-modern .phone-verify-error {
    color: #8f241f;
}

body.popup-modern .phone-verify-secondary {
    border-color: #b7c7d8;
    background: #fff;
    color: #334155;
}

body.popup-modern .phone-verify-notes {
    margin-top: 18px;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
}

body.popup-modern .phone-verify-notes summary {
    min-height: 48px;
    padding: 12px 14px;
    color: #9a5200;
    font-weight: 700;
    cursor: pointer;
}

body.popup-modern .phone-verify-notes summary .fa {
    margin-right: 8px;
}

body.popup-modern .phone-verify-notes > div {
    padding: 0 14px 12px;
    color: #334155;
}

body.popup-modern .phone-verify-notes p {
    margin: 0 0 8px;
}

@media (max-width: 520px) {
    body.popup-modern.phone-edit-page,
    body.popup-modern.phone-verify-page {
        padding: 12px;
    }

    body.popup-modern .phone-edit-body,
    body.popup-modern .phone-edit-card .panel-heading,
    body.popup-modern .phone-verify-body,
    body.popup-modern .phone-verify-card .panel-heading {
        padding: 16px;
    }

    body.popup-modern .phone-edit-current {
        display: grid;
        gap: 3px;
    }

    body.popup-modern .phone-edit-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.popup-modern .phone-edit-actions .btn-main {
        grid-row: 1;
    }

    body.popup-modern .phone-verify-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.popup-modern .phone-verify-actions .btn {
        width: 100%;
    }

    body.popup-modern .phone-verify-actions #btn_submit {
        grid-row: 1;
    }
}

/* 關閉視窗 */
body.popup-modern .popup-close-row {
    margin: 16px 0 0;
    text-align: center;
}

/* 說明條列 */
body.popup-modern .popup-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.popup-modern .popup-list > li {
    padding: 12px 0;
    border-top: 1px solid #edf1f5;
}

body.popup-modern .popup-list > li:first-child {
    padding-top: 0;
    border-top: 0;
}

body.popup-modern .popup-list b.popup-term {
    color: #075ea8;
}

body.popup-modern .popup-note {
    display: block;
    margin-top: 4px;
    color: #5a6475;
    font-size: 14px;
}


/* 合法業者登記：電腦彈窗與手機共用表單 */
body.verify-shop-page {
    max-width: 800px;
    margin: 0 auto;
}

body.verify-shop-page #error_div {
    border-color: #fdba74;
}

body.verify-shop-page #error_div > .panel-heading {
    margin: 0;
    border-bottom-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412;
}

body.verify-shop-page #error_div .verify-shop-actions {
    margin-top: 16px;
}

body.verify-shop-page #error_div p {
    overflow-wrap: anywhere;
}

.verify-shop-back {
    margin-bottom: 16px;
}

.verify-shop-steps {
    display: grid;
    margin: 0 0 16px;
    padding: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    list-style: none;
    font-size: 14px;
}

.verify-shop-steps li {
    display: flex;
    padding: 8px 4px;
    align-items: center;
    gap: 6px;
    color: #526476;
}

.verify-shop-steps span {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf1f5;
}

.verify-shop-steps [aria-current="step"] {
    color: #075ea8;
    font-weight: 600;
}

.verify-shop-steps [aria-current="step"] span {
    background: #0d7cd7;
    color: #fff;
}

.verify-shop-page label {
    display: block;
    margin: 16px 0 6px;
    font-weight: 600;
}

.verify-shop-file-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

body.verify-shop-page .verify-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

body.verify-shop-page .verify-file-button {
    min-height: 44px;
    border-color: #9bc7e9;
    background: #f0f7ff;
    color: #075ea8;
}

body.verify-shop-page .verify-file-button:hover {
    border-color: #0d7cd7;
    background: #e1f0ff;
}

.verify-file-name {
    min-width: 0;
    color: #526476;
    font-size: 14px;
    overflow-wrap: anywhere;
}

body.verify-shop-page .btn,
body.verify-shop-page select {
    min-height: 44px;
    font-size: 16px;
}

.verify-shop-page select {
    width: 100%;
}

.verify-shop-details {
    margin: 16px 0;
}

.verify-shop-details div {
    display: grid;
    padding: 10px 0;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px solid #edf1f5;
}

.verify-shop-details dt {
    color: #526476;
}

.verify-shop-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.verify-shop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 360px) {
    .verify-shop-steps li {
        flex-direction: column;
        text-align: center;
    }
}

/* 會員權限表（Main/vip/vip_advreadme.php） */
body.popup-modern .vr-lead {
    margin: 0 0 12px;
}

body.popup-modern .vr-tier-general {
    --vr-tier: #b45309;
}

body.popup-modern .vr-tier-verified {
    --vr-tier: #1d4ed8;
}

body.popup-modern .vr-tier-vip {
    --vr-tier: #15803d;
}

body.popup-modern .vr-tiers {
    display: grid;
    margin: 0 0 14px;
    padding: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
}

body.popup-modern .vr-tiers li {
    padding: 12px 14px;
    border: 1px solid #d9dee5;
    border-top: 3px solid var(--vr-tier);
    border-radius: 12px;
}

body.popup-modern .vr-tiers strong {
    display: block;
    color: var(--vr-tier);
    font-size: 16px;
}

body.popup-modern .vr-tiers span {
    color: #5a6475;
    font-size: 14px;
}

body.popup-modern .vr-table {
    width: 100%;
    border: 1px solid #d9dee5;
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    overflow: hidden;
}

body.popup-modern .vr-table th,
body.popup-modern .vr-table td {
    padding: 10px 14px;
    border-top: 1px solid #edf1f5;
    text-align: center;
    vertical-align: middle;
}

body.popup-modern .vr-table thead th {
    border-top: 0;
    background: #f5f9fd;
    color: var(--vr-tier, #172033);
    font-size: 15px;
    font-weight: 700;
}

body.popup-modern .vr-table th:first-child {
    width: 34%;
    font-weight: 400;
    text-align: left;
}

body.popup-modern .vr-table thead th:first-child {
    font-weight: 700;
}

body.popup-modern .vr-table .vr-section th {
    background: #eef4fa;
    color: #172033;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
}

body.popup-modern .vr-table tbody tr:not(.vr-section):hover > * {
    background: #f9fbfd;
}

body.popup-modern .vr-table td.vr-vip,
body.popup-modern .vr-table tbody tr:not(.vr-section):hover > td.vr-vip {
    background: #f1faf4;
}

body.popup-modern .vr-cost {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #eef4fa;
    color: #3d4a5c;
    font-size: 13px;
    line-height: 1.6;
}

body.popup-modern .vr-vip .vr-cost {
    background: #dcf2e3;
    color: #14532d;
}

body.popup-modern .vr-no {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

body.popup-modern .vr-no::before,
body.popup-modern .vr-no::after {
    position: absolute;
    top: 8px;
    left: 1px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: #c0392b;
    content: "";
    transform: rotate(45deg);
}

body.popup-modern .vr-no::after {
    transform: rotate(-45deg);
}

body.popup-modern .vr-notes {
    display: grid;
    margin-top: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

body.popup-modern .vr-notes section {
    padding: 14px 16px;
    border: 1px solid #d9dee5;
    border-radius: 12px;
}

body.popup-modern .vr-notes h2 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 16px;
    font-weight: 700;
}

body.popup-modern .vr-notes ol {
    margin: 0;
    padding-left: 22px;
    list-style: decimal;
}

body.popup-modern .vr-notes li {
    list-style: decimal;
}

body.popup-modern .vr-notes li + li {
    margin-top: 4px;
}

/* 寵糧機制說明（Main/Board/money_readme.php） */
body.popup-modern .vr-callout {
    margin: 0;
    padding: 12px 16px;
    border: 1px solid #cfe2f5;
    border-radius: 12px;
    background: #f5f9fd;
}

body.popup-modern .vr-callout strong {
    margin-right: 4px;
    color: #075ea8;
}

body.popup-modern .vr-notes .vr-gain {
    border-top: 3px solid #15803d;
}

body.popup-modern .vr-notes .vr-gain h2 {
    color: #15803d;
}

body.popup-modern .vr-notes .vr-loss {
    border-top: 3px solid #b91c1c;
}

body.popup-modern .vr-notes .vr-loss h2 {
    color: #b91c1c;
}

body.popup-modern .vr-notes .vr-wide {
    grid-column: 1 / -1;
}

body.popup-modern .vr-notes .vr-warn {
    color: #b91c1c;
    font-weight: 600;
}

@media (max-width: 720px) {
    body.popup-modern .vr-tiers,
    body.popup-modern .vr-notes {
        grid-template-columns: 1fr;
    }

    body.popup-modern .vr-table th,
    body.popup-modern .vr-table td {
        padding: 8px 8px;
        font-size: 14px;
    }
}
