﻿.terms-dialog-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.terms-loading-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    z-index: 5;
    gap: 16px;
}

.terms-loading-spinner span {
    font-family: var(--font-family-primary);
    font-size: 18px;
    font-weight: 600;
    color: #13181D;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #629C59;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.terms-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.terms-dialog-content::-webkit-scrollbar,
.terms-iframe::-webkit-scrollbar {
    width: 20px;
    height: 20px;
}

.terms-dialog-content::-webkit-scrollbar-track,
.terms-iframe::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.terms-dialog-content::-webkit-scrollbar-thumb,
.terms-iframe::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
    border: 3px solid #f1f1f1;
}

.terms-dialog-content::-webkit-scrollbar-thumb:hover,
.terms-iframe::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.terms-dialog-content,
.terms-iframe {
    scrollbar-width: auto;
    scrollbar-color: #888 #f1f1f1;
}

.terms-iframe-hidden {
    visibility: hidden;
}

.terms-sf-dialog.e-dialog .e-dlg-content {
    flex: 1 1 auto;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.terms-sf-dialog.e-dialog .e-footer-content {
    flex-shrink: 0;
}

.terms-sf-dialog.e-dialog .e-dlg-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.terms-sf-dialog.e-dialog {
    top: 60% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.terms-sf-dialog.e-dialog .e-dlg-content .terms-dialog-content {
    flex: 1 1 auto;
    height: 100%;
}

.terms-sf-dialog.e-dialog .e-footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.terms-btn-close {
    font-family: var(--font-family-primary) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 28px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    padding: 10px 32px !important;
    height: auto !important;
}
