.ticket-purchase-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}
.ticket-quantity-input {
    width: 4vw;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
}
.ts-add-to-cart-button {
    flex-grow: 1;
}

/* Estilos para el formulario de pago embebido */
.ticketsumur-payment-container {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.ticketsumur-payment-header {
    margin-bottom: 20px;
    text-align: center;
}

.ticketsumur-payment-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.ticketsumur-payment-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.ticketsumur-payment-total {
    font-weight: bold;
    border-top: 1px solid #dee2e6;
    margin-top: 10px;
    padding-top: 10px;
}

.ticketsumur-payment-form-container {
    display: none;
}

.ticketsumur-customer-info-form {
    margin-bottom: 20px;
}

.ticketsumur-form-group {
    margin-bottom: 15px;
}

.ticketsumur-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.ticketsumur-form-group input,
.ticketsumur-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
}

.ticketsumur-payment-message {
    margin: 15px 0;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.ticketsumur-payment-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

.ticketsumur-payment-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

.ticketsumur-submit-button {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    font-weight: 500;
}

.ticketsumur-submit-button:hover {
    background-color: #3e8e41;
}

.ticketsumur-submit-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.ticketsumur-back-button {
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.ticketsumur-back-button:hover {
    background-color: #f8f9fa;
}

#ticketsumur-payment-element {
    margin-bottom: 24px;
}

.spinner {
    margin-left: 10px;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

.hidden {
    display: none;
}

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

/* Estilos responsivos */
@media (max-width: 768px) {
    .ticketsumur-payment-container {
        padding: 15px;
    }
    
    .ticketsumur-submit-button {
        padding: 10px 15px;
    }

    .ticket-quantity-input {
        width: 10vw;
    }
} 



.event-tickets-form {
    max-width: 800px;
    margin: 0 auto;
}
.tickets-remaining-banner {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.tickets-remaining-content {
    display: flex;
    align-items: center;
    gap: 15px;
}
.tickets-icon {
    font-size: 2em;
}
.tickets-text {
    flex-grow: 1;
}
.tickets-count {
    font-size: 1.5em;
    font-weight: bold;
    margin-right: 5px;
}
.tickets-progress {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 8px;
    width: 100%;
    margin-top: 10px;
}
.progress-bar {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    height: 100%;
    transition: width 0.3s ease;
}
.ticket-availability-indicator {
    margin: 15px 0;
}
.availability-bar {
    background: #e5e7eb;
    border-radius: 8px;
    height: 6px;
    margin-bottom: 5px;
}
.availability-progress {
    background: linear-gradient(90deg, #4f46e5 0%, #6366f1 100%);
    border-radius: 8px;
    height: 100%;
    transition: width 0.3s ease;
}
.availability-text {
    font-size: 0.9em;
    color: #6b7280;
    text-align: right;
}
.ticket-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.ticket-option {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.ticket-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.ticket-option h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #333;
}
.ticket-description {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9em;
}
.ticket-price {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #222;
    display: flex;
    flex-direction: column;
}
.ticket-price .base-price {
    font-size: 0.8em;
    color: #666;
    text-decoration: line-through;
    font-weight: normal;
}
.ticket-price .price-with-tax {
    color: #222;
}
.purchase-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ticket-option .button {
    width: 100%;
    text-align: center;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}
.ticket-option .woocommerce-button {
    background-color: #4CAF50;
    color: white;
}
.ticket-option .woocommerce-button:hover {
    background-color: #45a049;
}
.ticket-option .stripe-button {
    background-color: #6772e5;
    color: white;
}
.ticket-option .stripe-button:hover {
    background-color: #5469d4;
}
.out-of-stock {
    color: #d9534f;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}
.date-selector {
    margin-bottom: 20px;
}
.date-selector select {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.tax-percentage {
    font-size: 0.6em;
    color: #666;
    font-weight: normal;
}

/* Estilos para el popup de Stripe */
.ticketsumur-stripe-popup {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s;
}
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
.ticketsumur-stripe-popup-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    width: 500px;
    max-width: 90%;
    position: relative;
    animation: slideIn 0.4s;
}
@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}
.ticketsumur-stripe-popup-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}
.ticketsumur-stripe-popup-close:hover,
.ticketsumur-stripe-popup-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.ticketsumur-stripe-popup h2 {
    margin-top: 0;
    color: #32325d;
    border-bottom: 1px solid #e6ebf1;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.ticketsumur-stripe-product-details {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8fafc;
    border-radius: 8px;
}
.ticketsumur-stripe-product-details h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #32325d;
}
.ticketsumur-stripe-product-details p {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #525f7f;
}
.ticketsumur-stripe-date-select {
    margin-bottom: 20px;
}
.ticketsumur-stripe-date-select h4 {
    margin-bottom: 5px;
    color: #32325d;
}
.ticketsumur-stripe-customer-info {
    margin-bottom: 20px;
}
.ticketsumur-stripe-customer-info h4 {
    margin-bottom: 15px;
    color: #32325d;
}
.ticketsumur-stripe-form-group {
    margin-bottom: 15px;
}
.ticketsumur-stripe-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #525f7f;
}
.ticketsumur-stripe-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e6ebf1;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}
.ticketsumur-stripe-form-group input:focus {
    outline: none;
    border-color: #6772e5;
    box-shadow: 0 0 0 1px rgba(103, 114, 229, 0.2);
}
.ticketsumur-stripe-form-group input.invalid {
    border-color: #fa755a;
    background-color: #fff8f8;
}
.ticketsumur-stripe-form-group input.invalid:focus {
    box-shadow: 0 0 0 1px rgba(250, 117, 90, 0.2);
}
.ticketsumur-stripe-payment-button {
    background-color: #6772e5;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}
.ticketsumur-stripe-payment-button:hover {
    background-color: #5469d4;
}
.ticketsumur-stripe-payment-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}
.ticketsumur-stripe-payment-message.error {
    background-color: #ffebee;
    color: #e53935;
    border: 1px solid #ffcdd2;
    display: block;
}
.ticketsumur-stripe-payment-message.success {
    background-color: #e8f5e9;
    color: #43a047;
    border: 1px solid #c8e6c9;
    display: block;
}
.ticketsumur-stripe-payment-button-container {
    margin-top: 20px;
}

