/**
 * Shofy Card-to-Card Payment — Checkout UI
 * Matches theme tokens (--tp-theme-primary, --tp-grey-1, etc.)
 */

.shofy-c2c-payment-box,
.shofy-c2c-thankyou-box {
    direction: rtl;
    text-align: right;
}

.wc_payment_method.payment_method_shofy_card_to_card .payment_box .shofy-c2c-payment-box {
    margin-right: 0;
    margin-left: 27px;
}

.shofy-c2c-instructions {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--tp-text-body, #55585B);
}

.shofy-c2c-bank-card {
    background: var(--tp-common-white, #fff);
    border: 1px solid var(--tp-border-1, #E0E2E3);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 18px;
}

.shofy-c2c-bank-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--tp-theme-primary, #0989FF) 0%, #0066cc 100%);
    color: #fff;
    font-size: 14px;
}

.shofy-c2c-bank-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
}

.shofy-c2c-bank-details {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.shofy-c2c-bank-details li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--tp-border-1, #E0E2E3);
    font-size: 13px;
}

.shofy-c2c-bank-details li:last-child {
    border-bottom: none;
}

.shofy-c2c-bank-details li > span {
    color: var(--tp-text-2, #767A7D);
    flex-shrink: 0;
}

.shofy-c2c-bank-details li strong {
    color: var(--tp-common-black, #010F1C);
    font-weight: 600;
}

.shofy-c2c-copy-row .shofy-c2c-copy-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.shofy-c2c-ltr {
    letter-spacing: 0.04em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.shofy-c2c-copy-btn {
    border: 1px solid var(--tp-theme-primary, #0989FF);
    background: transparent;
    color: var(--tp-theme-primary, #0989FF);
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shofy-c2c-copy-btn:hover,
.shofy-c2c-copy-btn.is-copied {
    background: var(--tp-theme-primary, #0989FF);
    color: #fff;
}

.shofy-c2c-amount-row .shofy-c2c-amount {
    color: var(--tp-theme-primary, #0989FF);
    font-size: 15px;
}

.shofy-c2c-upload-section {
    margin-bottom: 16px;
}

.shofy-c2c-upload-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--tp-common-black, #010F1C);
}

.shofy-c2c-upload-label .required {
    color: #e74c3c;
}

.shofy-c2c-upload-hint {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--tp-text-2, #767A7D);
}

.shofy-c2c-file-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.shofy-c2c-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.shofy-c2c-file-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px 22px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    cursor: pointer;
    width: auto !important;
}

.shofy-c2c-file-name {
    font-size: 13px;
    color: var(--tp-text-body, #55585B);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shofy-c2c-file-name.has-file {
    color: var(--tp-theme-primary, #0989FF);
    font-weight: 600;
}

.shofy-c2c-preview {
    margin-top: 12px;
}

.shofy-c2c-preview img {
    max-width: 180px;
    max-height: 140px;
    border-radius: 10px;
    border: 1px solid var(--tp-border-1, #E0E2E3);
    object-fit: cover;
}

.shofy-c2c-upload-status {
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 600;
}

.shofy-c2c-upload-status.is-uploading {
    color: var(--tp-theme-primary, #0989FF);
}

.shofy-c2c-upload-status.is-success {
    color: #27ae60;
}

.shofy-c2c-upload-status.is-error {
    color: #e74c3c;
}

.shofy-c2c-tracking-field {
    margin-top: 4px;
}

.shofy-c2c-tracking-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--tp-common-black, #010F1C);
}

.shofy-c2c-tracking-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--tp-border-1, #E0E2E3);
    border-radius: 8px;
    font-size: 14px;
}

.shofy-c2c-tracking-field input:focus {
    border-color: var(--tp-theme-primary, #0989FF);
    outline: none;
    box-shadow: 0 0 0 3px rgba(9, 137, 255, 0.12);
}

.shofy-c2c-thankyou-box {
    background: var(--tp-grey-1, #F6F7F9);
    border-radius: 14px;
    padding: 22px 24px;
    margin-top: 10px;
}

.shofy-c2c-thankyou-box h4 {
    margin: 0 0 10px;
    font-size: 16px;
    color: var(--tp-common-black, #010F1C);
}

.shofy-c2c-status {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.7;
}

.shofy-c2c-status--pending {
    color: #e67e22;
}

.shofy-c2c-status--verified {
    color: #27ae60;
}

.shofy-c2c-receipt-link {
    color: var(--tp-theme-primary, #0989FF);
    font-weight: 600;
    text-decoration: underline;
}

.wc_payment_method.payment_method_shofy_card_to_card .payment_box p:not(.shofy-c2c-instructions) {
    background: transparent;
    padding: 0;
    margin: 0;
}

.wc_payment_method.payment_method_shofy_card_to_card .payment_box {
    padding-top: 12px;
}

.wc_payment_method.payment_method_shofy_card_to_card .payment_box::after {
    display: none;
}

.wc_payment_method.payment_method_shofy_card_to_card .payment_box .shofy-c2c-payment-box {
    background: var(--tp-grey-1, #F6F7F9);
    border-radius: 12px;
    padding: 18px;
}

/* Admin & Dokan vendor order panel */
.shofy-c2c-admin-panel {
    margin-top: 20px;
    padding: 16px;
    background: var(--tp-grey-1, #F6F7F9);
    border-radius: 10px;
    border: 1px solid var(--tp-border-1, #E0E2E3);
}

.shofy-c2c-admin-panel h3 {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--tp-common-black, #010F1C);
}

.shofy-c2c-admin-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.shofy-c2c-admin-badge--ok {
    background: #e6f7ee;
    color: #27ae60;
}

.shofy-c2c-admin-badge--wait {
    background: #fff4e5;
    color: #e67e22;
}

.shofy-c2c-admin-receipt img {
    max-width: 220px;
    border-radius: 8px;
    border: 1px solid var(--tp-border-1, #E0E2E3);
    margin-top: 10px;
}

/* My Account — customer order details */
.shofy-c2c-customer-panel {
    background: var(--tp-common-white, #fff);
    border: 1px solid var(--tp-border-1, #E0E2E3);
    border-radius: 16px;
    padding: 22px 24px;
    margin: 0 0 28px;
}

.shofy-c2c-customer-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.shofy-c2c-customer-panel__head h3 {
    margin: 0;
    font-size: 18px;
    color: var(--tp-common-black, #010F1C);
}

.shofy-c2c-customer-badge,
.shofy-c2c-order-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.shofy-c2c-customer-badge--ok,
.shofy-c2c-order-badge--ok {
    background: #e6f7ee;
    color: #27ae60;
}

.shofy-c2c-customer-badge--wait,
.shofy-c2c-order-badge--wait {
    background: #fff4e5;
    color: #e67e22;
}

.shofy-c2c-order-badge {
    display: block;
    margin-top: 6px;
    width: fit-content;
}

.shofy-c2c-customer-note {
    margin: 0 0 14px;
    padding: 12px 14px;
    background: #fff8e6;
    border: 1px solid #f0d78c;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.7;
    color: #7a5b00;
}

.shofy-c2c-customer-meta {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    border-top: 1px solid var(--tp-border-1, #E0E2E3);
}

.shofy-c2c-customer-meta li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--tp-border-1, #E0E2E3);
    font-size: 13px;
}

.shofy-c2c-customer-meta li:last-child {
    border-bottom: none;
}

.shofy-c2c-customer-meta li > span {
    color: var(--tp-text-2, #767A7D);
}

.shofy-c2c-customer-receipt-preview {
    margin-top: 14px;
}

.shofy-c2c-customer-receipt-preview img {
    max-width: 240px;
    border-radius: 10px;
    border: 1px solid var(--tp-border-1, #E0E2E3);
}

.tp-woo-myaccount-order-status + .shofy-c2c-customer-panel {
    margin-top: 20px;
}
