/* ArtGallery guest Follow system — v1.0.72 */

body.ag-listivo-artist-profile .ag-hero-profile-bar .ag-hero-actions {
    gap: 10px;
}

body.ag-listivo-artist-profile .ag-hero-profile-bar .ag-follow-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 132px;
    min-height: 50px;
    padding: 11px 18px;
    border: 1px solid #172431;
    border-radius: 999px;
    background: #fff;
    color: #172431;
    box-shadow: 0 7px 18px rgba(23, 36, 49, 0.07);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .01em;
    white-space: nowrap;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

body.ag-listivo-artist-profile .ag-hero-profile-bar .ag-follow-button:hover,
body.ag-listivo-artist-profile .ag-hero-profile-bar .ag-follow-button:focus-visible {
    transform: none;
    border-color: #f5b400;
    background: #fff9e8;
    color: #172431;
    box-shadow: 0 10px 22px rgba(23, 36, 49, 0.09);
}

body.ag-listivo-artist-profile .ag-hero-profile-bar .ag-follow-button.is-following {
    border-color: #f5b400;
    background: #fff8df;
    color: #172431;
}


.ag-follow-button__label--mobile {
    display: none;
}

.ag-follow-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.ag-follow-button__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (min-width: 1025px) {
    body.ag-listivo-artist-profile .ag-hero-profile-bar {
        width: min(1180px, calc(100% - 40px));
    }
}

@media (max-width: 1200px) and (min-width: 1025px) {
    body.ag-listivo-artist-profile .ag-hero-profile-bar {
        flex-wrap: wrap;
        border-radius: 24px;
    }

    body.ag-listivo-artist-profile .ag-hero-profile-bar .ag-hero-actions {
        flex: 1 1 100%;
        padding: 10px 0 0;
        border-top: 1px solid rgba(23, 36, 49, .09);
        border-left: 0;
    }
}

@media (max-width: 1024px) {
    body.ag-listivo-artist-profile .ag-hero-profile-bar .ag-hero-actions {
        gap: 10px;
    }

    body.ag-listivo-artist-profile .ag-hero-profile-bar .ag-follow-button {
        flex: 0 0 auto;
    }

    body.ag-listivo-artist-profile .ag-hero-profile-bar .ag-hero-button--artworks {
        flex: 1 1 auto;
        width: auto;
    }
}

@media (max-width: 640px) {
    body.ag-listivo-artist-profile .ag-hero-profile-bar .ag-hero-actions {
        display: grid;
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr);
        width: 100%;
    }

    body.ag-listivo-artist-profile .ag-hero-profile-bar .ag-follow-button,
    body.ag-listivo-artist-profile .ag-hero-profile-bar .ag-hero-button--artworks {
        width: 100%;
        min-width: 0;
        padding-inline: 12px;
    }

    .ag-follow-button__label--desktop {
        display: none;
    }

    .ag-follow-button__label--mobile {
        display: inline;
    }
}

.ag-follow-toast {
    position: fixed;
    z-index: 1000002;
    left: 50%;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: min(92vw, 560px);
    padding: 12px 16px;
    border: 1px solid rgba(23, 36, 49, .10);
    border-radius: 999px;
    background: #172431;
    color: #fff;
    box-shadow: 0 18px 48px rgba(8, 13, 18, .22);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.ag-follow-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.ag-follow-toast__action {
    border: 0;
    background: transparent;
    color: #f5b400;
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.ag-follow-email-modal[hidden] {
    display: none !important;
}

.ag-follow-email-modal {
    position: fixed;
    inset: 0;
    z-index: 1000001;
    display: grid;
    place-items: center;
    padding: 22px;
    opacity: 0;
    transition: opacity 180ms ease;
}

.ag-follow-email-modal.is-open {
    opacity: 1;
}

.ag-follow-email-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 13, 18, .68);
    backdrop-filter: blur(4px);
}

.ag-follow-email-modal__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(360px, 1.1fr);
    width: min(820px, 96vw);
    max-height: 92vh;
    overflow: hidden;
    border: 1px solid rgba(23, 36, 49, .09);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}

.ag-follow-email-modal__dialog:not(:has(.ag-follow-email-modal__visual)) {
    grid-template-columns: minmax(0, 1fr);
    width: min(520px, 94vw);
}

.ag-follow-email-modal__visual {
    min-height: 390px;
    background: #eef1f3;
}

