/* Relic Tebex Shop — WooCommerce-style, integrated/light theme.
   Cards are self-contained (white bg, dark text) so they read well on any
   site background. To go dark, flip --rs-surface / --rs-card / --rs-text below. */
.relic-shop-wrap,
.relic-shop-portal {
    --rs-surface:      transparent;          /* container sits in the page */
    --rs-card:         #ffffff;
    --rs-card-alt:     #f7f7f8;
    --rs-border:       #e3e3e7;
    --rs-border-hover: #c9c9d0;
    --rs-text:         #2b2d33;
    --rs-text-dim:     #6b6f76;
    --rs-heading:      #1c1e22;
    --rs-accent:       #c4632a;              /* Relic orange, tuned for light bg */
    --rs-accent-hover: #a8521f;
    --rs-shadow:       0 1px 2px rgba(20,20,30,.06);
    --rs-shadow-hover: 0 6px 20px rgba(20,20,30,.12);
}
.relic-shop {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 2rem;
    background: var(--rs-surface);
    color: var(--rs-text);
    font-family: inherit;                    /* match the site's typography */
    align-items: start;
}

/* ---- Sidebar (category list, WooCommerce widget style) ---- */
.relic-shop-sidebar {
    background: transparent;
    padding: 0;
    position: sticky;
    top: 1.5rem;
}
.relic-shop-sidebar-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--rs-text-dim);
    margin: 0 0 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--rs-border);
    font-weight: 700;
}
.relic-shop-nav { display: flex; flex-direction: column; }
.relic-shop-nav-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid var(--rs-border);
    color: var(--rs-text);
    padding: 0.6rem 0.15rem;
    text-align: left;
    font-size: 0.92rem;
    font-family: inherit;
    cursor: pointer;
    transition: color .12s, padding-left .12s;
}
.relic-shop-nav-btn:hover { color: var(--rs-accent); padding-left: 0.4rem; }
.relic-shop-nav-btn.is-active { color: var(--rs-accent); font-weight: 600; }
.relic-shop-nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.relic-shop-nav-count {
    font-size: 0.72rem;
    color: var(--rs-text-dim);
    background: var(--rs-card-alt);
    border-radius: 10px;
    padding: 1px 8px;
    flex-shrink: 0;
}

/* ---- Top supporter cards ---- */
.relic-shop-supporters {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.relic-shop-supporter-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--rs-text-dim);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.relic-shop-supporter-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--rs-card);
    border: 1px solid var(--rs-border);
    border-radius: 8px;
    padding: 0.6rem 0.7rem;
    box-shadow: var(--rs-shadow);
}
.relic-shop-supporter-avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--rs-card-alt);
}
.relic-shop-supporter-avatar--blank {
    display: flex; align-items: center; justify-content: center;
    color: var(--rs-text-dim);
    font-weight: 700;
    font-size: 1.1rem;
}
.relic-shop-supporter-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rs-heading);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Main column ---- */
.relic-shop-main { min-width: 0; }
.relic-shop-category { display: none; }
.relic-shop-category.is-active { display: block; }

.relic-shop-category-header { margin-bottom: 0.35rem; }
.relic-shop-category-header h2 {
    margin: 0 0 0.2rem;
    color: var(--rs-heading);
    font-size: 1.5rem;
    font-weight: 700;
}
.relic-shop-category-desc { color: var(--rs-text-dim); font-size: 0.9rem; line-height: 1.5; }
.relic-shop-category-desc p:last-child { margin-bottom: 0; }

.relic-shop-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.5rem 0 0.9rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--rs-border);
}
.relic-shop-result-count { color: var(--rs-text-dim); font-size: 0.85rem; }

/* ---- Product grid ---- */
.relic-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.5rem 1.25rem;
}

.relic-shop-card {
    background: var(--rs-card);
    border: 1px solid var(--rs-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--rs-shadow);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.relic-shop-card:hover {
    border-color: var(--rs-border-hover);
    box-shadow: var(--rs-shadow-hover);
    transform: translateY(-3px);
}

.relic-shop-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--rs-card-alt);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    border-bottom: 1px solid var(--rs-border);
}
.relic-shop-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.relic-shop-card-body {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
    text-align: center;
}
.relic-shop-card-title {
    margin: 0;
    font-size: 0.98rem;
    color: var(--rs-heading);
    font-weight: 600;
    line-height: 1.3;
    min-height: 2.4em;
    display: flex; align-items: center; justify-content: center;
}
.relic-shop-card-price {
    color: var(--rs-text);
    font-weight: 700;
    font-size: 1.05rem;
}
.relic-shop-card-price small { color: var(--rs-text-dim); font-weight: 400; font-size: 0.7rem; }

.relic-shop-add-btn {
    margin-top: auto;
    background: var(--rs-accent);
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: background .15s, transform .05s;
}
.relic-shop-add-btn:hover:not(:disabled) { background: var(--rs-accent-hover); }
.relic-shop-add-btn:active:not(:disabled) { transform: translateY(1px); }
.relic-shop-add-btn.is-added { background: #3f7d4f; }

.relic-shop-error, .relic-shop-empty {
    background: var(--rs-card-alt);
    border: 1px solid var(--rs-border);
    color: var(--rs-text-dim);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .relic-shop { grid-template-columns: 1fr; gap: 1.25rem; }
    .relic-shop-sidebar { position: static; }
    .relic-shop-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 0.25rem; }
    .relic-shop-nav-btn {
        white-space: nowrap; flex-shrink: 0;
        border: 1px solid var(--rs-border);
        border-radius: 20px;
        padding: 0.4rem 0.9rem;
    }
    .relic-shop-nav-btn:hover { padding-left: 0.9rem; }
    .relic-shop-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
}

/* ---------------- Cart + checkout (v0.4.0) ---------------- */
.relic-shop-wrap { position: relative; }

