.mhfgfwc-gift-header {
    background: #fffaf7;
    border-radius: 0;
    margin-top: 30px;
    margin-bottom: 0;
    padding-top: 20px;
}
.mhfgfwc-gift-description {
    background: #fffaf7;
    text-align: center;
    font-size: 14px;
    padding: 0 10px 10px;
}
.mhfgfwc-gift-description p {
    margin-bottom: 0;
}
.mhfgfwc-gift-selector {
    margin-top: 0;
    margin-bottom: 10px;
    background: #fffaf7;
    border-radius: 0;
}

/* Gift selection as checkboxes */
.mhfgfwc-gift-item {
    position: relative;
    border-radius: 0;
}
.mhfgfwc-gift-item .mhfgfwc-title {
    font-size: 14px;
    line-height: 1.4;
}
.mhfgfwc-gift-item .mhfgfwc-gift-actions {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}
.mhfgfwc-gift-item .mhfgfwc-add-gift,
.mhfgfwc-gift-item .mhfgfwc-remove-gift {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0 !important;
    border: 1px solid #333 !important;
    border-radius: 0 !important;
    background: #fff !important;
    font-size: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
}

/* Selected gift */
.mhfgfwc-gift-item .mhfgfwc-remove-gift::after {
    content: "✓";
    font-size: 16px;
    line-height: 1;
    color: #23232b;
}

/* Hide selected count */
.mhfgfwc-gift-item .mhfgfwc-selected-count {
    display: none;
}

/* Highlight selected card */
.mhfgfwc-gift-item:has(.mhfgfwc-remove-gift) {
    outline: 2px solid #23232b;
    outline-offset: -2px;
}

.mhfgfwc-gift-item:has(.mhfgfwc-add-gift),
.mhfgfwc-gift-item:has(.mhfgfwc-remove-gift) {
    cursor: pointer;
}

@media (max-width: 767px) {
    .mhfgfwc-gift-selector .mhfgfwc-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .mhfgfwc-gift-selector .mhfgfwc-gift-item {
        flex: 0 0 38%;
        scroll-snap-align: start;
    }
    .mhfgfwc-gift-selector .mhfgfwc-gift-item .mhfgfwc-title {
        font-size: 13px;
    }
}