.ag-follow-email-modal__visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
}

.ag-follow-email-modal__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 44px 42px 36px;
}

.ag-follow-email-modal__eyebrow {
    margin-bottom: 9px;
    color: #a57800;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
}

.ag-follow-email-modal__content h2 {
    margin: 0 42px 12px 0;
    color: #172431;
    font-size: clamp(21px, 2.2vw, 28px);
    line-height: 1.08;
    letter-spacing: -.025em;
    white-space: nowrap;
}


.ag-follow-email-modal__content p {
    margin: 0 0 22px;
    color: #52606c;
    font-size: 14px;
    line-height: 1.55;
}

.ag-follow-email-modal__content p strong {
    color: #172431;
}

.ag-follow-email-modal__close {
    position: absolute;
    z-index: 3;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(23, 36, 49, .08);
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: #172431;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.ag-follow-email-modal__form label {
    display: block;
    margin-bottom: 7px;
    color: #172431;
    font-size: 12px;
    font-weight: 800;
}

.ag-follow-email-modal__form input[type="email"] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #cfd6dc;
    border-radius: 9px;
    background: #fff;
    color: #172431;
    outline: none;
    font: inherit;
    font-size: 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ag-follow-email-modal__form input[type="email"]:focus {
    border-color: #f5b400;
    box-shadow: 0 0 0 3px rgba(245, 180, 0, .15);
}

