/* BBQuality De Vleeswijzer - Floating Banner + Popup Styles
   ========================================================= */

/* === Floating Notification Banner (matches WhatsApp/Newsletter pattern) === */
.bbq-vleeswijzer-fab {
  position: fixed;
  display: flex;
  align-items: center;
  height: 75px;
  z-index: 900;
  color: #ffffff;
  background: #cb2027;
  border: none;
  padding: 0.3rem 1rem 0.4rem 1rem;
  border-radius: 4px 0 0 4px;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,0,0,.15);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  transition: all 0.3s ease;

  /* Mobile first: full-width collapsed */
  left: 5vw;
  bottom: 240px;
  width: 95vw;
  margin-left: calc(95vw - 50px);
  font-size: 0.9rem;
}

.bbq-vleeswijzer-fab:hover,
.bbq-vleeswijzer-fab:focus,
.bbq-vleeswijzer-fab:active,
.bbq-vleeswijzer-fab.fold-out {
  margin-left: 0;
  background: #cb2027;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Icon container */
.bbq-vleeswijzer-fab__icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-right: 13px;
}

/* Label container */
.bbq-vleeswijzer-fab__label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
  max-width: 90vw;
}

.bbq-vleeswijzer-fab__label-title {
  font-weight: 700;
  font-size: 1em;
  line-height: 1.3;
}

.bbq-vleeswijzer-fab__label-subtitle {
  font-weight: 400;
  font-size: 0.8em;
  opacity: 0.85;
  line-height: 1.3;
}

/* === Tablet === */
@media (min-width: 768px) {
  .bbq-vleeswijzer-fab {
    left: 0;
    width: 50vw;
    bottom: 170px;
    margin-left: calc(100vw - 60px);
  }

  .bbq-vleeswijzer-fab:hover,
  .bbq-vleeswijzer-fab:focus,
  .bbq-vleeswijzer-fab:active,
  .bbq-vleeswijzer-fab.fold-out {
    margin-left: 50vw;
    background: #cb2027;
    color: #ffffff;
  }
}

/* === Desktop === */
@media (min-width: 1200px) {
  .bbq-vleeswijzer-fab {
    font-size: 1.2rem;
    bottom: 170px;
    margin-left: calc(100vw - 80px);
  }

  .bbq-vleeswijzer-fab:hover,
  .bbq-vleeswijzer-fab:focus,
  .bbq-vleeswijzer-fab:active,
  .bbq-vleeswijzer-fab.fold-out {
    margin-left: 50vw;
    background: #cb2027;
    color: #ffffff;
  }

  .bbq-vleeswijzer-fab__icon {
    font-size: 2.6rem;
    margin-right: 33px;
  }
}


/* === Overlay Container === */
.bbq-vleeswijzer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
}

.bbq-vleeswijzer-overlay--open {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Backdrop === */
.bbq-vleeswijzer-overlay__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  animation: bbqFadeIn 200ms ease forwards;
}

@keyframes bbqFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === Content Container === */
.bbq-vleeswijzer-overlay__content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  animation: bbqPopupIn 300ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes bbqPopupIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Smooth scrollbar */
.bbq-vleeswijzer-overlay__content::-webkit-scrollbar {
  width: 6px;
}

.bbq-vleeswijzer-overlay__content::-webkit-scrollbar-track {
  background: transparent;
}

.bbq-vleeswijzer-overlay__content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

/* === Close Button === */
.bbq-vleeswijzer-overlay__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
}

.bbq-vleeswijzer-overlay__close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.bbq-vleeswijzer-overlay__close:active {
  transform: scale(0.95);
}

/* === Popup-specific widget overrides === */
.bbq-vleeswijzer-overlay .bbq-guided-selling {
  max-width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
}

/* === Responsive - Mobile === */
@media (max-width: 640px) {
  /* Fullscreen popup on mobile */
  .bbq-vleeswijzer-overlay__content {
    width: 100%;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
  }

  .bbq-vleeswijzer-overlay .bbq-guided-selling {
    border-radius: 0;
    min-height: 100%;
  }

  .bbq-vleeswijzer-overlay__close {
    top: 0.5rem;
    right: 0.5rem;
  }
}
