/* EDD Crypto Payments Styles */
.edd-crypto-payment-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 0;
    margin: 24px 0;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.edd-crypto-header {
    background: rgba(255,255,255,0.1);
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
}

.edd-crypto-icon {
    font-size: 2.5em;
    margin-bottom: 12px;
}

.edd-crypto-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.edd-crypto-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95em;
}

.edd-crypto-rates-info {
    margin-top: 12px;
    font-size: 0.85em;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.edd-crypto-refresh-rates-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.edd-crypto-refresh-rates-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.3);
}

.edd-crypto-refresh-rates-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.edd-crypto-refresh-icon {
    font-size: 0.9em;
}

.edd-crypto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
}

.edd-crypto-coin-selector {
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.edd-crypto-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.edd-crypto-selector-header h4 {
    margin: 0;
    color: #2d3748;
    font-size: 1.1em;
    font-weight: 600;
}

.edd-crypto-counter {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.edd-crypto-coins-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 200px;
}

.edd-crypto-coin-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.edd-crypto-coin-item:hover {
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.edd-crypto-coin-item.active {
    border-color: #667eea;
    background: #f7faff;
}

.edd-crypto-coin-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    margin-right: 12px;
    flex-shrink: 0;
}

.edd-crypto-coin-info {
    flex: 1;
    min-width: 0;
}

.edd-crypto-coin-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95em;
}

.edd-crypto-coin-network {
    font-size: 0.75em;
    color: #718096;
    margin-top: 2px;
    font-weight: 500;
}

/* Specific network colors */
.edd-crypto-coin-item[data-network="ERC20"] .edd-crypto-coin-network {
    color: #3c3c3d;
}

.edd-crypto-coin-item[data-network="BEP20"] .edd-crypto-coin-network {
    color: #f0b90b;
}

.edd-crypto-coin-item[data-network="TRC20"] .edd-crypto-coin-network {
    color: #ff060a;
}

.edd-crypto-coin-item[data-network="Polygon"] .edd-crypto-coin-network {
    color: #8247e5;
}

.edd-crypto-coin-item[data-network="TRON"] .edd-crypto-coin-network {
    color: #ff060a;
}

.edd-crypto-coin-item[data-network="Solana"] .edd-crypto-coin-network {
    color: #00ffa3;
}

.edd-crypto-coin-item[data-network="Ethereum"] .edd-crypto-coin-network {
    color: #627eea;
}

.edd-crypto-coin-item[data-network="Bitcoin"] .edd-crypto-coin-network {
    color: #f7931a;
}

.edd-crypto-coin-item[data-network="Dogecoin"] .edd-crypto-coin-network {
    color: #c2a633;
}

.edd-crypto-coin-item[data-network="TON"] .edd-crypto-coin-network {
    color: #0088cc;
}

.edd-crypto-coin-amount {
    font-size: 0.85em;
    color: #667eea;
    font-weight: 600;
    margin-right: 8px;
}

.edd-crypto-coin-check {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.edd-crypto-coin-item.active .edd-crypto-coin-check {
    background: #667eea;
    border-color: #667eea;
}

.edd-crypto-checkmark {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.edd-crypto-coin-item.active .edd-crypto-checkmark {
    opacity: 1;
}

.edd-crypto-payment-details {
    background: white;
    padding: 20px;
}

.edd-crypto-details-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.edd-crypto-qr-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    min-height: 180px;
}

.edd-crypto-qr-container {
    flex-shrink: 0;
    position: relative;
}

.edd-crypto-qr-code {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.edd-crypto-qr-placeholder {
    width: 140px;
    height: 140px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 0.9em;
    text-align: center;
    background: #f7fafc;
}

.edd-crypto-amount-display {
    flex: 1;
}

.edd-crypto-amount-label {
    font-size: 0.9em;
    color: #718096;
    margin-bottom: 8px;
}

.edd-crypto-amount-value {
    font-size: 1.4em;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
}

.edd-crypto-amount-currency {
    font-size: 1em;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 4px;
}

.edd-crypto-usd-amount {
    font-size: 0.85em;
    color: #718096;
}

/* Network Badge */
.edd-crypto-network-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    margin-top: 8px;
}

/* Network Warning */
.edd-crypto-network-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 0.8em;
    color: #856404;
}

.edd-crypto-network-warning strong {
    color: #856404;
}

.edd-crypto-wallet-section {
    margin-bottom: 20px;
}

.edd-crypto-wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.edd-crypto-wallet-label {
    font-size: 0.9em;
    color: #718096;
    font-weight: 500;
}

.edd-crypto-copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.edd-crypto-copy-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.edd-crypto-wallet-address {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    word-break: break-all;
    color: #2d3748;
    border: 1px solid #e2e8f0;
    line-height: 1.4;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.edd-crypto-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.edd-crypto-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid #667eea;
    background: #667eea;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.edd-crypto-action-btn:hover {
    background: #5a6fd8;
    border-color: #5a6fd8;
    transform: translateY(-1px);
}

.edd-crypto-action-btn.edd-crypto-secondary {
    background: white;
    color: #667eea;
}

.edd-crypto-action-btn.edd-crypto-secondary:hover {
    background: #f7faff;
}

.edd-crypto-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
    margin-bottom: 12px;
}

.edd-crypto-notice-icon {
    font-size: 1.2em;
    flex-shrink: 0;
}

.edd-crypto-notice-content {
    font-size: 0.85em;
    line-height: 1.4;
}

/* Ultra Compact Instructions */
.edd-crypto-instructions-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.edd-crypto-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.edd-crypto-step:last-child {
    border-bottom: none;
}

