#tcsc-standing-svg-controls {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #d7d7d7;
}

#tcsc-standing-svg-controls h5 {
    margin: 0 0 10px;
}

#tcsc-standing-svg-controls .tcsc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

#tcsc-standing-svg-controls .tcsc-row {
    margin: 8px 0;
}

#tcsc-standing-svg-controls #tcsc_svg_override_row {
    margin-top: 6px;
}

#tcsc-standing-svg-controls .tcsc-file-wrap input[type='file'] {
    width: 100%;
}

#tcsc-standing-svg-controls textarea {
    width: 100%;
    min-height: 90px;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
}

#tcsc-standing-svg-controls .tcsc-layer-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#tcsc-standing-svg-controls .tcsc-layer-actions button {
    min-width: 150px;
}

#tcsc-standing-svg-controls .tcsc-svg-status {
    min-height: 18px;
    margin-top: 8px;
    color: #0f5132;
    font-size: 12px;
}

#tcsc-standing-svg-controls .tcsc-svg-status.tcsc-error {
    color: #842029;
}

.tc-standing-group-wrap.tcsc-custom-shape-wrap .tc-object {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0 !important;
}

.tc-standing-group-wrap.tcsc-custom-shape-wrap .tc-element-group,
.tc_seating_map .tc-standing-group-wrap.tcsc-custom-shape-wrap .tc-element-group {
    background: transparent !important;
    box-shadow: none !important;
}

.tc-standing-group-wrap .tcsc-custom-svg-seat,
.tc-standing-group-wrap .tcsc-custom-shape,
.tc_seating_map .tcsc-custom-svg-seat,
.tc_seating_map .tcsc-custom-shape {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
}

.tc-standing-group-wrap .tcsc-custom-svg-seat.tc_set_seat,
.tc-standing-group-wrap .tcsc-custom-svg-seat.ui-selected,
.tc-standing-group-wrap .tcsc-custom-svg-seat.tc_seat_in_cart,
.tc_seating_map .tcsc-custom-svg-seat.tc_set_seat,
.tc_seating_map .tcsc-custom-svg-seat.ui-selected,
.tc_seating_map .tcsc-custom-svg-seat.tc_seat_in_cart {
    background: transparent !important;
}

.tc-standing-group-wrap .tcsc-custom-svg,
.tc_seating_map .tcsc-custom-svg {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.tc-standing-group-wrap .tcsc-custom-svg svg,
.tc_seating_map .tcsc-custom-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.tc-standing-group-wrap .tcsc-svg-colorize svg,
.tc-standing-group-wrap .tcsc-svg-colorize svg *,
.tc_seating_map .tcsc-svg-colorize svg,
.tc_seating_map .tcsc-svg-colorize svg * {
    color: currentColor;
}

/* Frontend hitboxes for custom SVGs:
   - Decorative shapes must not block pan/clicks at all.
   - Sellable standing SVGs must react only on their painted geometry,
     not on the full rectangular wrapper that sizes the element. */
.tc_seating_map .tc-standing-group-wrap[data-tcsc-object-mode='shape'] .tcsc-custom-shape,
.tc_seating_map .tc-standing-group-wrap[data-tcsc-object-mode='shape'] .tc-object,
.tc_seating_map .tc-standing-group-wrap[data-tcsc-object-mode='shape'] .tcsc-custom-shape .tcsc-custom-svg,
.tc_seating_map .tc-standing-group-wrap[data-tcsc-object-mode='shape'] .tcsc-custom-shape .tcsc-custom-svg svg,
.tc_seating_map .tc-standing-group-wrap[data-tcsc-object-mode='shape'] .tcsc-custom-shape .tcsc-custom-svg svg * {
    pointer-events: none !important;
}

.tc_seating_map .tc-standing-group-wrap[data-tcsc-object-mode='standing'] .tc-object,
.tc_seating_map .tc-standing-group-wrap[data-tcsc-object-mode='standing'] .tcsc-custom-svg-seat {
    pointer-events: none !important;
}

.tc_seating_map .tc-standing-group-wrap[data-tcsc-object-mode='standing'] .tcsc-custom-svg-seat .tcsc-custom-svg,
.tc_seating_map .tc-standing-group-wrap[data-tcsc-object-mode='standing'] .tcsc-custom-svg-seat .tcsc-custom-svg svg {
    pointer-events: none !important;
}

.tc_seating_map .tc-standing-group-wrap[data-tcsc-object-mode='standing'] .tcsc-custom-svg-seat .tcsc-custom-svg svg *,
.tc_seating_map .tc-standing-group-wrap[data-tcsc-object-mode='standing'] .tcsc-custom-svg-seat .tcsc-custom-svg svg [data-tcsc-hit-node='1'] {
    pointer-events: visiblePainted !important;
}

.tc-wrapper.tcsc-custom-svg-hit-active,
.tc-wrapper.tcsc-custom-svg-hit-active * {
    cursor: pointer;
}

@media (max-width: 1400px) {
    #tcsc-standing-svg-controls .tcsc-grid {
        grid-template-columns: 1fr;
    }
}
