#safc-chooser-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#safc-chooser-overlay.safc-visible {
    opacity: 1;
}

#safc-chooser-modal {
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px 28px;
    max-width: 640px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
#safc-chooser-overlay.safc-visible #safc-chooser-modal {
    transform: translateY(0);
}

#safc-chooser-modal h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px;
    line-height: 1.3;
}
#safc-chooser-modal p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 24px;
}

#safc-cards {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.safc-card {
    flex: 1;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px 16px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #fafafa;
}
.safc-card:hover {
    border-color: #b89a4a;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
    background: #fff;
}

.safc-card img {
    width: 100%;
    max-width: 160px;
    height: 90px;
    object-fit: contain;
}

.safc-card-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
}
.safc-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}
.safc-card-desc {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.4;
}

.safc-card.safc-card-org {
    border-color: #c8aa50;
}
.safc-card.safc-card-com:hover {
    border-color: #5a8a3a;
}

#safc-dismiss {
    margin-top: 18px;
    font-size: 0.78rem;
    color: #aaa;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 8px;
    text-decoration: underline;
    transition: color 0.2s;
}
#safc-dismiss:hover {
    color: #555;
}

@media (max-width: 480px) {
    #safc-cards {
        flex-direction: column;
    }
    #safc-chooser-modal {
        padding: 24px 16px 20px;
    }
}
