/**
 * Frontend Styles for WooCommerce Raffle Tickets
 */

/* Raffle Tickets Container */
.wc-raffle-tickets-container {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.wc-raffle-tickets-container h2,
.wc-raffle-tickets-container h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* Tickets List */
.wc-raffle-tickets-list {
    margin-top: 15px;
}

.wc-raffle-ticket-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wc-raffle-ticket-item:last-child {
    margin-bottom: 0;
}

.ticket-product-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.ticket-details {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.ticket-format {
    background: #0073aa;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 14px;
    font-weight: bold;
}

.ticket-count {
    color: #666;
    font-size: 14px;
}

.ticket-numbers {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.ticket-numbers small {
    color: #666;
}

/* My Account Orders Table */
.order-tickets-summary {
    text-align: center;
}

.order-tickets-summary .ticket-count {
    font-weight: bold;
    color: #0073aa;
    display: block;
}

.order-tickets-summary small {
    color: #666;
    font-size: 11px;
}

.no-tickets {
    color: #999;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wc-raffle-tickets-container {
        margin: 15px 0;
        padding: 15px;
    }

    .wc-raffle-ticket-item {
        padding: 12px;
    }

    .ticket-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ticket-product-name {
        font-size: 14px;
    }

    .ticket-format {
        font-size: 12px;
    }
}

/* Email Styles (inline will override) */
.wc-raffle-tickets-email {
    margin: 20px 0;
}

.wc-raffle-tickets-email table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.wc-raffle-tickets-email td {
    padding: 10px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.wc-raffle-tickets-email .ticket-product {
    font-weight: bold;
}

.wc-raffle-tickets-email .ticket-format {
    font-family: monospace;
    background: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Print Styles */
@media print {
    .wc-raffle-tickets-container {
        background: white;
        border: 1px solid #000;
        box-shadow: none;
    }

    .wc-raffle-ticket-item {
        border: 1px solid #000;
        box-shadow: none;
        page-break-inside: avoid;
    }

    .ticket-format {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
}