
/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    --bg-body: #f3f4f6;
    --border-color: #e5e7eb;
    --white: #ffffff;
    --black: #000000;
    
    /* Color */
    --theme-color-blue: #2E7EFA;
    --blue-d: #2840C8;
    --grey: #e2e5e8;

    --text-main: #0A141E;
    --text-secondary: #374151;
    --text-sub: #666666;
    --text-light: #999999;
    --text-lighter: #CCCCCC;
    --text-lightest: #E5E5E5;

    /* Font Weight */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-black: 900;
}

* {
    font-family: 'Noto Sans SC', 'Roboto', sans-serif;
}

html,
body {
    height: auto;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Roboto', sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    min-height: auto;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fafafa;
    max-width: 480px;
    position: relative;
    padding-bottom: 80px;
}

.pay-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #F0F5FF;
    max-width: 480px;
    min-height: 100vh;
}

/* Footer */
.footer {
    background: #fff;
    max-width: 480px;
    display: flex;
    text-align: center;
    align-items: center;
    padding: 12px 16px 16px 16px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    z-index: 100;
}

.pay-btn {
    width: 100%;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #cccccc;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 20px;
    line-height: 20px;
    cursor: not-allowed;
}

.pay-btn.active {
    background-color: #2840C8;
    cursor: pointer;
}

.pay-btn:disabled {
    background-color: #769BE1;
}

.btn-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    display: inline-block;
}

