/*
 * JR My Memories Redesign v1.0.10
 * Presentation only. Shared shell/header dimensions match Invited Memories v1.0.5.
 */

body.jr-my-memories-redesign {
    --jr-mm-bg: #f6f4f0;
    --jr-mm-card: rgba(255, 253, 249, 0.96);
    --jr-mm-card-strong: #fffdfa;
    --jr-mm-text: #24201d;
    --jr-mm-muted: #77716b;
    --jr-mm-border: #e7e1d8;
    --jr-mm-accent: #c99647;
    --jr-mm-link: #d06f3a;
    --jr-mm-shadow: 0 10px 30px rgba(44, 34, 24, 0.11);
    --jr-mm-radius: 18px;
}

/* Remove the legacy Kadence/page hero on this page only. */
html body.jr-my-memories-redesign #inner-wrap > section.entry-hero.page-hero-section.entry-hero-layout-fullwidth,
html body.jr-my-memories-redesign section.entry-hero.page-hero-section,
body.jr-my-memories-redesign .entry-hero-container,
body.jr-my-memories-redesign .entry-hero-container-inner.page-hero-container-inner,
body.jr-my-memories-redesign .entry-hero-container-inner,
body.jr-my-memories-redesign .entry-header.entry-hero,
body.jr-my-memories-redesign .kadence-page-title,
body.jr-my-memories-redesign .page-header,
body.jr-my-memories-redesign .page-hero-section,
body.jr-my-memories-redesign .hero-section,
body.jr-my-memories-redesign .hero-container,
body.jr-my-memories-redesign .post-hero-section,
body.jr-my-memories-redesign .post-hero,
body.jr-my-memories-redesign .bb-page-hero,
body.jr-my-memories-redesign .bb-page-header,
body.jr-my-memories-redesign .bb-page-title,
body.jr-my-memories-redesign .title-container,
body.jr-my-memories-redesign .page-title-container,
body.jr-my-memories-redesign .jr-mm-hidden-legacy-hero {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
}

/* Confirmed Invited Memories v1.0.5 desktop container hierarchy. */
body.jr-my-memories-redesign #primary.content-area,
body.jr-my-memories-redesign .content-container.site-container {
    box-sizing: border-box !important;
}

