.tia-popup {
    width: 720px !important;
    max-width: 95vw !important;
    padding: 0 !important;
    font-family: Inter, sans-serif;
    color: #16233D;
    border-radius: 12px;
    box-sizing: border-box;
}

.tia-popup .swal2-content {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: inherit;
    text-align: left;
}

.tia-popup #swal2-content,
.tia-popup .swal2-html-container {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
    color: #16233D;
    max-width: none !important;
}

.tia-popup .swal2-header,
.tia-popup .swal2-title,
.tia-popup .swal2-actions,
.tia-popup .swal2-close {
    display: none !important;
}

.tia-wrapper {
    display: flex;
    flex-direction: column;
    max-height: 600px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.tia-header {
    padding: 16px 0 0;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.tia-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #16233D;
    margin: 0 0 4px;
}

.tia-subtitle {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #535862;
    margin: 8px 0 0;
}

.tia-body {
    padding: 16px 32px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.tia-body::-webkit-scrollbar {
    width: 6px;
}

.tia-body::-webkit-scrollbar-track {
    background: transparent;
}

.tia-body::-webkit-scrollbar-thumb {
    background: #D5D7DA;
    border-radius: 3px;
}

.tia-body::-webkit-scrollbar-thumb:hover {
    background: #B0B3B8;
}

.tia-intro {
    font-size: 13px;
    line-height: 1.6;
    color: #414651;
    margin: 0 0 16px;
    text-align: left;
}

.tia-callout {
    background: #FFF4F9;
    border-left: 4px solid #D94C93;
    padding: 12px 16px;
    margin: 0 0 20px;
    border-radius: 0 4px 4px 0;
}

.tia-callout p {
    font-size: 13px;
    font-style: italic;
    line-height: 1.6;
    color: #414651;
    margin: 0;
    text-align: left;
}

.tia-section-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    color: #16233D;
    margin: 20px 0 8px;
    text-transform: uppercase;
}

.tia-clauses {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.tia-clauses li {
    font-size: 13px;
    line-height: 1.6;
    color: #414651;
    margin-bottom: 6px;
    text-align: left;
}

.tia-clauses li strong {
    color: #16233D;
}

.tia-subclauses {
    list-style: none;
    padding-left: 24px;
    margin: 4px 0 6px;
}

.tia-subclauses li {
    font-size: 13px;
    line-height: 1.6;
    color: #414651;
    margin-bottom: 4px;
    text-align: left;
}

.tia-table-title {
    font-size: 13px;
    line-height: 1.6;
    color: #16233D;
    margin: 20px 0 8px;
    text-align: left;
}

.tia-table-wrapper {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E9EAEB;
    width: 100%;
    box-sizing: border-box;
}

.tia-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}

.tia-table thead th {
    background: #FAFAFA;
    font-weight: 700;
    color: #16233D;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #E9EAEB;
}

.tia-table tbody td {
    padding: 10px 14px;
    color: #414651;
    border-bottom: 1px solid #E9EAEB;
}

.tia-table tbody tr:nth-child(even) {
    background: #FAFAFA;
}

.tia-table tbody tr:nth-child(odd) {
    background: #FFFFFF;
}

.tia-table tbody tr:last-child td {
    border-bottom: none;
}

.tia-footer {
    padding: 16px 32px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #E9EAEB;
    flex-shrink: 0;
    background: #FFFFFF;
    border-radius: 0 0 12px 12px;
    width: 100%;
    box-sizing: border-box;
}

.tia-footer .tia-btn {
    flex: 1 1 0%;
    text-align: center;
}

.tia-btn {
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.tia-btn--later {
    background: #FFFFFF;
    color: #535862;
    border: 1px solid #D5D7DA;
}

.tia-btn--later:hover {
    background: #F5F5F5;
    border-color: #B0B3B8;
}

.tia-btn--accept {
    background: #D94C93;
    color: #FFFFFF;
    border: 1px solid #D94C93;
}

.tia-btn--accept:hover {
    background: #C43E82;
    border-color: #C43E82;
}

.tia-btn--accept:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tia-btn--accept .tia-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: tia-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes tia-spin {
    to { transform: rotate(360deg); }
}

.tia-error {
    color: #DC3545;
    font-size: 12px;
    text-align: center;
    padding: 8px 32px 0;
    display: none;
}

.tia-popup .tia-title,
.tia-popup .tia-subtitle,
.tia-popup .tia-section-title,
.tia-popup .tia-table-title,
.tia-popup .tia-table thead th,
.tia-popup .tia-table tbody td {
    text-align: left !important;
}

@media (max-width: 640px) {
    .tia-popup {
        width: auto !important;
        max-width: 95vw !important;
    }

    .tia-body,
    .tia-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .tia-footer {
        flex-direction: column;
    }

    .tia-btn {
        width: 100%;
        text-align: center;
    }
}
