/* ==========================================================================
   HEMP FLOWER CO — TRUSTPILOT INTEGRATION
   ========================================================================== */

/* --- Floating Badge — Bottom-left corner --- */
.hfc-trust-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 900;
  animation: hfc-tp-slideUp 600ms cubic-bezier(0.34, 1.56, 0.64, 1) 2s both;
}

@keyframes hfc-tp-slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hfc-trust-float__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--hfc-forest);
  color: #fff;
  text-decoration: none;
  border-radius: var(--hfc-radius-lg);
  box-shadow: 0 4px 20px rgba(27, 67, 50, 0.25), 0 2px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform 200ms var(--hfc-ease),
    box-shadow 200ms var(--hfc-ease);
  -webkit-tap-highlight-color: transparent;
}

.hfc-trust-float__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(27, 67, 50, 0.3), 0 4px 10px rgba(0, 0, 0, 0.12);
  color: #fff;
}

.hfc-trust-float__stars {
  font-size: 16px;
  color: var(--hfc-gold);
  letter-spacing: 1px;
  line-height: 1;
}

.hfc-trust-float__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hfc-trust-float__label {
  font-family: var(--hfc-font-display);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.hfc-trust-float__source {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.2;
}

/* When Trustpilot widget is loaded (not fallback) */
.hfc-trust-float .trustpilot-widget {
  padding: 10px 16px;
  background: var(--hfc-forest);
  border-radius: var(--hfc-radius-lg);
  box-shadow: 0 4px 20px rgba(27, 67, 50, 0.25), 0 2px 6px rgba(0, 0, 0, 0.1);
}


/* --- Homepage Review Section --- */
.hfc-tp-section {
  padding: var(--hfc-space-2xl) 0;
  background: var(--hfc-forest);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hfc-tp-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(183, 228, 199, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hfc-tp-section__inner {
  position: relative;
  z-index: 1;
  max-width: var(--hfc-max-width);
  margin: 0 auto;
  padding: 0 var(--hfc-gutter);
}

.hfc-tp-section__label {
  font-family: var(--hfc-font-display);
  font-size: var(--hfc-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--hfc-mint);
  margin-bottom: var(--hfc-space-sm);
}

.hfc-tp-section__title {
  font-family: var(--hfc-font-display);
  font-size: var(--hfc-text-2xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--hfc-space-xl);
}

.hfc-tp-section__widget {
  max-width: 800px;
  margin: 0 auto;
}

.hfc-tp-section__link {
  display: inline-block;
  margin-top: var(--hfc-space-lg);
  font-family: var(--hfc-font-display);
  font-size: var(--hfc-text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 200ms var(--hfc-ease);
}

.hfc-tp-section__link:hover {
  color: #fff;
}


/* --- Responsive --- */
@media (max-width: 768px) {
  .hfc-trust-float {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }

  .hfc-trust-float__link {
    width: 100%;
    justify-content: center;
  }

  /* Avoid overlap with WooCommerce mini-cart floating button */
  .hfc-trust-float {
    bottom: 70px;
  }
}

@media (max-width: 480px) {
  .hfc-trust-float__link {
    padding: 10px 14px;
    gap: 8px;
  }

  .hfc-trust-float__stars {
    font-size: 14px;
  }

  .hfc-trust-float__label {
    font-size: 12px;
  }
}
