#bsftcart_float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 120px;
}
.bsftcart_float_link {
	background: #fff;
	padding: 10px;
	border-radius: 3px;
	box-sizing: border-box;
	width: 100%;
	border: 1px solid #ddd;
	margin-top: 3px;
}
.bsftcart_float_img {
  width: max-content;
}
.bsftcart_float_img img,
.bsftcart_float_img .bsftcart-icon {
  display: block;
  width: 100%;
  height: 100%;
  /* max-width and max-height are now controlled by admin settings */
}

/* Specific styles for inline SVG icons */
.bsftcart_float_img .bsftcart-icon {
  fill: currentColor;
}
/* Placeholder selectors for future styling */
/* .bsftcart_float_summ.flex_block.wf100,
.bsftcart_float_count.flex_block.wf100 {
  // Styles can be added here when needed
} */

/* Visibility control for different display timings - extends base fixed positioning */
/* Base state - visible by default, but hidden class overrides */
#bsftcart_float {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hidden state - always applies regardless of animation class */
#bsftcart_float.bsftcart-hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* Show state - always applies regardless of animation class */
#bsftcart_float.bsftcart-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Initial loading animation - only applied on first page load */
#bsftcart_float.bsftcart-initial-load {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animation for cart appearance */
@keyframes bsftcartFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#bsftcart_float.bsftcart-animate-in {
  animation: bsftcartFadeInUp 0.4s ease forwards;
}

/* Add to cart button styling */
.bsftcart_float_add_to_cart {
  background: #0073aa;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 10px;
  width: 100%;
  position: relative;
}

.bsftcart_float_add_to_cart:hover {
  background: #005a87;
}

.bsftcart_float_add_to_cart:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Loading state */
.bsftcart_float_add_to_cart.loading {
  background: #666;
  cursor: wait;
}

.bsftcart_float_add_to_cart.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 8px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border: 2px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: bsftcart-spin 1s linear infinite;
}

@keyframes bsftcart-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success state */
.bsftcart_float_add_to_cart.added {
  background: #28a745;
  transform: scale(1.05);
}

.bsftcart_float_add_to_cart.added:hover {
  background: #218838;
}

/* using global .flex_row from flex.css */

/* ===== LIGHTBOX MODAL STYLES ===== */
.bsftcart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bsftcart-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    animation: bsftcart-fadeIn 0.2s ease-out;
}

.bsftcart-modal__dialog {
    position: relative;
    z-index: 1;
    max-width: 420px;
    width: calc(100% - 40px);
    max-height: calc(100vh - 40px);
    margin: 20px;
    animation: bsftcart-slideIn 0.2s ease-out;
}

.bsftcart-modal__content {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.bsftcart-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: #666;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bsftcart-modal__close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
}

.bsftcart-modal__body {
    padding: 32px 24px 24px;
    text-align: center;
    position: relative;
}

.bsftcart-modal__icon {
    width: 48px;
    height: 48px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
    animation: bsftcart-checkmark 0.4s ease-out 0.1s both;
}

.bsftcart-modal__image-wrap {
    margin-bottom: 16px;
}

.bsftcart-modal__image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.bsftcart-modal__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.bsftcart-modal__subtitle {
    margin: 0 0 0;
    font-size: 16px;
    color: #666;
    line-height: 1.4;
}

.bsftcart-modal__footer {
    padding: 0 24px 24px;
    text-align: center;
}

.bsftcart-modal__buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.bsftcart-modal__buttons .button {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    font-size: 14px;
}

.bsftcart-modal__continue {
    background: #f8f9fa;
    color: #495057;
    border-color: #dee2e6;
}

.bsftcart-modal__continue:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.bsftcart-modal__gotocart {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.bsftcart-modal__gotocart:hover {
    background: #005a87;
    border-color: #005a87;
    color: white;
    text-decoration: none;
}

.bsftcart-modal__countdown {
    font-size: 13px;
    color: #868e96;
    line-height: 1.4;
}

.bsftcart-modal__seconds {
    font-weight: 600;
    color: #495057;
}

/* Prevent body scroll when modal is open */
body.bsftcart-modal-open {
    overflow: hidden;
}

/* Animations */
@keyframes bsftcart-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bsftcart-slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bsftcart-checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Fly to cart animation */
.bsftcart-modal--flying {
    pointer-events: none;
}

.bsftcart-modal--flying .bsftcart-modal__dialog {
    z-index: 1000000; /* Higher than backdrop during animation */
}

/* Cart pulse effect when receiving item */
#bsftcart_float.bsftcart-cart-pulse {
    animation: bsftcart-cartPulse 0.6s ease-out;
}

@keyframes bsftcart-cartPulse {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0.3);
    }
    60% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(40, 167, 69, 0.1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Enhanced modal animation states */
.bsftcart-modal__dialog {
    will-change: transform; /* Optimize for animations */
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .bsftcart-modal__dialog {
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .bsftcart-modal__body {
        padding: 24px 20px 20px;
    }
    
    .bsftcart-modal__footer {
        padding: 0 20px 20px;
    }
    
    .bsftcart-modal__buttons {
        flex-direction: column;
    }
    
    .bsftcart-modal__buttons .button {
        flex: none;
    }
    
    .bsftcart-modal__title {
        font-size: 18px;
    }
    
    .bsftcart-modal__subtitle {
        font-size: 15px;
    }
    
    /* Mobile cart pulse - smaller effect */
    @keyframes bsftcart-cartPulse {
        0% {
            transform: scale(1);
        }
        30% {
            transform: scale(1.08);
            box-shadow: 0 0 0 8px rgba(40, 167, 69, 0.3);
        }
        60% {
            transform: scale(1.04);
            box-shadow: 0 0 0 15px rgba(40, 167, 69, 0.1);
        }
        100% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
        }
    }
}

/* Loading animation for product info in lightbox */
.bsftcart-loading {
	color: #666;
	font-style: italic;
	position: relative;
	display: inline-block;
	min-width: 180px;
}

.bsftcart-loading::after {
	content: '...';
	animation: bsftcart-dots 1.5s infinite;
	position: absolute;
	margin-left: 3px;
}

@keyframes bsftcart-dots {
	0%, 20% { content: ''; }
	40% { content: '.'; }
	60% { content: '..'; }
	80%, 100% { content: '...'; }
}

/* Smooth transitions for product info updates */
.bsftcart-modal__subtitle {
	transition: opacity 0.3s ease;
}

.bsftcart-modal__image-wrap {
	transition: opacity 0.3s ease;
}


