#termAndConditionModal {
    padding: 0 !important;
    overflow: hidden !important;
}

#termAndConditionModal .modal-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 860px;
    max-width: calc(100vw - 32px);
    height: 82vh;
    max-height: 720px;
    min-height: 520px;
    margin: 0 !important;
}

#termAndConditionModal .modal-content {
    height: 100%;
    max-height: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 4px;
}

#termAndConditionModal .ModalHeader {
    flex: 0 0 auto;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    min-height: 42px;
}

#termAndConditionModal .ModalHeader .title {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
}

#termAndConditionModal .ModalHeader .close {
    color: #fff;
    opacity: 1;
    font-size: 18px;
    line-height: 1;
    background: transparent;
    border: 0;
}

#termAndConditionModal .terms-modal-tabs {
    flex: 0 0 auto;
    display: flex;
    border-bottom: 1px solid #d9d9d9;
    background: #f7f7f7;
}

#termAndConditionModal .terms-modal-tab {
    border: 0;
    border-right: 1px solid #d9d9d9;
    background: #f7f7f7;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #333;
    margin: 0;
}

#termAndConditionModal .terms-modal-tab.active {
    background: #fff;
    color: #000;
    border-bottom: 2px solid #d2a64a;
}

#termAndConditionModal .terms-modal-body {
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: auto;
    padding: 20px 24px;
    background: #fff;
}

#termAndConditionModal .terms-modal-tab-panel {
    display: none;
    height: 100%;
}

#termAndConditionModal .terms-modal-tab-panel.active {
    display: block;
    height: 100%;
}

#termAndConditionModal .terms-modal-body iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

#termAndConditionModal .modal-footer {
    flex: 0 0 auto;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 10px 15px;
    text-align: center;
}

#termAndConditionModal .terms-modal-body table {
    max-width: 100%;
}

@media (max-width: 767px) {
    #termAndConditionModal .modal-dialog {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        height: calc(100vh - 24px);
        max-height: calc(100vh - 24px);
        min-height: 0;
    }

    #termAndConditionModal .terms-modal-tab {
        flex: 1 1 50%;
        padding: 10px 6px;
        font-size: 12px;
    }

    #termAndConditionModal .terms-modal-body {
        padding: 14px;
    }
}