/*
 * Estilos para el Plugin de Wompi Gaia
 */

.wompi-response-wrapper {
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    background-color: #fafafa;
}

.wompi-response-wrapper h1 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
}

.wompi-response-wrapper p {
    font-size: 16px;
    line-height: 1.6;
}

.wompi-response-wrapper .status-approved {
    color: #28a745;
    font-weight: bold;
}

.wompi-response-wrapper .status-declined,
.wompi-response-wrapper .status-error {
    color: #dc3545;
    font-weight: bold;
}

.wompi-response-wrapper .status-pending {
    color: #ffc107;
    font-weight: bold;
}

/* Styles for Receipt Consultation */
.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.section {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.section h2 {
    color: #555;
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #666;
}

input[type="text"],
input[type="password"],
select {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

.result-box {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #e9ecef;
    min-height: 50px;
    color: #333;
    display: none; /* Hidden by default */
}

.error {
    color: #dc3545;
    font-weight: bold;
}

.success {
    color: #28a745;
    font-weight: bold;
}

/* Receipts Table Styles */
.receipts-container {
    margin-top: 20px;
    border: 1px dotted #007bff; /* Dotted blue border */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.receipts-title {
    background-color: #f9f9f9; /* Lighter background for title */
    color: #333;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.receipts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.receipts-table th,
.receipts-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.receipts-table th {
    background-color: #fff; /* White background for headers */
    color: #ff8c00; /* Orange text for headers */
    font-weight: bold;
    position: relative;
    border-radius: 8px 8px 0 0; /* Rounded top corners */
}

.receipts-table th:first-child {
    border-top-left-radius: 8px;
}

.receipts-table th:last-child {
    border-top-right-radius: 8px;
}

.receipts-table tbody tr:nth-child(odd) {
    background-color: #fff; /* White for odd rows */
}

.receipts-table tbody tr:nth-child(even) {
    background-color: #fff5e6; /* Light orange for even rows */
}

.receipts-table tbody tr:hover {
    background-color: #ffe0b3; /* Darker orange on hover */
}

.receipt-checkbox:checked + td { /* Style for selected rows */
    background-color: #ffcc80; /* Orange background for selected rows */
}

.checkbox-cell {
    width: 40px;
    text-align: center;
}

.sort-arrow {
    display: inline-block;
    margin-left: 5px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #ff8c00; /* Orange sort arrow */
    vertical-align: middle;
}

.total-row {
    background-color: #212529; /* Dark background for total row */
    color: white; /* White text for total row */
    font-weight: bold;
}

.total-row td {
    padding: 15px;
    border-top: 2px solid #ddd;
}

.pay-button-container {
    padding: 15px;
    text-align: center;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.pay-button {
    background-color: #ff8c00; /* Orange pay button */
    color: white;
    padding: 12px 25px;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pay-button:hover {
    background-color: #e67e00; /* Darker orange on hover */
}
