/* AllocationBuy — quantity-stepper buy UI for EventMode=Allocation events (95.4-10, ALLOC-01, D-14).
   Class-naming and color-token conventions mirror subscription.css's own quantity selector
   (.subscription-qty-*) and seat-selection.css's toast pattern — brand tokens via
   var(--vendor-primary, #3C60A8), never a fresh hard-coded palette. */

.alloc-buy-category-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.alloc-buy-category {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    background: #fff;
}

.alloc-buy-category--soldout {
    background: #f8fafc;
}

.alloc-buy-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.alloc-buy-category-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.alloc-buy-category-remaining {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2E8B57;
}

.alloc-buy-category-remaining--soldout {
    color: #D64550;
}

.alloc-buy-tier-empty {
    font-size: 0.875rem;
    color: #64748b;
}

.alloc-buy-tier-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.alloc-buy-tier {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.alloc-buy-tier-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.alloc-buy-tier-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
}

.alloc-buy-tier-price {
    font-size: 0.8125rem;
    color: #64748b;
}

/* Quantity stepper — mirrors subscription.css's .subscription-qty-* sizing/interaction. */
.alloc-buy-qty-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.alloc-buy-qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.alloc-buy-qty-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: var(--vendor-primary, #3C60A8);
}

.alloc-buy-qty-btn:focus {
    outline: 2px solid var(--vendor-primary, #3C60A8);
    outline-offset: 2px;
}

.alloc-buy-qty-btn:disabled {
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.alloc-buy-qty-value {
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    min-width: 1.75rem;
    text-align: center;
    color: #0f172a;
}

/* Summary strip + submit */
.alloc-buy-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
}

.alloc-buy-summary-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.alloc-buy-summary-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

.alloc-buy-submit-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    background: var(--vendor-primary, #3C60A8);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s;
}

.alloc-buy-submit-btn:hover:not(:disabled) {
    opacity: 0.92;
}

.alloc-buy-submit-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* Toast notifications — self-contained; seat-selection.css is not loaded on the allocation
   branch, so this cannot rely on its .seat-toast-* rules. */
.alloc-buy-toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.alloc-buy-toast {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    max-width: 320px;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alloc-buy-toast.visible {
    opacity: 1;
    transform: translateX(0);
}

.alloc-buy-toast-error {
    background: #D64550;
}

.alloc-buy-toast-info {
    background: var(--vendor-primary, #3C60A8);
}

.alloc-buy-toast-success {
    background: #2E8B57;
}

.alloc-buy-toast-warning {
    background: #D4920A;
}

@media (max-width: 767.98px) {
    .alloc-buy-toast-container {
        top: auto;
        bottom: 1rem;
        right: 0.5rem;
        left: 0.5rem;
    }

    .alloc-buy-toast {
        max-width: 100%;
    }
}
