#gbx-error {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 50;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

#gbx-error.visible {
    display: flex;
    opacity: 1;
}

#gbx-error .error-container {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 28rem;
    width: 100%;
    padding: 1.5rem 2rem;
    animation: fadeIn 0.3s ease-out;
}

#gbx-error .header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#gbx-error .title-container {
    display: flex;
    align-items: center;
    color: #08a3fd;
}

#gbx-error .title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    margin-left: 0.5rem;
}

#gbx-error .content {
    margin-top: 1.5rem;
    color: #4b5563;
}

#gbx-error .tips {
    background-color: #ddedf3;
    padding: 1rem;
    border-radius: 0.375rem;
    margin: 1rem 0;
}

#gbx-error .tips-title {
    font-weight: 500;
    margin: 0;
}

#gbx-error ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

#gbx-error li {
    margin: 0.25rem 0;
}

#gbx-error a {
    color: #08a3fd;
    font-weight: 500;
    text-decoration: none;
}

#gbx-error a:hover {
    text-decoration: underline;
}

#gbx-error .footer {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#gbx-error .logo {
    margin-bottom: 1rem;
    max-width: 180px;
}

#gbx-error .retry-button {
    background-color: #08a3fd;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-family: inherit;
    transition: background-color 0.2s;
}

#gbx-error .retry-button:hover {
    background-color: #0693e3;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 640px) {
    #gbx-error .footer {
        flex-direction: row;
        justify-content: space-between;
    }
    #gbx-error .logo {
        margin-bottom: 0;
    }
}
