/* new accent colors */
/* Soft green → #28a745 */
/* Soft amber / gold → #d4a373 */
/* Soft teal → #6b9080 */

/* ── Modern Toast Alerts ────────────────────────────────────────────────── */

#supra-toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 360px;
    width: calc(100vw - 2.5rem);
    pointer-events: none;
}

.supra-toast {
    pointer-events: all;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    border-radius: 12px;
    background: #18181b;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 12px 32px rgba(0, 0, 0, 0.45),
        0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.supra-toast.toast-hiding {
    animation: toastSlideOut 0.3s ease-in forwards !important;
}

/* Coloured icon bubble */
.supra-toast__icon-wrap {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

/* Text content */
.supra-toast__body {
    flex: 1;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #d4d4d8;
    word-break: break-word;
    padding-top: 0.25rem;
}

.supra-toast__body strong {
    color: #f4f4f5;
    font-weight: 600;
}

/* Inline action buttons inside toast messages (e.g. new_total.html) */
.supra-toast__body br {
    display: none;
}

.supra-toast__body .btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    padding: 0.3rem 0.75rem !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.07) !important;
    color: #e4e4e7 !important;
    margin-top: 0.5rem !important;
    margin-right: 0.375rem !important;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease !important;
    box-shadow: none !important;
    letter-spacing: 0.01em;
}

.supra-toast__body .btn:hover,
.supra-toast__body .btn:focus {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
    text-decoration: none;
}

/* Close button — absolute top-right */
.supra-toast__close {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 50%;
    padding: 0;
    width: 1.375rem;
    height: 1.375rem;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    color: #71717a;
    transition: background 0.15s ease, color 0.15s ease;
}

.supra-toast__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #d4d4d8;
}

/* Progress bar — scaleX driven by JS rAF */
.supra-toast__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(1);
    opacity: 0.7;
}

/* ── Variant colours ── */

.supra-toast--success .supra-toast__icon-wrap {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}
.supra-toast--success .supra-toast__progress {
    background: linear-gradient(90deg, #34d399, #6ee7b7);
}

.supra-toast--info .supra-toast__icon-wrap {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}
.supra-toast--info .supra-toast__progress {
    background: linear-gradient(90deg, #38bdf8, #7dd3fc);
}

.supra-toast--warning .supra-toast__icon-wrap {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
}
.supra-toast--warning .supra-toast__progress {
    background: linear-gradient(90deg, #fb923c, #fdba74);
}

.supra-toast--danger .supra-toast__icon-wrap {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}
.supra-toast--danger .supra-toast__progress {
    background: linear-gradient(90deg, #f87171, #fca5a5);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(64px) scale(0.93);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
        max-height: 200px;
        padding-top: 0.875rem;
        padding-bottom: 0.875rem;
        margin-bottom: 0;
    }
    to {
        opacity: 0;
        transform: translateX(64px) scale(0.93);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: -0.5rem;
    }
}

/* ── End Modern Toast Alerts ────────────────────────────────────────────── */

body {
    font-size: 15px !important;
}

.page-header,
.sub-header {
    border-bottom: none;
}

.page .page_inner {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.page {
    background-color: white !important;
    border: none !important;
}

.breadcrumb {
    background-color: unset;
}

.breadcrumb-item a {
    color: #6c757d;
    font-weight: 500;
}


/* navbar background */
.bg-dark {
    background-color: bg-zinc-800 !important;
}

/* search button */
.btn-secondary {
    color: #fff;
    background-color: #383b3e !important;
    border-color: #383b3e !important;
}

/*main navigation */
.navbar-dark .navbar-nav .nav-link {
    color: whitesmoke !important;
    font-weight: 500 !important;
}

/* basket styles */

/* basket items */
.basket-items:nth-child(2n) {
    background: none;
}
.basket-items {
    border-bottom: none;
}
.basket-title {
    border-bottom: none;
}

/* basket totals */
#basket_totals .table th,
#basket_totals .table td {
    border: none;
}
.total {
    background-color: white !important;
}

/* basket mini */
.basket-mini ul.account-nav {
    display: block;
    list-style-type: none;
}

.basket-mini ul.account-nav li {
    display: inline-block;
}

.basket-mini ul.account-nav li a {
    color: #6c757d;
}

.basket-mini .basket-total {
    font-weight: lighter;
}

.basket-mini .dropdown-menu {
    width: 600px;
}

/* basket quantity */
.checkout-quantity .input-group {
    max-width: 200px;
}

/* end basket styles */

/* Keyframes for fade in animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateX(-10px); /* Slide in from left */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Final position */
    }
}

/* Keyframes for fade out animation */
@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateX(0); /* Initial visible position */
    }
    100% {
        opacity: 0;
        transform: translateX(-10px); /* Slide out to left */
    }
}