.ag-follow-email-modal__hp {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.ag-follow-email-modal__error {
    margin-top: 8px;
    color: #b42318;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.ag-follow-email-modal__submit,
.ag-follow-email-modal__later {
    width: 100%;
    min-height: 46px;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.ag-follow-email-modal__submit {
    margin-top: 14px;
    border: 1px solid #f5b400;
    background: linear-gradient(135deg, #f5b400 0%, #efad00 100%);
    color: #151a1f;
    box-shadow: 0 10px 24px rgba(245, 180, 0, .22);
}

.ag-follow-email-modal__submit:disabled {
    opacity: .65;
    cursor: wait;
}

.ag-follow-email-modal__later {
    margin-top: 5px;
    border: 0;
    background: transparent;
    color: #65717b;
}

.ag-follow-email-modal__content small {
    display: block;
    margin-top: 14px;
    color: #4a5560;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

body.ag-follow-email-modal-open {
    overflow: hidden !important;
}

.ag-following-page {
    width: min(1180px, calc(100% - 36px));
    margin: 44px auto 70px;
    color: #172431;
}

.ag-following-page__header {
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e8ebee;
}

.ag-following-page__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #a57800;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
}

.ag-following-page__header h1 {
    margin: 0;
    color: #172431;
    font-size: clamp(26px, 4.2vw, 44px);
    line-height: 1;
    letter-spacing: -.035em;
}

.ag-following-page__header p {
    margin: 12px 0 0;
    color: #68747d;
    font-size: 14px;
}

.ag-following-email-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 26px;
    padding: 17px 18px 17px 20px;
    border: 1px solid rgba(245, 180, 0, .30);
    border-radius: 14px;
    background: #fffaf0;
}

.ag-following-email-banner[hidden] {
    display: none !important;
}

.ag-following-email-banner div {
    display: grid;
    gap: 4px;
}

.ag-following-email-banner strong {
    color: #172431;
    font-size: 14px;
}

.ag-following-email-banner span {
    color: #65717b;
    font-size: 12.5px;
    line-height: 1.45;
}

.ag-following-email-banner button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 17px;
    border: 1px solid #172431;
    border-radius: 999px;
    background: #172431;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.ag-following-page__status {
    padding: 32px 0;
    color: #727d86;
    font-size: 14px;
}

.ag-following-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ag-following-card {
    overflow: hidden;
    border: 1px solid #e3e7ea;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(23, 36, 49, .06);
    transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.ag-following-card:hover {
    box-shadow: 0 14px 34px rgba(23, 36, 49, .09);
}

.ag-following-card.is-removing {
    opacity: 0;
    transform: scale(.98);
}

.ag-following-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f3f4;
}

.ag-following-card__image img,
.ag-following-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.ag-following-card__image img {
    object-fit: cover;
    transition: transform 260ms ease;
}

.ag-following-card:hover .ag-following-card__image img {
    transform: scale(1.025);
}

.ag-following-card__body {
    padding: 18px;
}

.ag-following-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 20px;
    color: #77828b;
    font-size: 11.5px;
    font-weight: 700;
}

.ag-following-card__meta img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.ag-following-card h3 {
    margin: 8px 0 18px;
    font-size: 22px;
    line-height: 1.14;
    letter-spacing: -.02em;
}

.ag-following-card h3 a {
    color: #172431;
    text-decoration: none;
}

.ag-following-card__actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ag-following-card__profile,
.ag-following-card__unfollow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.ag-following-card__profile {
    flex: 1 1 auto;
    border: 1px solid #172431;
    background: #172431;
    color: #fff;
}

.ag-following-card__unfollow {
    flex: 0 0 auto;
    gap: 5px;
    border: 1px solid #e0b33d;
    background: #fff8df;
    color: #172431;
    font-family: inherit;
    cursor: pointer;
}

@media (max-width: 900px) {
    .ag-following-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ag-follow-email-modal__dialog {
        grid-template-columns: 1fr;
        width: min(520px, 96vw);
        max-height: 94vh;
        overflow-y: auto;
    }

    .ag-follow-email-modal__visual {
        min-height: 180px;
        max-height: 220px;
    }

    .ag-follow-email-modal__visual img {
        min-height: 180px;
        max-height: 220px;
    }

    .ag-follow-email-modal__content {
        padding: 28px 22px 24px;
    }

    .ag-following-email-banner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .ag-following-page {
        width: min(100% - 24px, 1180px);
        margin-top: 28px;
    }

    .ag-following-grid {
        grid-template-columns: 1fr;
    }

    .ag-following-card__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ag-follow-toast {
        bottom: 16px;
        border-radius: 14px;
    }
}

/* v1.0.73 refinements */
.ag-follow-toast {
    top: 96px;
    right: 24px;
    left: auto;
    bottom: auto;
    width: min(380px, calc(100vw - 28px));
    max-width: min(380px, calc(100vw - 28px));
    padding: 16px 18px 16px 14px;
    border: 1px solid rgba(23, 36, 49, .10);
    border-radius: 18px;
    background: #fff;
    color: #172431;
    box-shadow: 0 18px 48px rgba(8, 13, 18, .16);
    transform: translate(0, -8px);
    align-items: flex-start;
}
.ag-follow-toast.is-visible {
    transform: translate(0, 0);
}
.ag-follow-toast__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: #172431;
    color: #f5b400;
    font-size: 15px;
    font-weight: 900;
}
.ag-follow-toast__content {
    display: grid;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
}
.ag-follow-toast__message {
    color: #172431;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}
.ag-follow-toast__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a57800;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}
.ag-follow-toast__close {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-left: 4px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #172431;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.ag-floating-favorites {
    position: fixed;
    z-index: 1000000;
    left: 14px;
    top: 48%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px 12px 8px 10px;
    border: 1px solid rgba(245, 180, 0, .78);
    border-radius: 999px;
    background: linear-gradient(180deg, #0f1c28 0%, #172431 100%);
    box-shadow: 0 14px 30px rgba(9, 15, 22, .22);
    color: #fff;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform-origin: left center;
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.ag-floating-favorites.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%);
}
.ag-floating-favorites:hover,
.ag-floating-favorites:focus-visible {
    box-shadow: 0 18px 34px rgba(9, 15, 22, .28);
}
.ag-floating-favorites__heart {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: rgba(245, 180, 0, .14);
    color: #f5b400;
    font-size: 16px;
    line-height: 1;
}
.ag-floating-favorites__label {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}
.ag-floating-favorites__count {
    display: grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 999px;
    background: #f5b400;
    color: #172431;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(245, 180, 0, .3);
}

@media (max-width: 767px) {
    .ag-follow-toast {
        top: 78px;
        right: 12px;
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        border-radius: 16px;
    }
    .ag-floating-favorites {
        left: 10px;
        top: auto;
        bottom: 120px;
        transform: none;
        min-height: 48px;
        padding: 7px 10px 7px 8px;
    }
    .ag-floating-favorites.is-visible {
        transform: none;
    }
    .ag-floating-favorites__label {
        font-size: 13px;
    }
}

@media (max-width: 720px) {
    .ag-follow-email-modal__content h2 {
        white-space: normal;
    }
}

