/* pretix-manualseats: Presale Seating Plan */

.ms-hidden {
    display: none !important;
}

#ms-seating-container {
    margin-bottom: 20px;
}

#ms-seating-container h3 {
    margin-bottom: 15px;
}

/* Legend */
#ms-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #f8f8f8;
    border-radius: 4px;
}

.ms-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.ms-cat-swatch-svg {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* SVG wrapper */
#ms-plan-wrapper {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 15px;
}

#ms-plan-svg {
    display: block;
    width: 100%;
    min-height: 200px;
    max-height: 400px;
}

/* Seats */
.ms-seat {
    stroke-width: 1;
    transition: opacity 0.15s, transform 0.15s;
}

.ms-seat-available {
    stroke: rgba(0, 0, 0, 0.2);
    opacity: 0.85;
}

.ms-seat-available:hover {
    opacity: 1;
    stroke: #333;
    stroke-width: 2;
}

.ms-seat-unavailable {
    fill: #ddd;
    stroke: #ccc;
    opacity: 0.5;
    cursor: not-allowed !important;
}

.ms-seat-channel-restricted {
    fill: #e0e0e0;
    stroke: #555;
    opacity: 0.5;
    cursor: not-allowed !important;
}

.ms-seat-selected {
    fill: #FFD700 !important;
    stroke: #333;
    stroke-width: 2.5;
    opacity: 1;
}

/* Labels in SVG */
.ms-zone-label {
    font-size: 13px;
    font-weight: bold;
    fill: #333;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
}

.ms-row-label {
    font-size: 11px;
    fill: #555;
    font-weight: 600;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
}

/* Tooltip */
#ms-tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    z-index: 1000;
    white-space: nowrap;
}

/* Selection summary */
#ms-selection {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 15px;
}

#ms-selection h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
}

#ms-selection-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ms-selection-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.ms-selection-item:last-child {
    border-bottom: none;
}

.ms-remove-btn {
    margin-left: auto;
    background: none;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 2px 6px;
    color: #999;
}

.ms-remove-btn:hover {
    color: #c00;
    border-color: #c00;
}

#ms-selection-empty {
    color: #888;
    font-style: italic;
    margin: 0;
    font-size: 13px;
}

/* Cart button */
#ms-cart-btn-wrapper {
    margin-bottom: 20px;
}
