/* ZIPTEH: live basket/favorites counters and commerce notifications. */
.zt-header .zt-header-favorite {
    position: relative;
    display: inline-flex;
    width: 50px;
    min-width: 50px;
    min-height: 76px;
    margin: 0 0 0 4px;
    padding: 0;
    flex: 0 0 50px;
    align-self: stretch;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #26313c;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease, transform .12s ease;
}

.zt-header .zt-header-favorite:hover,
.zt-header .zt-header-favorite:focus-visible {
    background: #f6f8fa;
    color: #d54848;
    outline: none;
}

.zt-header .zt-header-favorite:active {
    transform: translateY(1px);
}

.zt-header .zt-header-favorite > svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.zt-header .zt-header-favorite.is-active > svg {
    fill: currentColor;
    color: #d54848;
}

.zt-header .zt-header-action-count {
    position: absolute !important;
    top: 8px !important;
    right: 0 !important;
    display: inline-flex !important;
    min-width: 23px !important;
    height: 23px !important;
    padding: 0 6px !important;
    align-items: center;
    justify-content: center;
    color: #111820 !important;
    background: #ffb800 !important;
    border: 2px solid #fff !important;
    border-radius: 999px !important;
    box-shadow: 0 3px 8px rgba(15, 20, 26, .12) !important;
    font-family: var(--zt-font-family, Arial, sans-serif);
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    transform-origin: center;
}

.zt-header .zt-header-cart .zt-header-action-count {
    top: 8px !important;
    right: -1px !important;
}

.zt-header .zt-header-action-count.is-updated {
    animation: zt-commerce-count-pop .38s cubic-bezier(.2, .8, .2, 1);
}

@keyframes zt-commerce-count-pop {
    0% { transform: scale(1); }
    45% { transform: scale(1.32); }
    100% { transform: scale(1); }
}

/* Toast stack */
.zt-commerce-toasts {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000000;
    width: min(430px, calc(100vw - 32px));
    display: grid;
    gap: 12px;
    pointer-events: none;
}

.zt-commerce-toast {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    min-height: 92px;
    padding: 15px 15px 15px 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, .98);
    color: #111820;
    border: 1px solid #dce3e9;
    border-radius: 15px;
    box-shadow: 0 18px 48px rgba(15, 20, 26, .18);
    opacity: 0;
    transform: translate3d(18px, 12px, 0) scale(.97);
    transition: opacity .2s ease, transform .24s cubic-bezier(.2, .8, .2, 1);
    pointer-events: auto;
}

.zt-commerce-toast.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.zt-commerce-toast.is-leaving {
    opacity: 0;
    transform: translate3d(16px, 4px, 0) scale(.98);
}

.zt-commerce-toast--success {
    border-color: #cbe8d5;
}

.zt-commerce-toast--error {
    border-color: #f1caca;
}

.zt-commerce-toast__visual {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #eef9f2;
    color: #168747;
    border-radius: 12px;
}

.zt-commerce-toast--error .zt-commerce-toast__visual {
    background: #fff1f1;
    color: #c83a3a;
}

.zt-commerce-toast__visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #f6f8fa;
}

.zt-commerce-toast__visual svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.zt-commerce-toast__check {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 21px;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #168747;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
}

.zt-commerce-toast__check svg {
    width: 11px;
    height: 11px;
    stroke-width: 2.8;
}

.zt-commerce-toast__content {
    min-width: 0;
}

.zt-commerce-toast__eyebrow {
    margin-bottom: 3px;
    color: #168747;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.zt-commerce-toast--error .zt-commerce-toast__eyebrow {
    color: #c83a3a;
}

.zt-commerce-toast__title {
    margin: 0;
    overflow: hidden;
    color: #111820;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zt-commerce-toast__message {
    margin: 4px 0 0;
    color: #5d6874;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.zt-commerce-toast__actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.zt-commerce-toast__link,
.zt-commerce-toast__close {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.zt-commerce-toast__link {
    padding: 0 13px;
    background: #ffb800;
    color: #111820;
    border: 1px solid #ffb800;
    text-decoration: none;
    white-space: nowrap;
}

.zt-commerce-toast__link:hover,
.zt-commerce-toast__link:focus-visible {
    background: #f2ad00;
    color: #111820;
    outline: none;
}

.zt-commerce-toast__close {
    width: 36px;
    padding: 0;
    background: #fff;
    color: #65717d;
    border: 1px solid #d9e0e6;
}

.zt-commerce-toast__close:hover,
.zt-commerce-toast__close:focus-visible {
    color: #111820;
    border-color: #aeb8c2;
    outline: none;
}

.zt-commerce-toast__close svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.zt-commerce-toast__progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    overflow: hidden;
    background: #eef2f5;
}

.zt-commerce-toast__progress::after {
    display: block;
    width: 100%;
    height: 100%;
    background: #168747;
    content: "";
    transform-origin: left center;
    animation: zt-commerce-toast-progress var(--zt-toast-duration, 4200ms) linear forwards;
}

.zt-commerce-toast--error .zt-commerce-toast__progress::after {
    background: #d54848;
}

@keyframes zt-commerce-toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 1080px) {
    .zt-nav > .zt-shell > .zt-header-favorite {
        position: absolute !important;
        top: 12px !important;
        right: 62px !important;
        z-index: 5;
        width: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        height: 42px !important;
        margin: 0 !important;
        flex-basis: 42px !important;
        border-radius: 9px;
        background: #fff;
    }

    .zt-header .zt-header-favorite > svg {
        width: 27px;
        height: 27px;
    }

    .zt-header .zt-header-favorite .zt-header-action-count,
    .zt-header .zt-header-cart .zt-header-action-count {
        top: -7px !important;
        right: -7px !important;
        min-width: 21px !important;
        height: 21px !important;
        font-size: 10px !important;
    }
}

@media (max-width: 640px) {
    .zt-commerce-toasts {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }

    .zt-commerce-toast {
        grid-template-columns: 43px minmax(0, 1fr) auto;
        min-height: 84px;
        padding: 13px;
        gap: 10px;
        border-radius: 13px;
    }

    .zt-commerce-toast__visual {
        width: 43px;
        height: 43px;
    }

    .zt-commerce-toast__link {
        display: none;
    }

    .zt-commerce-toast__title {
        font-size: 13px;
    }

    .zt-commerce-toast__message {
        font-size: 11px;
    }
}

@media (min-width: 1081px) and (max-width: 1600px) {
    .zt-header .zt-header-favorite {
        width: 44px;
        min-width: 44px;
        flex-basis: 44px;
        margin-left: 1px;
    }

    .zt-header .zt-header-favorite > svg {
        width: 28px;
        height: 28px;
    }
}

@media (min-width: 1081px) and (max-width: 1320px) {
    .zt-header .zt-header-favorite {
        width: 40px;
        min-width: 40px;
        flex-basis: 40px;
    }

    .zt-header .zt-header-favorite > svg {
        width: 25px;
        height: 25px;
    }

    .zt-header .zt-header-action-count {
        min-width: 20px !important;
        height: 20px !important;
        padding: 0 5px !important;
        font-size: 9px !important;
    }
}
