/* pretix-seatingsale — shop seat picker */

.seatingsale-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.seatingsale-mapwrap {
    flex: 1 1 380px;
    min-width: 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
    padding: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#seatingsale-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- seats ---- */
.seatingsale-seat circle {
    transition: r 0.08s ease, stroke-width 0.08s ease;
    stroke: #ffffff;
    stroke-width: 1;
}
.seatingsale-seat:not(.seatingsale-seat-taken) {
    cursor: pointer;
}
.seatingsale-seat:not(.seatingsale-seat-taken):hover circle {
    stroke: #333333;
    stroke-width: 2;
}
.seatingsale-seat.seatingsale-selected circle {
    stroke: #111111;
    stroke-width: 3;
}
.seatingsale-seat-taken {
    cursor: not-allowed;
}
.seatingsale-seat.seatingsale-dim {
    opacity: 0.2;
    pointer-events: none;
}
.seatingsale-seatnum {
    font-size: 8px;
    fill: #ffffff;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
    font-family: sans-serif;
}
.seatingsale-rowlabel {
    font-size: 10px;
    fill: #888888;
    text-anchor: end;
    dominant-baseline: central;
    font-family: sans-serif;
}
.seatingsale-rowlabel-right {
    text-anchor: start;
}

/* ---- legend / category filter ---- */
.seatingsale-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.seatingsale-legenditem {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    background: #ffffff;
    color: #333333;
    font-size: 13px;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.1s ease, border-color 0.1s ease;
}
.seatingsale-legenditem:hover {
    border-color: #999999;
}
.seatingsale-legenditem.active {
    background: #2c3e50;
    border-color: #2c3e50;
    color: #ffffff;
}
.seatingsale-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex: 0 0 auto;
}

/* ---- selection sidebar ---- */
.seatingsale-side {
    flex: 0 0 300px;
    max-width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #ffffff;
    padding: 16px;
    position: sticky;
    top: 16px;
}
.seatingsale-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
}
.seatingsale-badge {
    display: inline-block;
    min-width: 22px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #2c3e50;
    color: #ffffff;
    font-size: 13px;
    text-align: center;
}
.seatingsale-empty {
    color: #888888;
    font-size: 14px;
    margin: 8px 0;
}

/* ---- per-seat cards ---- */
.seatingsale-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.seatingsale-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    background: #fbfbfb;
}
.seatingsale-carddot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex: 0 0 auto;
}
.seatingsale-cardinfo {
    flex: 1 1 auto;
    min-width: 0;
}
.seatingsale-cardname {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    word-break: break-word;
}
.seatingsale-cardselect.form-control {
    height: 30px;
    padding: 2px 8px;
    font-size: 13px;
}
.seatingsale-cardprice {
    font-size: 13px;
    color: #555555;
}
.seatingsale-cardremove {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #b0b0b0;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.1s ease, color 0.1s ease;
}
.seatingsale-cardremove:hover {
    background: #f4dcdc;
    color: #c0392b;
}

/* ---- max-per-order hint ---- */
.seatingsale-maxhint {
    margin: 0 0 12px;
    padding: 8px 10px;
    border-radius: 4px;
    background: #fcf3cf;
    border: 1px solid #f1c40f;
    color: #7d6608;
    font-size: 13px;
}

/* ---- total + submit ---- */
.seatingsale-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 15px;
    margin: 8px 0 14px;
    padding-top: 10px;
    border-top: 1px solid #eeeeee;
}
.seatingsale-total strong {
    font-size: 18px;
}

@media (max-width: 600px) {
    .seatingsale-side {
        flex: 1 1 100%;
        position: static;
    }
    /* Don't shrink the plan down to unreadable dots on a phone: keep the
       seats at a tappable size and let the map scroll sideways instead. */
    #seatingsale-svg {
        width: 100%;
        height: auto;
        min-width: 460px;
    }
}

/* ---- decorations (stage, entrance, pillars, labels) ---- */
.seatingsale-area {
    stroke-width: 1;
    opacity: 0.9;
}
.seatingsale-arealabel {
    text-anchor: middle;
    dominant-baseline: central;
    font-family: sans-serif;
    pointer-events: none;
}
