﻿.xercor-alert-icon {
    font-size: 34px;
    line-height: 1;
}

.xercor-alert-error {
    color: #b91c1c;
}

.xercor-alert-warning {
    color: #d97706;
}

.xercor-alert-success {
    color: #15803d;
}

.xercor-alert-info {
    color: #2563eb;
}

.gw-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 9999;
}

    .gw-modal-overlay.is-open {
        display: flex;
    }

.gw-modal {
    width: min(780px, 96vw);
    max-height: 90vh;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gw-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    background: #fafafa;
}

.gw-modal-title {
    margin: 0;
    font-size: 18px;
}

.gw-modal-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: rgba(0,0,0,0.65);
}

.gw-modal-x {
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 8px;
}

.gw-modal-body {
    padding: 14px 16px;
    overflow: auto;
}

.gw-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
    background: #fafafa;
}
.gw-modal-full {
    width: 98vw;
    max-width: 98vw;
    max-height: 92vh;
}

.gw-footer-left,
.gw-footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.modal-card {
    width: 100%;
    max-width: 780px;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.25);
    border: 1px solid rgba(0,0,0,0.12);
}

.modal-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    margin-left: auto;
    border: 0;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
}

    .modal-close:hover {
        background: rgba(0,0,0,0.06);
    }

.modal-body {
    padding: 14px 16px;
    overflow-y: auto;
}

.modal-section-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.modal-divider {
    border: 0;
    border-top: 1px solid rgba(0,0,0,0.10);
    margin: 14px 0;
}

.modal-hint {
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.75;
}

.modal-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

    .modal-foot .spacer {
        flex: 1;
    }

.modal-foot-right {
    justify-content: flex-end;
}

.modal.is-open {
    display: flex;
}

.modal-backdrop.is-open {
    display: block;
}