/* Variables de Tickelsa */
:root {
    --tpos-primary: #4a12cd;
    --tpos-light: #4A12CD12;
    --tpos-dark: #211d2b;
    --tpos-white: #ffffff;
    --tpos-gray: #f5f5f5;
    --tpos-border: #e0e0e0;
    --tpos-success: #4caf50;
    --tpos-danger: #f44336;
    --tpos-radius: 8px;
    --tpos-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Reset y estilos base */
.tpos-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--tpos-dark);
    background: var(--tpos-gray);
    min-height: 100vh;
    margin: -20px -20px -20px -2px;
    display: flex;
    flex-direction: column;
}

/* Header */
.tpos-header {
    background: var(--tpos-white);
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 2px solid var(--tpos-border);
    box-shadow: var(--tpos-shadow);
}

.tpos-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.tpos-header-logo {
    height: 40px !important;
    width: auto !important;
    max-width: 100% !important;
}

.tpos-logo {
    height: 40px;
    width: auto;
}

.tpos-header h1 {
    margin: 7px 0px 0px 0px;
    font-size: 16px;
    font-weight: 700;
    color: var(--tpos-dark);
}

.tpos-cart-icon {
    position: relative;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--tpos-radius);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpos-cart-icon:hover {
    background: var(--tpos-light);
}

.tpos-cart-icon .dashicons {
    font-size: 24px;
    color: var(--tpos-primary);
    width: 24px;
    height: 24px;
}

.tpos-cart-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--tpos-danger);
    color: var(--tpos-white);
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Contenedor principal */
.tpos-container {
    display: flex;
    gap: 0;
    height: calc(100vh - 84px);
    flex: 1;
}

/* Vista de eventos y tickets */
.tpos-view {
    flex: 1;
    padding: 7px 10px 0px 10px;
    overflow-y: auto;
    display: none;
}

.tpos-view.active {
    display: block;
}

/* Barra de búsqueda */
.tpos-search-bar {
    margin-bottom: 10px;
}

.tpos-search-bar input {
    width: 100%;
    max-width: 100%;
    padding: 10px 10px;
    border: 2px solid var(--tpos-border);
    border-radius: var(--tpos-radius);
    font-size: 16px;
    transition: border-color 0.3s;
}

.tpos-search-bar input:focus {
    outline: none;
    border-color: var(--tpos-primary);
}

/* Grid de eventos */
.tpos-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    max-height: calc(100vh - 184px);
    overflow-y: auto;
}

/* Card de evento */
.tpos-event-card {
    background: var(--tpos-white);
    border-radius: var(--tpos-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--tpos-shadow);
}

.tpos-event-card:hover {
    box-shadow: 0 4px 16px rgba(0, 117, 255, 0.1);
}

.tpos-event-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--tpos-light);
}

.tpos-event-body {
    padding: 16px;
}

.tpos-event-title {
    font-size: 16px;
    font-weight: 700 !important;
    color: var(--tpos-dark);
    margin: 0 0 8px 0;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-transform: uppercase;
}

.tpos-event-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #666;
}

.tpos-event-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tpos-event-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Botón volver */
.tpos-back-button {
    margin-bottom: 20px;
}

.tpos-btn-back {
    background: var(--tpos-white);
    border: 2px solid var(--tpos-border);
    padding: 10px 20px;
    border-radius: var(--tpos-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--tpos-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.tpos-btn-back:hover {
    background: var(--tpos-light);
    border-color: var(--tpos-primary);
    color: var(--tpos-primary);
}

/* Header de evento */
.tpos-event-header {
    margin-bottom: 24px;
}

.tpos-event-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: var(--tpos-dark);
    text-transform: uppercase;
    font-weight: 700;
}

.tpos-event-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Tabs */
.tpos-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--tpos-border);
}

.tpos-tab {
    background: transparent;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.tpos-tab:hover {
    color: var(--tpos-primary) !important;
    background: none !important;
    border-radius: 0 !important;
}

.tpos-tab.active {
    color: var(--tpos-primary) !important;
    border-bottom-color: var(--tpos-primary) !important;
    background: none !important;
    border-radius: 0 !important;
}

/* Tab content */
.tpos-tab-content {
    display: none;
}

.tpos-tab-content.active {
    display: block;
}

/* Lista de tickets */
.tpos-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Ticket item */
.tpos-ticket-item {
    background: var(--tpos-white);
    border-radius: var(--tpos-radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--tpos-shadow);
}

.tpos-ticket-info {
    flex: 1;
}

.tpos-ticket-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--tpos-dark);
    margin: 0 0 4px 0;
}