.relic-shop-topbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
.relic-shop-cart-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--rs-card, #fff);
    border: 1px solid var(--rs-border, #e3e3e7);
    color: var(--rs-heading, #1c1e22);
    border-radius: 6px;
    padding: 0.5rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--rs-shadow);
    transition: border-color .15s;
}
.relic-shop-cart-toggle:hover { border-color: var(--rs-border-hover, #c9c9d0); }
.relic-shop-cart-icon { font-size: 1.05rem; line-height: 1; }
.relic-shop-cart-badge {
    background: var(--rs-accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 1.25rem;
    text-align: center;
    border-radius: 999px;
    padding: 1px 6px;
}

/* Drawer + overlay */
.relic-shop-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 6, 0.5);
    z-index: 99998;
}
.relic-shop-cart-drawer {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    height: 100dvh;
    width: 360px;
    max-width: 90vw;
    background: var(--rs-card, #fff);
    color: var(--rs-text, #2b2d33);
    border-left: 1px solid var(--rs-border, #e3e3e7);
    box-shadow: -8px 0 30px rgba(20,20,30,.18);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .25s ease;
    font-family: inherit;
}
.relic-shop-cart-drawer.is-open { transform: translateX(0); }

.relic-shop-cart-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--rs-border, #e3e3e7);
    flex-shrink: 0;
}
.relic-shop-cart-head h3 { margin: 0; font-size: 1.1rem; color: var(--rs-heading, #1c1e22); }
.relic-shop-cart-close {
    background: none; border: none; font-size: 1.6rem; line-height: 1;
    cursor: pointer; color: var(--rs-text-dim, #6b6f76);
}

.relic-shop-cart-items { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0.5rem 1.1rem; }
.relic-shop-cart-empty { padding: 2rem 1.1rem; text-align: center; color: var(--rs-text-dim, #6b6f76); }

.relic-cart-item {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rs-border, #e3e3e7);
}
.relic-cart-item-img {
    width: 52px; height: 52px;
    object-fit: contain;
    background: var(--rs-card-alt, #f7f7f8);
    border: 1px solid var(--rs-border, #e3e3e7);
    border-radius: 5px;
}
.relic-cart-item-info { min-width: 0; }
.relic-cart-item-name {
    font-size: 0.88rem; font-weight: 600; color: var(--rs-heading, #1c1e22);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.relic-cart-item-price { font-size: 0.82rem; color: var(--rs-text-dim, #6b6f76); margin: 2px 0 4px; }
.relic-cart-qty { display: inline-flex; align-items: center; gap: 0.4rem; }
.relic-cart-qty-btn {
    width: 22px; height: 22px;
    border: 1px solid var(--rs-border, #e3e3e7);
    background: var(--rs-card-alt, #f7f7f8);
    border-radius: 4px; cursor: pointer; font-size: 0.9rem; line-height: 1;
    color: var(--rs-text, #2b2d33);
}
.relic-cart-qty-val { font-size: 0.85rem; min-width: 18px; text-align: center; }
.relic-cart-item-remove {
    background: none; border: none; cursor: pointer;
    font-size: 1.2rem; color: var(--rs-text-dim, #6b6f76); align-self: start;
}
.relic-cart-item-remove:hover { color: #c0392b; }

.relic-shop-cart-foot { padding: 1rem 1.1rem; border-top: 1px solid var(--rs-border, #e3e3e7); flex-shrink: 0; }
.relic-shop-cart-total-row {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 1.05rem; font-weight: 700; color: var(--rs-heading, #1c1e22);
    margin-bottom: 0.8rem;
}
.relic-shop-cart-checkout {
    width: 100%;
    background: var(--rs-accent);
    color: #fff; border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem; font-weight: 700; font-family: inherit;
    text-transform: uppercase; letter-spacing: 0.04em;
    cursor: pointer;
    transition: background .15s;
}
.relic-shop-cart-checkout:hover:not(:disabled) { background: var(--rs-accent-hover); }
.relic-shop-cart-checkout:disabled { opacity: 0.5; cursor: not-allowed; }
.relic-shop-cart-note { font-size: 0.72rem; color: var(--rs-text-dim, #6b6f76); margin: 0.6rem 0 0; text-align: center; }

/* Inline checkout view */
.relic-shop-checkout { width: 100%; }
.relic-shop-checkout-back {
    background: none;
    border: 1px solid var(--rs-border, #e3e3e7);
    color: var(--rs-text, #2b2d33);
    border-radius: 5px;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem; font-family: inherit; cursor: pointer;
    margin-bottom: 1rem;
}
.relic-shop-checkout-back:hover { border-color: var(--rs-border-hover, #c9c9d0); color: var(--rs-accent); }
.relic-shop-checkout-embed { width: 100%; }
.relic-shop-checkout-embed iframe { width: 100% !important; border: 0; height: 800px !important; }
@media (max-width: 1024px) { .relic-shop-checkout-embed iframe { height: 980px !important; } }
@media (max-width: 640px)  { .relic-shop-checkout-embed iframe { height: 1350px !important; } }

@media (max-width: 768px) {
    .relic-shop-cart-drawer { width: 100%; }
}

/* ---------------- Theme-override armor ----------------
   WPZOOM (and many themes) style content via `.entry-content h2/h3/img/button`,
   which can out-specify single-class selectors. Re-assert the key visuals here
   scoped under .relic-shop-wrap (higher specificity) instead of using !important. */
.relic-shop-wrap .relic-shop-category-header h2 {
    margin: 0 0 0.2rem; padding: 0; border: 0;
    color: var(--rs-heading); font-size: 1.5rem; font-weight: 700; line-height: 1.2;
}
.relic-shop-wrap .relic-shop-card-title {
    margin: 0; padding: 0; border: 0;
    color: var(--rs-heading); font-size: 0.98rem; font-weight: 600; line-height: 1.3;
}
.relic-shop-wrap .relic-shop-cart-head h3,
.relic-shop-wrap .relic-shop-sidebar-title {
    margin: 0; padding: 0; border: 0;
}
.relic-shop-wrap .relic-shop-sidebar-title {
    padding-bottom: 0.6rem; border-bottom: 2px solid var(--rs-border);
}

/* Images: keep them contained, strip theme borders/shadows/margins */
.relic-shop-wrap .relic-shop-card-image img {
    margin: 0; padding: 0; border: 0; box-shadow: none; border-radius: 0;
    max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
}
.relic-shop-wrap .relic-cart-item-img {
    margin: 0; padding: 0; box-shadow: none;
    width: 52px; height: 52px; border-radius: 5px;
    border: 1px solid var(--rs-border); object-fit: contain;
}
.relic-shop-wrap .relic-shop-supporter-avatar {
    margin: 0; padding: 0; box-shadow: none; border-radius: 6px;
}

/* Buttons & links: stop the theme restyling our controls */
.relic-shop-wrap .relic-shop-add-btn,
.relic-shop-wrap .relic-shop-cart-checkout,
.relic-shop-wrap .relic-shop-cart-toggle,
.relic-shop-wrap .relic-shop-nav-btn,
.relic-shop-wrap .relic-shop-checkout-back,
.relic-shop-wrap .relic-cart-qty-btn,
.relic-shop-wrap .relic-shop-cart-close,
.relic-shop-wrap .relic-cart-item-remove {
    font-family: inherit; text-transform: none; text-decoration: none;
    box-shadow: none; line-height: normal;
}
.relic-shop-wrap .relic-shop-add-btn,
.relic-shop-wrap .relic-shop-cart-checkout {
    background: var(--rs-accent, #c4632a); color: #fff; border: none;
    text-transform: uppercase; letter-spacing: 0.03em;
}
.relic-shop-wrap .relic-shop-add-btn:hover,
.relic-shop-wrap .relic-shop-cart-checkout:hover {
    background: var(--rs-accent-hover);
}
.relic-shop-wrap .relic-shop-card-price {
    margin: 0; color: var(--rs-text); font-weight: 700; font-size: 1.05rem;
}

/* ---------------- Type scale: match site body text (~16-17px) ----------------
   Placed last + scoped under .relic-shop-wrap so it wins over earlier rules. */
.relic-shop-wrap { font-size: 16px; line-height: 1.6; }
.relic-shop-wrap .relic-shop-nav-btn { font-size: 1.12rem; padding: 0.78rem 0.2rem; font-weight: 600; }
.relic-shop-wrap .relic-shop-nav-btn.is-active { font-weight: 700; }
.relic-shop-wrap .relic-shop-nav-count { font-size: 0.85rem; padding: 2px 10px; }
.relic-shop-wrap .relic-shop-sidebar-title { font-size: 0.95rem; letter-spacing: 0.08em; margin-bottom: 0.9rem; }
.relic-shop-wrap .relic-shop-category-header h2 { font-size: 1.75rem; }
.relic-shop-wrap .relic-shop-category-desc,
.relic-shop-wrap .relic-shop-category-desc p { font-size: 1rem; line-height: 1.6; }
.relic-shop-wrap .relic-shop-result-count { font-size: 0.95rem; }
.relic-shop-wrap .relic-shop-card-title { font-size: 1.1rem; }
.relic-shop-wrap .relic-shop-card-price { font-size: 1.2rem; }
.relic-shop-wrap .relic-shop-add-btn,
.relic-shop-wrap .relic-shop-cart-checkout { font-size: 0.95rem; }
.relic-shop-wrap .relic-shop-cart-toggle { font-size: 1.05rem; padding: 0.6rem 1rem; gap: 0.55rem; }
.relic-shop-wrap .relic-shop-cart-icon { font-size: 1.2rem; }
.relic-shop-wrap .relic-shop-cart-badge { font-size: 0.82rem; min-width: 1.4rem; padding: 2px 8px; background: var(--rs-accent, #c4632a); color: #fff; }
.relic-shop-wrap .relic-shop-supporter-label { font-size: 0.85rem; margin-bottom: 0.6rem; }
.relic-shop-wrap .relic-shop-supporter-card { padding: 0.8rem 0.9rem; gap: 0.85rem; }
.relic-shop-wrap .relic-shop-supporter-avatar,
.relic-shop-wrap .relic-shop-supporter-avatar--blank { width: 54px; height: 54px; }
.relic-shop-wrap .relic-shop-supporter-name { font-size: 1.12rem; font-weight: 700; }
.relic-shop-wrap .relic-shop-cart-head h3 { font-size: 1.25rem; }
.relic-shop-wrap .relic-cart-item-name { font-size: 0.98rem; }
.relic-shop-wrap .relic-cart-item-price { font-size: 0.9rem; }
.relic-shop-wrap .relic-shop-cart-total-row { font-size: 1.15rem; }

/* ---------------- Mobile layout (proper reflow, no horizontal squish) ---------------- */
@media (max-width: 768px) {
    .relic-shop-wrap .relic-shop { grid-template-columns: 1fr; gap: 1.25rem; }
    .relic-shop-wrap .relic-shop-sidebar { position: static; top: auto; }
    .relic-shop-wrap .relic-shop-nav {
        flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 0.4rem;
        -webkit-overflow-scrolling: touch; padding-bottom: 0.25rem;
    }
    .relic-shop-wrap .relic-shop-nav-btn {
        white-space: nowrap; flex-shrink: 0;
        border: 1px solid var(--rs-border); border-radius: 20px; padding: 0.45rem 0.9rem;
    }
    .relic-shop-wrap .relic-shop-nav-btn:hover { padding-left: 0.9rem; }
    .relic-shop-wrap .relic-shop-supporters { flex-direction: row; gap: 0.75rem; }
    .relic-shop-wrap .relic-shop-supporter { flex: 1; min-width: 0; }
    .relic-shop-wrap .relic-shop-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
    .relic-shop-wrap .relic-shop-category-header h2 { font-size: 1.45rem; }
    .relic-shop-wrap .relic-shop-cart-drawer { width: 100%; max-width: 100%; }
    .relic-shop-wrap .relic-shop-checkout-embed { min-height: 620px; }
}
@media (max-width: 430px) {
    .relic-shop-wrap .relic-shop-card-title { font-size: 1rem; }
    .relic-shop-wrap .relic-shop-supporters { flex-direction: column; }
}

/* ---------------- v0.5.2: orange focus/hover, clean qty stepper, bigger UI ---------------- */
/* Replace the theme's blue focus ring/hover with the shop's orange */
.relic-shop-wrap button:focus,
.relic-shop-portal button:focus { outline: none; box-shadow: none; }
.relic-shop-wrap button:focus-visible,
.relic-shop-portal button:focus-visible {
    outline: 2px solid var(--rs-accent, #c4632a); outline-offset: 1px;
}
.relic-shop-wrap .relic-shop-nav-btn:hover,
.relic-shop-wrap .relic-shop-nav-btn:focus { color: var(--rs-accent, #c4632a); }
.relic-shop-wrap .relic-shop-cart-toggle:hover,
.relic-shop-wrap .relic-shop-cart-toggle:focus {
    border-color: var(--rs-accent, #c4632a);
    color: var(--rs-heading, #1c1e22);
    background: var(--rs-card, #fff);
}
.relic-shop-wrap .relic-shop-add-btn:hover,
.relic-shop-wrap .relic-shop-add-btn:focus,
.relic-shop-wrap .relic-shop-cart-checkout:hover,
.relic-shop-wrap .relic-shop-cart-checkout:focus {
    background: var(--rs-accent-hover, #a8521f); color: #fff;
}
.relic-shop-wrap .relic-shop-checkout-back:hover,
.relic-shop-wrap .relic-shop-checkout-back:focus { border-color: var(--rs-accent, #c4632a); color: var(--rs-accent, #c4632a); }

/* Quantity stepper — force a clean fixed size (theme button padding was bloating it) */
.relic-shop-wrap .relic-cart-qty { display: inline-flex; align-items: center; gap: 0.55rem; }
.relic-shop-wrap .relic-cart-qty-btn {
    width: 34px; height: 34px; min-width: 34px; flex: 0 0 34px;
    padding: 0; margin: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.15rem; line-height: 1; font-weight: 600;
    border: 1px solid var(--rs-border, #e3e3e7);
    background: var(--rs-card-alt, #f7f7f8);
    color: var(--rs-text, #2b2d33);
    border-radius: 6px;
}
.relic-shop-wrap .relic-cart-qty-btn:hover,
.relic-shop-wrap .relic-cart-qty-btn:focus {
    border-color: var(--rs-accent, #c4632a);
    color: var(--rs-accent, #c4632a);
    background: var(--rs-card, #fff);
}
.relic-shop-wrap .relic-cart-qty-val { font-size: 1.1rem; min-width: 26px; text-align: center; font-weight: 600; }

/* Bigger, easier-on-the-eyes UI */
.relic-shop-wrap .relic-shop-cart-toggle { font-size: 1.15rem; padding: 0.72rem 1.25rem; gap: 0.6rem; }
.relic-shop-wrap .relic-shop-cart-icon { font-size: 1.3rem; }
.relic-shop-wrap .relic-shop-cart-badge { font-size: 0.9rem; min-width: 1.5rem; padding: 3px 9px; }
.relic-shop-wrap .relic-shop-nav-btn { font-size: 1.2rem; }
.relic-shop-wrap .relic-shop-nav-count { font-size: 0.9rem; padding: 2px 11px; }

/* Inline cart (drawer) — larger text */
.relic-shop-wrap .relic-shop-cart-head h3 { font-size: 1.45rem; }
.relic-shop-wrap .relic-cart-item { grid-template-columns: 58px 1fr auto; gap: 0.85rem; padding: 0.9rem 0; }
.relic-shop-wrap .relic-cart-item-img { width: 58px; height: 58px; }
.relic-shop-wrap .relic-cart-item-name { font-size: 1.08rem; }
.relic-shop-wrap .relic-cart-item-price { font-size: 1rem; margin: 3px 0 6px; }
.relic-shop-wrap .relic-shop-cart-total-row { font-size: 1.3rem; }
.relic-shop-wrap .relic-shop-cart-checkout { font-size: 1.05rem; padding: 0.85rem 1rem; }
.relic-shop-wrap .relic-shop-cart-note { font-size: 0.85rem; }
.relic-shop-wrap .relic-cart-item-remove { font-size: 1.4rem; }

/* Desktop-only extra padding on category buttons (keeps mobile pills intact) */
@media (min-width: 769px) {
    .relic-shop-wrap .relic-shop-nav-btn { padding: 0.85rem 0.2rem; }
}

/* ---------------- Product detail modal (v0.6.0) ---------------- */
.relic-shop-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(10, 8, 6, 0.6);
    z-index: 100000;
}
.relic-shop-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: min(880px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--rs-card, #fff);
    color: var(--rs-text, #2b2d33);
    border: 1px solid var(--rs-border, #e3e3e7);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(10,8,6,.4);
    z-index: 100001;
    font-family: inherit;
}
.relic-shop-modal-close {
    position: absolute; top: 0.6rem; right: 0.8rem;
    background: none; border: none; cursor: pointer;
    font-size: 1.8rem; line-height: 1; color: var(--rs-text-dim, #6b6f76);
    z-index: 2;
}
.relic-shop-modal-close:hover { color: var(--rs-accent, #c4632a); }

.relic-shop-modal-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.75rem;
    padding: 1.75rem;
}
.relic-shop-modal-left { display: flex; flex-direction: column; gap: 0.9rem; }
.relic-shop-modal-image {
    aspect-ratio: 1 / 1;
    background: var(--rs-card-alt, #f7f7f8);
    border: 1px solid var(--rs-border, #e3e3e7);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    padding: 1.25rem;
}
.relic-shop-modal-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.relic-shop-modal-price {
    font-size: 1.4rem; font-weight: 700; color: var(--rs-heading, #1c1e22);
}
.relic-shop-modal-add { width: 100%; font-size: 1rem; padding: 0.8rem 1rem; }

.relic-shop-modal-right { min-width: 0; }
.relic-shop-modal-title {
    margin: 0 0 1rem; padding: 0;
    font-size: 1.9rem; font-weight: 700; color: var(--rs-heading, #1c1e22); line-height: 1.15;
}
.relic-shop-modal-desc { font-size: 1.02rem; line-height: 1.6; color: var(--rs-text, #2b2d33); }
.relic-shop-modal-desc p { margin: 0 0 0.8rem; }
.relic-shop-modal-desc img { max-width: 100%; height: auto; border-radius: 6px; }
.relic-shop-modal-desc ul { list-style: none; margin: 0; padding: 0; }
.relic-shop-modal-desc ul li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.9rem;
    border-bottom: 1px solid var(--rs-border, #e3e3e7);
}
.relic-shop-modal-desc ul li:last-child { border-bottom: none; }
.relic-shop-modal-desc ul li::before {
    content: "";
    position: absolute; left: 0; top: 50%;
    width: 20px; height: 20px; margin-top: -10px;
    border-radius: 50%;
    background: #4caf50;
    /* white check mark */
    background-image:
        linear-gradient(45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%),
        linear-gradient(-45deg, transparent 60%, #fff 60%, #fff 70%, transparent 70%);
    background-size: 10px 6px, 7px 9px;
    background-position: 6px 9px, 4px 5px;
    background-repeat: no-repeat;
}
.relic-shop-modal-desc ol { margin: 0 0 0.8rem 1.25rem; }

@media (max-width: 680px) {
    .relic-shop-modal-grid { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.25rem; }
    .relic-shop-modal-left { flex-direction: column; }
    .relic-shop-modal-image { max-width: 220px; align-self: center; }
    .relic-shop-modal-title { font-size: 1.5rem; }
}

/* ---------------- v0.6.1 tweaks ---------------- */
/* Item description → 15px. !important is needed here specifically because the
   Tebex description HTML can carry inline font-sizes, and inline styles can
   only be overridden with !important. */
.relic-shop-wrap .relic-shop-modal-desc { font-size: 15px !important; line-height: 1.65; }
.relic-shop-wrap .relic-shop-modal-desc p,
.relic-shop-wrap .relic-shop-modal-desc li,
.relic-shop-wrap .relic-shop-modal-desc a,
.relic-shop-wrap .relic-shop-modal-desc span,
.relic-shop-wrap .relic-shop-modal-desc div { font-size: 15px !important; }

/* "Back to shop" button → match the cart button's size & style */
.relic-shop-wrap .relic-shop-checkout-back {
    font-size: 1.15rem;
    padding: 0.72rem 1.25rem;
    border: 1px solid var(--rs-border, #e3e3e7);
    border-radius: 6px;
    background: var(--rs-card, #fff);
    color: var(--rs-heading, #1c1e22);
    box-shadow: var(--rs-shadow);
    font-weight: 600;
}
.relic-shop-wrap .relic-shop-checkout-back:hover,
.relic-shop-wrap .relic-shop-checkout-back:focus {
    border-color: var(--rs-accent, #c4632a);
    color: var(--rs-accent, #c4632a);
    background: var(--rs-card, #fff);
}

/* Kill the theme's blue underline on category hover/focus/active */
.relic-shop-wrap .relic-shop-nav-btn:hover,
.relic-shop-wrap .relic-shop-nav-btn:focus,
.relic-shop-wrap .relic-shop-nav-btn:active,
.relic-shop-wrap .relic-shop-nav-btn.is-active {
    border-bottom-color: var(--rs-border, #e3e3e7);
    text-decoration: none;
    box-shadow: none;
    outline: none;
}

/* ---------------- v0.6.2 mobile overflow fixes ---------------- */
@media (max-width: 768px) {
    /* Category pills: auto-width, wrap to rows — no full-width pill, no scrollbar */
    .relic-shop-wrap .relic-shop-nav {
        flex-direction: row;
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 0.5rem;
    }
    .relic-shop-wrap .relic-shop-nav-btn,
    .relic-shop-wrap .relic-shop-nav-btn:hover {
        width: auto;
        flex: 0 0 auto;
        justify-content: center;
        gap: 0.45rem;
        white-space: nowrap;
        border: 1px solid var(--rs-border, #e3e3e7);
        border-radius: 20px;
        padding: 0.5rem 1rem;
    }

    /* Top supporters stack vertically — no overflow off the right edge */
    .relic-shop-wrap .relic-shop-supporters { flex-direction: column; gap: 0.75rem; }
    .relic-shop-wrap .relic-shop-supporter { flex: 1 1 auto; min-width: 0; }

    /* Safety net: nothing renders wider than the screen */
    .relic-shop-wrap .relic-shop,
    .relic-shop-wrap .relic-shop-main,
    .relic-shop-wrap .relic-shop-sidebar { max-width: 100%; min-width: 0; }
    .relic-shop-wrap .relic-shop-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- v0.6.4: category description size ---------------- */
/* Force 13px (Tebex category descriptions can carry inline font-sizes) */
.relic-shop-wrap .relic-shop-category-desc,
.relic-shop-wrap .relic-shop-category-desc p,
.relic-shop-wrap .relic-shop-category-desc span,
.relic-shop-wrap .relic-shop-category-desc li,
.relic-shop-wrap .relic-shop-category-desc div { font-size: 13px !important; line-height: 1.6; }

/* ---------------- v0.7.0: inline card descriptions (memberships) ---------------- */
/* Wider columns so the feature list has room */
.relic-shop-wrap .relic-shop-grid--desc {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
/* Card with an inline description: let content flow (don't pin the button) */
.relic-shop-wrap .relic-shop-card--desc .relic-shop-add-btn { margin-top: 0.5rem; }

.relic-shop-wrap .relic-shop-card-desc-inline {
    text-align: left;
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rs-border, #e3e3e7);
    font-size: 14px;
    line-height: 1.55;
    color: var(--rs-text, #2b2d33);
}
.relic-shop-wrap .relic-shop-card-desc-inline p { margin: 0 0 0.7rem; }
.relic-shop-wrap .relic-shop-card-desc-inline img { max-width: 100%; height: auto; border-radius: 6px; }
.relic-shop-wrap .relic-shop-card-desc-inline ul { list-style: none; margin: 0; padding: 0; }
.relic-shop-wrap .relic-shop-card-desc-inline ul li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.9rem;
    border-bottom: 1px solid var(--rs-border, #e3e3e7);
}
.relic-shop-wrap .relic-shop-card-desc-inline ul li:last-child { border-bottom: none; }
.relic-shop-wrap .relic-shop-card-desc-inline ul li::before {
    content: "";
    position: absolute; left: 0; top: 0.55rem;
    width: 20px; height: 20px;
    border-radius: 50%;
    background-color: #4caf50;
    background-image:
        linear-gradient(45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%),
        linear-gradient(-45deg, transparent 60%, #fff 60%, #fff 70%, transparent 70%);
    background-size: 10px 6px, 7px 9px;
    background-position: 6px 9px, 4px 5px;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .relic-shop-wrap .relic-shop-grid--desc { grid-template-columns: 1fr; }
}

/* ---------------- v0.7.1: sidebar label sizes ---------------- */
.relic-shop-wrap .relic-shop-sidebar-title { font-size: 12px; }
.relic-shop-wrap .relic-shop-supporter-label { font-size: 12px; }

/* ---------------- v0.7.3: Libre Franklin (template font) ---------------- */
.relic-shop-wrap,
.relic-shop-portal,
.relic-shop-wrap button,
.relic-shop-wrap input,
.relic-shop-wrap select,
.relic-shop-wrap textarea,
.relic-shop-portal button,
.relic-shop-portal input {
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Continue Shopping — secondary/outline button under Checkout */
.relic-shop-wrap .relic-shop-cart-continue {
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--rs-card, #fff);
    color: var(--rs-heading, #1c1e22);
    border: 1px solid var(--rs-border, #e3e3e7);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}
.relic-shop-wrap .relic-shop-cart-continue:hover,
.relic-shop-wrap .relic-shop-cart-continue:focus {
    border-color: var(--rs-accent, #c4632a);
    color: var(--rs-accent, #c4632a);
    background: var(--rs-card, #fff);
}

/* ---------------- v0.7.4: sidebar spacing, package name size, normal weight ---------------- */
/* More breathing room between the category menu and Top Supporter */
.relic-shop-wrap .relic-shop-supporters { margin-top: 2.75rem; }

/* Bigger package (product) names */
.relic-shop-wrap .relic-shop-card-title { font-size: 1.28rem; font-weight: 500; }
@media (max-width: 640px) {
    .relic-shop-wrap .relic-shop-card-title { font-size: 1.05rem; }
}

/* Match the site's normal font weight on the category menu */
.relic-shop-wrap .relic-shop-nav-btn,
.relic-shop-wrap .relic-shop-nav-btn.is-active { font-weight: 400; }

/* ---------------- v0.7.5: text smoothing + nav size ---------------- */
/* Antialiased rendering — smooths button text (esp. white-on-orange) */
.relic-shop-wrap,
.relic-shop-portal {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Navigation text 1px larger (1.2rem -> 1.26rem ≈ +1px) */
.relic-shop-wrap .relic-shop-nav-btn { font-size: 1.26rem; }

/* ---------------- v0.7.6: clean button typography (match site) ---------------- */
/* The theme uppercases / letter-spaces / text-shadows buttons. Normalize so the
   shop's buttons read in clean normal-case Libre Franklin like the rest of the
   site — this is what was making CHECKOUT / CONTINUE SHOPPING look fragmented. */
.relic-shop-wrap button,
.relic-shop-portal button {
    text-transform: none;
    letter-spacing: normal;
    text-shadow: none;
}
.relic-shop-wrap .relic-shop-cart-checkout,
.relic-shop-wrap .relic-shop-add-btn {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 600;
}
.relic-shop-wrap .relic-shop-cart-continue {
    font-weight: 500;
}

/* ---------------- v0.8.0: Amazon-style cues ---------------- */
/* Price: big whole number with raised cents ($24⁹⁹) */
.relic-shop-wrap .relic-shop-card-price { line-height: 1; }
.relic-shop-wrap .relic-price {
    display: inline-flex; align-items: flex-start;
    color: var(--rs-heading, #1c1e22); font-weight: 600;
}
.relic-shop-wrap .relic-price-sym {
    font-size: 0.72em; margin-top: 0.18em; margin-right: 1px;
}
.relic-shop-wrap .relic-price-whole { font-size: 1.5em; line-height: 0.95; }
.relic-shop-wrap .relic-price-cents {
    font-size: 0.72em; margin-top: 0.18em; margin-left: 1px;
}
.relic-shop-wrap .relic-price-flat { font-weight: 600; color: var(--rs-heading, #1c1e22); }
.relic-shop-wrap .relic-price-free { color: #2e7d32; font-weight: 700; }

/* Search + sort toolbar */
.relic-shop-wrap .relic-shop-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    margin-bottom: 1.4rem; padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--rs-border, #e3e3e7);
}
.relic-shop-wrap .relic-shop-search {
    position: relative; flex: 1 1 260px; min-width: 200px;
}
.relic-shop-wrap .relic-shop-search-icon {
    position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
    font-size: 0.95rem; opacity: 0.6; pointer-events: none;
}
.relic-shop-wrap .relic-shop-search-input {
    width: 100%; padding: 0.62rem 0.9rem 0.62rem 2.3rem;
    border: 1px solid var(--rs-border, #e3e3e7); border-radius: 8px;
    font-size: 1rem; font-family: inherit;
    background: var(--rs-card, #fff); color: var(--rs-text, #2b2d33);
}
.relic-shop-wrap .relic-shop-search-input:focus {
    outline: none; border-color: var(--rs-accent, #c4632a);
    box-shadow: 0 0 0 3px rgba(196, 99, 42, 0.12);
}
.relic-shop-wrap .relic-shop-sort-label {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.92rem; color: var(--rs-text-dim, #6b6f76); white-space: nowrap;
}
.relic-shop-wrap .relic-shop-sort-select {
    padding: 0.52rem 0.7rem; border: 1px solid var(--rs-border, #e3e3e7);
    border-radius: 8px; font-family: inherit; font-size: 0.95rem;
    background: var(--rs-card, #fff); color: var(--rs-text, #2b2d33); cursor: pointer;
}
.relic-shop-wrap .relic-shop-sort-select:focus {
    outline: none; border-color: var(--rs-accent, #c4632a);
}
.relic-shop-wrap .relic-shop-noresults { padding: 2rem 0; color: var(--rs-text-dim, #6b6f76); }

/* Card hover polish */
.relic-shop-wrap .relic-shop-card {
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.relic-shop-wrap .relic-shop-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rs-shadow-hover, 0 6px 20px rgba(20,20,30,.12));
    border-color: var(--rs-border-hover, #c9c9d0);
}
/* Don't lift the tall membership cards (they're info panels, not quick-buy tiles) */
.relic-shop-wrap .relic-shop-card--desc:hover { transform: none; }

@media (max-width: 640px) {
    .relic-shop-wrap .relic-shop-toolbar { gap: 0.6rem; }
    .relic-shop-wrap .relic-shop-sort-label { font-size: 0.85rem; }
}

/* ---------------- v0.8.1: membership perk tables (checkmark + perk, no lines) ---------------- */
.relic-shop-wrap .relic-shop-card-desc-inline table,
.relic-shop-wrap .relic-shop-modal-desc table {
    border-collapse: collapse; width: 100%; margin: 0; border: 0;
}
.relic-shop-wrap .relic-shop-card-desc-inline table tr,
.relic-shop-wrap .relic-shop-card-desc-inline table td,
.relic-shop-wrap .relic-shop-card-desc-inline table th,
.relic-shop-wrap .relic-shop-modal-desc table tr,
.relic-shop-wrap .relic-shop-modal-desc table td,
.relic-shop-wrap .relic-shop-modal-desc table th {
    border: 0 !important; background: transparent !important;
}
.relic-shop-wrap .relic-shop-card-desc-inline table td,
.relic-shop-wrap .relic-shop-modal-desc table td {
    padding: 0.4rem 0; vertical-align: middle;
}
/* First column holds "yes" → swap it for a green checkmark, hide the text */
.relic-shop-wrap .relic-shop-card-desc-inline table td:first-child,
.relic-shop-wrap .relic-shop-modal-desc table td:first-child {
    width: 30px; min-width: 30px; padding-right: 0.65rem;
    font-size: 0 !important; color: transparent; white-space: nowrap;
}
.relic-shop-wrap .relic-shop-card-desc-inline table td:first-child::before,
.relic-shop-wrap .relic-shop-modal-desc table td:first-child::before {
    content: ""; display: inline-block; vertical-align: middle;
    width: 20px; height: 20px; border-radius: 50%;
    background-color: #4caf50;
    background-image:
        linear-gradient(45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%),
        linear-gradient(-45deg, transparent 60%, #fff 60%, #fff 70%, transparent 70%);
    background-size: 10px 6px, 7px 9px;
    background-position: 6px 9px, 4px 5px;
    background-repeat: no-repeat;
}
/* Perk cell */
.relic-shop-wrap .relic-shop-card-desc-inline table td + td {
    font-size: 14px !important; line-height: 1.5; color: var(--rs-text, #2b2d33);
}
.relic-shop-wrap .relic-shop-modal-desc table td + td {
    font-size: 15px !important; line-height: 1.55; color: var(--rs-text, #2b2d33);
}
/* No separator lines on the list version either */
.relic-shop-wrap .relic-shop-card-desc-inline ul li { border-bottom: none; }

/* ---------------- v0.8.2: tighten perk gap + matched toolbar controls ---------------- */
/* Shrink the checkmark column to its content so the perk sits right beside it
   (overrides any inline column width from the Tebex table). */
.relic-shop-wrap .relic-shop-card-desc-inline table td:first-child,
.relic-shop-wrap .relic-shop-modal-desc table td:first-child {
    width: 1% !important;
    min-width: 0 !important;
    max-width: none !important;
    white-space: nowrap !important;
    padding: 0.4rem 0.6rem 0.4rem 0 !important;
}
.relic-shop-wrap .relic-shop-card-desc-inline table td + td,
.relic-shop-wrap .relic-shop-modal-desc table td + td {
    width: auto !important;
    padding: 0.4rem 0 !important;
    text-align: left !important;
}

/* Search box and sort dropdown: identical height/style */
.relic-shop-wrap .relic-shop-sort-select {
    padding: 0.62rem 2.2rem 0.62rem 0.9rem;
    font-size: 1rem;
    border: 1px solid var(--rs-border, #e3e3e7);
    border-radius: 8px;
    line-height: 1.3;
    height: auto;
    flex: 0 0 auto;
}
.relic-shop-wrap .relic-shop-search-input {
    line-height: 1.3;
}

/* ---------------- v0.8.3: narrower search, no overlap ---------------- */
.relic-shop-wrap .relic-shop-toolbar { flex-wrap: nowrap; }
.relic-shop-wrap .relic-shop-search {
    flex: 0 1 440px;     /* up to 440px, shrinks on small screens, doesn't grow full-width */
    max-width: 440px;
    min-width: 0;
}
.relic-shop-wrap .relic-shop-search-input,
.relic-shop-wrap .relic-shop-sort-select {
    box-sizing: border-box;   /* keep padding inside the width so it can't overflow/overlap */
}
@media (max-width: 640px) {
    .relic-shop-wrap .relic-shop-search { flex: 1 1 auto; max-width: none; }
}

/* ---------------- v0.9.0: server picker in cart ---------------- */
.relic-shop-wrap .relic-shop-server-row {
    margin-bottom: 0.9rem;
    padding: 0.75rem;
    background: var(--rs-card-alt, #f7f7f8);
    border: 1px solid var(--rs-border, #e3e3e7);
    border-radius: 8px;
}
.relic-shop-wrap .relic-shop-server-label {
    display: block; font-size: 0.85rem; font-weight: 600;
    color: var(--rs-heading, #1c1e22); margin-bottom: 0.4rem;
}
.relic-shop-wrap .relic-shop-server-select {
    width: 100%; box-sizing: border-box;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--rs-border, #e3e3e7); border-radius: 6px;
    font-family: inherit; font-size: 0.95rem;
    background: var(--rs-card, #fff); color: var(--rs-text, #2b2d33);
}
.relic-shop-wrap .relic-shop-server-select:focus {
    outline: none; border-color: var(--rs-accent, #c4632a);
}

/* ---------------- v0.9.1: memberships in 3 columns ---------------- */
.relic-shop-wrap .relic-shop-grid--desc { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) and (min-width: 769px) {
    .relic-shop-wrap .relic-shop-grid--desc { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .relic-shop-wrap .relic-shop-grid--desc { grid-template-columns: 1fr; }
}

/* ---------------- v0.9.2: plain bullets for list descriptions (match Tebex) ----------------
   Membership perks come as a yes/perk TABLE (styled with checkmarks above).
   Item descriptions use a real <ul> — render those as normal bullets with proper
   spacing instead of the overlapping green-check treatment. */
.relic-shop-wrap .relic-shop-modal-desc ul,
.relic-shop-wrap .relic-shop-card-desc-inline ul {
    list-style: disc;
    margin: 0.5rem 0;
    padding-left: 1.4rem;
}
.relic-shop-wrap .relic-shop-modal-desc ul li,
.relic-shop-wrap .relic-shop-card-desc-inline ul li {
    position: static;
    padding: 0.22rem 0;
    margin: 0;
    border-bottom: none;
    list-style: disc;
}
.relic-shop-wrap .relic-shop-modal-desc ul li::before,
.relic-shop-wrap .relic-shop-card-desc-inline ul li::before {
    content: none;
    display: none;
}

/* ---------------- v0.9.3: bigger "Checkout secured by Tebex" note ---------------- */
.relic-shop-wrap .relic-shop-cart-note { font-size: 0.95rem; }

/* ---------------- v0.9.9: My Cart nav link + Tebex page content ---------------- */
/* Set the cart nav link apart from the category list. */
.relic-shop-wrap .relic-shop-nav-cart {
    margin-top: 0.5rem;
    border-top: 1px solid var(--rs-border, #e3e3e7);
    padding-top: 0.85rem;
}
/* Readable rendering of Tebex custom page HTML. */
.relic-shop-wrap .relic-shop-page-content {
    line-height: 1.6;
    color: var(--rs-text, #2b2d33);
}
.relic-shop-wrap .relic-shop-page-content img { max-width: 100%; height: auto; border-radius: 8px; }
.relic-shop-wrap .relic-shop-page-content h1,
.relic-shop-wrap .relic-shop-page-content h2,
.relic-shop-wrap .relic-shop-page-content h3 { color: var(--rs-heading, #1c1e22); margin: 1.2rem 0 0.6rem; }
.relic-shop-wrap .relic-shop-page-content p { margin: 0 0 1rem; }
.relic-shop-wrap .relic-shop-page-content a { color: var(--rs-accent, #c4632a); }
.relic-shop-wrap .relic-shop-page-content ul,
.relic-shop-wrap .relic-shop-page-content ol { margin: 0 0 1rem 1.4rem; }
.relic-shop-wrap .relic-shop-page-content table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
.relic-shop-wrap .relic-shop-page-content td,
.relic-shop-wrap .relic-shop-page-content th { padding: 0.5rem 0.7rem; border: 1px solid var(--rs-border, #e3e3e7); }

/* ---------------- v0.9.10: cart spacing + FAQ below supporters ---------------- */
/* More whitespace between the last category and My Cart. */
.relic-shop-wrap .relic-shop-nav-cart {
    margin-top: 1.5rem;
}
/* FAQ / pages nav sits below the supporters block with its own spacing. */
.relic-shop-wrap .relic-shop-nav-pages {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rs-border, #e3e3e7);
}

/* ---------------- v0.9.12: » arrow prefix on category nav items ---------------- */
.relic-shop-wrap .relic-shop-nav:not(.relic-shop-nav-pages) .relic-shop-nav-btn:not(.relic-shop-nav-cart) .relic-shop-nav-label::before {
    content: "\00BB";
    margin-right: 0.6rem;
    color: var(--rs-muted, #b3b3b9);
    font-weight: 700;
}
.relic-shop-wrap .relic-shop-nav:not(.relic-shop-nav-pages) .relic-shop-nav-btn:not(.relic-shop-nav-cart):hover .relic-shop-nav-label::before,
.relic-shop-wrap .relic-shop-nav:not(.relic-shop-nav-pages) .relic-shop-nav-btn.is-active:not(.relic-shop-nav-cart) .relic-shop-nav-label::before {
    color: var(--rs-accent, #c4632a);
}

/* ---------------- v0.9.14: mobile = stacked menu, not pills ---------------- */
@media (max-width: 768px) {
    .relic-shop-wrap .relic-shop-nav {
        flex-direction: column;
        flex-wrap: nowrap;
        overflow-x: visible;
        gap: 0;
    }
    .relic-shop-wrap .relic-shop-nav-btn,
    .relic-shop-wrap .relic-shop-nav-btn:hover {
        width: 100%;
        flex: 0 0 auto;
        justify-content: flex-start;
        white-space: normal;
        border: none;
        border-radius: 0;
        border-bottom: 1px solid var(--rs-border, #e3e3e7);
        padding: 0.85rem 0.2rem;
    }
    /* push the count badge to the right edge of each row */
    .relic-shop-wrap .relic-shop-nav-btn .relic-shop-nav-count { margin-left: auto; }
    /* My Cart keeps its separation but no double divider */
    .relic-shop-wrap .relic-shop-nav-cart { border-bottom: none; }
}

/* ---------------- v0.9.15: bigger top-supporter name ---------------- */
.relic-shop-wrap .relic-shop-supporter-name { font-size: 1.3rem; }

/* ---------------- v0.9.16: bigger "Checkout secured by Tebex" note ---------------- */
.relic-shop-wrap .relic-shop-cart-note { font-size: 1.1rem; }

/* ---------------- v0.9.17: "preparing checkout" loading cover ---------------- */
.relic-shop-wrap .relic-shop-checkout { position: relative; }
.relic-shop-wrap .relic-shop-checkout-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    min-height: 480px;
    padding: 2rem;
    text-align: center;
    background: var(--rs-bg, #fff);
}
.relic-shop-wrap .relic-shop-checkout-loading p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--rs-text, #2b2d33);
}
.relic-shop-wrap .relic-shop-spinner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 4px solid var(--rs-border, #e3e3e7);
    border-top-color: var(--rs-accent, #c4632a);
    animation: relic-spin 0.8s linear infinite;
}
@keyframes relic-spin { to { transform: rotate(360deg); } }

/* ---------------- v0.9.18: top-supporter names not bold ---------------- */
.relic-shop-wrap .relic-shop-supporter-name { font-weight: 400; }

/* ---------------- v0.9.19: supporters below items on mobile ---------------- */
.relic-shop-wrap .relic-shop-supporters-mobile { display: none; }
@media (max-width: 768px) {
    .relic-shop-wrap .relic-shop-supporters-desktop { display: none; }
    .relic-shop-wrap .relic-shop-supporters-mobile { display: block; margin-top: 1.5rem; }
}

/* ---------------- v0.9.20: gift-card recipient email field in cart ---------------- */
.relic-shop-wrap .relic-cart-giftcard { margin-top: 0.55rem; }
.relic-shop-wrap .relic-cart-giftcard label {
    display: block; font-size: 0.8rem; font-weight: 600;
    color: var(--rs-heading, #1c1e22); margin-bottom: 0.25rem;
}
.relic-shop-wrap .relic-cart-giftcard-email {
    width: 100%; box-sizing: border-box;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--rs-border, #e3e3e7); border-radius: 6px;
    font-family: inherit; font-size: 0.9rem;
    background: var(--rs-card, #fff); color: var(--rs-text, #2b2d33);
}
.relic-shop-wrap .relic-cart-giftcard-email:focus { outline: none; border-color: var(--rs-accent, #c4632a); }

/* ---------------- v0.9.22: bigger Add to Cart button + text ---------------- */
.relic-shop-wrap .relic-shop-add-btn {
    font-size: 1.08rem;
    padding: 0.82rem 1.2rem;
}
