/* ArtGallery Listivo Editor Tools v1.0.17 */

/* Artwork facts inserted into a listing description. Attribute selectors are
   intentional: the presentation still works if an editor strips CSS classes. */
a[href="#ag-artwork-info-unique"],
a[href="#ag-artwork-info-coa"] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #646464;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color .18s ease, text-decoration-color .18s ease;
}

a[href="#ag-artwork-info-unique"]:hover,
a[href="#ag-artwork-info-coa"]:hover,
a[href="#ag-artwork-info-unique"]:focus,
a[href="#ag-artwork-info-coa"]:focus {
    color: #222;
    /* Listivo/Fioxen draws its own animated hover line. Hide only our static
       underline while hovering so the theme line is the single visible line. */
    text-decoration-color: transparent !important;
}

.ag-artwork-fact-icon {
    width: 18px;
    min-width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    color: #777;
    font-size: 0;
    line-height: 1;
    text-decoration: none !important;
}

.ag-artwork-fact-icon::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.ag-artwork-fact-icon--unique::before {
    -webkit-mask-image: url("unique-work.svg");
    mask-image: url("unique-work.svg");
}

.ag-artwork-fact-icon--coa::before {
    -webkit-mask-image: url("certificate-authenticity.svg");
    mask-image: url("certificate-authenticity.svg");
}

/* Frontend information modal */
.ag-artwork-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    font-family: inherit;
}

.ag-artwork-modal.is-open { display: flex; }

.ag-artwork-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 18, .55);
    backdrop-filter: blur(2px);
}

.ag-artwork-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(470px, 100%);
    max-height: min(680px, calc(100vh - 44px));
    overflow: auto;
    padding: 30px 28px 24px;
    border: 1px solid rgba(20, 20, 20, .09);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .20);
    color: #202020;
    outline: none;
}

.ag-artwork-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6e6e6e;
    font: 300 27px/32px Arial, sans-serif;
    cursor: pointer;
}

.ag-artwork-modal__close:hover { background: #f5f5f5; color: #111; }

.ag-artwork-modal__eyebrow {
    margin: 0 44px 8px 0;
    color: #9a6b13;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ag-artwork-modal__title {
    margin: 0 42px 18px 0;
    color: #111;
    font-size: 24px;
    line-height: 1.18;
    font-weight: 650;
}

.ag-artwork-modal__panel p {
    margin: 0 0 14px;
    color: #333;
    font-size: 14px;
    line-height: 1.62;
}

.ag-artwork-modal__panel p.ag-artwork-modal__note {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #ece9e3;
    color: #777;
    font-size: 12px;
    line-height: 1.55;
}

.ag-artwork-modal__ok {
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    padding: 10px 18px;
    border: 0;
    border-radius: 22px;
    background: #DB8E01;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .18s ease, transform .18s ease;
}

.ag-artwork-modal__ok:hover { filter: brightness(.95); }
.ag-artwork-modal__ok:active { transform: translateY(1px); }
body.ag-artwork-modal-open { overflow: hidden; }

/* TinyMCE-side Artwork Info picker */
.ag-editor-info-picker {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: inherit;
}

.ag-editor-info-picker__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20,20,20,.46);
}

.ag-editor-info-picker__card {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    padding: 26px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0,0,0,.20);
    color: #222;
}

.ag-editor-info-picker__close {
    position: absolute;
    top: 9px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #777;
    font-size: 26px;
    line-height: 30px;
    cursor: pointer;
}

.ag-editor-info-picker__card h3 {
    margin: 0 38px 7px 0;
    font-size: 20px;
    line-height: 1.25;
}

.ag-editor-info-picker__lead {
    margin: 0 0 18px;
    color: #747474;
    font-size: 13px;
    line-height: 1.5;
}

.ag-editor-info-picker__option {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 0 10px;
    padding: 13px 14px;
    border: 1px solid #e7e3dc;
    border-radius: 10px;
    background: #fcfbf8;
    cursor: pointer;
}

.ag-editor-info-picker__option input {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: #DB8E01;
}

.ag-editor-info-picker__option strong {
    display: block;
    color: #282828;
    font-size: 13px;
    line-height: 1.4;
}

.ag-editor-info-picker__error {
    min-height: 18px;
    margin: 4px 0 5px;
    color: #b42318;
    font-size: 12px;
}

.ag-editor-info-picker__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.ag-editor-info-picker__actions button {
    min-height: 42px;
    border-radius: 21px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.ag-editor-info-picker__cancel {
    border: 1px solid #d8d3ca;
    background: #fff;
    color: #333;
}

.ag-editor-info-picker__insert {
    border: 1px solid #DB8E01;
    background: #DB8E01;
    color: #fff;
}

@media (max-width: 600px) {
    .ag-artwork-modal { padding: 14px; }
    .ag-artwork-modal__dialog {
        max-height: calc(100vh - 28px);
        padding: 26px 20px 20px;
        border-radius: 12px;
    }
    .ag-artwork-modal__title { font-size: 21px; }
    .ag-editor-info-picker { padding: 14px; }
    .ag-editor-info-picker__card { padding: 23px 18px 18px; }
}

.ag-artwork-facts {
    display: block;
    margin: 2px 0;
    line-height: 1.65;
}


/* v1.0.17 — Certificate of Authenticity issuer option readability */
.ag-coa-issuer-option-text {
    font-size: 13px !important;
    line-height: 1.45 !important;
}