/* v1.0.84 - follow email validation readability / GTranslate safety */
.ag-follow-email-modal__error {
    display: block;
    width: 100%;
    max-width: none;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    word-break: normal;
    overflow-wrap: anywhere;
}
.ag-follow-email-modal__error > span {
    display: block;
    width: 100%;
    max-width: none;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
}

/* v1.0.85 - validation message visibility is controlled by CSS classes, not [hidden].
   This prevents translation engines from exposing both messages on modal open. */
.ag-follow-email-modal__error {
    display: none !important;
    width: 100%;
    max-width: none;
    margin-top: 8px;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    color: #b42318;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.ag-follow-email-modal__error.is-visible {
    display: block !important;
}

.ag-follow-email-modal__error-message {
    display: none !important;
    width: 100%;
    max-width: none;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    overflow-wrap: anywhere;
}

.ag-follow-email-modal__error-message.is-active {
    display: block !important;
}

/* ============================================================
   ArtGallery Favorites Drawer + Artwork Favorites — v1.0.87
   ============================================================ */
.ag-favorites-floating-shell {
    position: fixed;
    z-index: 1000000;
    left: 14px;
    top: 48%;
    display: none;
    align-items: center;
    transform: translateY(-50%);
    pointer-events: none;
}

.ag-favorites-floating-shell.is-visible {
    display: flex;
}