.tpos-ticket-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--tpos-primary);
    margin: 0;
}

.tpos-ticket-stock {
    font-size: 13px;
    color: #666;
    margin: 4px 0 0 0;
}

/* Controles de cantidad */
.tpos-quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tpos-qty-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--tpos-primary);
    background: var(--tpos-white);
    color: var(--tpos-primary);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.tpos-qty-btn:hover:not(:disabled) {
    background: var(--tpos-primary);
    color: var(--tpos-white);
}

.tpos-qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tpos-qty-display {
    min-width: 40px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.tpos-btn-add-ticket {
    background: var(--tpos-primary);
    color: var(--tpos-white);
    border: none;
    padding: 8px 16px;
    border-radius: var(--tpos-radius);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    margin-left: auto;
}

.tpos-btn-add-ticket:hover {
    background: #0060d9;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 117, 255, 0.2);
}

.tpos-btn-add-ticket:active {
    transform: translateY(0);
}

/* Botón de asientos */
.tpos-btn-seats {
    background: var(--tpos-primary);
    color: var(--tpos-white);
    border: none;
    padding: 10px 24px;
    border-radius: var(--tpos-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tpos-btn-seats:hover {
    background: #0060d9;
    transform: translateY(-2px);
}

/* Sidebar del carrito */
.tpos-cart-sidebar {
    width: 380px;
    background: var(--tpos-white);
    border-left: 2px solid var(--tpos-border);
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.05);
}

.tpos-cart-header {
    padding: 10px 15px;
    border-bottom: 2px solid var(--tpos-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tpos-cart-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.tpos-btn-clear-cart {
    background: transparent;
    border: none;
    color: var(--tpos-danger);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--tpos-radius);
    transition: all 0.3s;
}

.tpos-btn-clear-cart:hover {
    background: rgba(244, 67, 54, 0.1);
}

.tpos-btn-remove-coupon-sidebar {
    background: transparent;
    border: none;
    color: var(--tpos-danger);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--tpos-radius);
    transition: all 0.3s;
}

.tpos-btn-remove-coupon-sidebar:hover {
    background: rgba(244, 67, 54, 0.1);
}

/* Items del carrito */
.tpos-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.tpos-empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    gap: 12px;
}

.tpos-empty-cart .dashicons {
    font-size: 64px;
    opacity: 0.3;
}

.tpos-empty-cart p {
    margin: 0;
    font-size: 14px;
}

/* Cart item */
.tpos-cart-item {
    background: var(--tpos-light);
    border-radius: var(--tpos-radius);
    padding: 12px;
    margin-bottom: 8px;
    position: relative;
}

.tpos-cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--tpos-dark);
    margin: 0 0 6px 0;
    padding-right: 30px;
}

.tpos-cart-item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.tpos-cart-item-qty {
    font-weight: 500;
}

.tpos-cart-item-price {
    font-weight: 600;
    color: var(--tpos-primary);
}

.tpos-cart-item-seat {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    padding: 4px 8px;
    background: var(--tpos-white);
    border-radius: 4px;
    display: inline-block;
}

.tpos-cart-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--tpos-danger);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s;
}

.tpos-cart-item-remove:hover {
    background: rgba(244, 67, 54, 0.1);
}

.tpos-cart-item-remove .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Totales del carrito */
.tpos-cart-totals {
    padding: 20px 24px;
    border-top: 2px solid var(--tpos-border);
    background: var(--tpos-light);
}

.tpos-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.tpos-total-main {
    font-size: 18px;
    font-weight: 700;
    color: var(--tpos-dark);
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 2px solid var(--tpos-border);
}

.tpos-total-main span:last-child {
    color: var(--tpos-primary);
}

/* Descuentos en carrito */
#tpos-discounts-container {
    margin-bottom: 12px;
}

.tpos-discount-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    padding: 8px;
    background: #f0fdf4;
    border-radius: 4px;
    border-left: 3px solid #22c55e;
}

.tpos-discount-row span:first-child {
    color: #22c55e;
    font-weight: 600;
}

.tpos-discount-row span:last-child {
    color: #22c55e;
    font-weight: 700;
}