.step-number {
    width: 18px;
    height: 18px;
    background: #667eea;
    color: white;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.step-desc {
    font-size: 12px;
    color: #4a5568;
    line-height: 1.2;
    font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .edd-crypto-step {
        gap: 6px;
        padding: 3px 0;
    }
    
    .step-number {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
    
    .step-desc {
        font-size: 11px;
    }
}

.edd-crypto-rates-disclaimer {
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.edd-crypto-rates-disclaimer small {
    color: #6c757d;
    font-size: 0.75em;
}

/* Legacy single coin styles */
.edd-crypto-amount-card, .edd-crypto-address-card {
    background: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
}

.edd-crypto-amount-label, .edd-crypto-address-label {
    font-size: 0.9em;
    color: #718096;
    margin-bottom: 8px;
}

.edd-crypto-amount-value {
    font-size: 1.3em;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
}

.edd-crypto-amount-currency {
    font-size: 0.9em;
    color: #667eea;
    font-weight: 600;
}

.edd-crypto-address-value {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    word-break: break-all;
    color: #2d3748;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Loading states */
.edd-crypto-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.edd-crypto-loading:after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { color: rgba(0,0,0,0); text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    40% { color: #6c757d; text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    60% { text-shadow: .25em 0 0 #6c757d, .5em 0 0 rgba(0,0,0,0); }
    80%, 100% { text-shadow: .25em 0 0 #6c757d, .5em 0 0 #6c757d; }
}

/* Error state */
.edd-crypto-error {
    background: #fed7d7;
    color: #c53030;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    border: 1px solid #feb2b2;
}

/* Checkout display */
.edd-crypto-checkout-static {
    margin: 10px 0;
    font-weight: 600;
    color: #2d3748;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .edd-crypto-content {
        grid-template-columns: 1fr;
    }

    .edd-crypto-coin-selector {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .edd-crypto-coins-grid {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .edd-crypto-coin-item {
        min-width: 140px;
        flex-direction: column;
        text-align: center;
        padding: 12px 8px;
    }

    .edd-crypto-coin-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .edd-crypto-coin-info {
        width: 100%;
    }

    .edd-crypto-coin-amount {
        margin-right: 0;
        margin-top: 4px;
    }

    .edd-crypto-coin-check {
        position: absolute;
        top: 8px;
        right: 8px;
    }

    .edd-crypto-qr-section {
        flex-direction: column;
        text-align: center;
    }

    .edd-crypto-actions {
        grid-template-columns: 1fr;
    }

    .edd-crypto-header {
        padding: 20px 16px;
    }

    .edd-crypto-header h3 {
        font-size: 1.3em;
    }

    .edd-crypto-rates-info {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .edd-crypto-payment-box {
        margin: 16px 0;
        border-radius: 12px;
    }

    .edd-crypto-header {
        padding: 16px;
    }

    .edd-crypto-coin-selector,
    .edd-crypto-payment-details {
        padding: 16px;
    }

    .edd-crypto-qr-code,
    .edd-crypto-qr-placeholder {
        width: 120px;
        height: 120px;
    }
}
/* TXID Section Styles */
.edd-crypto-txid-section {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.edd-crypto-txid-header {
    text-align: center;
    margin-bottom: 20px;
}

.edd-crypto-txid-header h4 {
    margin: 0 0 8px 0;
    color: #2d3748;
    font-size: 1.1em;
}

.edd-crypto-txid-header p {
    margin: 0;
    color: #718096;
    font-size: 0.9em;
}

.edd-crypto-txid-form {
    max-width: 500px;
    margin: 0 auto;
}

.edd-crypto-form-group {
    margin-bottom: 16px;
}

.edd-crypto-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9em;
}

.edd-crypto-form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9em;
    transition: border-color 0.2s ease;
}

.edd-crypto-form-input:focus {
    outline: none;
    border-color: #667eea;
}

.edd-crypto-submit-btn {
    width: 100%;
    padding: 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.edd-crypto-submit-btn:hover:not(:disabled) {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.edd-crypto-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.edd-crypto-submit-icon {
    font-size: 1.1em;
}

/* TXID Status Styles */
.edd-crypto-txid-status {
    margin: 20px 0;
    padding: 20px;
    background: #d1fae5;
    border: 2px solid #a7f3d0;
    border-radius: 12px;
}

.edd-crypto-status-header {
    text-align: center;
    margin-bottom: 16px;
}

.edd-crypto-status-header h4 {
    margin: 0;
    color: #065f46;
    font-size: 1.1em;
}

.edd-crypto-status-details {
    color: #065f46;
}

.edd-crypto-status-details p {
    margin: 8px 0;
    font-size: 0.9em;
}

.edd-crypto-status-details code {
    background: rgba(0, 0, 0, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
    overflow-x: auto;
}

.edd-crypto-status-note {
    font-style: italic;
    margin-top: 12px !important;
    padding-top: 12px;
    border-top: 1px solid rgba(6, 95, 70, 0.2);
}

/* Admin Styles */
.edd-crypto-admin-details {
    padding: 12px;
}

.edd-crypto-admin-details table {
    width: 100%;
    border-collapse: collapse;
}

.edd-crypto-admin-details td {
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.edd-crypto-admin-details td:first-child {
    width: 200px;
    font-weight: 600;
}

.edd-crypto-verify-btn {
    margin-right: 8px !important;
    margin-bottom: 8px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .edd-crypto-txid-form {
        max-width: 100%;
    }
    
    .edd-crypto-admin-details td:first-child {
        width: 150px;
    }
}
