.fgs-wrapper {
    position: relative;
    margin: 2.5em 0;
    font-family: inherit;
    padding-top: 2em;
}
.fgs-wrapper .fgs-unlocked-msg,
.fgs-wrapper .fgs-locked-msg {
    margin-bottom: 1em;
    font-size: 1.3em;
    color: #444;
}
.fgs-wrapper .fgs-products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
@media (max-width: 767px) {
    .fgs-wrapper .fgs-products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
.fgs-wrapper .fgs-product {
    border: 2px solid #e5e5e5 !important;
    border-radius: 10px !important;
    padding: 12px !important;
    text-align: center !important;
    transition: border-color .2s, opacity .2s !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    width: auto !important;
    float: none !important;
}
.fgs-wrapper .fgs-product--chosen {
    border-color: #2ecc71 !important;
    box-shadow: 0 0 0 3px rgba(46,204,113,.2) !important;
}
.fgs-wrapper .fgs-product--dimmed {
    opacity: .4 !important;
    filter: grayscale(60%) !important;
    pointer-events: none !important;
}
.fgs-wrapper .fgs-products--locked .fgs-product--disabled {
    opacity: .4 !important;
    filter: grayscale(70%) !important;
    cursor: not-allowed !important;
}
.fgs-wrapper .fgs-product__img-wrap {
    position: relative !important;
    width: 100% !important;
}
.fgs-wrapper .fgs-product__img-wrap img {
    width: 100% !important;
    height: auto !important;
    max-height: 130px !important;
    display: block !important;
    border-radius: 6px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}
.fgs-wrapper .fgs-product__lock-overlay {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,255,255,.5) !important;
    border-radius: 6px !important;
}
.fgs-wrapper .fgs-lock-icon { font-size: 1.8em !important; }
.fgs-wrapper .fgs-product__chosen-badge {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    background: #2ecc71 !important;
    color: #fff !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: .85em !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.2) !important;
}
.fgs-wrapper .fgs-product__name {
    font-size: .85em !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    color: #333 !important;
    font-weight: 600 !important;
}
.fgs-wrapper .fgs-btn {
    display: block !important;
    width: 100% !important;
    padding: 7px 14px !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer !important;
    font-size: .82em !important;
    font-weight: 600 !important;
    transition: background .2s !important;
    box-sizing: border-box !important;
}
.fgs-wrapper .fgs-btn--add {
    background: #222 !important;
    color: #fff !important;
}
.fgs-wrapper .fgs-btn--add:hover {
    background: #444 !important;
}
.fgs-wrapper .fgs-btn--remove {
    background: transparent !important;
    color: #999 !important;
    border: 1px solid #ddd !important;
}
.fgs-wrapper .fgs-btn--remove:hover {
    background: #f5f5f5 !important;
    color: #c00 !important;
    border-color: #c00 !important;
}
.fgs-wrapper .fgs-spinner {
    position: absolute !important;
    inset: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,255,255,.7) !important;
    border-radius: 10px !important;
    font-size: .9em !important;
    color: #555 !important;
}

@media (max-width: 767px) {
    .fgs-wrapper .fgs-product__name { min-height: 44px; }
}