/* Estilos para la página de confirmación de pago */
.ticketsumur-payment-confirmation {
    max-width: 800px;
    margin: 40px auto;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ticketsumur-payment-confirmation-header {
    padding: 30px;
    text-align: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e6ebf1;
}

.ticketsumur-payment-confirmation-header h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #32325d;
    font-size: 24px;
}

.ticketsumur-payment-confirmation-header p {
    margin-bottom: 0;
    color: #525f7f;
    font-size: 16px;
}

.ticketsumur-payment-confirmation-header.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.ticketsumur-payment-confirmation-header.pending {
    background-color: #fff3e0;
    color: #ef6c00;
}

.ticketsumur-payment-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
}

.ticketsumur-payment-icon.success {
    background-color: #4caf50;
    color: white;
}

.ticketsumur-payment-icon.pending {
    background-color: #ff9800;
    color: white;
}

.ticketsumur-payment-details {
    padding: 30px;
}

.ticketsumur-payment-details h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #32325d;
    font-size: 18px;
    border-bottom: 1px solid #e6ebf1;
    padding-bottom: 10px;
}

.ticketsumur-payment-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ticketsumur-payment-detail-label {
    font-weight: 500;
    color: #525f7f;
}

.ticketsumur-payment-detail-value {
    color: #32325d;
}

.ticketsumur-ticket-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.ticketsumur-ticket-container h3 {
    margin-top: 0;
    color: #32325d;
}

.ticketsumur-ticket-button-container {
    margin-top: 20px;
}

.ticketsumur-ticket-button {
    display: inline-block;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
}

.ticketsumur-ticket-button:hover {
    background-color: #3e8e41;
    text-decoration: none;
    color: white;
}

#ticketsumur-payment-message {
    display: none;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
}

#ticketsumur-payment-message.error {
    background-color: #ffebee;
    color: #e53935;
    border: 1px solid #ffcdd2;
}

#ticketsumur-payment-message.success {
    background-color: #e8f5e9;
    color: #43a047;
    border: 1px solid #c8e6c9;
}

.selected-ticket {
    border: 2px solid #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.continue-to-stage-button, 
.finish-seat-selection-button,
.change-selection-button,
.select-ticket-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin: 15px 0;
    display: block;
    text-align: center;
    width: 100%;
    max-width: 300px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.continue-to-stage-button:hover, 
.finish-seat-selection-button:hover,
.change-selection-button:hover,
.select-ticket-button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.continue-to-stage-button:active, 
.finish-seat-selection-button:active,
.change-selection-button:active,
.select-ticket-button:active {
    transform: translateY(0);
}

.selected-seat-info-summary, 
.selected-date-display {
    margin: 10px 0;
    padding: 8px;
    background-color: #f8f9fa;
    border-left: 3px solid #4CAF50;
}

/* Estilos para el banner de tiempo límite */
.checkout-time-limit-info {
    display: flex;
    align-items: center;
    background-color: #f1f8e9;
    border: 1px solid #c5e1a5;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.time-limit-icon {
    font-size: 24px;
    margin-right: 15px;
}

.time-limit-content h4 {
    margin: 0 0 5px 0;
    color: #33691e;
}

.time-limit-content p {
    margin: 0;
    font-size: 14px;
}

/* Transiciones para los contenedores */
.ticketsumur-stage-viewer,
.ticket-options,
.event-dates {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.ticketsumur-stage-viewer.hidden,
.ticket-options.hidden,
.event-dates.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.ticketsumur-stage-viewer.visible,
.ticket-options.visible,
.event-dates.visible {
    opacity: 1;
    transform: translateY(0);
}