/* =========================================================
   SPADE — PERSONALIZED SALE RECOMMENDATION
   ========================================================= */

.spade-sale-reco {
    position: fixed;
    right: 24px;
bottom: 24px;
left: auto;
    z-index: 9997;

    width: min(370px, calc(100vw - 48px));

    opacity: 0;
    visibility: hidden;

    transform: translateY(18px);

    transition:
        opacity 0.28s ease,
        visibility 0.28s ease,
        transform 0.28s ease;
}

.spade-sale-reco.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.spade-sale-reco__card {
    position: relative;

    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;

    min-height: 112px;

    padding: 12px 42px 12px 12px;

    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.97);

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.14);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    color: #111111;
    text-decoration: none;
}

.spade-sale-reco__image-wrap {
    position: relative;

    width: 92px;
    height: 92px;

    overflow: hidden;

    border-radius: 10px;

    background: #f5f5f5;
}

.spade-sale-reco__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.spade-sale-reco__content {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spade-sale-reco__eyebrow {
    margin: 0 0 6px;

    color: #e83d72;

    font-family: var(--spade-font-body, "Manrope", Arial, sans-serif);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.spade-sale-reco__name {
    margin: 0 0 7px;

    overflow: hidden;

    color: #111111;

    font-family: var(--spade-font-body, "Manrope", Arial, sans-serif);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.spade-sale-reco__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;

    font-family: var(--spade-font-body, "Manrope", Arial, sans-serif);
}

.spade-sale-reco__sale-price {
    color: #111111;

    font-size: 13px;
    font-weight: 700;
}

.spade-sale-reco__regular-price {
    color: #8a8a8a;

    font-size: 10px;
    font-weight: 500;

    text-decoration: line-through;
}

.spade-sale-reco__saving {
    margin-top: 5px;

    color: #c62828;

    font-family: var(--spade-font-body, "Manrope", Arial, sans-serif);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.06em;

    text-transform: uppercase;
}

.spade-sale-reco__arrow {
    position: absolute;
    right: 15px;
    bottom: 14px;

    color: #111111;

    font-size: 18px;
    font-weight: 300;

    transition: transform 0.2s ease;
}

.spade-sale-reco__card:hover .spade-sale-reco__arrow {
    transform: translateX(3px);
}

.spade-sale-reco__close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;

    width: 28px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0 !important;
    border-radius: 50% !important;

    background: rgba(17, 17, 17, 0.06) !important;
    color: #111111 !important;

    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;
}

.spade-sale-reco__close:hover {
    background: rgba(17, 17, 17, 0.12) !important;
}

@media (max-width: 700px) {

    .spade-sale-reco {
        right: 12px;
        bottom: 14px;
        left: 12px;

        width: auto;
    }

    .spade-sale-reco__card {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 12px;

        min-height: 96px;

        padding: 10px 38px 10px 10px;

        border-radius: 14px;
    }

    .spade-sale-reco__image-wrap {
        width: 76px;
        height: 76px;

        border-radius: 8px;
    }

    .spade-sale-reco__name {
        margin-bottom: 5px;

        font-size: 12px;
    }

    .spade-sale-reco__sale-price {
        font-size: 12px;
    }

    .spade-sale-reco__regular-price {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .spade-sale-reco {
        transition: none;
    }
}
