/* Cognizense Crypto Payments — Checkout & Thank-You Styles */

.ccp-asset-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin: 5px 0 10px;
}

.ccp-payment-details {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    margin-top: 10px;
}

.ccp-payment-details p {
    margin: 8px 0;
}

.ccp-crypto-amount {
    font-size: 1.3em;
    font-weight: bold;
    color: #2271b1;
    margin: 0 5px;
}

.ccp-asset-symbol {
    font-weight: bold;
}

.ccp-recipient-address {
    display: block;
    background: #fff;
    padding: 6px 10px;
    border: 1px solid #dcdcde;
    border-radius: 3px;
    font-size: 0.85em;
    word-break: break-all;
    margin-top: 3px;
    user-select: all;
}

.ccp-freeze-timer {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 3px;
    padding: 8px 12px;
    margin: 10px 0;
    font-size: 0.9em;
}

.ccp-countdown {
    font-weight: bold;
    font-family: monospace;
}

.ccp-tx-input {
    margin-top: 15px;
}

.ccp-tx-input label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.ccp-tx-id-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.ccp-loading {
    color: #666;
    font-style: italic;
}

.ccp-error {
    color: #b32d2e;
    font-weight: bold;
}

.ccp-rate-info {
    color: #666;
}

/* Thank-You Payment Widget */

.ccp-thankyou-payment-widget {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
}

.ccp-thankyou-payment-widget h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2271b1;
}


/* Thank You Verification */

.ccp-thankyou-status {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
}

.ccp-thankyou-status progress {
    width: 100%;
    height: 20px;
    border-radius: 10px;
}

.ccp-thankyou-status progress::-webkit-progress-bar {
    background-color: #e0e0e0;
    border-radius: 10px;
}

.ccp-thankyou-status progress::-webkit-progress-value {
    background-color: #2271b1;
    border-radius: 10px;
}

.ccp-thankyou-status progress::-moz-progress-bar {
    background-color: #2271b1;
    border-radius: 10px;
}

.ccp-copy-btn {
    vertical-align: middle;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 11px;
    cursor: pointer;
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #374151;
}
.ccp-copy-btn:hover {
    background: #d1d5db;
}

.ccp-qr-code {
    text-align: center;
    margin: 12px 0;
}

/* ──────────────────────────────────────────────
   Standalone Payment Page (Shortcode)
   ────────────────────────────────────────────── */

.ccp-payment-page {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    min-height: 60vh;
}

.ccp-payment-card {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Dark header bar */
.ccp-card-header { color: #fff !important; color: #fff;
    background: #1e293b;
    color: #fff;
    padding: 20px 28px;
    text-align: center;
}

.ccp-card-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Card body */
.ccp-card-body {
    padding: 28px;
}

/* Order info row */
.ccp-order-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.ccp-order-number {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.ccp-order-amount {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.1rem;
}

/* Asset badge */
.ccp-asset-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 6px 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #065f46;
}

.ccp-asset-badge-icon {
    font-size: 1rem;
}

.ccp-asset-badge-network {
    font-size: 0.75rem;
    font-weight: 400;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 1px 8px;
}

/* Crypto amount display */
.ccp-crypto-amount-display {
    text-align: center;
    margin: 20px 0 12px;
}

.ccp-crypto-label {
    display: block;
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.ccp-crypto-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: "SF Mono", "Menlo", "Monaco", "Consolas", monospace;
    color: #0f172a;
    line-height: 1.2;
}

.ccp-asset-symbol-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #334155;
    margin-left: 4px;
}

/* Address display */
.ccp-address-display {
    margin: 16px 0;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.ccp-address-label {
    display: block;
    color: #6b7280;
    font-size: 0.8rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ccp-recipient-addr {
    display: block;
    font-family: "SF Mono", "Menlo", "Monaco", "Consolas", monospace;
    font-size: 0.82rem;
    word-break: break-all;
    color: #334155;
    margin-bottom: 8px;
    user-select: all;
}

/* Copy button */
.ccp-copy-btn {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    transition: background 0.15s;
}

.ccp-copy-btn:hover {
    background: #d1d5db;
}

/* Rate display */
.ccp-rate-display {
    text-align: center;
    margin: 8px 0 16px;
}

.ccp-rate-text {
    font-size: 0.85rem;
    color: #6b7280;
}

/* QR Code container */
.ccp-qr-container {
    text-align: center;
    margin: 20px 0;
}

.ccp-qr-image {
    display: inline-block;
    background: #fff;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.ccp-qr-image img {
    display: block;
}

.ccp-qr-label {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 6px;
}

/* Countdown */
.ccp-countdown-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    margin: 16px 0;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #92400e;
}

.ccp-countdown-icon {
    font-size: 1rem;
}

.ccp-countdown-label {
    font-weight: 500;
}

.ccp-countdown-value {
    font-weight: 700;
    font-family: "SF Mono", "Menlo", "Monaco", "Consolas", monospace;
}

/* TX Submit Section */
.ccp-tx-submit-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.ccp-tx-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 10px;
}

.ccp-tx-input-row {
    display: flex;
    gap: 10px;
}

.ccp-tx-id-field { width: 100%; box-sizing: border-box;
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: "SF Mono", "Menlo", "Monaco", "Consolas", monospace;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.ccp-tx-id-field:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.ccp-submit-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px 24px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.ccp-submit-btn:hover {
    background: #1d4ed8;
}

.ccp-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Verification section */
.ccp-verification-section {
    padding: 20px 0;
}

.ccp-verification-section h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    color: #1e293b;
    text-align: center;
}

.ccp-tx-id-display {
    text-align: center;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #6b7280;
}

.ccp-tx-id-display code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.82rem;
}

.ccp-verification-section progress {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
}

.ccp-verification-section progress::-webkit-progress-bar {
    background-color: #e5e7eb;
    border-radius: 6px;
}

.ccp-verification-section progress::-webkit-progress-value {
    background-color: #2563eb;
    border-radius: 6px;
    transition: width 0.3s ease;
}

.ccp-verification-section progress::-moz-progress-bar {
    background-color: #2563eb;
    border-radius: 6px;
}

/* Verified banner */
.ccp-verified-banner {
    text-align: center;
    padding: 32px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
}

.ccp-verified-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.ccp-verified-banner h3 {
    margin: 0 0 8px;
    color: #065f46;
    font-size: 1.1rem;
}

.ccp-verified-banner p {
    color: #374151;
    font-size: 0.9rem;
}

.ccp-verified-banner code {
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Loading state */
#ccp-payment-widget-loading {
    text-align: center;
    padding: 32px 0;
    color: #6b7280;
}

#ccp-status-message {
    text-align: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #6b7280;
}

#ccp-confirmation-progress {
    text-align: center;
}

#ccp-confirmation-progress p {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #334155;
}