/* Botón de checkout */
.tpos-btn-checkout {
    margin: 10px 24px;
    background: var(--tpos-primary);
    color: var(--tpos-white);
    border: none;
    padding: 15px;
    border-radius: var(--tpos-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: calc(100% - 48px);
}

.tpos-btn-checkout:hover:not(:disabled) {
    background: #0060d9;
    transform: translateY(-2px);
}

.tpos-btn-checkout:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Modales */
.tpos-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.tpos-modal.active {
    display: flex;
}

.tpos-modal-content {
    background: var(--tpos-white);
    border-radius: var(--tpos-radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.tpos-modal-large {
    max-width: 900px;
}

.tpos-modal-header {
    padding: 15px;
    border-bottom: 2px solid var(--tpos-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tpos-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.tpos-modal-close {
    background: transparent;
    border: none;
    font-size: 32px !important;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s;
}

.tpos-modal-close:hover {
    background: var(--tpos-light);
    color: var(--tpos-dark);
}

/* Modal close como botón en footer */
.tpos-modal-footer .tpos-modal-close {
    background: var(--tpos-white);
    color: var(--tpos-dark);
    border: 2px solid var(--tpos-border);
    font-size: 14px !important;
    padding: 10px 24px !important;
    width: auto;
    height: auto;
    display: inline-flex;
    gap: 8px;
}

.tpos-modal-footer .tpos-modal-close:hover {
    background: #211D2B;
    border-color: #211D2B;
    color: #fff;
}

.tpos-modal-footer .tpos-modal-close .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.tpos-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.tpos-modal-footer {
    padding: 20px 24px;
    border-top: 2px solid var(--tpos-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.tpos-modal-footer .tpos-btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* Formularios */
.tpos-form-group {
    margin-bottom: 0;
}

.tpos-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--tpos-dark);
}

.tpos-form-group input,
.tpos-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--tpos-border);
    border-radius: var(--tpos-radius);
    font-size: 14px;
    transition: all 0.2s;
}

.tpos-form-group input:focus,
.tpos-form-group select:focus {
    outline: none;
    border-color: var(--tpos-primary);
    box-shadow: 0 0 0 3px rgba(0, 117, 255, 0.1);
}

.tpos-checkout-total {
    background: var(--tpos-light);
    padding: 16px;
    border-radius: var(--tpos-radius);
    text-align: center;
    margin-top: 0;
    font-size: 16px;
}

/* Botones genéricos */
.tpos-btn {
    padding: 10px 24px;
    border-radius: var(--tpos-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.tpos-btn-primary {
    background: var(--tpos-primary);
    color: var(--tpos-white);
}

.tpos-btn-primary:hover {
    background: #0060d9;
}

.tpos-btn-secondary {
    background: var(--tpos-white);
    color: var(--tpos-dark);
    border: 2px solid var(--tpos-border);
}

.tpos-btn-secondary:hover {
    background: var(--tpos-light);
}

/* Loading */
.tpos-loading {
    text-align: center;
    padding: 0px;
    color: #000;
    font-size: 15px;
    width: 100% !important;
    max-width: 500px !important;
    display: contents;
}

/* Success icon */
.tpos-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--tpos-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpos-success-icon .dashicons {
    font-size: 48px;
    color: var(--tpos-white);
    width: 48px;
    height: 48px;
}

.tpos-text-center {
    text-align: center;
}

.tpos-success-message {
    font-size: 16px;
    color: var(--tpos-dark);
}

/* Responsive */
@media (max-width: 1024px) {
    .tpos-cart-sidebar {
        width: 320px;
    }
}

@media (max-width: 768px) {
    .tpos-container {
        flex-direction: column;
    }
    
    .tpos-cart-sidebar {
        width: 100%;
        max-height: 50vh;
    }
    
    .tpos-events-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* Estilos para el Seating Chart de Tickera dentro del modal */
#tpos-seating-chart {
    min-height: 500px;
    max-height: 600px;
    overflow: auto;
}

#tpos-seating-chart .tc-wrapper {
    background: var(--tpos-white) !important;
    min-height: 400px;
}

#tpos-seating-chart .tc-seating-legend-wrap {
    position: relative !important;
    margin-bottom: 20px;
}

#tpos-seating-chart .tc-seating-legend {
    position: relative !important;
    right: 0 !important;
    background: var(--tpos-light);
    border-radius: var(--tpos-radius);
    padding: 16px;
}

#tpos-seating-chart .tc-seating-legend ul {
    margin: 0;
    padding: 0;
}

#tpos-seating-chart .tc-seating-legend li {
    padding: 8px 12px;
    margin-bottom: 4px;
}

