.terms-modal.skypax-modal {
    --terms-gap: 1rem;
    --terms-padding: 1.5rem;
    padding-top: var(--terms-gap);
    padding-bottom: var(--terms-gap);
}
.terms-modal .modal-dialog {
    position: relative;
    width: calc(100% - 2 * var(--terms-gap));
    max-width: 960px;
    max-height: calc(100vh - 2 * var(--terms-gap));
    max-height: calc(100dvh - 2 * var(--terms-gap));
    padding: var(--terms-padding);
    overflow: hidden;
}
.terms-modal .modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2 * var(--terms-gap) - 2 * var(--terms-padding) - 2px);
    max-height: calc(100dvh - 2 * var(--terms-gap) - 2 * var(--terms-padding) - 2px);
}
.terms-modal .modal-header { flex: 0 0 auto; padding-right: 3rem; }
.terms-modal .modal-header h2 { margin: 0; font-size: 1.25rem; line-height: 1.4; }
.terms-modal .modal-body { min-height: 0; margin-top: 1.25rem; padding: 0.25rem; overflow: auto; overscroll-behavior: contain; }
.terms-modal .modal-body:focus-visible { outline: 2px solid #316277; outline-offset: -2px; }
.terms-modal .skypax-modal-close { position: absolute; top: 0.75rem; right: 0.75rem; float: none; width: 44px; height: 44px; margin: 0; padding: 0; color: #56656b; background: transparent; }
.terms-modal-actions { display: flex; flex: 0 0 auto; justify-content: flex-end; margin-top: 1rem; }
.terms-modal-actions .button { width: auto; min-height: 48px; margin: 0; padding: 0.75rem 1.5rem; }

.terms-content { color: #2a3a41; font-size: 0.9375rem; line-height: 1.65; overflow-wrap: anywhere; }
.terms-content .Bold { font-weight: 600; }
.terms-content .terms-section-heading { margin: 1.5rem 0 0.75rem; font-family: inherit; font-weight: 600; line-height: 1.5; }
.terms-content h3.terms-section-heading { font-size: 1.125rem; }
.terms-content h4.terms-section-heading { font-size: 1rem; }
.terms-content > .terms-section-heading:first-child { margin-top: 0; }
.terms-content .terms-effective-date { margin: 0 0 1.25rem; color: #56656b; font-size: inherit; line-height: inherit; }
.terms-content a { color: #316277; text-decoration: underline; overflow-wrap: anywhere; }
.terms-content img { max-width: 100%; height: auto; }
.terms-content table { width: 100%; margin: 0 0 1rem; border: 0; border-collapse: collapse; border-spacing: 0; table-layout: fixed; }
.terms-content tr { background: transparent; }
.terms-content td,
.terms-content th { height: auto; vertical-align: top; font: inherit; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.terms-content .terms-clauses td { padding: 0 0 0.875rem; border: 0; }
.terms-content .terms-clauses td:first-child { width: 4.5rem; padding-right: 0.75rem; white-space: nowrap; }
.terms-content .terms-summary td { padding: 0 0 0.75rem; border: 0; }
.terms-content .terms-summary td:first-child { width: 1.5rem; padding-right: 0.5rem; }
.terms-content .terms-data-table th,
.terms-content .terms-data-table td { padding: 0.75rem; border: 1px solid #d0d7dd; }
.terms-content .terms-data-table th { background: #eaf1f5; color: #285569; font-weight: 600; }
.terms-content .terms-restrictions th:first-child { width: 30%; }
.terms-content .terms-liability th:first-child { width: 28%; }
.terms-content .terms-liability th:nth-child(2) { width: 40%; }
.terms-content .terms-liability th:nth-child(3),
.terms-content .terms-liability th:nth-child(4) { width: 16%; }
.terms-content .terms-data-table tbody tr:nth-child(even) { background: #f8fbfc; }
.terms-content .terms-cell-value { min-width: 0; }

@media only screen and (max-width: 40em) {
    .terms-modal.skypax-modal { --terms-gap: 0.5rem; --terms-padding: 1rem; }
    .terms-modal .modal-header h2 { font-size: 1.125rem; }
    .terms-modal .skypax-modal-close { top: 0.5rem; right: 0.5rem; }
    .terms-modal .modal-body { margin-top: 1rem; }
    .terms-modal-actions .button { width: 100%; }
    .terms-content .terms-responsive-table,
    .terms-content .terms-responsive-table tbody { display: block; }
    .terms-content .terms-responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .terms-content .terms-responsive-table tbody tr { display: block; margin-bottom: 0.75rem; border: 1px solid #d0d7dd; border-radius: 4px; background: #fff; }
    .terms-content .terms-responsive-table td { display: block; width: auto; border: 0; border-top: 1px solid #e5ebef; }
    .terms-content .terms-responsive-table td::before { display: block; margin-bottom: 0.25rem; content: attr(data-label); color: #316277; font-weight: 600; }
    .terms-content .terms-responsive-table td:first-child { display: block; border-top: 0; background: #eaf1f5; color: #285569; font-weight: 600; }
    .terms-content .terms-responsive-table td:first-child::before { content: none; }
}
