/* Floating Button */
#free-gift-btn { position: fixed; bottom: 20px; left: 20px; cursor: pointer; z-index: 1000; display: none; /* font-family: var(--global-heading-font-family); */ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }
#free-gift-btn .free-gift-wrap { display: flex; align-items: center; gap: .5rem; /* background: #920D70; *//* background: linear-gradient(0deg, rgba(146, 13, 112, 1) 0%, rgba(218, 27, 123, 1) 40%); */ color: var(--global-palette9); padding: 16px 24px; font-weight: 400; }
#free-gift-btn .free-gift-wrap img { width: 36px; height: auto; object-fit: contain; }
#free-gift-btn .free-gift-wrap svg { width: 28px; height: 28px; }
#free-gift-btn .free-gift-wrap span { line-height: 1.2;  font-size: 18px; /* font-weight: 700; */}
#free-gift-btn .free-gift-wrap span i { font-style: normal; font-weight: 400; line-height: 1.6; font-size: 14px; }

/* Modal Overlay */
#free-gift-modal { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.4); }
#free-gift-modal .modal-content { background-color: #fefefe; margin: 10% auto; padding: 20px; border: 1px solid #888; width: 80%; max-width: 900px; border-radius: 10px; position: relative; text-align: center; }
#free-gift-modal .modal-content h2 { color: var(--global-palette2, #000); font-family: var(--global-heading-font-family); font-weight: 700 !important; }
#free-gift-modal .modal-content p { color: #888; font-family: var(--global-body-font-family); font-size: 16px; margin: 0 0 1.5rem 0; }
#free-gift-modal .modal-content button { background-color: var(--global-palette1, #ce2045); color: var(--global-palette9); font-family: var(--global-heading-font-family); font-weight: 700; }
#free-gift-modal .modal-close { color: #888; float: right; font-size: 36px; font-weight: 400; }
#free-gift-modal .modal-close:hover, #free-gift-modal .modal-close:focus { color: var(--global-palette2, #000); text-decoration: none; cursor: pointer; }
#free-gift-modal .modal-content #free-gift-form button.loading { position: relative; color: transparent; cursor: wait; opacity: 0.8; }
#free-gift-modal .modal-content #free-gift-form button.loading:after { content: ''; position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; margin-top: -12px; margin-left: -12px; border: 2px solid #fff; border-radius: 50%; border-top-color: #ce2045; animation: spinner .8s linear infinite; }
.product-selection-list { display: flex; flex-direction: row; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.product-selection-list .product-item { display: flex; flex-direction: column; align-items: center; border: 1px solid #ddd; border-radius: 8px; padding: 10px; cursor: pointer; transition: all 0.3s ease; max-width: 24%; }
.product-selection-list .product-item:hover:not(.out-of-stock),
.product-selection-list .product-item:has(input:checked) { border-color: var(--global-palette1, #ce2045); box-shadow: 0 0 5px rgba(206, 32, 69, 0.5); }
.product-selection-list .product-item.out-of-stock { opacity: 0.5; cursor: not-allowed; }
.product-selection-list .product-item.out-of-stock:hover { border-color: #ddd; box-shadow: none; }
.product-selection-list .product-item.out-of-stock label { cursor: not-allowed; }
.product-selection-list .product-item .out-of-stock-message { font-size: 0.9em; color: var(--global-palette1, #ce2045); font-weight: bold; margin-top: 5px; }
.product-selection-list .product-item input[type="radio"] { display: none; }
.product-selection-list .product-item label { display: flex; flex-direction: column; align-items: center; cursor: pointer; width: 100%; }
.product-selection-list .product-item img { max-width: 100px; height: auto; margin-bottom: 10px; }
.product-selection-list .product-item h3 { font-size: 14px; line-height: 1.3; margin: 0; text-align: center; }
/* Spinner animation */
@keyframes spinner {
 to { transform: rotate(360deg); }
}
@media only screen and (max-width:992px) {
 #free-gift-modal .modal-content { width: 90%; }
 .product-selection-list { flex-wrap: wrap; }
 .product-selection-list .product-item { max-width: 48%; }
 .product-selection-list .product-item label { font-size: 14px; line-height: 1.2; }
}

