/* 付款面板（網上表格最後一步、查詢進度頁） */
.tp {
    max-width: 460px;
    margin: 0 auto 18px;
    border: 1px solid #e3ddcf;
    border-radius: 16px;
    background: #fff;
    text-align: left;
    overflow: hidden;
    color: #2b3440;
}

.tp-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    border-bottom: 1px solid #efeae0;
    background: #faf8f3;
    font-size: 0.8rem;
    color: #6b7680;
}

.tp-secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #3f7a4f;
}

.tp-secure svg,
.tp-copy svg,
.tp-tick svg {
    width: 15px;
    height: 15px;
}

.tp-reftop b {
    color: var(--primary-color, #1e2938);
    letter-spacing: 0.02em;
}

.tp-sum {
    padding: 22px 18px 18px;
    text-align: center;
    border-bottom: 1px solid #efeae0;
}

.tp-sum small {
    display: block;
    font-size: 0.82rem;
    color: #6b7680;
}

.tp-amount {
    display: block;
    margin: 4px 0 2px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--primary-color, #1e2938);
}

.tp-amount-open {
    font-size: 1.05rem;
    font-weight: 600;
}

.tp-fee {
    font-size: 0.78rem;
    color: #8a8f96;
}

.tp-how {
    margin: 0;
    padding: 16px 18px 4px 38px;
    font-size: 0.86rem;
    line-height: 1.6;
    color: #4f5b66;
}

.tp-how li + li {
    margin-top: 4px;
}

.tp-bank {
    margin: 12px 18px 16px;
    border: 1px solid #e3ddcf;
    border-radius: 12px;
    background: #fffaf0;
}

.tp-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.88rem;
}

.tp-row + .tp-row {
    border-top: 1px solid #efe6d2;
}

.tp-row > span {
    flex-shrink: 0;
    width: 40%;
    color: #6b7680;
}

.tp-row > b {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: var(--primary-color, #1e2938);
    overflow-wrap: anywhere;
}

.tp-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 5px 10px;
    border: 1px solid #d9cba6;
    border-radius: 999px;
    background: #fff;
    color: #8a6d25;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
}

.tp-copy.is-done {
    border-color: #9cc5a6;
    color: #3f7a4f;
}

.tp-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 0 18px 10px;
    padding: 16px;
    border: 1.5px dashed #d9cba6;
    border-radius: 12px;
    background: #fdfbf6;
    text-align: center;
    cursor: pointer;
}

.tp-drop svg {
    width: 24px;
    height: 24px;
    color: #9c7c3c;
}

.tp-drop strong {
    font-size: 0.9rem;
    color: var(--primary-color, #1e2938);
}

.tp-drop span {
    font-size: 0.76rem;
    color: #8a8f96;
}

.tp-drop input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.tp-files {
    margin: 0 18px;
    padding: 0;
    list-style: none;
}

.tp-files li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    margin-bottom: 6px;
    border: 1px solid #ebe7de;
    border-radius: 8px;
    font-size: 0.82rem;
}

.tp-files li span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-files li button {
    flex-shrink: 0;
    border: 0;
    background: none;
    color: #a0332b;
    font: inherit;
    font-size: 0.76rem;
    cursor: pointer;
}

.tp-paid {
    display: block;
    width: calc(100% - 36px);
    margin: 8px 18px 6px;
    padding: 13px;
    border: 0;
    border-radius: 999px;
    background: var(--primary-color, #1e2938);
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.tp-paid:disabled {
    opacity: 0.6;
    cursor: wait;
}

.tp-msg {
    margin: 4px 18px 0 !important;
    font-size: 0.82rem !important;
    color: #a0332b !important;
    text-align: center;
}

.tp-done {
    padding: 8px 18px 4px;
    text-align: center;
}

.tp-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: #e7f3ea;
    color: #3f7a4f;
}

.tp-tick svg {
    width: 24px;
    height: 24px;
}

.tp-done strong {
    display: block;
    color: var(--primary-color, #1e2938);
}

.tp-done p {
    margin: 4px 0 0 !important;
    font-size: 0.86rem;
    color: #4f5b66;
}

.tp-later {
    margin: 10px 18px 16px !important;
    font-size: 0.78rem !important;
    color: #8a8f96 !important;
    text-align: center;
}

.tp .cs-dep {
    color: inherit;
}

[hidden] {
    display: none !important;
}

@media (max-width: 480px) {
    .tp-row {
        flex-wrap: wrap;
        row-gap: 2px;
    }

    .tp-row > span {
        width: 100%;
    }

    .tp-amount {
        font-size: 1.7rem;
    }
}

/* 選自己的銀行 */
.tp-pick {
    padding: 16px 18px 0;
}

.tp-pick-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7680;
}

.tp-banks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tp-bankbtn {
    padding: 7px 12px;
    border: 1px solid #ddd6c6;
    border-radius: 999px;
    background: #fff;
    color: #2b3440;
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.tp-bankbtn:hover {
    border-color: #c9a961;
}

.tp-bankbtn[aria-checked="true"] {
    border-color: var(--primary-color, #1e2938);
    background: var(--primary-color, #1e2938);
    color: #fff;
}
