/* ==========================================================================================================
                                            UNIO FAVORITES (HEART ICON)
========================================================================================================== */

.unio-favorite-btn{
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fefefe;
    color: #000000;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    transition: box-shadow .2s ease, transform .15s ease;
}

.unio-favorite-btn svg{
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    transition: fill .2s ease;
}

.unio-favorite-btn:hover{
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
}

.unio-favorite-btn:hover svg {
    stroke-width: 2;
}

.unio-favorite-btn:active svg{
    transform: scale(.88);
}

.unio-favorite-btn.is-active svg{
    fill: #001394;
}

.unio-favorite-btn:focus-visible{
    outline: 2px solid #001394;
    outline-offset: 2px;
}

.unio-favorites-tab-btn:focus,
.unio-favorites-tab-btn:visited{
    color: #ffffff;
}

.unio-favorite-btn.is-loading{
    pointer-events: none;
    opacity: .6;
}

/* -------------------------------------------------------
   OVERRIDE ΓΙΑ ΤΟ HELLO ELEMENTOR THEME
   Το theme έχει global button:hover / button:focus rule
   (background-color: #c36; color:#fff;). Το selector παρακάτω
   έχει μεγαλύτερη specificity ώστε να το νικάει, ΧΩΡΙΣ να
   επηρεάζει κανένα άλλο button στο site.
------------------------------------------------------- */

button.unio-favorite-btn:hover,
button.unio-favorite-btn:focus{
    background-color: #fefefe !important;
    color: #000000 !important;
    text-decoration: none !important;
}

/* -------------------------------------------------------
   CARD VARIANT — overlay πάνω σε εικόνα (grid/slider/listing)
   Απόλυτη θέση, πάνω-δεξιά μέσα στην εικόνα.
------------------------------------------------------- */

.unio-favorite-btn--card{
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

/* Θέσεις που φιλοξενούν το card variant — χρειάζονται position:relative */
.unio-card-image-wrap,
.unio-business-cover,
.unio-business-project-thumb-wrap{
    position: relative;
}

/* -------------------------------------------------------
   INLINE VARIANT — μεμονωμένη σελίδα προϊόντος/business/project
   Στατική θέση (όχι absolute) — η ίδια κυκλική εμφάνιση, αλλά
   χωρίς δικό μας positioning, ώστε να τοποθετείται ελεύθερα
   μέσα από το Elementor (π.χ. Advanced -> Position, πάνω στην
   κύρια εικόνα του προϊόντος).
------------------------------------------------------- */

.unio-favorite-btn--inline{
    position: static;
}


/* ==========================================================================================================
                            FAVORITES — GUEST MODAL
========================================================================================================== */

.unio-modal-overlay{
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, .55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.unio-modal-overlay.is-open{
    display: flex;
}

.unio-modal-box{
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 32px 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.unio-modal-close{
    all: unset;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #707070;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.unio-modal-close:hover{
    background: #f7f6f5;
}

.unio-modal-icon{
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f7f6f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #000000;
}

.unio-modal-icon svg{
    width: 32px;
    height: 32px;
}

.unio-modal-box h3{
    font-family: "TikTok Sans", sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #000000;
    margin: 0 0 12px;
    line-height: 1.3;
}

.unio-modal-box p{
    font-size: .925rem;
    color: #707070;
    line-height: 1.55;
    margin: 0 0 26px;
}

.unio-modal-btn-primary{
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #000000;
    color: #ffffff;
    border-radius: 8px;
    padding: 14px;
    font-size: .925rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 22px;
}

.unio-modal-btn-primary:hover{
    background: #001a52;
}

.unio-modal-divider{
    position: relative;
    text-align: center;
    margin-bottom: 18px;
}

.unio-modal-divider::before{
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e5e5;
}

.unio-modal-divider span{
    position: relative;
    background: #ffffff;
    padding: 0 12px;
    font-size: .8rem;
    color: #707070;
}

.unio-modal-btn-secondary{
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    color: #000000;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    padding: 13px;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 12px;
}

.unio-modal-btn-secondary:last-child{
    margin-bottom: 0;
}

.unio-modal-btn-secondary:hover{
    border-color: #000000;
}


/* ==========================================================================================================
                                    RESPONSIVE (1024 / 768 / 680)
========================================================================================================== */

@media (max-width: 680px){

    .unio-favorite-btn--card{
        width: 30px;
        height: 30px;
        top: 8px;
        right: 8px;
    }

    .unio-favorite-btn--card svg{
        width: 15px;
        height: 15px;
    }

}

@media (max-width: 768px){

    .unio-modal-box{
        padding: 32px 24px 24px;
    }

}

@media (max-width: 680px){

    .unio-modal-overlay{
        padding: 16px;
    }

    .unio-modal-box{
        padding: 28px 20px 20px;
        border-radius: 12px;
    }

    .unio-modal-icon{
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }

    .unio-modal-icon svg{
        width: 26px;
        height: 26px;
    }

    .unio-modal-box h3{
        font-size: 1.15rem;
    }

    .unio-modal-box p{
        font-size: .875rem;
        margin-bottom: 20px;
    }

    .unio-modal-btn-primary,
    .unio-modal-btn-secondary{
        padding: 12px;
        font-size: .875rem;
    }

}


/* ==========================================================================================================
   OVERRIDE ΓΙΑ ΤΟ MEMBERPRESS .mepr-account-container
   Το MemberPress έχει κανόνα ".mepr-account-container button {...}"
   με μεγαλύτερη specificity (class+element) από το απλό
   ".unio-favorite-btn" (μόνο class). Αυτό το κάνει να νικάει.
========================================================================================================== */

.mepr-account-container button.unio-favorite-btn{
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fefefe;
    color: #000000;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    border: none;
    padding: 0;
}

.mepr-account-container button.unio-favorite-btn svg{
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.mepr-account-container button.unio-favorite-btn.is-active svg{
    fill: #001394;
}

.mepr-account-container button.unio-favorite-btn--card{
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}