/* ===============================
   Desktop toast (bestaand)
================================ */

.meceda-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 0;
    max-width: min(480px, calc(100vw - 36px));
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    font-size: 14px;
    line-height: 1.35;
    display: none;
    align-items: flex-start;
    gap: 12px;
    background: var(--meceda-toast-bg, #F2EFEA);
    color: var(--meceda-toast-text, #707070);
}

.meceda-toast.is-visible {
    display: flex;
}

.meceda-toast__text {
    flex: 1 1 auto;
}

.meceda-toast__actions a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
    white-space: nowrap;
}

.meceda-toast__close {
    background: transparent;
    border: 0;
    color: var(--meceda-toast-accent, #ED6F3E);
    font-size: 32px;
    cursor: pointer;
    line-height: 0.5;
    align-self: flex-start;
    padding-top: 0;
    padding-right: 0;
    width: 32px !important;
    height: 32px !important;
    padding-left: 0px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding-bottom: 4px !important;

}

.meceda-toast__close:hover {
    color: #000000;
    background: none;
}

/* Toast image */
.meceda_toast_image {
    width: 102px;
    height: 102px;
    border-radius: 4px;
    overflow: hidden;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meceda_toast_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Toast title/desc */
.meceda-toast__title {
    font-family: "Plus Jakarta Sans", Sans-serif;
    font-weight: 600;
    color: #000;
    margin-bottom: 2px;
    font-size: 16px;
}

.meceda-toast__desc {
    font-family: "Plus Jakarta Sans", Sans-serif;
    font-size: 14px;
    opacity: .9;
    padding-bottom: 12px;
}

.meceda-toast button.button.meceda-toast-cart {
    border-radius: 32px;
    padding: 8px 24px;
    font-family: "Geomanist", Sans-serif;
    font-weight: 800;
    font-size: 14px;
    border: none;
    background-color: var(--meceda-toast-button-bg, #ED6F3E);
  color: var(--meceda-toast-button-text, #FFFFFF);
}

.meceda-toast a:hover button.button.meceda-toast-cart, .meceda-toast a:focus button.button.meceda-toast-cart {
    background-color: var(--meceda-toast-button-bg-hover, #F28558);
}


/* ===============================
   Responsive switching
================================ */

.meceda-toast.meceda-toast--mobile {
    display: none;
    left: 0;
    bottom: 0;
    border-radius: 0;
    max-width: 100%;
    width: 100%;
    flex-direction: column;
    border-radius: 10px 10px 0px 0px;
}

@media screen and (max-width: 767px) {

    .meceda-toast--desktop {
        display: none !important;
    }

    .meceda-toast--mobile {
        display: none;
    }

    .meceda-toast--mobile.is-visible {
        display: flex;
    }

    /* ===============================
       Mobile layout (bottom toast)
    ================================ */

    .meceda-toast--mobile {
        animation: mecedaToastSlideUp .25s ease-out;
    }

    .meceda-toast--mobile .meceda_toast_image {
        width: 78px;
        height: 78px;
    }

    .meceda-toast--mobile .notification-container{
    display: flex;
    gap: 12px;
    }

    .meceda-toast--mobile .meceda-toast__close {
        padding-top: 0;
        padding-right: 0;
        position: absolute;
        right: 12px;
    }
}

/* ===============================
   Animations
================================ */

@keyframes mecedaToastSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
