/* ── Flag Buttons List – Frontend Styles v1.0.0 ── */

.fbl-wrap {
    --fbl-pill-bg:    #f0efed;
    --fbl-pill-text:  #1a1a1a;
    --fbl-hover-bg:   #1a1a1a;
    --fbl-hover-text: #ffffff;
    --fbl-cols:       4;
    --fbl-font-size:  14px;
    --fbl-flag-size:  20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    margin: 1.5rem 0;
}

.fbl-grid {
    display: grid;
    grid-template-columns: repeat(var(--fbl-cols), 1fr);
    gap: 0.55rem;
}

@media (max-width: 768px) {
    .fbl-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
    .fbl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 360px) {
    .fbl-grid { grid-template-columns: 1fr; }
}

.fbl-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45em;
    text-align: center;
    background: var(--fbl-pill-bg);
    color: var(--fbl-pill-text);
    border-radius: 50px;
    padding: 0.6rem 1rem;
    font-size: var(--fbl-font-size);
    font-weight: 500;
    text-decoration: none;
    line-height: 1.3;
    transition: background 0.22s ease, color 0.22s ease,
                transform 0.15s ease, box-shadow 0.22s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    cursor: pointer;
    word-break: break-word;
}

.fbl-pill:hover,
.fbl-pill:focus-visible {
    background: var(--fbl-hover-bg);
    color: var(--fbl-hover-text);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.14);
    text-decoration: none;
}

.fbl-pill:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.fbl-flag {
    width: var(--fbl-flag-size);
    height: auto;
    flex-shrink: 0;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
}

.fbl-label {
    display: inline-block;
    vertical-align: middle;
}

.fbl-empty {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}