#tpos-seating-chart .tc-pan-wrapper {
    margin: 0 auto;
}

#tpos-seating-chart .tc_seat_unit {
    cursor: pointer;
}

#tpos-seating-chart .tc_seat_unit:hover {
    opacity: 0.8;
}

/* Estilos para Header con botón de registro */
.tpos-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

#tpos-btn-sales-log {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--tpos-radius);
    color: var(--tpos-primary);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#tpos-btn-sales-log:hover {
    background: #211d2b;
    color: #fff;
}

#tpos-btn-sales-log .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.tpos-btn-logout {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--tpos-radius);
    color: var(--tpos-danger);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.tpos-btn-logout:hover {
    background: rgba(244, 67, 54, 0.1);
    color: #d32f2f;
}

.tpos-btn-logout .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Formulario de facturación */
.tpos-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tpos-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
}

.tpos-form-row .tpos-form-group {
    margin-bottom: 0;
}

/* Tabla de registro de ventas */
.tpos-sales-log-container {
    overflow-x: auto;
}

.tpos-sales-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tpos-sales-table thead {
    background: var(--tpos-light);
    border-bottom: 2px solid var(--tpos-border);
}

.tpos-sales-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--tpos-dark);
}

.tpos-sales-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--tpos-border);
    color: #666;
}

.tpos-sales-table tbody tr:hover {
    background: var(--tpos-light);
}

.tpos-sales-total-row {
    background: var(--tpos-light);
    border-top: 2px solid var(--tpos-primary);
}

.tpos-sales-actions {
    text-align: center;
    padding: 12px 8px !important;
}

.tpos-btn-resend-sales-ticket {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    color: var(--tpos-primary);
}

.tpos-btn-resend-sales-ticket:hover {
    background: var(--tpos-light);
    transform: scale(1.1);
}

.tpos-btn-resend-sales-ticket .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Email input con búsqueda */
.tpos-email-input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.tpos-email-input-group input {
    flex: 1;
}

.tpos-btn-search-customer {
    padding: 10px 16px;
    background: var(--tpos-primary);
    color: var(--tpos-white);
    border: none;
    border-radius: var(--tpos-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.tpos-btn-search-customer:hover {
    background: #0060d9;
}

.tpos-btn-search-customer:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.tpos-text-center {
    text-align: center;
}

/* Alerta de información de sesión */
.tpos-session-info-alert {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: #999;
    flex: 1;
    display: flex;
    align-items: center;
    margin-right: 12px;
}

/* Estilos para tickets mapeados */
.tpos-mapped-tickets-info {
    background: var(--tpos-white);
    border-radius: var(--tpos-radius);
    padding: 24px;
    box-shadow: var(--tpos-shadow);
}

.tpos-mapped-tickets-info h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--tpos-dark);
}

