/* Transmission Popup Modal */

.tpm-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpm-modal[hidden] {
    display: none;
}

.tpm-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.tpm-modal__dialog {
    position: relative;
    z-index: 1;
    background: #fff;
    color: #000;
    border-radius: 4px;
    padding: 2rem;
    width: 90%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.tpm-modal__close-btn {
    position: absolute !important;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
    width: 2.2rem !important;
    height: 2.2rem !important;
    background: #000 !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 1.4rem !important;
    line-height: 1 !important;
    cursor: pointer;
    color: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0.8;
    transition: opacity 0.15s;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    text-align: center !important;
    vertical-align: middle !important;
    min-width: 2.2rem !important;
}

.tpm-modal__close-btn:before {
    display: none !important;
}

.tpm-modal__close-btn:hover {
    opacity: 1;
    background: #000 !important;
}

.tpm-modal__title {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.tpm-modal__content > *:last-child {
    margin-bottom: 0;
}

/* Prevent body scroll when modal is open */
body.tpm-modal-open {
    overflow: hidden;
}

/* Animations */
.tpm-modal:not([hidden]) .tpm-modal__overlay {
    animation: tpm-fade-in 0.2s ease;
}

.tpm-modal:not([hidden]) .tpm-modal__dialog {
    animation: tpm-slide-up 0.25s ease;
}

@keyframes tpm-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes tpm-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
