/* Explain: Reusable polished CSS components, including ticket review modal. */
.animate-fade-in {
    animation: fadeIn 0.22s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signature-pad {
    touch-action: none;
    cursor: crosshair;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 16px 16px;
}

.tab-scroll {
    scrollbar-width: thin;
}

.tab-scroll::-webkit-scrollbar {
    height: 6px;
}

.tab-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 99px;
}

.ticket-review {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(2, 6, 23, 0.85);
}

.ticket-review__panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 58dvh;
    overflow: hidden;
    border-radius: 1.25rem 1.25rem 0 0;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.ticket-review__head {
    flex: 0 0 auto;
    background: var(--surface-color);
}

.ticket-review__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.ticket-review__foot {
    flex: 0 0 auto;
    background: var(--surface-color);
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 640px) {
    .ticket-review {
        align-items: center;
        padding: 1rem;
    }

    .ticket-review__panel {
        max-width: 25rem;
        max-height: 86dvh;
        border-radius: 1.25rem;
    }

    .ticket-review__foot {
        padding-bottom: 0.75rem;
    }
}