/* Header */
.header {
    background: linear-gradient(to right, #3C30F2, #2869FF);
    color: #fff;
    display: flex;
    align-items: center;
}

.top {
    display: flex;
    align-items: center;
}

.title-top {
    font-size: 24px;
    margin: 8px 0 8px 16px;
    font-weight: 700;
}

.logo-img {
    width: 50%;
    height: auto;
    margin: 10px auto 10px 20px;
    z-index: 100;
}

.icon-close {
    justify-content: right;
    margin: 0 16px 0 0;
    cursor: pointer;
    width: 24px;
    height: 24px;
    margin-left: auto;
    z-index: 100;
}

.icon-close-status {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 1000;
}

/* Countdown */
.countdown {
    width: auto;
    height: auto;
    background-color: #FFEEDC;
    border-radius: 8px;
    margin: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Message */
.message {
    display: flex;
    align-items: center;
    font-size: 16px;
    line-height: 20px;
    color: #E3781D;
}

.small-icon-l {
    width: 20px;
    height: auto;
    margin-right: 8px;
}

.small-icon-r {
    width: 20px;
    height: auto;
    margin-left: 8px;
}

/* Countdown section */
.countdown-time {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    gap: 8px;
}

.time-box {
    width: 48px;
    height: 48px;
    background-color: #FF861E;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.time {
    font-size: 24px;
    font-weight: bold;
    color: #FFF !important;
}

.colon {
    font-size: 24px;
    font-weight: bold;
    color: #E3781D;
}

/* Amount area */
.payment-amount {
    text-align: center;
    margin: 0 16px 10px;
    background-color: #FFF5C8;
    border-radius: 8px;
    border: 1px solid #FFC600;
}

.label {
    color: rgb(153, 153, 153);
    font-size: 18px;
    line-height: 20px;
    margin-top: 20px;
}

.amount {
    color: rgba(48, 48, 48, 1);
    font-size: 40px;
    line-height: 40px;
    font-family: 'Noto Sans SC', 'Roboto', sans-serif;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    line-height: auto;
    margin-top: 0;
    margin-bottom: 10px;
}

.order-number {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 20px;
    color: #E3781D;
    margin-bottom: 20px;
}

/* Copy order number */
.icon-copy {
    width: 20px;
    height: 20px;
    margin-left: 4px;
    background-color: rgb(0, 0, 0);
    -webkit-mask-image: url('images/icon_copy_white_0821.png');
    mask-image: url('images/icon_copy_white_0821.png');

    -webkit-mask-size: contain;
    mask-size: contain;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    cursor: pointer;
}

.blue {
    background-color: #2840C8;
}

.og {
    background-color: #FF861E;
}

/* Toast styles */
.toast {
    visibility: hidden;
    min-width: 160px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px 20px;
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    z-index: 9999;
}

.location-3 {
    top: 30% !important;
}

.location-5 {
    top: 50% !important;
}

/* Toast display state */
.toast.show {
    visibility: visible;
    opacity: 1;
}

/* Payment methods */
.payment-method {
    margin: 16px;
    flex: 1;
    overflow-y: auto;
}

.method-box {
    width: 100%;
    margin-top: 20px;
    /*flex-direction: column;
    /* padding: 10px 0 10px 0x;
    justify-content: space-between;
    align-items: left; */
}

.method-title {
    color: #6D7278;
    font-size: 24px;
    line-height: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
}

.method-icon {
    width: 24px;
    height: 24px;
}

.method-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 12px 0 0 0;
    padding-bottom: 10px;
}

.method-row {
    display: contents;
}

.method-option {
    display: flex !important;
    padding: 10px;
    border: 2px solid #cecece;
    border-radius: 8px;
    background: white;
    font-size: 16px;
    transition: 0.3s;
    width: 100%;
    text-align: left;
    cursor: pointer;
    margin-bottom: 0;
}

.method-img {
    width: 48px;
    height: 36px;
    margin-right: 10px;
}

.method-option-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.optionn-text-h {
    overflow-wrap: break-word;
    color: rgba(0, 0, 0, 1);
    font-size: 20px;
    font-weight: normal;
    text-align: left;
    white-space: nowrap;
    line-height: 20px;
}

.optionn-text {
    overflow-wrap: break-word;
    color: rgba(136, 136, 136, 1);
    font-size: 14px;
    font-weight: normal;
    text-align: left;
    white-space: nowrap;
    line-height: 14px;
    margin-top: 4px;
}

.method-option.selected {
    border: 2px solid #2840C8;
    background-color: #F0F5FF;
    position: relative;
}

/* Payment status page */
.status-header {
    position: relative;
    width: 100%;
    height: 156px;
    align-items: center;
    /* background-color: #404040; */
}

.status-bg {
    position: absolute;
    width: 100%;
    height: 120px;
    border-radius: 0 0 60px 60px;
    background: linear-gradient(135deg, #2840C8, #4A67FF);
    z-index: 1;
}

.status-card {
    position: absolute;
    top: 50px;
    width: calc(100% - 40px);
    height: auto;
    text-align: center;
    margin: 0 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 0px rgba(118, 155, 225, 1);
    box-sizing: border-box;
    z-index: 2;
}

.status-card-s {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 10px 0;
}

.status-icon {
    width: 18px;
    margin: 0 8px;
}

.status-text {
    color: #6D7278;
    font-size: 18px;
    line-height: 20px;

}

.countdown-text {
    color: #FF6600;
    font-size: 18px;
    line-height: 18px;
    margin: 16px 0 20px 0;
}

.info-card {
    height: auto;
    text-align: center;
    margin: 0 16px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 0px rgba(118, 155, 225, 1);
    padding: 0 0 8px 0;
    z-index: 10;
}



.warning-box {
    width: auto;
    height: auto;
    background: #ffecd8;
    color: #CC4C00;
    margin: 4px 20px;
    padding: 2px 16px;
    border-radius: 8px;
    text-align: left;
    font-size: 14px;
    line-height: 16px;
}

.warning-box p {
    margin: 8px 0;
}

.warning-highlight {
    font-size: 16px;
    color: red;
    text-align: center;
    margin: 8px 0;
}

.warning-bank {
    font-size: 14px;
    color: #ff0000;
    margin: 0;
    text-align: center;
    line-height: 16px;
}
.result-text {
    color: #2840C8;
    font-size: 28px;
    font-weight: 500;
    margin: 24px 0;
}

.result-amount {
    text-align: center;
    background-color: #FFF5C8;
    border-radius: 8px;
    border: 1px solid #FFC600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
}

.result-list-t1 {
    color: #666;
    font-size: 20px;
    font-weight: 100;
}

.result-list-amount {
    color: #303030;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Noto Sans SC', 'Roboto', sans-serif;
}

.result-info {
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
}

.result-list-t2 {
    color: #999;
    font-size: 14px;
    font-family: 'Noto Sans SC', 'Roboto', sans-serif;
    font-weight: 300;
    line-height: 14px;
}

.result-list-account {
    color: #303030;
    font-size: 14px;
}

.result-list-info {
    color: #999;
    font-size: 14px;
    font-family: 'Noto Sans SC', 'Roboto', sans-serif;
    font-weight: 500;
    line-height: 14px;
}

.list-info-tw {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 16px;
}

.list-divider {
    border: 0;
    height: 1px;
    background-color: #eee;
    margin:0;
}

.result-list-info.success {
    color: #10BC00;
}

.result-list-info.failure {
    color: #E02020;
}

/* Account confirmation */
.account-info {
    height: auto;
    padding: 10px 20px;
    text-align: left;
    border-radius: 10px;
}

.account-list-h {
    color: rgb(153, 153, 153);
    font-size: 16px;
    line-height: 16px;
    margin-top: 4px;
}

.account-list-t {
    font-family: 'Noto Sans SC', 'Roboto', sans-serif;
    font-weight: 500;
    color: #303030;
    font-size: 20px;
    line-height: 20px;
}

.account-list-t-2 {
    font-family: 'Noto Sans SC', 'Roboto', sans-serif;
    font-weight: 500;
    color: #303030;
    font-size: 20px;
    line-height: 20px;
    margin: 0 0 10px 0;
}

.bank-info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-btn {
    width: auto;
    height: 24px;
    cursor: pointer;
}

.required {
    color: red;
    font-size: 24px;
    margin-left: 5px;
}

.account-bank {
    display: flex;
    align-items: center;
    line-height: 20px;
}

input {
    width: 100%;
    padding: 12px 16px;
    background-color: #ffffff;
    border: 1px solid #cecece;
    border-radius: 5px;
    margin: 12px 0;
    color: #303030;
    font-size: 18px;
    box-sizing: border-box;
}

/* Placeholder text style when not input */
input::placeholder {
    color: #999999;
    font-size: 16px;
    font-family: 'Noto Sans SC', 'Roboto', sans-serif;
    font-weight: 300;
}

/* Input box style when focused */
input:focus {
    outline: none;
    border-color: #007bff;
}

/* Input box style when disabled */
input:disabled {
    background-color: #f5f5f5;
    color: #999999;
}

.bank-method {
    margin: 0px 16px;
}

.method-item {
    margin-bottom: 8px;
    background-color: #fff;
    border-radius: 8px;
    padding: 4px 12px;
}

.method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 4px;
}

.method-how-title {
    font-size: 16px;
    color: #6D7278;
}

.method-arrow {
    font-size: 14px;
    color: #999;
}

.method-content {
    display: none;
    padding: 4px 8px;
    background-color: #f9f9f9;
}

.flow-image {
    width: 100%;
    margin: 12px 0;
}

/* Markdown Content Styles */
.markdown-content {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    padding: 0;
}

.markdown-content p {
    margin: 0;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin: 16px 0 8px 0;
    color: #2840C8;
    font-weight: bold;
}

.markdown-content h1 {
    font-size: 24px;
}

.markdown-content h2 {
    font-size: 20px;
}

.markdown-content h3 {
    font-size: 18px;
}

.markdown-content ul,
.markdown-content ol {
    margin: 0;
    padding-left: 24px;
}

.markdown-content li {
    margin: 0 0 4px 0;
}

.markdown-content code {
    background-color: #f5f5f5;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
}

.markdown-content pre {
    background-color: #f5f5f5;
    padding: 12px;
    border-radius: 4px;
    overflow-x: auto;
}

.markdown-content pre code {
    background-color: transparent;
    padding: 0;
}

.markdown-content blockquote {
    border-left: 4px solid #2840C8;
    margin: 8px 0;
    padding-left: 12px;
    color: #666;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    margin: 8px 0;
}

.markdown-content a {
    color: #2840C8;
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
}

.markdown-content th,
.markdown-content td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.markdown-content th {
    background-color: #f5f5f5;
}

/* Captcha Modal Styles */
.captcha-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-body);
    justify-content: center;
    align-items: center;
}