/* Keyframes for shake animation */
@keyframes shakeX {
    0%,
    100% {
        transform: translateX(0);
    }
    20%,
    60% {
        transform: translateX(-5px);
    }
    40%,
    80% {
        transform: translateX(5px);
    }
}

@keyframes shakeY {
    0%,
    100% {
        transform: translateY(0);
    }
    20%,
    60% {
        transform: translateY(-1px);
    }
    40%,
    80% {
        transform: translateY(1px);
    }
}

/* Border Flash */
@keyframes borderFlash {
    0% {
        border-color: #eae7fd;
    }
    50% {
        border-color: #b5b3c1;
    }
    100% {
        border-color: #eae7fd;
    }
}

@keyframes microPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.border-dashed {
    border-style: dashed;
}

.form-input-error {
    padding: 0 5px 0 5px;
    font-weight: bolder;
}

.simple-checkout .help-text {
    font-size: x-small;
    padding: 0 5px 0 5px;
}

.simple-checkout .options-list {
    border-radius: 0 0 5px 5px;
    padding-left: 0;
    margin-bottom: 30px;
    margin-top: 5px;
}

.simple-checkout .options-list .option {
    list-style: none;
    padding: 8px 8px 8px 25px;
    border-left: 1px solid #28a745;
    transform: translateY(5px);
    animation: borderFlash 0.3s ease-out forwards;
    margin-bottom: 1px;
    background-color: white;
    cursor: pointer;
    border-right: 1px solid #28a745;
}

.simple-checkout .options-list .option:hover {
    background-color: #6b9080;
    color: white;
    cursor: pointer;
}

.simple-checkout select {
    appearance: none;
    background-position: right calc(0.375em + 0.1875rem) center !important;
}

.simple-checkout .form-control::placeholder {
    color: #ced6dd;
    opacity: 1;
    font-size: small;
    letter-spacing: 2px;
}

.simple-checkout .form-control:disabled {
    background-color: white;
    border-style: dashed;
    cursor: not-allowed;
}

.simple-checkout .form-group .form-label {
    color: #727273;
    font-weight: 500;
    position: relative;
    background-color: white;
    padding: 0 3px 0 3px;
    bottom: -18px;
    left: 10px;
    z-index: 1;
    font-size: 15px;
    transition:
        transform 0.3s ease-out,
        left 0.3s ease-out,
        color 0.3s ease-out;
}

.simple-checkout .form-control:focus {
    border-color: #ced4da;
    border-bottom-color: #28a745;
}
.simple-checkout .form-group:has(.form-control:focus) .form-label {
    left: 0;
    color: #28a745;
    font-weight: normal;
    background-color: white;
    padding: 0 3px 0 0;
}
.simple-checkout .form-control.is-valid {
    border-color: #ced4da;
    border-bottom-color: #28a745;
}

.simple-checkout .form-control:focus {
    box-shadow: unset;
}

.simple-checkout .form-control input {
    border: 1px solid #e0e0e0;
}

.simple-checkout .form-control.is-invalid {
    border-color: #dc3545 !important;
    animation-duration: 0.5s;
    animation-fill-mode: both;
    animation-timing-function: ease-in-out;
    -webkit-animation-name: shakeX;
    animation-name: shakeX;
}

.simple-checkout .form-control.is-valid {
    animation-duration: 0.5s;
    animation-fill-mode: both;
    animation-timing-function: ease-in-out;
    -webkit-animation-name: microPulse;
    animation-name: microPulse;
}
