


.wc_payment_methods .payment_method_barion img,
.woocommerce-checkout .payment_method_barion img,
.woocommerce-payment-methods .payment_method_barion img {
    max-height: 48px;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


.payment_method_barion .ngwwccheckout-payment-method-icons {
    cursor: pointer;
}

.payment_method_barion .ngwwccheckout-payment-method-icons a {
    border: 0 !important;
    outline: 0 !important;
}


.woocommerce .form-table .payment_icon img {
    max-width: 64px;
    max-height: 64px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px;
    background: white;
}


.barion-gateway-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.barion-payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.barion-payment-method {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.barion-payment-method:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.barion-payment-method input[type="radio"] {
    display: none;
}

.barion-payment-method input[type="radio"]:checked + label {
    color: #007cba;
    font-weight: bold;
}

.barion-payment-method.selected {
    border-color: #007cba;
    background: #f0f8ff;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.barion-payment-method label {
    display: block;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.barion-payment-method-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}


.barion-qr-container {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
}

.barion-qr-code {
    max-width: 200px;
    margin: 0 auto 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.barion-qr-code img {
    width: 100%;
    height: auto;
    display: block;
}

.qr-refresh-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.qr-refresh-btn:hover {
    background: #005a87;
}

.qr-refresh-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}


.barion-3ds-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.barion-3ds-modal {
    background: white;
    border-radius: 8px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.barion-3ds-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.barion-3ds-message {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.4;
}

.barion-3ds-loading {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


.barion-token-payment {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.barion-token-info {
    margin-bottom: 15px;
    padding: 10px;
    background: #e9ecef;
    border-radius: 5px;
    border-left: 4px solid #007cba;
}

.barion-token-info h4 {
    margin: 0 0 8px 0;
    color: #007cba;
    font-size: 16px;
}

.barion-token-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.token-payment-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
    width: 100%;
}

.token-payment-btn:hover {
    background: #218838;
}

.token-payment-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}


.barion-payment-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.barion-payment-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.barion-payment-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.barion-payment-status.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.barion-payment-status.three-ds {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b3d7ff;
}


.barion-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
}

.barion-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #c3e6cb;
}

.barion-success h3 {
    margin: 0 0 10px 0;
    color: #155724;
}


.barion-admin-actions {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.barion-admin-actions h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.barion-admin-btn {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.barion-admin-btn.capture {
    background: #28a745;
    color: white;
}

.barion-admin-btn.capture:hover {
    background: #218838;
}

.barion-admin-btn.cancel {
    background: #dc3545;
    color: white;
}

.barion-admin-btn.cancel:hover {
    background: #c82333;
}

.barion-admin-btn.refund {
    background: #ffc107;
    color: #212529;
}

.barion-admin-btn.refund:hover {
    background: #e0a800;
}


.barion-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.barion-payment-method-info {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #007cba;
}

.barion-payment-method-info h4 {
    margin: 0 0 10px 0;
    color: #007cba;
}

.barion-payment-method-info p {
    margin: 0;
    color: var(--general-text-color, #000) !important;
    font-size: 14px;
    line-height: 1.4;
}


.barion-3ds-challenge {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #dee2e6;
}

.barion-3ds-challenge h4 {
    margin: 0 0 15px 0;
    color: #333;
    text-align: center;
}

.barion-3ds-challenge iframe {
    width: 100%;
    min-height: 400px;
    border: none;
    border-radius: 5px;
}


.barion-token-details {
    background: #e9ecef;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #666;
}

.barion-token-details strong {
    color: #333;
}


.barion-debug-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
    margin-top: 15px;
    font-family: monospace;
    font-size: 12px;
    color: #666;
    max-height: 200px;
    overflow-y: auto;
}

.barion-debug-info pre {
    margin: 0;
    white-space: pre-wrap;
}


@media (max-width: 768px) {
    .barion-gateway-container {
        padding: 15px;
        margin: 10px;
    }
    
    .barion-payment-methods {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .barion-payment-method {
        padding: 12px;
    }
    
    .barion-qr-code {
        max-width: 150px;
    }
    
    .barion-3ds-modal {
        width: 95%;
        padding: 15px;
    }
    
    .token-payment-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .barion-gateway-container {
        padding: 10px;
        margin: 5px;
    }
    
    .barion-payment-method {
        padding: 10px;
    }
    
    .barion-qr-code {
        max-width: 120px;
    }
    
    .barion-3ds-modal {
        width: 98%;
        padding: 10px;
    }
}


@media (prefers-color-scheme: dark) {
    .barion-gateway-container {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .barion-payment-method {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .barion-payment-method:hover {
        background: #2d3748;
        border-color: #4299e1;
    }
    
    .barion-qr-container {
        background: #4a5568;
    }
    
    .barion-token-payment {
        background: #4a5568;
        border-color: #718096;
    }
    
    .barion-token-info {
        background: #2d3748;
        border-left-color: #4299e1;
    }
}


.barion-payment-method:focus-within {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.qr-refresh-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.token-payment-btn:focus {
    outline: 2px solid #28a745;
    outline-offset: 2px;
}


.barion-test-mode {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

.barion-test-mode::before {
    content: "⚠️ ";
    margin-right: 5px;
}

.payment_method_barion.barion-test-mode-active {
    border: 2px solid #ffc107;
    background: #fff8e1;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.payment_method_barion.barion-test-mode-active::before {
    content: "🧪 ";
    margin-right: 5px;
    font-size: 16px;
}


.barion-admin-test-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.barion-admin-test-notice h4 {
    margin: 0 0 10px 0;
    color: #856404;
}

.barion-admin-test-notice p {
    margin: 0;
    color: #856404;
}


.always-visible {
    display: table-row !important;
}


.woocommerce-order-details__title,
.woocommerce-table.shop_table.order_details th,
.woocommerce-table.shop_table.order_details td,
.woocommerce-table.shop_table.barion-payment-details th,
.woocommerce-table.shop_table.barion-payment-details td,
.barion-payment-details h3,
.barion-payment-details p,
.barion-payment-details * {
    color: var(--general-text-color, #000) !important;
}


.woocommerce-order-details__title {
    margin-bottom: 20px !important;
}

.woocommerce-table.shop_table.order_details,
.woocommerce-table.shop_table.barion-payment-details {
    margin-bottom: 30px !important;
}


@media print {
    .barion-payment-methods,
    .barion-qr-container,
    .barion-token-payment {
        display: none;
    }
    
    .barion-gateway-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
} 