/* BioFS Free Gifts Custom Styles */
.biofs-free-gifts-section {
  margin-bottom: 2rem !important;
  padding: 1rem 1.5rem 1.5rem !important;
  background-color: rgba(245, 245, 245, 0.5) !important;
  border-radius: 0 !important; /* Removed rounded corners */
  border: 1px solid rgba(229, 229, 229, 0.5) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

.biofs-free-gifts-section .section-header {
  margin-bottom: 0.5rem !important;
}

.biofs-free-gifts-main-title {
  font-size: 2.5rem !important;
  line-height: 2.5rem !important;
  font-weight: 700 !important;
  color: #171717 !important;
  margin: 2rem 0 1rem !important;
  text-align: left !important;
}

.biofs-free-gifts-progress-message {
  background-color: #10b981 !important;
  color: #ffffff !important;
  padding: 0.75rem 1rem !important;
  font-family: "Roboto Condensed", sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.025em !important;
  margin-bottom: 1.5rem !important;
  display: inline-block !important;
}

.biofs-free-gifts-section h2 {
  font-size: 2rem !important;
  line-height: 2rem !important;
  font-weight: 700 !important;
  color: #171717 !important;
  margin: 0 0 0.1rem !important;
}

.biofs-free-gifts-section .section-description {
  color: #525252 !important;
  font-size: 0.8125rem !important;
  line-height: 1.1rem !important;
}

.biofs-gifts-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 1rem !important;
  padding: 0.5rem 0.25rem 1rem !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-snap-type: x mandatory !important;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.biofs-gifts-grid::-webkit-scrollbar {
  height: 4px !important;
}
.biofs-gifts-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05) !important;
  border-radius: 0 !important; /* Removed rounded corners */
}
.biofs-gifts-grid::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.3) !important;
  border-radius: 0 !important; /* Removed rounded corners */
}

/* Reset theme link styles for gift titles */
.biofs-gift-title,
.biofs-gift-title a {
  text-decoration: none !important;
  color: #171717 !important;
  font-size: 1.4rem !important;
  line-height: 1.5;
  font-weight: 500 !important;
  margin: 0 0 0.25rem !important;
  display: block !important;
  text-align: center;
  font-family: "Roboto Condensed", sans-serif !important;
}

.biofs-gift-card {
  flex: 0 0 140px !important;
  scroll-snap-align: start !important;
  background-color: #ffffff !important;
  border-radius: 0 !important; /* Removed rounded corners */
  padding: 0.5rem !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #f5f5f5 !important;
  display: flex !important;
  flex-direction: column !important;
  transition: all 0.2s ease-in-out !important;
  position: relative !important;
}

.biofs-gift-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-2px) !important;
}

.biofs-gift-image-wrapper {
  position: relative !important;
  margin-bottom: 0.5rem !important;
  z-index: 1 !important;
}

.biofs-gift-image {
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border-radius: 0 !important; /* Removed rounded corners */
  background-color: #fafafa !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.biofs-gift-image img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  mix-blend-mode: multiply !important;
}

.variation-selector {
  margin-top: 0.25rem !important;
}

.fgf-product-variations {
  width: 100% !important;
  padding: 0.2rem 0.4rem !important;
  border-radius: 0 !important; /* Removed rounded corners */
  border: 1px solid #e5e5e5 !important;
  font-size: 0.7rem !important;
  line-height: 1rem !important;
  background-color: #fff !important;
  position: relative !important;
  z-index: 5 !important;
}

.biofs-gift-card .card-footer {
  margin-top: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
}

/* Force + button to top-right of image with high priority */
.biofs-gift-card .fgf-add-manual-gift-product {
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  left: auto !important;
  bottom: auto !important;
  width: 1.5rem !important;
  height: 1.5rem !important;
  background-color: #10b981 !important;
  color: #ffffff !important;
  border-radius: 0 !important; /* Removed rounded corners (square button) */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  line-height: 1rem !important;
  text-decoration: none !important;
  z-index: 10 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  transition:
    transform 0.2s,
    background-color 0.2s !important;
  padding: 0 !important;
  margin: 0 !important;
}

.biofs-gift-card .fgf-add-manual-gift-product:hover {
  background-color: #059669 !important;
  transform: scale(1.1) !important;
}

/* Pseudo-element covering the whole card for clickability */
.biofs-gift-card .fgf-add-manual-gift-product::after {
  content: "" !important;
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  width: 140px !important;
  height: 220px !important;
  z-index: -1 !important;
}

.fgf_disable_links {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}
