/* -----------------------------------------------
   Fast Favorites Star Button
   ----------------------------------------------- */
.aa-fast-favorite-button {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.aa-fast-favorite-button .fav-icon-filled,
.aa-fast-favorite-button .fav-icon-outline {
    width: 24px;
    height: 24px;
    color: #ff0000;
    transition: all 0.2s ease;
}

/* Default State: outline only */
.aa-fast-favorite-button:not(.active) .fav-icon-filled { display: none; }
.aa-fast-favorite-button:not(.active) .fav-icon-outline { display: block; }

/* Active State: filled only */
.aa-fast-favorite-button.active .fav-icon-outline { display: none; }
.aa-fast-favorite-button.active .fav-icon-filled  { display: block; }


/* -----------------------------------------------
   Auth Modal — backdrop
   ----------------------------------------------- */
.fav-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;                        /* top/right/bottom/left: 0 */
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    /* Scrollable so the modal is always reachable on tiny screens */
    overflow-y: auto;
    padding: 5vh 0;
}

/* -----------------------------------------------
   Auth Modal — content box
   ----------------------------------------------- */
.fav-modal-content {
    position: relative;
    margin: auto;                    /* centers in the scrollable backdrop */
    background: #fff;
    width: 800px;
    max-width: 92%;
    /* Hard ceiling prevents overflowing the viewport */
    max-height: 88dvh;
    max-height: 88vh;                /* fallback for older browsers */
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* -----------------------------------------------
   Sticky close × — always visible at the top
   ----------------------------------------------- */
.fav-modal-close-x {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.96);
    padding: 4px 8px;
    border-bottom: 1px solid #eee;
}

.fav-modal-close-x button {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    padding: 3px 8px;
    border-radius: 4px;
}

.fav-modal-close-x button:hover {
    background: #f0f0f0;
    color: #111;
}

/* -----------------------------------------------
   Modal Body layout
   ----------------------------------------------- */
.fav-modal-body {
    display: flex;
    flex-direction: row;
}

.fav-modal-img {
    width: 50%;
    background: #f0f0f0;
    flex-shrink: 0;
}

.fav-modal-img img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    display: block;
}

.fav-modal-brand {
    width: 50%;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.fav-modal-brand img {
    max-width: 180px;
    margin-bottom: 16px;
}

.fav-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* -----------------------------------------------
   Buttons inside modal
   ----------------------------------------------- */
.fav-btn {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    display: inline-block;
    cursor: pointer;
    flex: 1;
    min-width: 100px;
}

.fav-btn-primary {
    background: #1922fb;
    color: #fff;
    border: 1px solid #1922fb;
}

.fav-btn-secondary {
    background: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

.fav-btn-link {
    background: none;
    border: none;
    color: #666;
    margin-top: 12px;
    font-size: 0.9em;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    display: block;
}

/* -----------------------------------------------
   Mobile Responsiveness
   ----------------------------------------------- */
@media (max-width: 768px) {
    .fav-modal-body {
        flex-direction: column;
    }

    .fav-modal-img,
    .fav-modal-brand {
        width: 100%;
    }

    .fav-modal-img {
        max-height: 180px;
        overflow: hidden;
    }

    .fav-modal-brand {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    /* Hide decorative image on very small screens to save vertical space */
    .fav-modal-img {
        display: none;
    }

    .fav-modal-brand {
        padding: 18px 16px;
        width: 100%;
    }

    .fav-modal-actions {
        flex-direction: column;
    }

    .fav-btn {
        width: 100%;
        text-align: center;
        min-width: unset;
    }
}