
/*
*  Event WC Ticket System
*  Author: Velmanikandan
*  Version: 1.1
*/

/* Main container for the ticket box */
.ewts-ticket-box {
    background: #ffffff;
    border-radius: 8px;
    margin-top: 30px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    font-family: 'Poppins', sans-serif; /* A modern sans-serif font */
}

.ewts-ticket-box h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
    color: #1a2c4e; /* Dark Blue */
    text-align: center;
}

/* Individual ticket item - Card */
.ewts-ticket {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa; /* Light Gray */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ewts-ticket:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

.ticket-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #1a2c4e; /* Dark Blue */
    margin: 0 0 5px 0;
}

.ticket-price {
    font-size: 16px;
    font-weight: 600;
    color: #007bff; /* Bright Blue */
}

.ticket-price .woocommerce-Price-amount.amount {
    color: #007bff; /* Ensure price color consistency */
}

.ticket-offer-end {
    margin-top: 6px;
    font-size: 14px;
    color: #6c757d; /* Muted gray */
}

/* Quantity selector */
.ticket-qty {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.ticket-qty button {
    width: 36px;
    height: 36px;
    border: 1px solid #ced4da; /* Gray border */
    background-color: #ffffff;
    color: #1a2c4e;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    line-height: 0;
    transition: background-color 0.2s ease;
}

.ticket-qty button:hover {
    background-color: #e9ecef; /* Lighter gray on hover */
}

.ticket-qty button.minus {
    border-radius: 50% 0 0 50%;
}

.ticket-qty button.plus {
    border-radius: 0 50% 50% 0;
}

.ticket-qty input {
    width: 55px;
    text-align: center;
    border: 1px solid #ced4da;
    border-left: none;
    border-right: none;
    height: 42px;
    font-size: 16px;
    font-weight: 600;
    color: #1a2c4e;
    -moz-appearance: textfield;
    margin-top:-19px;
}
.ticket-qty input::-webkit-outer-spin-button,
.ticket-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Footer section */
.ewts-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.ticket-total {
    font-size: 22px;
    font-weight: 700;
    color: #1a2c4e;
}

.ticket-total #ticketTotal::before {
    content: '$';
}

#getTickets {
    background: linear-gradient(90deg, #007bff, #0056b3); /* Blue gradient */
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

#getTickets:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

#getTickets:disabled {
    background: #adb5bd; /* Gray for disabled */
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Message and Loader */
#ewts-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-weight: 500;
}

#ewts-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

.ewts-loader {
    border: 4px solid rgba(0,0,0,0.1);
    border-top: 4px solid #007bff; /* Blue spinner */
    border-radius: 50%;
    width: 28px;
    height: 28px;
    animation: spin 1s linear infinite;
    margin-left: 20px;
}

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

/* Responsive adjustments */
@media (max-width: 600px) {
    .ewts-ticket {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    .ticket-info {
        text-align: center;
        margin-bottom: 15px;
    }

    .ticket-purchase {
        align-self: center;
    }

    .ewts-footer {
        flex-direction: column;
    }

    .ticket-total {
        margin: 0 0 15px 0;
    }
}