/* BilletManager - Forbedret frontend billetvisning */

.billet-manager-tickets {
    margin: 0 auto 32px auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 0 0 24px 0;
    font-family: 'Poppins', sans-serif;
    white-space: normal;
}

.billet-manager-title {
    font-size: 2em;
    font-weight: 500;
    color: #181c22;
    margin: 0px;
    padding: 18px 32px 18px 32px;
    border-bottom: 1px solid #ececec;
}

.billet-manager-ticket-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 16px;
    row-gap: 8px;
    padding: 18px 32px 18px 32px;
    border-bottom: 1px solid #ececec;
    box-sizing: border-box;
    max-width: 100%;
}

.billet-manager-ticket-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.billet-manager-ticket-name {
    font-size: 1.2em;
    font-weight: 700;
    color: #181c22;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.billet-manager-ticket-price {
    font-size: 1.2em;
    font-weight: 700;
    color: #181c22;
    margin-top: 2px;
}

.billet-manager-ticket-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-self: end;
    gap: 4px;
    flex-shrink: 0;
    width: max-content;
    max-width: 100%;
    text-align: right;
}

.billet-manager-quantity-stepper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.billet-manager-quantity-btn {
    width: 32px;
    height: 32px;
    border: 1.5px solid #181c22;
    background: #fff;
    border-radius: 7px;
    font-size: 1.2em;
    color: #181c22;
    cursor: pointer;
    margin: 0 2px;
    transition: background 0.2s, border 0.2s;
}

.billet-manager-quantity-input {
    width: 38px;
    height: 32px;
    text-align: center;
    border: 1.5px solid #181c22;
    border-radius: 7px;
    font-size: 1.1em;
    color: #181c22;
    margin: 0 2px;
}

.billet-manager-ticket-quantity-label {
    font-size: 0.95em;
    color: #888;
    margin-top: 2px;
}

.billet-manager-ticket-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding: 18px 32px 0 32px;
}

.billet-manager-ticket-summary span {
    color: #888;
    font-size: 1.1em;
}

.billet-manager-ticket-summary b {
    color: #181c22;
    font-weight: 700;
}