/* Do NOT force #primary / .content-container to width:100%. */
body.jr-my-memories-redesign #primary,
body.jr-my-memories-redesign .content-area,
body.jr-my-memories-redesign article.single-entry,
body.jr-my-memories-redesign .entry,
body.jr-my-memories-redesign .content-bg {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

body.jr-my-memories-redesign #main.site-main {
    box-sizing: border-box !important;
    width: calc(100% - 48px) !important;
    max-width: none !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.jr-my-memories-redesign #main.site-main > .content-wrap,
body.jr-my-memories-redesign #main.site-main .content-wrap > article,
body.jr-my-memories-redesign article.single-entry,
body.jr-my-memories-redesign .entry-content-wrap {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

body.jr-my-memories-redesign .entry-content-wrap {
    display: block !important;
    gap: 0 !important;
    row-gap: 0 !important;
    margin: 76px auto 92px !important;
    /* Keep the rear parchment shell visually even on every edge. */
    padding: 32px !important;
    background:
        linear-gradient(rgba(255,253,249,.968), rgba(255,253,249,.968)),
        repeating-linear-gradient(
            0deg,
            rgba(112,83,56,.018) 0,
            rgba(112,83,56,.018) 1px,
            transparent 1px,
            transparent 4px
        ) !important;
    border: 1px solid rgba(221,208,190,.76) !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 48px rgba(55,39,24,.10) !important;
}

body.jr-my-memories-redesign .entry-content-wrap > .entry-header {
    display: none !important;
}

/* Reuse the existing entry-content node as the redesign root; no new shell wrapper. */
body.jr-my-memories-redesign .entry-content.single-content,
body.jr-my-memories-redesign .jr-mm-page-zone {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.jr-my-memories-redesign .jr-mm-page-zone > :last-child {
    margin-bottom: 0 !important;
}

/* Remove harmless legacy spacer remnants that can sit above the replacement title card. */
body.jr-my-memories-redesign .jr-mm-page-zone > .jr-mm-empty-leading,
body.jr-my-memories-redesign .jr-mm-page-zone > .wp-block-spacer,
body.jr-my-memories-redesign .jr-mm-page-zone > p:empty {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Confirmed title/header card master. */
body.jr-my-memories-redesign .jr-mm-title-host {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0 0 22px !important;
    padding: 46px 28px 34px;
    text-align: center;
    background: var(--jr-card, #fffdfa);
    border: 1px solid rgba(118,90,65,.15);
    border-radius: var(--jr-radius-card, 24px);
    box-shadow: 0 9px 24px rgba(58,42,30,.055);
}

body.jr-my-memories-redesign .jr-mm-title {
    margin: 0 !important;
    padding: 0 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(42px, 4.4vw, 58px) !important;
    font-weight: 700 !important;
    line-height: 1.04 !important;
    letter-spacing: -0.025em !important;
    text-transform: none !important;
    color: var(--jr-heading, #513b2f) !important;
    text-align: center !important;
}

body.jr-my-memories-redesign .jr-mm-title-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    width: min(250px, 56%);
    margin: 22px auto 18px;
    color: rgba(201,125,83,.68);
}

body.jr-my-memories-redesign .jr-mm-title-rule::before,
body.jr-my-memories-redesign .jr-mm-title-rule::after {
    content: "";
    display: block;
    flex: 1 1 auto;
    height: 1px;
    background: currentColor;
}

body.jr-my-memories-redesign .jr-mm-heart {
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    transform: none;
}

body.jr-my-memories-redesign .jr-mm-subtitle {
    width: min(720px, 100%);
    max-width: none;
    margin: 0 auto !important;
    color: #67615c !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    text-align: center !important;
}

/* Existing page-specific content card styling retained. */
body.jr-my-memories-redesign .jr-mm-content-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 32px !important;
    padding: 34px 34px 24px !important;
    box-sizing: border-box !important;
    background: var(--jr-mm-card) !important;
    border: 1px solid rgba(219,211,200,.72) !important;
    border-radius: var(--jr-mm-radius) !important;
    box-shadow: var(--jr-mm-shadow) !important;
    overflow: visible !important;
}

/* Existing My Memories controls are styled in place; they are no longer moved in the DOM. */
body.jr-my-memories-redesign .jr-mm-controls-row {
    display: grid !important;
    grid-template-columns: minmax(280px, 1.25fr) minmax(260px, 1fr) auto !important;
    gap: 26px !important;
    align-items: end !important;
    margin: 0 0 18px !important;
}

body.jr-my-memories-redesign .jr-mm-control {
    min-width: 0 !important;
    display: block !important;
}

body.jr-my-memories-redesign .jr-mm-control label {
    display: block !important;
    margin: 0 0 8px !important;
    color: var(--jr-mm-text) !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

body.jr-my-memories-redesign .jr-mm-control input[type="search"],
body.jr-my-memories-redesign .jr-mm-control input[type="text"],
body.jr-my-memories-redesign .jr-mm-control select {
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    color: var(--jr-mm-text) !important;
    background: #fff !important;
    border: 1px solid #dcd8d2 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-size: 15px !important;
    outline: none !important;
}

body.jr-my-memories-redesign .jr-mm-control input:focus,
body.jr-my-memories-redesign .jr-mm-control select:focus {
    border-color: #cba25c !important;
    box-shadow: 0 0 0 3px rgba(203,162,92,.13) !important;
}

body.jr-my-memories-redesign .jrmm-refresh-wrap {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
}

body.jr-my-memories-redesign .jr-mm-refresh {
    min-height: 48px !important;
    padding: 0 24px !important;
    border-radius: 999px !important;
    border: 1px solid #aa8248 !important;
    background: linear-gradient(180deg, #c8aa70 0%, #b58d54 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    line-height: 46px !important;
    box-shadow: 0 8px 18px rgba(112,79,38,.14) !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease !important;
}

body.jr-my-memories-redesign .jr-mm-refresh:hover,
body.jr-my-memories-redesign .jr-mm-refresh:focus-visible {
    background: linear-gradient(180deg, #d0b57d 0%, #bd965d 100%) !important;
    border-color: #a97f45 !important;
    color: #fff !important;
    outline: none !important;
    box-shadow: 0 10px 22px rgba(112,79,38,.18) !important;
    transform: translateY(-1px) !important;
}

body.jr-my-memories-redesign .jr-mm-refresh:active {
    transform: translateY(1px) !important;
}

/* Existing table presentation retained. */
body.jr-my-memories-redesign .jr-mm-table-shell {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--jr-mm-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
}

body.jr-my-memories-redesign table.jr-mm-table {
    width: 100% !important;
    min-width: 760px !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #fff !important;
    table-layout: auto !important;
}

body.jr-my-memories-redesign table.jr-mm-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 15px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--jr-mm-border) !important;
    background: #f7f7f7 !important;
    color: var(--jr-mm-text) !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    text-align: left !important;
    white-space: nowrap !important;
}

body.jr-my-memories-redesign table.jr-mm-table tbody td {
    padding: 14px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid #eee9e3 !important;
    background: #fff !important;
    color: #2d2926 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    vertical-align: middle !important;
}

body.jr-my-memories-redesign table.jr-mm-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

body.jr-my-memories-redesign table.jr-mm-table tbody tr:hover td {
    background: #fdfaf6 !important;
}

body.jr-my-memories-redesign table.jr-mm-table a {
    color: var(--jr-mm-link) !important;
    text-decoration: none !important;
}

body.jr-my-memories-redesign table.jr-mm-table a:hover {
    text-decoration: underline !important;
}

body.jr-my-memories-redesign table.jr-mm-table th:nth-child(1),
body.jr-my-memories-redesign table.jr-mm-table td:nth-child(1) { width: 38%; }

body.jr-my-memories-redesign table.jr-mm-table th:nth-child(2),
body.jr-my-memories-redesign table.jr-mm-table td:nth-child(2) { width: 38%; }

body.jr-my-memories-redesign table.jr-mm-table th:nth-child(3),
body.jr-my-memories-redesign table.jr-mm-table td:nth-child(3),
body.jr-my-memories-redesign table.jr-mm-table th:nth-child(4),
body.jr-my-memories-redesign table.jr-mm-table td:nth-child(4) {
    width: 12%;
    white-space: nowrap;
}

/* Tablet: same structural principle as the master, without horizontal shell overflow. */
@media (max-width: 1024px) {
    body.jr-my-memories-redesign #main.site-main {
        width: calc(100% - 32px) !important;
    }

    body.jr-my-memories-redesign .entry-content-wrap {
        margin: 48px auto 60px !important;
        padding: 24px !important;
    }

    body.jr-my-memories-redesign .jr-mm-title-host {
        padding-left: 28px;
        padding-right: 28px;
    }

    body.jr-my-memories-redesign .jr-mm-content-card {
        padding: 26px !important;
    }

    body.jr-my-memories-redesign .jr-mm-controls-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }

    body.jr-my-memories-redesign .jrmm-refresh-wrap {
        grid-column: 1 / -1 !important;
    }

    body.jr-my-memories-redesign .jr-mm-refresh {
        width: 100% !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    /* Match My Groups / My Media mobile shell exactly. */
    body.jr-my-memories-redesign #primary.content-area,
    body.jr-my-memories-redesign .content-container.site-container {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.jr-my-memories-redesign #main.site-main {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 18px !important;
    }

    body.jr-my-memories-redesign #main.site-main > .content-wrap,
    body.jr-my-memories-redesign #main.site-main > .content-wrap > article,
    body.jr-my-memories-redesign #main.site-main .content-wrap > article,
    body.jr-my-memories-redesign article.single-entry,
    body.jr-my-memories-redesign article.entry,
    body.jr-my-memories-redesign .content-bg,
    body.jr-my-memories-redesign .entry {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        background-image: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        filter: none !important;
    }

    body.jr-my-memories-redesign #main.site-main > .content-wrap::before,
    body.jr-my-memories-redesign #main.site-main > .content-wrap::after,
    body.jr-my-memories-redesign article.single-entry::before,
    body.jr-my-memories-redesign article.single-entry::after,
    body.jr-my-memories-redesign article.entry::before,
    body.jr-my-memories-redesign article.entry::after {
        content: none !important;
        display: none !important;
    }

    body.jr-my-memories-redesign .entry-content-wrap {
        box-sizing: border-box !important;
        position: static !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 26px 0 44px !important;
        padding: 16px 12px 24px !important;
        border-radius: 16px !important;
        overflow: visible !important;
    }

    body.jr-my-memories-redesign .entry-content.single-content,
    body.jr-my-memories-redesign .entry-content,
    body.jr-my-memories-redesign .jr-mm-page-zone {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    body.jr-my-memories-redesign .jr-mm-title-host {
        margin-bottom: 16px;
        padding: 28px 18px 24px;
        border-radius: 15px;
    }

    body.jr-my-memories-redesign .jr-mm-title {
        font-size: clamp(34px, 10vw, 44px) !important;
    }

    body.jr-my-memories-redesign .jr-mm-title-rule {
        width: min(220px, 72%);
        margin: 18px auto 14px;
    }

    body.jr-my-memories-redesign .jr-mm-subtitle {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    body.jr-my-memories-redesign .jr-mm-content-card {
        padding: 16px !important;
        border-radius: 15px !important;
    }

    body.jr-my-memories-redesign .jr-mm-controls-row {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    body.jr-my-memories-redesign .jrmm-refresh-wrap {
        grid-column: auto !important;
    }

    body.jr-my-memories-redesign .jr-mm-refresh {
        width: 100% !important;
    }

    body.jr-my-memories-redesign table.jr-mm-table {
        min-width: 700px !important;
    }

    html,
    body.jr-my-memories-redesign {
        overflow-x: hidden !important;
    }
}


/* v1.0.6 — floating table header.
 * The table needs horizontal scrolling on mobile, so native position:sticky
 * binds to that overflow container rather than the page viewport. The JS clone
 * below gives the visible header a true viewport-sticky behaviour while keeping
 * horizontal movement synchronised with the real table. */
body.jr-my-memories-redesign .jr-mm-sticky-head {
    position: fixed !important;
    z-index: 10020 !important;
    display: none;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    background: transparent !important;
    box-shadow: 0 6px 16px rgba(55, 39, 24, .10) !important;
}

body.jr-my-memories-redesign .jr-mm-sticky-head.is-visible {
    display: block !important;
}

body.jr-my-memories-redesign .jr-mm-sticky-head table {
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
    background: #f7f7f7 !important;
}

body.jr-my-memories-redesign .jr-mm-sticky-head thead,
body.jr-my-memories-redesign .jr-mm-sticky-head tr {
    margin: 0 !important;
    background: #f7f7f7 !important;
}

body.jr-my-memories-redesign .jr-mm-sticky-head th {
    box-sizing: border-box !important;
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    padding: 15px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--jr-mm-border) !important;
    background: #f7f7f7 !important;
    color: var(--jr-mm-text) !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    text-align: left !important;
    white-space: nowrap !important;
}


/* ============================================================
 * v1.0.9 — Refresh button gold style lock
 *
 * Keep the existing Refresh behaviour, but force the current
 * JustReminisce gold CTA treatment over higher-specificity theme rules.
 * ============================================================ */
body.jr-my-memories-redesign #jrmm-refresh.jr-mm-refresh,
body.jr-my-memories-redesign .jrmm-refresh-wrap > #jrmm-refresh {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: linear-gradient(180deg, #c8aa70 0%, #b58d54 100%) !important;
    background-color: #b58d54 !important;
    background-image: linear-gradient(180deg, #c8aa70 0%, #b58d54 100%) !important;
    border: 1px solid #aa8248 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 18px rgba(112,79,38,.14) !important;
    text-shadow: none !important;
}

body.jr-my-memories-redesign #jrmm-refresh.jr-mm-refresh:hover,
body.jr-my-memories-redesign #jrmm-refresh.jr-mm-refresh:focus,
body.jr-my-memories-redesign #jrmm-refresh.jr-mm-refresh:focus-visible {
    background: linear-gradient(180deg, #d0b57d 0%, #bd965d 100%) !important;
    background-color: #bd965d !important;
    background-image: linear-gradient(180deg, #d0b57d 0%, #bd965d 100%) !important;
    border-color: #a97f45 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(112,79,38,.18) !important;
    transform: translateY(-1px) !important;
}

/* ============================================================
 * v1.0.8 — Mobile/tablet table swipe helper
 * Matches the confirmed Invited Memories helper treatment.
 * ============================================================ */
body.jr-my-memories-redesign .jr-mm-swipe-hint {
    display: none !important;
}

@media (max-width: 900px) {
    body.jr-my-memories-redesign .jr-mm-swipe-hint {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 8px 0 8px !important;
        padding: 0 !important;
        color: #7b746d !important;
        font-family: inherit !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        line-height: 1.35 !important;
        letter-spacing: 0 !important;
        text-align: center !important;
    }
}

/* ============================================================
 * v1.0.10 — Refresh CTA hard lock
 * The live DOM uses #jrmm-refresh inside .jrmm-refresh-wrap.
 * Target the ID directly so legacy/theme button rules cannot win.
 * ============================================================ */
html body.jr-my-memories-redesign .jrmm-refresh-wrap button#jrmm-refresh,
html body.jr-my-memories-redesign button#jrmm-refresh.jr-mm-refresh,
html body.jr-my-memories-redesign #jrmm-refresh {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 112px !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 26px !important;
    margin: 0 !important;
    border: 1px solid #aa8248 !important;
    border-radius: 999px !important;
    background-color: #b58d54 !important;
    background-image: linear-gradient(180deg, #c8aa70 0%, #b58d54 100%) !important;
    color: #ffffff !important;
    font: inherit !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-decoration: none !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    box-shadow: 0 8px 18px rgba(112,79,38,.14) !important;
    cursor: pointer !important;
    opacity: 1 !important;
    filter: none !important;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease !important;
}

html body.jr-my-memories-redesign .jrmm-refresh-wrap button#jrmm-refresh:hover,
html body.jr-my-memories-redesign .jrmm-refresh-wrap button#jrmm-refresh:focus,
html body.jr-my-memories-redesign .jrmm-refresh-wrap button#jrmm-refresh:focus-visible {
    border-color: #a97f45 !important;
    background-color: #bd965d !important;
    background-image: linear-gradient(180deg, #d0b57d 0%, #bd965d 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(112,79,38,.18) !important;
    transform: translateY(-1px) !important;
    outline: none !important;
}

html body.jr-my-memories-redesign .jrmm-refresh-wrap button#jrmm-refresh:active {
    transform: translateY(1px) !important;
}


/* ============================================================
 * v1.0.11 — Refresh button final override
 * Keep this at the end of the stylesheet as a CSS fallback.
 * JavaScript also applies the same values inline with !important
 * so late-loading theme rules cannot turn the control black.
 * ============================================================ */
html body.jr-my-memories-redesign #jr-my-memories-wrapper .jrmm-refresh-wrap > button#jrmm-refresh {
    border: 1px solid #aa8248 !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #c8aa70 0%, #b58d54 100%) !important;
    background-color: #b58d54 !important;
    background-image: linear-gradient(180deg, #c8aa70 0%, #b58d54 100%) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(112,79,38,.14) !important;
}
html body.jr-my-memories-redesign #jr-my-memories-wrapper .jrmm-refresh-wrap > button#jrmm-refresh:hover,
html body.jr-my-memories-redesign #jr-my-memories-wrapper .jrmm-refresh-wrap > button#jrmm-refresh:focus-visible {
    border-color: #a97f45 !important;
    background: linear-gradient(180deg, #d0b57d 0%, #bd965d 100%) !important;
    background-color: #bd965d !important;
    background-image: linear-gradient(180deg, #d0b57d 0%, #bd965d 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(112,79,38,.18) !important;
}

/* v1.0.12 — Desktop outer-shell corner cleanup.
 * Keep .entry-content-wrap as the ONLY visible paper shell. Kadence may paint
 * a second rounded panel on its parent .content-wrap/article wrappers, causing
 * a faint overlapping curved edge. Remove those ancestor surfaces and their
 * decorative pseudo-elements without changing any container dimensions,
 * inner cards, mobile/tablet presentation or functional controls.
 */
@media (min-width: 1025px) {
    html body.jr-my-memories-redesign #main.site-main > .content-wrap,
    html body.jr-my-memories-redesign #main.site-main > .content-wrap > article,
    html body.jr-my-memories-redesign #main.site-main .content-wrap > article,
    html body.jr-my-memories-redesign #main.site-main article.single-entry,
    html body.jr-my-memories-redesign #main.site-main article.entry {
        background: transparent !important;
        background-image: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        outline: 0 !important;
    }

    html body.jr-my-memories-redesign #main.site-main > .content-wrap::before,
    html body.jr-my-memories-redesign #main.site-main > .content-wrap::after,
    html body.jr-my-memories-redesign #main.site-main article.single-entry::before,
    html body.jr-my-memories-redesign #main.site-main article.single-entry::after,
    html body.jr-my-memories-redesign #main.site-main article.entry::before,
    html body.jr-my-memories-redesign #main.site-main article.entry::after {
        content: none !important;
        display: none !important;
    }
}
