.bbr-gifts {
    min-width: 0;
    margin: 22px 0;
    padding: 0;
    border: 0;
    color: inherit;
}
.bbr-gifts[hidden] { display: none !important; }
.bbr-gifts legend {
    margin: 0 0 12px;
    border: 0;
    color: inherit;
    font: inherit;
    font-weight: 700;
    line-height: 1.5;
}
.bbr-gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 96px), 1fr));
    max-width: calc(var(--gift-columns) * 190px - 12px);
    gap: 16px 12px;
}
.bbr-gift { min-width: 0; }
.bbr-gift-photo {
    display: block;
    position: relative;
    margin: 0;
    cursor: pointer;
}
.bbr-gift-photo input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    opacity: 0;
}
.bbr-gift-frame {
    display: block;
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #292929;
    border-radius: 5px;
}
.bbr-gift-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: inherit;
    pointer-events: none;
}
.bbr-gift-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bbr-gift-photo input:checked + .bbr-gift-frame::after { border: 3px solid #eee; }
.bbr-gift-photo input:focus-visible + .bbr-gift-frame,
.bbr-gift-name:focus-visible {
    outline: 2px solid #d5e8d2;
    outline-offset: 3px;
}
.bbr-gifts a.bbr-gift-name {
    display: inline-block;
    margin-top: 7px;
    color: inherit;
    font-size: 14px;
    line-height: 1.45;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #888;
    overflow-wrap: anywhere;
}
.bbr-gifts a.bbr-gift-name:hover { text-decoration-color: currentColor; }
.bbr-gifts .bbr-no-gift {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    cursor: pointer;
    font-size: 14px;
}
.bbr-no-gift input { margin: 0; accent-color: #d5e8d2; }

@media (max-width: 767px) {
    .bbr-gifts-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); }
}