.tpos-tickets-price-list {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.tpos-tickets-price-list li {
    background: transparent;
    padding: 14px 0;
    border-bottom: 1px solid var(--tpos-border);
    font-size: 14px;
    color: var(--tpos-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tpos-tickets-price-list li:last-child {
    border-bottom: none;
}

.tpos-tickets-price-list strong {
    color: var(--tpos-dark);
    font-weight: 500;
}

#tpos-seating-button-target {
    margin-top: 24px;
}

/* Asegurar que el botón de seating se vea bien */
#tpos-seating-button-target .tc_seating_map_button,
.tc_seating_map_button {
    background: var(--tpos-primary) !important;
    color: var(--tpos-white) !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: var(--tpos-radius) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.tc_seating_map_button:hover {
    background: #0060d9 !important;
    transform: translateY(-2px) !important;
}

/* Footer */
.tpos-footer {
    background: var(--tpos-white);
    border-top: 1px solid var(--tpos-border);
    padding: 10px 30px;
    text-align: left;
    font-size: 12px;
    color: #4f4f4f;
    margin-top: auto;
}

.tpos-footer p {
    margin: 0;
    line-height: 1.4;
}

.tpos-footer strong {
    color: var(--tpos-dark);
    font-weight: 600;
}

/* Login */
.tpos-login-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--tpos-dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    margin: 0px;
}

.tpos-login-container {
    width: 100%;
    max-width: 400px;
}

.tpos-login-card {
    background: var(--tpos-white);
    border-radius: var(--tpos-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tpos-login-header {
    background: #211D2B;
    color: var(--tpos-white);
    padding: 20px 24px;
    text-align: center;
}

.tpos-login-logo {
    max-width: 100% !important;
    width: 200px;
    height: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.tpos-login-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.tpos-login-form {
    padding: 15px 20px;
}

.tpos-login-error {
    margin: -8px -8px 16px -8px;
    padding: 12px 16px;
    background: #ffebee;
    border-left: 4px solid var(--tpos-danger);
    color: #c62828;
    font-size: 13px;
    border-radius: 0 var(--tpos-radius) var(--tpos-radius) 0;
}

.tpos-login-error p {
    margin: 0;
}

.tpos-login-info {
    padding: 10px 20px;
    background: var(--tpos-gray);
    border-top: 1px solid var(--tpos-border);
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

.tpos-login-info p {
    margin: 0;
    font-size: 11px;
    text-align: center;
}

.tpos-login-form-group {
    margin-bottom: 20px;
}

.tpos-login-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--tpos-dark);
}

.tpos-login-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--tpos-border);
    border-radius: var(--tpos-radius);
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.tpos-login-input:focus {
    outline: none;
    border-color: var(--tpos-primary);
    box-shadow: 0 0 0 3px rgba(0, 117, 255, 0.1);
}

.tpos-login-remember {
    margin-bottom: 24px;
    font-size: 13px;
}

.tpos-login-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

.tpos-login-remember input[type="checkbox"] {
    cursor: pointer;
}

.tpos-login-button {
    width: 100%;
    padding: 12px 16px;
    background: #F39200;
    color: var(--tpos-white);
    border: none;
    border-radius: var(--tpos-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0px;
}

.tpos-login-button:hover {
    background: #0060d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 117, 255, 0.3);
	border-radius: var(--tpos-radius) !important;
}

.tpos-login-button:active {
    transform: translateY(0);
}

.tpos-login-footer {
    padding: 15px 24px;
    background: var(--tpos-gray);
    border-top: 1px solid var(--tpos-border);
    text-align: center;
    font-size: 12px;
    color: #999;
}

.tpos-login-footer p {
    margin: 0;
}

/* Modal de Logout */
.tpos-logout-info {
    padding: 12px 0;
}

.tpos-logout-total {
    font-size: 16px;
    margin: 0 0 24px 0;
    color: var(--tpos-dark);
}

.tpos-logout-description {
    font-size: 13px;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.tpos-logout-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tpos-logout-option {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border: 2px solid var(--tpos-border);
    border-radius: var(--tpos-radius);
    background: var(--tpos-white);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.tpos-logout-option:hover {
    border-color: var(--tpos-primary) !important;
    background: var(--tpos-light) !important;
}

.tpos-logout-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--tpos-primary);
    color: var(--tpos-white);
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
}

.tpos-logout-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tpos-logout-text strong {
    font-size: 14px;
    color: var(--tpos-dark);
    font-weight: 600;
}

.tpos-logout-text small {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}
/* Preloader */
.tpos-preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(2px);
}

.tpos-preloader.active {
    display: flex;
}

.tpos-preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: var(--tpos-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.tpos-preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--tpos-light);
    border-top-color: var(--tpos-primary);
    border-radius: 50%;
    animation: tpos-spin 0.8s linear infinite;
}

@keyframes tpos-spin {
    to {
        transform: rotate(360deg);
    }
}

.tpos-preloader-text {
    font-size: 14px;
    color: var(--tpos-dark);
    font-weight: 500;
    text-align: center;
}

.tpos-preloader-dots {
    display: inline-block;
    width: 4px;
}

.tpos-preloader-dots::after {
    content: '.';
    animation: tpos-dots 1.5s steps(4, end) infinite;
}

@keyframes tpos-dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60% {
        content: '...';
    }
    80%, 100% {
        content: '';
    }
}

/* ========================================
   CHECKOUT MODAL - 2 COLUMNAS
   ======================================== */

.tpos-checkout-modal-content {
    max-width: 950px !important;
}

.tpos-checkout-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tpos-checkout-left {
    flex: 1;
}

.tpos-checkout-right {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    height: auto;
    display: block;
    align-items: center;
    align-content: center;
}

.tpos-coupon-section {
    padding-bottom: 10px;
    margin-bottom: 0px;
    border-bottom: 2px solid #e0e0e0;
}

.tpos-coupon-section label {
    display: block;
    font-weight: 600;
    color: #141414;
    margin-bottom: 10px;
    font-size: 14px;
}

.tpos-coupon-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.tpos-coupon-input-group input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.tpos-coupon-input-group input:focus {
    outline: none;
    border-color: #4a12cd;
}

.tpos-btn-coupon {
    padding: 10px 16px;
    background: #4a12cd;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
}

.tpos-btn-coupon:hover {
    background: #0060d9;
}

.tpos-btn-coupon:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.tpos-btn-coupon.tpos-btn-danger {
    background: #dc3545;
    color: white;
}

.tpos-btn-coupon.tpos-btn-danger:hover {
    background: #c82333;
}

#tpos-coupon-message {
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

#tpos-coupon-message.tpos-coupon-success {
    background: #f0fdf4;
    color: #22c55e;
    border: 0;
}

