/* Fixed Orders Button (Bottom Left) */
.orders-button-fixed {
    position: fixed;
    bottom: 100px;
    left: 20px;
    z-index: 9999;
}

/* Cart page - move button higher to avoid overlap with "Sipariş Ver" button */
body.cart-page .orders-button-fixed,
.cart-page .orders-button-fixed {
    bottom: 180px;
}

.orders-button-inner {
    min-width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgb(var(--background-primary));
    border: 1px solid rgba(var(--divide-color), 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1),
                0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem;
    gap: 0.25rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.orders-button-inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15),
                0 3px 6px rgba(0, 0, 0, 0.1);
    border-color: rgba(var(--color-primary), 0.2);
}

.orders-button-inner:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1),
                0 1px 3px rgba(0, 0, 0, 0.05);
}

.orders-button-icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
    color: rgb(var(--color-primary));
    flex-shrink: 0;
}

.orders-button-label {
    font-size: 0.625rem;
    font-weight: 600;
    color: rgb(var(--color-text-primary));
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
    opacity: 0.8;
    animation: subtle-float 3s ease-in-out infinite;
}

.loading-dots {
    display: inline-block;
    margin-left: 0.125rem;
}

.loading-dots span {
    display: inline-block;
    animation: dot-bounce 1.4s ease-in-out infinite;
    opacity: 0;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-bounce {
    0%, 80%, 100% {
        opacity: 0;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

@keyframes subtle-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-1px);
    }
}

.orders-button-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    border: 2px solid rgb(var(--background-primary));
    padding: 0 0.25rem;
}

/* Pulse animation when orders exist */
.orders-button-fixed.has-orders .orders-button-inner {
    animation: pulse-subtle 2s ease-in-out infinite;
}

@keyframes pulse-subtle {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1),
                    0 2px 4px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 6px 16px rgba(var(--color-primary), 0.15),
                    0 3px 6px rgba(0, 0, 0, 0.1);
    }
}

