#ets-seat-selection-area {
    direction: rtl;
}

.ets-seat-map {
    --ets-seat-size: 34px;
    --ets-seat-gap: 5px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 16px 18px;
    color: #0f172a;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.ets-seat-stage {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.ets-seat-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    font-size: 12px;
    margin-bottom: 16px;
    color: #475569;
}

.ets-seat-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ets-seat-legend span.dot {
    flex-shrink: 0;
}

.ets-seat-legend .dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
}

.ets-seat-legend .dot.is-available {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
}

.ets-seat-legend .dot.is-selected {
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.ets-seat-legend .dot.is-taken {
    background: #ef4444;
    border: 1px solid #dc2626;
}

.ets-seat-grid-wrap {
    overflow-x: auto;
    padding-bottom: 6px;
    direction: ltr;
}

.ets-seat-layout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    direction: ltr;
}

.ets-seat-rows-labels {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    width: 58px;
    direction: rtl;
}

.ets-seat-rows-grid {
    flex: 1;
    min-width: 0;
}

.ets-seat-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
    min-width: max-content;
    min-height: 36px;
    direction: ltr;
}

.ets-row-label {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    direction: rtl;
}

.ets-seat-block {
    display: flex;
    gap: var(--ets-seat-gap);
    flex-wrap: nowrap;
    direction: ltr;
    flex-shrink: 0;
    min-width: calc(var(--ets-seat-size) * var(--ets-side-seats, 1) + var(--ets-seat-gap) * (var(--ets-side-seats, 1) - 1));
}

.ets-seat-block--left {
    justify-content: flex-end;
}

.ets-seat-block--right {
    justify-content: flex-start;
}

.ets-aisle {
    width: 16px;
    flex-shrink: 0;
    border-left: 2px dashed #ef4444;
    border-right: 2px dashed #ef4444;
    align-self: stretch;
    min-height: 36px;
    margin: 0 4px;
    border-radius: 2px;
    background: #fff;
}

.ets-seat-spacer {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.ets-seat {
    width: var(--ets-seat-size);
    height: var(--ets-seat-size);
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 0;
    cursor: pointer;
    font-size: 10px;
    line-height: 1;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
    flex-shrink: 0;
    background: #fff;
}

.ets-seat-num {
    display: block;
    font-weight: 600;
    color: #334155;
}

.ets-seat.is-available {
    background: #ffffff;
    color: #334155;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.ets-seat.is-available:hover {
    transform: translateY(-1px);
    border-color: #93c5fd;
    background: #eff6ff;
}

.ets-seat.is-selected {
    background: #22c55e;
    border-color: #16a34a;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.ets-seat.is-selected .ets-seat-num {
    color: #fff;
}

.ets-seat.is-taken {
    background: #ef4444;
    color: #fff;
    border-color: #dc2626;
    cursor: not-allowed;
    opacity: 1;
    box-shadow: none;
}

.ets-seat.is-taken .ets-seat-num {
    color: #fff;
}

/* صفحه محصول: غیرفعال = خاکستری کمرنگ */
.ets-seat.is-disabled {
    background: #e8ecf1 !important;
    background-color: #e8ecf1 !important;
    border-color: #d0d7e2 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
    box-shadow: none !important;
    opacity: 0.7 !important;
}

.ets-seat.is-disabled .ets-seat-num {
    color: #94a3b8 !important;
}

.ets-seat.is-disabled.is-selectable {
    cursor: pointer;
    opacity: 1 !important;
}

.ets-seat-legend .dot.is-disabled {
    background: #e8ecf1 !important;
    border: 1px solid #d0d7e2 !important;
    box-shadow: none !important;
}

/* پنل ادمین: انتخاب‌شده برای غیرفعال‌سازی — خاکستری مشخص‌تر با ✕ */
.ets-seat-disable-editor .ets-seat.is-selected {
    position: relative;
    background: #94a3b8 !important;
    background-color: #94a3b8 !important;
    border-color: #64748b !important;
    color: #fff !important;
    cursor: pointer;
    box-shadow: none !important;
    opacity: 1 !important;
}

.ets-seat-disable-editor .ets-seat.is-selected .ets-seat-num {
    color: #fff !important;
    opacity: 0.45;
}

.ets-seat-disable-editor .ets-seat.is-selected::after {
    content: "✕";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    pointer-events: none;
}

.ets-seat-disable-editor .ets-seat-legend .dot.is-selected {
    background: #94a3b8 !important;
    border: 1px solid #64748b !important;
    box-shadow: none !important;
}

.ets-seat-summary {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: 13px;
    direction: rtl;
}

.ets-seat-summary-label {
    color: #64748b;
}

.ets-seat-summary-value {
    color: #0f172a;
    font-weight: 700;
}

@media (max-width: 640px) {
    .ets-seat-rows-labels {
        width: 48px;
    }

    .ets-row-label {
        font-size: 9px;
    }

    .ets-seat-map {
        --ets-seat-size: 28px;
        --ets-seat-gap: 4px;
    }

    .ets-seat-row,
    .ets-row-label {
        min-height: 28px;
    }

    .ets-aisle {
        min-height: 28px;
    }

    .ets-seat {
        font-size: 8px;
    }
}