.captcha-modal.show {
    display: flex;
}

.captcha-box {
    background: linear-gradient(to bottom, #d2e4ff 0%, #ffffff 40%);
    padding:0 2rem 2rem 2rem;
    margin: 0 2rem;
    border-radius: 0.75rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.captcha-icon {
    width: 150px;
    height: auto;
    margin-top: -50px;
}

.captcha-title {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin: 1rem;
    line-height: 1.5;
    font-weight: var(--fw-regular);
}

.input-group {
    position: relative;
    margin: 0.75rem 0;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-lighter);
}

.input-group input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    outline: none;
    font-size: 1.25rem;
}

.input-group input:focus {
    border-color: var(--theme-color-blue);
}

.input-group input:focus::placeholder {
    color: transparent;
    transition: all 0.3s ease;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-row .captcha-input-group {
    flex: 1;
    margin: 0;
}

#captcha-img {
    width: 120px;
    height: 48px;
    object-fit: fill;
    background-color: var(--grey);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    cursor: pointer; 
    flex-shrink: 0;
    display: block;
    align-items: center;
}

.captcha-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--theme-color-blue);
    color: white;
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: var(--fw-medium);
    cursor: pointer;
    transition: background 0.3s;
    margin: 1rem 0;
}
.captcha-btn:hover {
    box-shadow: 0 2px 4px 1px #1c66de67;
}

.error-msg {
    color: #ef4444;
    margin: 0;
}