.billet-manager-buy-btn {
    background: var(--billet-manager-add-to-cart-color, #ff6240);
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 14px 32px;
    font-size: 1.1em;
    font-weight: 700;
    margin-left: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.billet-manager-buy-btn:hover {
    background: var(--billet-manager-add-to-cart-hover-color, #e04e2e);
}

.billet-manager-go-to-cart {
    background: var(--billet-manager-view-cart-color, #ff6240) !important;
    color: #fff;
    border: none;
    border-radius: 0px 0px 9px 9px;
    padding: 14px 32px;
    font-size: 1.1em;
    font-weight: 700;
    margin-top: 55px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    display: block;
    margin-bottom: -25px;
    text-align: center;
}

.billet-manager-go-to-cart:hover {
    background: var(--billet-manager-view-cart-hover-color, #e04e2e) !important;
}

.billet-manager-ticket-unavailable {
    text-align: center;
    padding: 15px;
    background: #f1f5f9;
    border-radius: 8px;
    color: #475569;
    font-weight: 500;
    font-size: 1.1em;
}

.billet-manager-notice {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    color: #475569;
    margin: 20px 0;
    font-size: 1.1em;
    border: 1px solid #e2e8f0;
}

.billet-manager-notice.success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
    margin: 30px;
}

.billet-manager-notice.error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

@media (max-width: 700px) {
    .billet-manager-tickets {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        padding: 0 0 16px 0;
    }
    .billet-manager-title {
        font-size: 1.3em;
        padding: 18px 10px 0 10px;
    }
    .billet-manager-ticket-row {
        padding: 16px 10px 8px 10px;
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .billet-manager-ticket-controls {
        justify-self: end;
    }
    .billet-manager-ticket-quantity-label {
        text-align: right;
    }
    .billet-manager-ticket-summary {
        padding: 12px 10px 0 10px;
        gap: 10px;
    }
    .billet-manager-buy-btn {
        padding: 10px 16px;
        font-size: 1em;
        margin-left: 10px;
    }
}

/**
 * BilletManager Frontend Styles
 */

/* Konto side styling */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin-bottom: 10px;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 12px 15px;
    background: #fff;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

/* Mine Billetter side */
.woocommerce-account-my-tickets {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 12px;
}

/* —— Mine billetter v4 (kort) —— */
.woocommerce-account-my-tickets .bm-tickets-list-v4 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.woocommerce-account-my-tickets .bm-ticket-card-v4 {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background-color: #fdfbfa;
    border-radius: 12px;
    overflow: hidden;
    min-height: 220px;
    height: auto;
    max-width: 100%;
    border: 1px solid #f0ebe8;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.04);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: opacity 0.3s ease;
}

.woocommerce-account-my-tickets .bm-tickets-list-v4.expired .bm-ticket-card-v4 {
    opacity: 0.7;
}

.woocommerce-account-my-tickets .bm-tickets-list-v4.redeemed .bm-ticket-card-v4 {
    opacity: 0.6;
}

.woocommerce-account-my-tickets .bm-ticket-image-v4 {
    width: 34%;
    min-width: 0;
    flex: 0 1 34%;
    max-width: 280px;
    min-height: 200px;
    align-self: stretch;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.woocommerce-account-my-tickets .bm-ticket-info-v4 {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.woocommerce-account-my-tickets .bm-ticket-content-v4 {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-right: 0.25rem;
    padding-bottom: 2.75rem;
}

.woocommerce-account-my-tickets .bm-content-buyer-v4 {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.8rem;
    font-weight: 300;
    max-width: 45%;
    text-align: right;
    overflow-wrap: anywhere;
}

.woocommerce-account-my-tickets .bm-ticket-title-v4 {
    font-size: clamp(1.15rem, 2.5vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    color: #1e1e1e;
    margin: 0 0 0.25rem 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.woocommerce-account-my-tickets .bm-ticket-date-v4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #777;
    letter-spacing: 0.5px;
    margin: 0 0 1rem 0;
}

.woocommerce-account-my-tickets .bm-ticket-meta-v4 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.woocommerce-account-my-tickets .bm-ticket-tag-v4 {
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1e1e1e;
    line-height: 1.2;
    text-transform: uppercase;
    max-width: 100%;
    box-sizing: border-box;
}

.woocommerce-account-my-tickets .bm-ticket-separator-v4 {
    flex: 0 0 auto;
    width: 2px;
    align-self: stretch;
    min-height: 120px;
    background-image: linear-gradient(to bottom, #1e1e1e 60%, transparent 40%);
    background-size: 2px 10px;
    margin: 0;
}

.woocommerce-account-my-tickets .bm-ticket-stub-v4 {
    position: relative;
    flex: 0 0 100px;
    width: 100px;
    min-width: 88px;
    min-height: 160px;
    align-self: stretch;
}

.woocommerce-account-my-tickets .bm-stub-status-v4 {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    display: block;
    text-align: center;
    border-radius: 20px;
    padding: 0.4rem 0.5rem;
    font-weight: 600;
    color: #1e1e1e;
    background-color: #fff;
    text-decoration: none;
    white-space: normal;
    transition: all 0.2s ease-in-out;
    font-size: 0.65rem;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.woocommerce-account-my-tickets .bm-stub-download-v4 {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    border: 1.5px solid #1e1e1e;
    border-radius: 20px;
    padding: 0.4rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #1e1e1e;
    background-color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
    max-width: 100%;
    box-sizing: border-box;
}

.woocommerce-account-my-tickets .bm-stub-download-v4:hover {
    background-color: #1e1e1e;
    color: #fff;
    border-color: #1e1e1e;
}

.woocommerce-account-my-tickets .bm-ticket-stub-v4 .bm-stub-download-v4.bm-stub-wallet-v4 {
    bottom: 2.85rem;
}

.woocommerce-account-my-tickets .bm-stub-status-v4.valid {
    cursor: default;
}

.woocommerce-account-my-tickets .bm-stub-status-v4.valid:hover {
    background-color: #fff;
    color: #1e1e1e;
}

.woocommerce-account-my-tickets .bm-expired-title,
.woocommerce-account-my-tickets .bm-redeemed-title {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.woocommerce-account-my-tickets .bm-stub-status-v4.expired {
    background-color: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
}

.woocommerce-account-my-tickets .bm-stub-status-v4.redeemed {
    background-color: #e8f5e8;
    color: #28a745;
    border-color: #c3e6cb;
}

/* Tablet: mindre stub, mindre billedbredde */
@media (max-width: 900px) {
    .woocommerce-account-my-tickets .bm-ticket-card-v4 {
        min-height: 0;
    }

    .woocommerce-account-my-tickets .bm-ticket-image-v4 {
        flex-basis: 38%;
        max-width: 220px;
        min-height: 180px;
    }

    .woocommerce-account-my-tickets .bm-ticket-info-v4 {
        padding: 1rem 1rem;
        gap: 0.65rem;
    }

    .woocommerce-account-my-tickets .bm-ticket-stub-v4 {
        flex-basis: 88px;
        width: 88px;
        min-width: 80px;
    }

    .woocommerce-account-my-tickets .bm-ticket-content-v4 {
        min-height: 160px;
        padding-bottom: 2.5rem;
    }

    .woocommerce-account-my-tickets .bm-ticket-separator-v4 {
        margin: 0 0.35rem;
    }
}

/* Mobil: lodret kort, ingen absolute overlap */
@media (max-width: 640px) {
    .woocommerce-account-my-tickets {
        padding: 0 10px;
    }

    .woocommerce-account-my-tickets .bm-ticket-card-v4 {
        flex-direction: column;
        min-height: 0;
    }

    .woocommerce-account-my-tickets .bm-ticket-image-v4 {
        width: 100%;
        max-width: none;
        flex: none;
        min-height: 150px;
        height: 150px;
    }

    .woocommerce-account-my-tickets .bm-ticket-info-v4 {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.1rem 1.15rem;
        gap: 0;
    }

    .woocommerce-account-my-tickets .bm-ticket-separator-v4 {
        width: 100%;
        height: 2px;
        min-height: 0;
        margin: 1rem 0;
        align-self: stretch;
        background-image: linear-gradient(to right, #1e1e1e 60%, transparent 40%);
        background-size: 10px 2px;
        background-repeat: repeat-x;
    }

    .woocommerce-account-my-tickets .bm-ticket-content-v4 {
        min-height: 0;
        padding-bottom: 0;
        order: 0;
    }

    .woocommerce-account-my-tickets .bm-content-buyer-v4 {
        position: static;
        max-width: none;
        text-align: left;
        margin-bottom: 0.35rem;
        font-size: 0.85rem;
    }

    .woocommerce-account-my-tickets .bm-ticket-title-v4 {
        font-size: 1.25rem;
    }

    .woocommerce-account-my-tickets .bm-ticket-date-v4 {
        margin-bottom: 0.65rem;
    }

    .woocommerce-account-my-tickets .bm-ticket-meta-v4 {
        position: static;
        margin-top: 0.5rem;
    }

    .woocommerce-account-my-tickets .bm-ticket-stub-v4 {
        width: 100%;
        flex: none;
        min-width: 0;
        min-height: 0;
        height: auto;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;
        padding-top: 0.25rem;
        order: 1;
    }

    .woocommerce-account-my-tickets .bm-stub-status-v4 {
        position: static;
        flex: 0 0 auto;
        text-align: left;
    }

    .woocommerce-account-my-tickets .bm-stub-download-v4 {
        position: static;
        transform: none;
        flex: 0 1 auto;
    }

    .woocommerce-account-my-tickets .bm-ticket-stub-v4 .bm-stub-download-v4.bm-stub-wallet-v4 {
        bottom: auto;
    }
}

/* —— Events (staff) på Min konto —— */
.woocommerce-account-events-staff {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 12px 1.5rem;
    min-width: 0;
}

.woocommerce-account-events-staff h3 {
    margin-top: 0;
    margin-bottom: 0.35rem;
}

.woocommerce-account-events-staff .bm-events-staff-empty {
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.woocommerce-account-events-staff .bm-events-staff-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.15rem;
    min-width: 0;
}

.woocommerce-account-events-staff .bm-staff-timeline-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.1rem 1.25rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    min-width: 0;
}

.woocommerce-account-events-staff .bm-chart-container--timeline h4 {
    margin: 0 0 0.75rem 0;
    font-size: clamp(0.95rem, 2.8vw, 1.15rem);
    font-weight: 600;
    color: #1a202c;
    line-height: 1.3;
    text-align: center;
}

.woocommerce-account-events-staff .bm-chart-canvas-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 200px;
    height: clamp(200px, 42vw, 300px);
    margin: 0 auto;
}

.woocommerce-account-events-staff .bm-chart-canvas-wrap canvas {
    display: block;
    max-width: 100%;
    height: 100% !important;
}

.woocommerce-account-events-staff .bm-event-staff-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    min-width: 0;
}

.woocommerce-account-events-staff .bm-event-title {
    margin: 0 0 1rem 0;
    font-size: clamp(1.05rem, 2.6vw, 1.28rem);
    font-weight: 600;
    color: #1a202c;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.woocommerce-account-events-staff .bm-event-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.woocommerce-account-events-staff .bm-stat {
    padding: 0.75rem 0.45rem;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
    min-width: 0;
}

.woocommerce-account-events-staff .bm-stat-value {
    display: block;
    font-size: clamp(1.15rem, 3.8vw, 1.65rem);
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.2rem;
    line-height: 1.1;
}

.woocommerce-account-events-staff .bm-stat-label {
    font-size: 0.68rem;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.25;
}

.woocommerce-account-events-staff .bm-progress-bar-container {
    background-color: #e2e8f0;
    border-radius: 8px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.woocommerce-account-events-staff .bm-progress-bar {
    background: linear-gradient(90deg, #3182ce, #4299e1);
    height: 100%;
    border-radius: 8px;
    transition: width 0.4s ease;
}

.woocommerce-account-events-staff .bm-progress-label {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .woocommerce-account-events-staff {
        padding: 0 10px 1.25rem;
    }

    .woocommerce-account-events-staff .bm-event-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .woocommerce-account-events-staff .bm-staff-timeline-card,
    .woocommerce-account-events-staff .bm-event-staff-item {
        padding: 0.95rem 1rem;
    }

    .woocommerce-account-events-staff .bm-chart-canvas-wrap {
        height: 220px;
        min-height: 200px;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .woocommerce-account-events-staff .bm-event-stats {
        gap: 0.5rem;
    }

    .woocommerce-account-events-staff .bm-stat {
        padding: 0.65rem 0.35rem;
    }

    .woocommerce-account-events-staff .bm-stat-label {
        font-size: 0.62rem;
    }
}

.no-tickets {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.no-tickets p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #666;
}

.tickets-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.ticket-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.ticket-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.ticket-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.ticket-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.ticket-status.valid {
    background: #d4edda;
    color: #155724;
}

.ticket-status.redeemed {
    background: #f8d7da;
    color: #721c24;
}

.ticket-details {
    margin-bottom: 20px;
}

.ticket-details p {
    margin: 8px 0;
    color: #555;
}

.ticket-details code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

.ticket-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Mine Events side */
.woocommerce-account-my-events {
    max-width: 800px;
    margin: 0 auto;
}

.no-events {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.no-events p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #666;
}

.events-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.event-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.event-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.event-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.ticket-count {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.event-details {
    margin-bottom: 20px;
}

.event-details p {
    margin: 8px 0;
    color: #555;
}

.event-tickets {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.event-tickets h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
}

.tickets-mini-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticket-mini-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.ticket-name {
    font-weight: 500;
    color: #333;
}

.event-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Generelle knapper */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #007cba;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.button:hover {
    background: #005a87;
    color: #fff;
}

.button.secondary {
    background: #6c757d;
}

.button.secondary:hover {
    background: #545b62;
}

.button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .ticket-header,
    .event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ticket-actions,
    .event-actions {
        flex-direction: column;
    }
    
    .button {
        text-align: center;
    }
    
    .ticket-mini-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation {
        padding: 15px;
    }
    
    .ticket-item,
    .event-item {
        padding: 15px;
    }
}

/* Print styles */
@media print {
    .ticket-actions,
    .event-actions,
    .woocommerce-account .woocommerce-MyAccount-navigation {
        display: none;
    }
    
    .ticket-item,
    .event-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
} 