.aig-privacy-fallback-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
}

.aig-privacy-fallback-modal.is-open {
    display: block;
}

.aig-privacy-fallback-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.aig-privacy-fallback-dialog {
    position: relative;
    box-sizing: border-box;
    width: min(920px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    padding: 28px;
    overflow: auto;
    background: #fff;
    color: #222;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.aig-privacy-fallback-close {
    position: sticky;
    top: 0;
    float: right;
    width: 42px;
    height: 42px;
    margin: -12px -12px 8px 16px;
    border: 0;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.aig-privacy-fallback-content {
    clear: both;
    line-height: 1.55;
}

.aig-privacy-fallback-content table {
    width: 100%;
    border-collapse: collapse;
}

.aig-privacy-fallback-content th,
.aig-privacy-fallback-content td {
    padding: 8px;
    border: 1px solid #ddd;
    vertical-align: top;
}

html.aig-privacy-modal-open,
html.aig-privacy-modal-open body {
    overflow: hidden;
}

.aig-privacy-consent-flags {
    margin: 18px 0;
}

.aig-privacy-consent-flag {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #ddd;
}

.aig-privacy-consent-flag legend {
    width: 100%;
    margin-bottom: 8px;
    font-size: inherit;
    line-height: 1.45;
}

.aig-privacy-consent-flag label {
    display: inline-flex;
    align-items: center;
    margin: 4px 24px 4px 0;
    cursor: pointer;
}

.aig-privacy-consent-error {
    padding: 10px 12px;
    border: 1px solid #b42318;
    background: #fff1f0;
    color: #b42318;
}

@media (max-width: 600px) {
    .aig-privacy-fallback-dialog {
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
        margin: 8px auto;
        padding: 20px;
    }
}
