/* ==========================================================================
   Concrete Wishlist – Main Stylesheet
   ========================================================================== */

:root {
    --WL-success-color: #4caf50;
    --WL-bg-success-color: #e8f5e9;
}

/* ----- Heart button ----- */
.concrete-wishlist-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
}

.concrete-wishlist-button i {
    font-size: 20px;
    color: #555;
    transition: color 0.2s ease;
}

.concrete-wishlist-button:hover i,
.concrete-wishlist-button.in-wishlist i {
    color: #e74c3c;
}

/* ----- Popup notification ----- */
.concrete-wishlist-popup-message {
    position: fixed;

    top: 200px;
    inset-inline-start: auto;
    inset-inline-end: 24px;
    min-width: 320px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 0px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    z-index: 9999;
    animation: slideInRight 0.4s ease-out;
}

.concrete-wishlist-popup-message__icon {
    background: var(--WL-bg-success-color);
    color: var(--WL-success-color);
    border-radius: 50%;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.concrete-wishlist-popup-message__content {
    flex-grow: 1;
}

.concrete-wishlist-popup-text {
    font-size: 14px;
    font-weight: 500;
}

.concrete-wishlist-popup-text a {
    color: var(--WL-success-color);
    font-size: 13px;
    font-weight: 600;
}

.concrete-wishlist-popup-close {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
}

.concrete-wishlist-popup-message__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--WL-success-color);
    width: 100%;
    border-radius: 0 0 0 12px;
    animation: shrinkWidth 3s linear forwards;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

@keyframes shrinkWidth {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* ----- Guest "My Wishlist" cart link ----- */
.concrete-wishlist-guest-link-wrapper {
    margin-bottom: 16px;
}

.concrete-wishlist-guest-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 600;
    color: #555;
}

.concrete-wishlist-guest-link:hover {
    color: #e74c3c;
}

/* ----- Wishlist grid ----- */
#wishlist-content .products {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ----- Empty wishlist ----- */
.wishlist-empty {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 16px;
}

.wishlist-empty .img-container svg {
    width: 105px;
}

.wishlist-empty h5 {
    margin: 0;
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #232221;
}

.wishlist-empty p {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    color: #777675;
    max-width: 298px;
    margin: 0;
    text-align: center !important;
}

@media(max-width: 767.9px) {
    .wishlist-empty .img-container svg {
        width: 75px;
    }

    .wishlist-empty {
        gap: 12px;
    }

    .wishlist-empty h5 {
        font-size: 18px;
        line-height: 20px;
    }
}

/* ----- Login card (guest upsell) ----- */
.concrete-login-card {
    text-align: center;
    padding: 24px;
    border: 1px solid #eee;
    border-radius: 6px;
}

.concrete-login-card .title-card {
    font-size: 16px;
    margin: 12px 0 6px;
}

.concrete-login-card .action-card {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    background: #333;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}

/* ----- Pagination ----- */
.wishist.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    gap: 6px;
}