﻿
/* Toast notifications */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast-notification {
    background-color: #3adb76;
    color: #0a0a0a;
    padding: 12px 24px;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid white;
}

    .toast-notification.show {
        opacity: 1;
        transform: translateY(0);
    }

    .toast-notification.success {
        background-color: #3adb76;
    }

    .toast-notification.warning {
        background-color: #ffae00;
    }

    .toast-notification.error {
        background-color: #cc4b37;
        color: white;
    }

/* Loading states for inputs */

.cart-order-unit {
    width: 125px
}

.qty-input {
    display: inline;
    width: 125px;
    margin: 3px 0;
}

    .qty-input.loading {
        background-color: #f0f0f0;
        opacity: 0.7;
        position: relative;
    }

        .qty-input.loading::after {
            content: '';
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            width: 12px;
            height: 12px;
            border: 2px solid transparent;
            border-top-color: #3498db;
            border-radius: 50%;
            animation: spin 1s ease infinite;
        }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Quantity input containers */
.qty-input-container {
    position: relative;
    display: inline-block;
}

.qty-clear-btn {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #cc4b37;
    font-size: 1.1em;
    display: none;
}

.qty-input-container:hover .qty-clear-btn {
    display: block;
}

/* Row highlighting */
.highlight-yellow {
    background-color: #ffff99 !important;
}

.highlight {
    background-color: #fff59c !important;
    animation: highlight-fade 2s;
}

@keyframes highlight-fade {
    0% {
        background-color: #ffff99;
    }

    100% {
        background-color: transparent;
    }
}

/* Weight display */
.weight-display {
    font-size: 0.8em;
    margin-top: 5px;
    line-height: 1.2;
}

.min-weight-warning {
    color: #cc4b37;
    font-weight: bold;
}

/* Backorder messaging */
.backorder-message {
    font-size: 0.75em;
    font-weight: bold;
    color: #cc4b37;
    margin-top: 5px;
    max-width: 150px;
    line-height: 1.2;
}

#backorder-banner {
    position: fixed;
    bottom: 0;
    font-weight: bold;
    font-size: 0.8em;
    left: 0;
    right: 0;
    padding: 10px;
    background-color: #ebc136;
    color: #0a0a0a;
    text-align: center;
    z-index: 1000;
    display: none;
    margin-bottom: 0;
}

.backorder-warning {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 5px;
    margin: 5px 0;
    display: none
}

/* Grand total display */
.grand-total {
    background-color: #333;
    color: white;
    padding: 10px;
    font-weight: bold;
    font-size: 1.2em;
    margin: 5px 0 15px;
}

    .grand-total span {
        font-weight: normal;
        font-size: 0.75em;
    }

.total-pounds {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
    padding-bottom: 15px;
}

/* Order Information */

.cart-items-wrapper {
    margin-bottom: 20px;
}

    .cart-items-wrapper h3 {
        margin-top: 20px;
    }

.edit-window-notice {
    background-color: #e6f7ff;
    border-left: 4px solid #1779ba;
    padding: 10px;
    margin: 15px 0;
}

/* Miscellaneous */

.has-tip {
    font-weight: normal;
}