/* Tickera Wallet Passes — Frontend Styles */

/* ---------------------------------------------------------------
 * Section wrapper
 * ------------------------------------------------------------- */
.tcwp-passes-section {
    margin: 25px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.tcwp-passes-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.tcwp-passes-description {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
}

/* ---------------------------------------------------------------
 * Ticket row
 * ------------------------------------------------------------- */
.tcwp-ticket-pass-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    transition: box-shadow 0.2s;
}

.tcwp-ticket-pass-row:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tcwp-ticket-pass-row:last-child {
    margin-bottom: 0;
}

/* Ticket info */
.tcwp-ticket-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tcwp-ticket-code {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    font-family: monospace;
}

.tcwp-ticket-attendee {
    font-size: 13px;
    color: #555;
}

.tcwp-ticket-type {
    font-size: 12px;
    color: #888;
}

/* Button container */
.tcwp-pass-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tcwp-pass-buttons.tcwp-inline {
    display: inline-flex;
    margin-left: 10px;
    vertical-align: middle;
}

/* ---------------------------------------------------------------
 * WALLET BADGE LINKS & IMAGES
 * Uses official-style badge SVG images hosted in the plugin.
 * ------------------------------------------------------------- */
.tcwp-badge-link {
    display: inline-block;
    text-decoration: none !important;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    border: none;
    background: none;
    padding: 0;
    line-height: 0;
}

.tcwp-badge-link:hover {
    opacity: 0.85;
    transform: scale(1.03);
    text-decoration: none !important;
}

.tcwp-badge-link:active {
    opacity: 0.75;
    transform: scale(0.98);
}

/* Badge images */
.tcwp-badge-img {
    display: block;
    height: 48px;
    width: auto;
    border: none;
    pointer-events: none; /* click goes to parent <a> */
}

/* Small variant (inline use alongside ticket codes) */
.tcwp-badge-img-sm {
    height: 36px;
}

/* ---------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------- */
@media (max-width: 600px) {
    .tcwp-ticket-pass-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .tcwp-pass-buttons {
        width: 100%;
    }

    .tcwp-badge-link {
        flex: 1;
        text-align: center;
    }

    .tcwp-badge-img {
        height: 44px;
        margin: 0 auto;
    }

    .tcwp-pass-buttons.tcwp-inline {
        display: flex;
        margin-left: 0;
        margin-top: 8px;
    }
}
