/* Modal de ajuda de permissão de geolocalização */

.iib-geo-help-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.iib-geo-help-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.iib-geo-help-modal {
    width: min(860px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    font-family: var(--font-main);
    transform: scale(0.97);
    transition: transform 0.25s ease;
}

.iib-geo-help-overlay.active .iib-geo-help-modal {
    transform: scale(1);
}

.iib-geo-help-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.iib-geo-help-head h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--dark-color);
    line-height: 1.3;
}

.iib-geo-help-close {
    border: 0;
    background: var(--light-color);
    color: var(--gray-color);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.iib-geo-help-close:hover {
    background: var(--border-color);
    color: var(--dark-color);
}

.iib-geo-help-body {
    padding: 18px 20px 20px;
}

.iib-geo-help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.iib-geo-help-card {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
}

.iib-geo-help-card h4 {
    margin: 0 0 5px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--primary-color);
}

.iib-geo-help-card p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-color);
}

.iib-geo-help-note {
    background: #fffbea;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-color);
}

.iib-geo-help-note p {
    margin: 0 0 6px;
}

.iib-geo-help-note p:last-child {
    margin-bottom: 0;
}

.iib-geo-help-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

@media (max-width: 640px) {
    .iib-geo-help-grid {
        grid-template-columns: 1fr;
    }

    .iib-geo-help-actions {
        flex-direction: column-reverse;
    }

    .iib-geo-help-actions .btn {
        width: 100%;
        text-align: center;
    }
}