.ag-favorites-trigger {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid rgba(245, 180, 0, .9);
    border-radius: 50%;
    background: linear-gradient(180deg, #0f1c28 0%, #172431 100%);
    color: #f5b400;
    box-shadow: 0 14px 32px rgba(9, 15, 22, .24);
    cursor: pointer;
    pointer-events: auto;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.ag-favorites-trigger:hover,
.ag-favorites-trigger:focus-visible,
.ag-favorites-floating-shell.is-open .ag-favorites-trigger {
    transform: translateX(2px) scale(1.035);
    box-shadow: 0 18px 38px rgba(9, 15, 22, .30);
    border-color: #f5b400;
    outline: none;
}

.ag-favorites-trigger__heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    line-height: 1;
}

.ag-favorites-trigger__heart-icon {
    display: block;
    width: 22px;
    height: 22px;
    fill: rgba(245, 180, 0, .08);
    stroke: #f5b400;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 2px rgba(245, 180, 0, .18));
}

.ag-favorites-trigger:hover .ag-favorites-trigger__heart-icon,
.ag-favorites-trigger:focus-visible .ag-favorites-trigger__heart-icon,
.ag-favorites-floating-shell.is-open .ag-favorites-trigger__heart-icon {
    fill: rgba(245, 180, 0, .16);
    stroke-width: 2.3;
}

.ag-favorites-trigger__count {
    position: absolute;
    top: -7px;
    right: -7px;
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #f5b400;
    color: #172431;
    box-shadow: 0 7px 16px rgba(245, 180, 0, .28);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.ag-favorites-drawer {
    position: absolute;
    left: 60px;
    top: 50%;
    width: 330px;
    padding: 18px;
    border: 1px solid rgba(23, 36, 49, .10);
    border-radius: 20px;
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 26px 70px rgba(8, 13, 18, .20);
    opacity: 0;
    visibility: hidden;
    transform: translate(-10px, -50%);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.ag-favorites-floating-shell.is-open .ag-favorites-drawer {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
    pointer-events: auto;
}

.ag-favorites-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ag-favorites-drawer__header strong {
    color: #172431;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.ag-favorites-drawer__close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #596672;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.ag-favorites-drawer__close:hover {
    background: #f4f5f6;
    color: #172431;
}

.ag-favorites-drawer__row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto 16px;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    margin-top: 8px;
    padding: 10px 11px;
    border: 1px solid #edf0f2;
    border-radius: 14px;
    background: #fff;
    color: #172431;
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.ag-favorites-drawer__row:hover {
    border-color: rgba(245, 180, 0, .38);
    background: #fffaf0;
    transform: translateX(2px);
}

.ag-favorites-drawer__row-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff6d6;
    color: #9d7400;
    font-size: 17px;
    font-weight: 800;
}

.ag-favorites-drawer__row-main {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.ag-favorites-drawer__row-main > strong {
    color: #172431;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.25;
}

.ag-favorites-drawer__row-count {
    display: grid;
    place-items: center;
    min-width: 25px;
    height: 25px;
    padding: 0 6px;
    border-radius: 999px;
    background: #f5b400;
    color: #172431;
    font-size: 11px;
    font-weight: 900;
}

.ag-favorites-drawer__chevron {
    color: #7d8891;
    font-size: 23px;
    line-height: 1;
}

.ag-favorites-drawer__avatars {
    display: flex;
    align-items: center;
    min-height: 24px;
}

/* Favorite Artists drawer row: center label when count is zero,
   restore two-line layout with avatars as soon as artists exist. */
.ag-favorites-drawer__row[data-ag-drawer-following-row].is-empty .ag-favorites-drawer__row-main {
    align-self: center;
    gap: 0;
}

.ag-favorites-drawer__row[data-ag-drawer-following-row].is-empty .ag-favorites-drawer__avatars {
    display: none;
    min-height: 0;
}

.ag-favorites-drawer__row[data-ag-drawer-following-row]:not(.is-empty) .ag-favorites-drawer__row-main {
    align-self: stretch;
    align-content: center;
}

.ag-favorites-drawer__row[data-ag-drawer-following-row]:not(.is-empty) .ag-favorites-drawer__avatars {
    display: flex;
}

.ag-favorites-drawer__avatar,
.ag-favorites-drawer__avatar-more,
.ag-favorites-drawer__avatars-loading {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-left: -6px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #eef1f3;
}

.ag-favorites-drawer__avatar:first-child,
.ag-favorites-drawer__avatars-loading:first-child {
    margin-left: 0;
}

.ag-favorites-drawer__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ag-favorites-drawer__avatar-more {
    background: #172431;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
}

.ag-favorites-drawer__avatars-loading {
    margin-left: 0;
    background: linear-gradient(110deg, #eceff1 20%, #f7f8f9 40%, #eceff1 60%);
    background-size: 200% 100%;
    animation: agFavoritesShimmer 1.1s linear infinite;
}

@keyframes agFavoritesShimmer {
    to { background-position-x: -200%; }
}

.ag-favorites-drawer__view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    margin-top: 14px;
    border: 1px solid #f5b400;
    border-radius: 999px;
    background: linear-gradient(135deg, #f5b400 0%, #efad00 100%);
    color: #172431;
    box-shadow: 0 10px 24px rgba(245, 180, 0, .20);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

/* Artwork-card heart */
.ag-artwork-favorite-host {
    position: relative !important;
}

.ag-artwork-favorite-button {
    position: absolute;
    z-index: 30;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(23, 36, 49, .12);
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #172431;
    box-shadow: 0 8px 22px rgba(8, 13, 18, .12);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}

.ag-artwork-favorite-button:hover,
.ag-artwork-favorite-button:focus-visible {
    transform: scale(1.06);
    border-color: #f5b400;
    outline: none;
}

.ag-artwork-favorite-button svg,
.ag-favorite-artwork-card__remove svg {
    width: 19px;
    height: 19px;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
}

.ag-artwork-favorite-button.is-favorite {
    border-color: #f5b400;
    background: #172431;
    color: #f5b400;
}

.ag-artwork-favorite-button.is-favorite svg,
.ag-favorite-artwork-card__remove.is-favorite svg {
    fill: currentColor;
}

/* Favorites page tabs */
.ag-favorites-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 28px;
    padding: 5px;
    border: 1px solid #e4e8eb;
    border-radius: 16px;
    background: #f7f8f9;
    width: fit-content;
    max-width: 100%;
}

.ag-favorites-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #64717c;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.ag-favorites-tab strong {
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e7eaed;
    color: #596672;
    font-size: 10.5px;
    font-weight: 900;
}

.ag-favorites-tab.is-active {
    background: #fff;
    color: #172431;
    box-shadow: 0 5px 16px rgba(23, 36, 49, .08);
}

.ag-favorites-tab.is-active strong {
    background: #f5b400;
    color: #172431;
}

.ag-favorites-panel[hidden] {
    display: none !important;
}

.ag-favorite-artworks-status {
    padding: 28px 0;
    color: #727d86;
    font-size: 14px;
}

.ag-favorite-artworks-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ag-favorite-artwork-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e3e7ea;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(23, 36, 49, .06);
    transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease;
}

.ag-favorite-artwork-card:hover {
    box-shadow: 0 14px 34px rgba(23, 36, 49, .09);
}

.ag-favorite-artwork-card.is-removing {
    opacity: 0;
    transform: scale(.98);
}

.ag-favorite-artwork-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f3f4;
}

.ag-favorite-artwork-card__image img,
.ag-favorite-artwork-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.ag-favorite-artwork-card__image img {
    object-fit: cover;
}

.ag-favorite-artwork-card__remove {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #f5b400;
    border-radius: 50%;
    background: #172431;
    color: #f5b400;
    box-shadow: 0 8px 22px rgba(8, 13, 18, .14);
    cursor: pointer;
}

.ag-favorite-artwork-card__body {
    padding: 17px 18px 18px;
}

.ag-favorite-artwork-card__artist {
    color: #9a7200;
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none;
}

.ag-favorite-artwork-card h3 {
    margin: 7px 0 16px;
    font-size: 19px;
    line-height: 1.25;
}

.ag-favorite-artwork-card h3 a {
    color: #172431;
    text-decoration: none;
}

.ag-favorite-artwork-card__view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    border-radius: 999px;
    background: #172431;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.ag-favorite-artworks-more {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    min-height: 44px;
    margin: 28px auto 0;
    padding: 0 22px;
    border: 1px solid #172431;
    border-radius: 999px;
    background: #fff;
    color: #172431;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.ag-favorite-artworks-more[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .ag-favorite-artworks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ag-favorites-floating-shell {
        left: 10px;
        top: auto;
        bottom: 122px;
        transform: none;
    }

    .ag-favorites-trigger {
        width: 46px;
        height: 46px;
    }

    .ag-favorites-drawer {
        position: fixed;
        left: 12px;
        right: 12px;
        top: auto;
        bottom: 178px;
        width: auto;
        max-width: 360px;
        transform: translateY(10px);
    }

    .ag-favorites-floating-shell.is-open .ag-favorites-drawer {
        transform: translateY(0);
    }

    .ag-favorites-tabs {
        width: 100%;
    }

    .ag-favorites-tab {
        flex: 1 1 0;
        min-width: 0;
        padding-inline: 10px;
    }
}