#tpos-coupon-message.tpos-coupon-error {
    background: #fef5f5;
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.tpos-payment-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tpos-payment-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0px 10px 0px;
    border-bottom: 2px solid #e0e0e0;
    font-size: 16px;
}

.tpos-payment-summary-row label {
    font-weight: 600;
    color: #141414;
    margin: 0;
}

.tpos-payment-total {
    font-size: 18px;
    font-weight: 700;
    color: #4a12cd;
}

.tpos-payment-method-info {
    padding: 0;
    font-size: 16px;
    color: #000;
}

.tpos-payment-cash-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tpos-payment-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tpos-payment-input-group label {
    font-weight: 600;
    color: #141414;
    font-size: 14px;
}

.tpos-payment-input-group input {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-align: right;
    transition: border-color 0.2s;
}

.tpos-payment-input-group input:focus {
    outline: none;
    border-color: #4a12cd;
    background: white;
}

.tpos-payment-change-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f0f7ff;
    border-radius: 6px;
    border-left: 4px solid #4a12cd;
}

.tpos-payment-change-row label {
    font-weight: 600;
    color: #4a12cd;
    margin: 0;
}

.tpos-payment-change-amount {
    font-size: 18px;
    font-weight: 700;
    color: #4a12cd;
}

.tpos-payment-insufficient {
    padding: 15px;
    background: #fef5f5;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
    text-align: center;
    font-size: 14px;
    color: #dc3545;
    font-weight: 600;
}

/* Responsivo */
@media (max-width: 768px) {
    .tpos-checkout-wrapper {
        grid-template-columns: 1fr;
    }
    
    .tpos-checkout-right {
        height: auto;
    }
}

/* ========================================
   MODAL DE DESCUENTOS
   ======================================== */

/* ========================================
   MODAL STYLES
   ======================================== */

.tpos-modal-open-blur {
    filter: blur(5px);
    pointer-events: none;
}

.tpos-modal.no-connection {
    pointer-events: auto;
}

.tpos-modal.no-connection .tpos-modal-content {
    pointer-events: auto;
}

/* ========================================
   BOTÓN DE AYUDA
   ======================================== */

.tpos-btn-help {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 7px !important;
    color: #4a12cd;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tpos-btn-help:hover {
    background: #f0f7ff;
    color: #0060d9;
}

.tpos-btn-help i {
    font-size: 24px;
}

/* Ajustar footer para conexión */
.tpos-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.tpos-footer p {
    margin: 0;
    flex: 1;
}

.tpos-connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 20px;
}

.tpos-wifi-icon {
    font-size: 16px;
    transition: all 0.3s ease;
}

.tpos-wifi-connected {
    color: #22c55e;
}

.tpos-wifi-disconnected {
    color: #dc3545;
}

#tpos-connection-text {
    transition: color 0.3s ease;
}

.tpos-connection-status.connected #tpos-connection-text {
    color: #22c55e;
}

.tpos-connection-status.disconnected #tpos-connection-text {
    color: #dc3545;
}

/* Remover padding-bottom que agregué antes */
.tpos-wrapper {
    padding-bottom: 0;
}

a#tpos-btn-whatsapp-help {
    background: transparent;
    border: none;
    color: #00a613;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    padding: 0;
    border-radius: 0;
}