/* Literary Journal Toolkit Pro — privacy card and right-side preference panel. */

html.ljt-pro-consent-panel-open,
body.ljt-pro-consent-panel-open {
    overflow: hidden;
}

.ljt-pro-consent,
.ljt-pro-consent *,
.ljt-pro-consent__reopen,
.ljt-pro-consent__reopen * {
    box-sizing: border-box;
}

.ljt-pro-consent {
    position: relative;
    z-index: 999990;
    color: var(--ljt-consent-text, #292725);
    font-family: "Lora", Georgia, serif;
    line-height: 1.55;
}

.ljt-pro-consent [hidden] {
    display: none !important;
}

.ljt-pro-consent__card {
    position: fixed;
    z-index: 999992;
    bottom: 18px;
    width: min(var(--ljt-consent-card-width, 390px), calc(100vw - 32px));
    padding: var(--ljt-consent-spacing, 24px);
    color: var(--ljt-consent-text, #292725) !important;
    background: var(--ljt-consent-card-bg, #fffdf9) !important;
    border: 1px solid var(--ljt-consent-border, #dccfcb) !important;
    border-radius: var(--ljt-consent-radius, 4px);
    box-shadow: 0 18px 56px rgba(41, 39, 37, .18);
}

.ljt-pro-consent--bottom-left .ljt-pro-consent__card {
    left: 18px;
}

.ljt-pro-consent--bottom-right .ljt-pro-consent__card {
    right: 18px;
}

.ljt-pro-consent__eyebrow {
    margin: 0 0 .55rem;
    color: var(--ljt-consent-accent, #e09695);
    font: inherit;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .17em;
    line-height: 1.3;
    text-transform: uppercase;
}

.ljt-pro-consent__card-title,
.ljt-pro-consent__panel-title {
    margin: 0;
    color: var(--ljt-consent-text, #292725);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    letter-spacing: 0;
}

.ljt-pro-consent__card-title {
    font-size: clamp(1.65rem, 4vw, 2.05rem);
    line-height: 1.05;
}

.ljt-pro-consent__card-message,
.ljt-pro-consent__panel-intro {
    color: var(--ljt-consent-muted, #665f5b);
    font-size: .88rem;
    line-height: 1.65;
}

.ljt-pro-consent__card-message {
    margin-top: 1rem;
}

.ljt-pro-consent__card-message p,
.ljt-pro-consent__panel-intro p {
    margin-top: 0;
}

.ljt-pro-consent__card-message p:last-child,
.ljt-pro-consent__panel-intro p:last-child {
    margin-bottom: 0;
}

.ljt-pro-consent__primary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
    margin-top: 1.3rem;
}

#ljt-pro-consent-root .ljt-pro-consent__button {
    display: inline-flex;
    width: 100%;
    min-height: var(--ljt-consent-button-height, 48px);
    margin: 0;
    padding: .65rem 1rem;
    align-items: center;
    justify-content: center;
    color: var(--ljt-consent-text, #292725) !important;
    background: transparent !important;
    border: 1px solid var(--ljt-consent-border, #dccfcb) !important;
    border-radius: var(--ljt-consent-radius, 4px);
    box-shadow: none;
    font: inherit;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .035em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

#ljt-pro-consent-root .ljt-pro-consent__button:hover,
#ljt-pro-consent-root .ljt-pro-consent__button:focus-visible {
    transform: translateY(-1px);
}

#ljt-pro-consent-root .ljt-pro-consent__button:focus-visible,
#ljt-pro-consent-root .ljt-pro-consent__text-button:focus-visible,
#ljt-pro-consent-root .ljt-pro-consent__close:focus-visible,
#ljt-pro-consent-root .ljt-pro-consent__reopen:focus-visible {
    outline: 2px solid var(--ljt-consent-accent, #e09695);
    outline-offset: 3px;
}

#ljt-pro-consent-root .ljt-pro-consent__button--accept,
#ljt-pro-consent-root .ljt-pro-consent__button--save {
    color: var(--ljt-consent-accent-text, #fff) !important;
    background: var(--ljt-consent-accent, #e09695) !important;
    border-color: var(--ljt-consent-accent, #e09695) !important;
}

#ljt-pro-consent-root .ljt-pro-consent__button--reject {
    color: var(--ljt-consent-text, #292725) !important;
    background: var(--ljt-consent-card-bg, #fffdf9) !important;
    border-color: var(--ljt-consent-accent, #e09695) !important;
}

#ljt-pro-consent-root .ljt-pro-consent__button--reject:hover,
#ljt-pro-consent-root .ljt-pro-consent__button--reject:focus-visible {
    background: color-mix(in srgb, var(--ljt-consent-accent, #e09695) 8%, transparent) !important;
}

.ljt-pro-consent__card-links {
    display: flex;
    margin-top: 1rem;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
    flex-wrap: wrap;
    font-size: .74rem;
}

#ljt-pro-consent-root .ljt-pro-consent__card-links a,
#ljt-pro-consent-root .ljt-pro-consent__policy-note a,
#ljt-pro-consent-root .ljt-pro-consent__text-button {
    padding: 0;
    color: inherit !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    font: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
    cursor: pointer;
}

.ljt-pro-consent__overlay {
    position: fixed;
    z-index: 999993;
    inset: 0;
    background: var(--ljt-consent-overlay, #292725);
    opacity: 0;
    transition: opacity 220ms ease;
}

.ljt-pro-consent__overlay.is-open {
    opacity: .46;
}

.ljt-pro-consent__panel {
    position: fixed;
    z-index: 999994;
    top: 0;
    right: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(var(--ljt-consent-panel-width, 460px), 100vw);
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    color: var(--ljt-consent-text, #292725);
    background: var(--ljt-consent-panel-bg, #fffdf9);
    border-left: 1px solid var(--ljt-consent-border, #dccfcb);
    box-shadow: -18px 0 56px rgba(41, 39, 37, .2);
    outline: 0;
    transform: translateX(102%);
    transition: transform 220ms ease;
}

.ljt-pro-consent__panel.is-open {
    transform: translateX(0);
}

.ljt-pro-consent__panel-header {
    display: flex;
    padding: var(--ljt-consent-spacing, 24px);
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    border-bottom: 1px solid var(--ljt-consent-border, #dccfcb);
}

.ljt-pro-consent__panel-title {
    font-size: clamp(1.8rem, 5vw, 2.35rem);
    line-height: 1;
}

#ljt-pro-consent-root .ljt-pro-consent__close {
    display: inline-flex;
    width: 42px;
    height: 42px;
    margin: -.35rem -.35rem 0 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: inherit !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 50%;
    font: inherit;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

#ljt-pro-consent-root .ljt-pro-consent__close:hover {
    border-color: var(--ljt-consent-border, #dccfcb) !important;
}

.ljt-pro-consent__panel-scroll {
    overflow-y: auto;
    padding: var(--ljt-consent-spacing, 24px);
    overscroll-behavior: contain;
}

.ljt-pro-consent__panel-intro {
    margin-bottom: 1.25rem;
}

.ljt-pro-consent__categories {
    border-top: 1px solid var(--ljt-consent-border, #dccfcb);
}

.ljt-pro-consent__category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 1.1rem 0;
    align-items: start;
    border-bottom: 1px solid var(--ljt-consent-border, #dccfcb);
}

.ljt-pro-consent__category-copy h3 {
    margin: 0;
    color: var(--ljt-consent-text, #292725);
    font: inherit;
    font-size: .91rem;
    font-weight: 600;
    line-height: 1.35;
}

.ljt-pro-consent__category-copy p {
    margin: .38rem 0 0;
    color: var(--ljt-consent-muted, #665f5b);
    font-size: .75rem;
    line-height: 1.55;
}

.ljt-pro-consent__switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    margin-top: .1rem;
    cursor: pointer;
}

.ljt-pro-consent__switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ljt-pro-consent__switch-track {
    position: relative;
    display: block;
    width: 46px;
    height: 25px;
    background: var(--ljt-consent-toggle-off, #d8d2ce);
    border: 1px solid color-mix(in srgb, var(--ljt-consent-toggle-off, #d8d2ce) 80%, #000);
    border-radius: 999px;
    transition: background 150ms ease, border-color 150ms ease;
}

.ljt-pro-consent__switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 17px;
    height: 17px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(41, 39, 37, .25);
    transition: transform 150ms ease;
}

.ljt-pro-consent__switch input:checked + .ljt-pro-consent__switch-track {
    background: var(--ljt-consent-accent, #e09695);
    border-color: var(--ljt-consent-accent, #e09695);
}

.ljt-pro-consent__switch input:checked + .ljt-pro-consent__switch-track .ljt-pro-consent__switch-thumb {
    transform: translateX(21px);
}

.ljt-pro-consent__switch input:focus-visible + .ljt-pro-consent__switch-track {
    outline: 2px solid var(--ljt-consent-accent, #e09695);
    outline-offset: 3px;
}

.ljt-pro-consent__switch.is-locked {
    cursor: not-allowed;
    opacity: .72;
}

.ljt-pro-consent__policy-note {
    margin: 1.2rem 0 0;
    font-size: .76rem;
}

.ljt-pro-consent__panel-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
    padding: var(--ljt-consent-spacing, 24px);
    background: var(--ljt-consent-panel-bg, #fffdf9);
    border-top: 1px solid var(--ljt-consent-border, #dccfcb);
}

#ljt-pro-consent-root .ljt-pro-consent__panel-actions .ljt-pro-consent__button--save {
    grid-column: 1 / -1;
}

#ljt-pro-consent-root .ljt-pro-consent__reopen {
    position: fixed;
    z-index: 999980;
    bottom: 14px;
    min-height: 40px;
    padding: .55rem .85rem;
    color: var(--ljt-consent-text, #292725) !important;
    background: var(--ljt-consent-card-bg, #fffdf9) !important;
    border: 1px solid var(--ljt-consent-border, #dccfcb) !important;
    border-radius: var(--ljt-consent-radius, 4px);
    box-shadow: 0 8px 24px rgba(41, 39, 37, .12);
    font: inherit;
    font-size: .72rem;
    cursor: pointer;
}

#ljt-pro-consent-root .ljt-pro-consent__reopen--right {
    right: 14px;
    left: auto;
}

#ljt-pro-consent-root .ljt-pro-consent__reopen--left {
    right: auto;
    left: 14px;
}

.ljt-pro-consent .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 520px) {
    .ljt-pro-consent__card {
        right: 10px !important;
        bottom: 10px;
        left: 10px !important;
        width: auto;
        padding: 20px;
    }

    .ljt-pro-consent__panel {
        width: 100vw;
    }

    .ljt-pro-consent__panel-header,
    .ljt-pro-consent__panel-scroll,
    .ljt-pro-consent__panel-actions {
        padding-right: 18px;
        padding-left: 18px;
    }
}

@media (max-width: 380px) {
    .ljt-pro-consent__primary-actions,
    .ljt-pro-consent__panel-actions {
        grid-template-columns: 1fr;
    }

    #ljt-pro-consent-root .ljt-pro-consent__panel-actions .ljt-pro-consent__button--save {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ljt-pro-consent__overlay,
    .ljt-pro-consent__panel,
    .ljt-pro-consent__button,
    .ljt-pro-consent__switch-track,
    .ljt-pro-consent__switch-thumb {
        transition: none;
    }
}