@media (max-width: 560px) {
    .ag-favorite-artworks-grid {
        grid-template-columns: 1fr;
    }
}


/* v1.0.97 — Favorite Artworks now render as Card Meta/Listivo V4 cards. */
.ag-favorite-artworks-grid .agcm-favorite-listivo-card {
    min-width: 0;
    opacity: 1;
    transition: opacity .18s ease, transform .18s ease;
}
.ag-favorite-artworks-grid .agcm-favorite-listivo-card.is-removing {
    opacity: 0;
    transform: scale(.985);
}
.agcm-favorite-listivo-card .agcm-favorite-quick-trigger {
    display: flex;
    flex: 0 0 64px;
    min-width: 0;
    margin: 0;
    padding: 0;
    align-items: stretch;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.agcm-favorite-listivo-card .agcm-favorite-card-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #f4f1ea;
}

/* Minimal fallback only when ArtGallery Card Meta is disabled. */
body:not(.agcm-card-meta-active) .agcm-favorite-listivo-card {
    overflow: hidden;
    border: 1px solid #e4e9ed;
    border-radius: 16px;
    background: #fff;
}
body:not(.agcm-card-meta-active) .agcm-favorite-listivo-card .listivo-listing-card-v4__gallery {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #f6f7f8;
}
body:not(.agcm-card-meta-active) .agcm-favorite-listivo-card .agcm-favorite-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}
body:not(.agcm-card-meta-active) .agcm-favorite-listivo-card .agcm-favorite-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}
body:not(.agcm-card-meta-active) .agcm-favorite-listivo-card .agcm-favorite-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
body:not(.agcm-card-meta-active) .agcm-favorite-listivo-card .listivo-listing-card-v4__content {
    padding: 16px;
}
body:not(.agcm-card-meta-active) .agcm-favorite-listivo-card .listivo-listing-card-v4__name {
    color: #172431;
    font-weight: 700;
    text-decoration: none;
}


/* v1.0.99 — Card Meta owns Favorite Artwork card visuals.
   Keep this plugin limited to the Favorites grid/removal lifecycle. */
body.agcm-card-meta-active .ag-favorite-artworks-grid .agcm-favorite-listivo-card {
    width: 100%;
    min-width: 0;
}
