/*
 * Custom style goes here.
 * A template should always ship with an empty custom.css
 */

.btn-modelo {
    text-decoration: none;
    color: #333;
    font-size: 11px;
    padding: 0 10px;
    height: 28px;
    line-height: 28px;
    border-radius: 4px;
    display: inline-block;
    box-shadow: inset 0 0 0 1px #e0e0e0;
    transition: all 0.2s ease;
    margin-bottom: 5px;
}

.btn-modelo.active {
    box-shadow: inset 0 0 0 2px #24b9d7;
    font-weight: bold;
    color: #24b9d7;
}

.wephone-cart-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1055;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(390px, calc(100vw - 32px));
    padding: 14px 16px;
    border: 1px solid #dce8e1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
    opacity: 0;
    transform: translateX(42px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.wephone-cart-toast[hidden] {
    display: none;
}

.wephone-cart-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.wephone-cart-toast.is-restarting {
    animation: wephone-cart-toast-enter 0.28s ease-out;
}

@keyframes wephone-cart-toast-enter {
    from {
        opacity: 0;
        transform: translateX(42px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wephone-cart-toast__icon {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    background: #59a47b;
    font-weight: 700;
}

.wephone-cart-toast__message {
    flex: 1 1 auto;
    color: #222;
    font-weight: 600;
}

.wephone-cart-toast__close {
    flex: 0 0 auto;
    min-width: 44px;
    padding: 6px 10px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: #59a47b;
    cursor: pointer;
}

.wephone-cart-toast__close:hover,
.wephone-cart-toast__close:focus {
    background: #438762;
}

/* Tarjetas de subcategorías: acabado más redondeado en páginas de categoría. */
.subcategory-miniature .subcategory-image img {
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .wephone-cart-toast {
        top: 50%;
        right: auto;
        left: 50%;
        width: max-content;
        max-width: calc(100vw - 40px);
        padding: 12px 16px;
        border: 0;
        border-radius: 7px;
        color: #fff;
        background: rgba(35, 35, 35, 0.88);
        box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
        transform: translate(-50%, calc(-50% - 10px));
        pointer-events: none;
    }

    .wephone-cart-toast.is-visible {
        transform: translate(-50%, -50%);
        pointer-events: none;
    }

    .wephone-cart-toast__message {
        color: #fff;
        font-size: 13px;
        line-height: 1.35;
        text-align: center;
    }

    .wephone-cart-toast__icon {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
        background: #59a47b;
    }

    .wephone-cart-toast__close {
        display: none;
    }
}
