/* ── GF Image Radio — Front-end Styles ─────────────────────────────────────── */

.gfir-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 4px 0;
}

/* Individual choice label acts as the clickable card */
.gfir-choice {
    cursor: pointer;
    margin: 0;
    padding: 0;
}

/* Hide the real radio input visually but keep it accessible */
.gfir-choice input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Card wrapper */
.gfir-choice-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
    border: 3px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 8px 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    transition: border-color .18s, box-shadow .18s, transform .15s;
}

.gfir-choice-inner:hover {
    border-color: #aaa;
    box-shadow: 0 2px 8px rgba(0,0,0,.13);
    transform: translateY(-2px);
}

/* Selected state */
.gfir-choice input[type="radio"]:checked + .gfir-choice-inner {
    border-color: #204ce5;
    box-shadow: 0 0 0 3px rgba(32,76,229,.18);
}

/* Image */
.gfir-choice-img-wrap {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 5px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gfir-choice-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder when no image uploaded */
.gfir-no-image {
    background: #e8e8e8;
}

.gfir-placeholder-text {
    font-size: 28px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
}

/* Label below image */
.gfir-choice-label {
    margin-top: 8px;
    font-size: 13px;
    text-align: center;
    color: #333;
    line-height: 1.3;
    font-weight: 500;
}

/* Selected label colour */
.gfir-choice input[type="radio"]:checked + .gfir-choice-inner .gfir-choice-label {
    color: #204ce5;
}

/* No choices configured message */
.gfir-no-choices {
    color: #888;
    font-style: italic;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .gfir-choices {
        gap: 10px;
    }
    .gfir-choice-inner {
        width: 100px;
    }
    .gfir-choice-img-wrap {
        width: 84px;
        height: 84px;
    }
    .gfir-choice-label {
        font-size: 11px;
    }
}
