/**
 * FurryNestLab Mobile Sticky "Add to Bag" Bottom Bar Styles
 */

/* 1. Main Sticky Bottom Bar Container */
.fnl-mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.1);
    z-index: 99990;
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
    box-sizing: border-box;
    transform: translateY(105%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    font-family: var(--font-body, 'DM Sans', -apple-system, sans-serif);
}

/* 2. Visible State */
.fnl-mobile-sticky-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* 3. Automatic Concealment when Slide-Out Drawer Cart is open */
body.fnl-drawer-open .fnl-mobile-sticky-bar {
    transform: translateY(105%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 4. Inner Bar Layout */
.fnl-sticky-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

/* 5. Product Snippet (Thumbnail + Title + Price) */
.fnl-sticky-bar-product {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.fnl-sticky-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.fnl-sticky-details {
    min-width: 0;
    flex: 1;
}

.fnl-sticky-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.fnl-sticky-price {
    font-size: 13.5px;
    font-weight: 800;
    color: #0d9488;
    margin-top: 1px;
}

.fnl-sticky-price .woocommerce-Price-amount {
    color: #0d9488;
    font-weight: 800;
}

.fnl-sticky-price ins {
    text-decoration: none;
    color: #0d9488;
}

.fnl-sticky-price del {
    color: #94a3b8;
    font-weight: 500;
    font-size: 11.5px;
    margin-right: 4px;
}

/* 6. Action Button */
.fnl-sticky-action {
    flex-shrink: 0;
}

.fnl-sticky-add-btn {
    background: #0d9488;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(13, 148, 136, 0.28);
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    white-space: nowrap;
}

.fnl-sticky-add-btn:hover {
    background: #0f766e;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.fnl-sticky-add-btn:active {
    transform: scale(0.97);
}

.fnl-sticky-btn-icon {
    font-size: 14px;
}

/* 7. Highlight pulse effect for variations form when user needs to choose size/color */
@keyframes fnlOptionPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(13, 148, 136, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0);
    }
}

.fnl-option-pulse {
    animation: fnlOptionPulse 1.2s ease-in-out 3;
    border: 2px solid #0d9488 !important;
    border-radius: 12px;
}
