/**
 * Floating Checkout Button Styles
 *
 * Flat design, compact and always visible for quick checkout access.
 */

/* Main Floating Button - Flat Design */
.shampoo-floating-checkout {
  position: fixed;
  bottom: 110px;
  right: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary, #0E6681);
  color: #fff;
  padding: 10px 14px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  z-index: 9997;
  transition: all 0.2s ease;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.9;
}

.shampoo-floating-checkout:hover {
  opacity: 1;
  background: var(--onPrimaryContainer, #004D63);
  color: #fff;
  text-decoration: none;
}

/* Hidden state */
.shampoo-floating-checkout.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(100px);
}

/* Icon Styles */
.shampoo-floating-checkout .checkout-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shampoo-floating-checkout .checkout-icon svg {
  width: 16px;
  height: 16px;
}

/* Text */
.shampoo-floating-checkout .checkout-text {
  white-space: nowrap;
}

/* Cart Count Badge */
.shampoo-floating-checkout .checkout-count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #fff;
  color: var(--primary, #0E6681);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Arrow */
.shampoo-floating-checkout .checkout-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shampoo-floating-checkout .checkout-arrow svg {
  width: 14px;
  height: 14px;
}

/* Pulse animation when cart updates */
.shampoo-floating-checkout.pulse {
  animation: buttonPulse 0.4s ease-out;
}

@keyframes buttonPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
  .shampoo-floating-checkout {
    bottom: 105px;
    padding: 8px 12px;
    font-size: 0.75rem;
    gap: 5px;
  }

  .shampoo-floating-checkout .checkout-icon svg {
    width: 14px;
    height: 14px;
  }

  .shampoo-floating-checkout .checkout-count {
    min-width: 16px;
    height: 16px;
    font-size: 0.7rem;
  }
  
  .shampoo-floating-checkout .checkout-arrow svg {
    width: 12px;
    height: 12px;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .shampoo-floating-checkout .checkout-text {
    display: none;
  }
}

/* Large screens */
@media (min-width: 1024px) {
  .shampoo-floating-checkout {
    bottom: 115px;
    right: 10px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}
