@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&family=Fraunces:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Work+Sans:wght@400;500;600;700&display=swap");
/* Template 2 -- "Clean cards". Everything is scoped under body.lm-tpl-2 so it can never touch template 1.
   Loaded by LmTemplateHead() (src/userfn.php) from views/layout.php. See docs/TEMPLATES.md. */

body.lm-tpl-2 {
    --lm2-plum: #7B4EA3;
    --lm2-plum-dark: #5F3A84;
    --lm2-plum-tint: #F1EAF6;
    --lm2-panel: #F4E3E6;
    --lm2-bg: #FBF5EE;
    --lm2-line: #E9DFD5;
    --lm2-text: #2A2420;
    --lm2-muted: #5C5349;
    --lm2-green: #2E7D5B;
    --lm2-amber: #C99A2E;
    --bs-primary: #7B4EA3;
    --bs-link-color: #7B4EA3;
    --bs-link-hover-color: #5F3A84;
    background: var(--lm2-bg) !important;
    color: var(--lm2-text);
    font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.lm-tpl-2, body.lm-tpl-2 h1, body.lm-tpl-2 h2, body.lm-tpl-2 h3, body.lm-tpl-2 h4, body.lm-tpl-2 h5, body.lm-tpl-2 h6 {
    font-family: "Fraunces", Georgia, serif; font-weight: 500;
}
body.lm-tpl-2 a { color: var(--lm2-plum); }
body.lm-tpl-2 .wrapper, body.lm-tpl-2 .content-wrapper { background: transparent; }

/* The AdminLTE navbar is replaced by #lm-t2-header; the sidebar stays as a drawer (menu button) */
body.lm-tpl-2 .wrapper.ew-layout > nav.main-header { display: none !important; }
body.lm-tpl-2 .main-sidebar { z-index: 1050; }

/* ---- Top bar ---- */
.lm-t2-header {
    position: sticky; top: 0; z-index: 1040;
    display: flex; align-items: center; gap: 28px;
    min-height: 64px; padding: 0 clamp(16px, 4vw, 40px);
    background: var(--lm2-bg, #FBF5EE); border-bottom: 1px solid var(--lm2-line, #E9DFD5);
    font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.lm-t2-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lm-t2-menu-btn { color: #5C5349; font-size: 18px; padding: 6px 8px; text-decoration: none; }
.lm-t2-wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #2A2420 !important; white-space: nowrap; }
.lm-t2-wordmark span { font-family: "Great Vibes", cursive; font-size: 30px; line-height: 1; }
.lm-t2-badge { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.lm-t2-brandlogo { height: 40px; max-width: 120px; width: auto; border-radius: 8px; object-fit: contain; }
.lm-t2-nav { display: flex; align-items: stretch; gap: 26px; align-self: stretch; }
.lm-t2-nav a {
    display: flex; align-items: center; font-size: 14px; font-weight: 500; text-decoration: none;
    color: #5C5349 !important; border-bottom: 2px solid transparent; padding-top: 2px;
}
.lm-t2-nav a:hover { color: #7B4EA3 !important; }
.lm-t2-nav a.active { color: #7B4EA3 !important; border-bottom-color: #7B4EA3; }
.lm-t2-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lm-t2-cart { position: relative; color: #5C5349 !important; font-size: 17px; padding: 6px; text-decoration: none; }
.lm-t2-cart-n {
    position: absolute; top: -2px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 9px; background: #7B4EA3; color: #fff; font-size: 10px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
}
.lm-t2-account {
    display: flex; align-items: center; gap: 8px; cursor: pointer;
    background: #fff; border: 1px solid #DDD9E0; border-radius: 999px; padding: 5px 12px 5px 6px;
    font-size: 14px; font-weight: 500; color: #2A2420;
}
.lm-t2-account:hover { border-color: #7B4EA3; }
.lm-t2-avatar {
    width: 26px; height: 26px; border-radius: 50%; background: #F1EAF6; color: #7B4EA3;
    display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.lm-t2-chev { font-size: 10px; color: #5C5349; }
@media (max-width: 760px) {
    .lm-t2-header { flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
    .lm-t2-brand { order: 1; }
    .lm-t2-right { order: 2; }
    .lm-t2-nav { order: 3; flex: 1 0 100%; overflow-x: auto; gap: 20px; min-height: 44px; }
    .lm-t2-nav a { white-space: nowrap; }
    .lm-t2-account-text { display: none; }
    .lm-t2-account { padding-right: 8px; }
    .lm-t2-wordmark span { font-size: 26px; }
}

/* ---- Other pages: light touch (buttons / links / headings), no layout changes ---- */
body.lm-tpl-2 .content-header h1 { color: var(--lm2-text) !important; font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 26px; }
body.lm-tpl-2 .btn-primary, body.lm-tpl-2 .btn-success { background-color: #7B4EA3 !important; border-color: #7B4EA3 !important; color: #fff !important; }
body.lm-tpl-2 .btn-primary:hover, body.lm-tpl-2 .btn-success:hover { background-color: #5F3A84 !important; border-color: #5F3A84 !important; }
body.lm-tpl-2 .card { border: 1px solid var(--lm2-line); border-radius: 12px; box-shadow: none; }

/* ---- Dashboard ---- */
.lm2-page { max-width: 1120px; margin: 0 auto; padding: 26px 0 48px; color: var(--lm2-text); }
.lm2-title { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 28px; font-weight: 500; letter-spacing: -0.01em; color: var(--lm2-text); }
.lm2-sub { margin: 6px 0 22px; color: var(--lm2-muted); font-size: 14px; }

.lm2-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.lm2-stat { background: #fff; border: 1px solid var(--lm2-line); border-radius: 12px; padding: 14px 18px; }
.lm2-stat-label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--lm2-muted); }
.lm2-stat-num { margin-top: 6px; font-size: 28px; font-weight: 700; line-height: 1; }
.lm2-dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; }
.lm2-dot-active { background: var(--lm2-green); }
.lm2-dot-pending { background: var(--lm2-amber); }

.lm2-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    background: var(--lm2-plum); color: #fff; border-radius: 12px; padding: 20px 24px; margin-bottom: 22px;
}
.lm2-banner-text { flex: 1 1 280px; min-width: 0; }
.lm2-banner-text strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.lm2-progress { height: 4px; border-radius: 4px; background: rgba(255,255,255,.28); overflow: hidden; margin-bottom: 7px; max-width: 520px; }
.lm2-progress span { display: block; height: 100%; background: #fff; border-radius: 4px; }
.lm2-banner small { font-size: 12px; opacity: .85; }
.lm2-banner-btn {
    background: #fff; color: var(--lm2-plum); border: 0; border-radius: 999px; padding: 10px 20px;
    font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.lm2-banner-btn:hover { background: var(--lm2-plum-tint); }
.lm2-banner-btn i { margin-left: 6px; font-size: 12px; }

.lm2-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.lm2-search { position: relative; flex: 1 1 260px; max-width: 420px; }
.lm2-search > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8C8793; font-size: 13px; pointer-events: none; }
.lm2-search input {
    width: 100%; box-sizing: border-box; height: 40px; padding: 0 36px 0 38px; font-size: 14px;
    border: 1px solid var(--lm2-line); border-radius: 999px; background: #fff; color: var(--lm2-text); outline: none;
}
.lm2-search input:focus { border-color: var(--lm2-plum); box-shadow: 0 0 0 3px rgba(123,78,163,.12); }
.lm2-search-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border: 0; border-radius: 50%; background: #EEEAF0; color: #5C5662; font-size: 16px; line-height: 22px; cursor: pointer; padding: 0; }
.lm2-search-x[hidden] { display: none; }
.lm2-search-results { display: none; position: absolute; left: 0; right: 0; top: 46px; z-index: 30; background: #fff; border: 1px solid var(--lm2-line); border-radius: 12px; box-shadow: 0 10px 28px rgba(42,36,32,.14); max-height: 300px; overflow-y: auto; padding: 4px 0; }
.lm2-search-results.open { display: block; }
.lm2-search-results a, .lm2-search-results .msg { display: block; padding: 9px 14px; font-size: 13.5px; text-decoration: none; color: var(--lm2-text); }
.lm2-search-results a:hover { background: var(--lm2-plum-tint); }
.lm2-search-results .msg { color: var(--lm2-muted); }
.lm2-scope, .lm2-filters { display: inline-flex; gap: 2px; padding: 3px; background: #ECE8EF; border-radius: 999px; }
.lm2-filters { margin-left: auto; }
.lm2-scope button, .lm2-filters button { border: 0; background: transparent; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 500; color: #5C5662; cursor: pointer; }
.lm2-scope button b, .lm2-filters button b { font-weight: 500; opacity: .7; margin-left: 3px; }
.lm2-scope button.on, .lm2-filters button.on { background: #fff; color: var(--lm2-text); box-shadow: 0 1px 2px rgba(42,36,32,.12); }

.lm2-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lm2-card { background: #fff; border: 1px solid var(--lm2-line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lm2-card[hidden], .lm2-nomatch[hidden], .lm2-modal[hidden] { display: none; }
.lm2-card.flag { border-color: var(--lm2-plum); box-shadow: 0 0 0 3px rgba(123,78,163,.15); }
.lm2-card-top { display: flex; gap: 14px; align-items: flex-start; }
.lm2-qr { flex: 0 0 76px; width: 76px; height: 76px; border: 1px solid var(--lm2-line); border-radius: 8px; padding: 5px; background: #fff; box-sizing: border-box; }
.lm2-qr { cursor: zoom-in; overflow: hidden; }
.lm2-qr:hover, .lm2-qr:focus-visible { border-color: var(--lm2-plum); box-shadow: 0 0 0 3px rgba(123,78,163,.15); outline: none; }
.lm2-qr.lm2-qr-dark { background: #000; border-color: #000; padding: 0; }
.lm2-qr img { margin: 0; border: 0; max-width: none; }
.lm2-qr img { width: 100%; height: 100%; display: block; object-fit: contain; }
.lm2-card-id { min-width: 0; flex: 1 1 auto; }
.lm2-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 2px 9px 2px 8px; border-radius: 999px; margin-bottom: 6px; }
.lm2-chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lm2-chip-pending { background: #FBF1DA; color: #8A6417; }
.lm2-chip-active { background: #DDF1E6; color: #1F6B49; }
.lm2-chip-processing { background: var(--lm2-plum-tint); color: var(--lm2-plum); }
.lm2-name { margin: 0; font-family: "Fraunces", Georgia, serif; color: var(--lm2-text) !important; font-size: 16px; font-weight: 500; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm2-code { margin-top: 3px; color: var(--lm2-muted) !important; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; color: var(--lm2-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm2-card-mid { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--lm2-line); padding-top: 12px; }
.lm2-vid { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--lm2-text); min-width: 0; overflow: hidden; }
.lm2-vid a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm2-vid i { color: var(--lm2-plum); font-size: 12px; flex: 0 0 auto; }
.lm2-vid-none, .lm2-vid-none i { color: var(--lm2-muted); }
.lm2-tools { display: flex; gap: 4px; flex: 0 0 auto; }
.lm2-tool { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #5C5349; font-size: 13px; cursor: pointer; }
.lm2-tool:hover { background: var(--lm2-plum-tint); color: var(--lm2-plum); }
.lm2-tool.ok { color: var(--lm2-green); background: #E3F3EA; }
.lm2-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--lm2-muted); margin-top: -4px; }
.lm2-eye { color: var(--lm2-muted) !important; }
.lm2-card-actions { display: flex; gap: 8px; margin-top: auto; }
.lm2-btn {
    flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    background: var(--lm2-plum); color: #fff !important; border: 1px solid var(--lm2-plum); border-radius: 8px;
    padding: 10px 14px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.lm2-btn:hover { background: var(--lm2-plum-dark); border-color: var(--lm2-plum-dark); }
.lm2-btn i { font-size: 12px; }
.lm2-btn-ghost { background: #fff; color: var(--lm2-plum) !important; }
.lm2-btn-ghost:hover { background: var(--lm2-plum-tint); border-color: var(--lm2-plum); }
.lm2-btn-icon { flex: 0 0 auto; padding: 10px 13px; }
.lm2-nomatch { grid-column: 1 / -1; text-align: center; color: var(--lm2-muted); padding: 36px 0; margin: 0; }

.lm2-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.lm2-showing { font-size: 13px; color: var(--lm2-muted); }
.lm2-pages { display: flex; align-items: center; gap: 4px; }
.lm2-pages button { min-width: 34px; height: 34px; border: 1px solid transparent; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 500; color: #5C5349; cursor: pointer; }
.lm2-pages button:hover:not(:disabled) { background: #ECE8EF; }
.lm2-pages button.on { background: var(--lm2-plum); color: #fff; }
.lm2-pages button:disabled { opacity: .35; cursor: default; }
.lm2-pages span { color: var(--lm2-muted); padding: 0 4px; }

.lm2-empty, .lm2-info-card { background: #fff; border: 1px solid var(--lm2-line); border-radius: 12px; padding: 22px 24px; }
.lm2-empty h2 { margin: 0 0 8px; font-family: "Fraunces", Georgia, serif; font-size: 20px; font-weight: 500; }
.lm2-empty p, .lm2-info-card p { margin: 0 0 10px; color: #5C5349; font-size: 14px; line-height: 1.6; }
.lm2-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.lm2-info-card h3 { margin: 0 0 8px; font-family: "Fraunces", Georgia, serif; font-size: 17px; font-weight: 500; }
.lm2-info-card a { font-weight: 600; font-size: 14px; }

/* ---- Add-video modal (hosts the shared wizard: .dc-wizard-* / .dc-cf-*) ---- */
.lm2-modal { position: fixed; inset: 0; z-index: 1060; background: rgba(42,36,32,.5); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; }
.lm2-modal-card { background: #fff; border-radius: 14px; width: 100%; max-width: 920px; box-shadow: 0 24px 60px rgba(42,36,32,.35); }
.lm2-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--lm2-line); }
.lm2-modal-head h2 { margin: 0; font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm2-modal-x { border: 0; background: transparent; font-size: 26px; line-height: 1; color: #5C5349; cursor: pointer; padding: 0 4px; }
body.dc-cf-busy .lm2-modal-x { visibility: hidden; }
.lm2-modal-body { padding: 18px 22px 22px; }
body.lm2-modal-open { overflow: hidden; }
.lm2-modal .dc-wizard-step { color: var(--lm2-plum); font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.lm2-modal .dc-wizard-body { display: flex; gap: 16px; align-items: flex-start; }
.lm2-modal .dc-wizard-frame { flex: 1 1 auto; min-width: 0; border: 0; display: block; }
.lm2-modal .dc-wizard-help { display: none; flex: 0 0 250px; margin-top: 70px; background: var(--lm2-plum-tint); border: 1px solid #D9CBE6; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--lm2-text); }
.lm2-modal .dc-wizard-help strong { color: var(--lm2-plum); }
.lm2-modal .dc-wizard-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.lm2-modal .dc-wizard-nav .btn { border-radius: 8px; padding: 8px 18px; font-size: 14px; font-weight: 600; }
.lm2-modal .dc-wizard-nav .btn-default { background: #fff !important; border: 1px solid #D9D4DD !important; color: var(--lm2-text) !important; }
.lm2-modal .dc-cf-progress { padding: 22px 4px; }
.lm2-modal .dc-cf-progress-label { font-size: 14px; margin-bottom: 10px; }
.lm2-modal .dc-cf-progress-bar-track { background: #ECE8EF; border-radius: 6px; height: 8px; overflow: hidden; }
.lm2-modal .dc-cf-progress-bar-fill { background: var(--lm2-plum); height: 100%; width: 0%; transition: width .4s ease; }
.lm2-modal .dc-cf-progress-bar-fill.dc-cf-indeterminate { width: 35% !important; animation: lm2Ticker 1.3s ease-in-out infinite; }
@keyframes lm2Ticker { 0%, 100% { margin-left: 0%; } 50% { margin-left: 65%; } }
.lm2-modal .dc-cf-error { color: #B3261E; font-size: 14px; }
body.dc-cf-busy, body.dc-cf-busy * { cursor: progress !important; }
@media (max-width: 700px) {
    .lm2-modal .dc-wizard-body { flex-direction: column; }
    .lm2-modal .dc-wizard-help { flex: 1 1 auto; width: 100%; margin-top: 10px; box-sizing: border-box; }
}

/* ---- Responsive grid ---- */
@media (max-width: 960px) {
    .lm2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .lm2-grid, .lm2-info { grid-template-columns: minmax(0, 1fr); }
    .lm2-stats { gap: 8px; }
    .lm2-stat { padding: 12px; }
    .lm2-stat-num { font-size: 22px; }
    .lm2-filters { margin-left: 0; }
    .lm2-search { max-width: none; flex-basis: 100%; }
    .lm2-banner { padding: 18px; }
    .lm2-banner-btn { width: 100%; }
}

/* ---- QR modal ---- */
.lm2-qr-card { max-width: 440px; }
.lm2-qr-body { padding: 18px 22px 24px; text-align: center; }
.lm2-qr-big { width: min(86vw, 340px); aspect-ratio: 1; margin: 0 auto 14px; background: #fff; border: 1px solid var(--lm2-line); border-radius: 12px; padding: 12px; box-sizing: border-box; }
.lm2-qr-big.lm2-qr-dark { background: #000; border-color: #000; padding: 0; }
.lm2-qr-big img { width: 100%; height: 100%; display: block; object-fit: contain; margin: 0; max-width: none; }
.lm2-qr-body .lm2-code { white-space: normal; word-break: break-all; margin-bottom: 6px; }
.lm2-qr-url { display: block; font-size: 12.5px; word-break: break-all; margin-bottom: 16px; }
.lm2-qr-url[hidden] { display: none; }
.lm2-qr-actions { display: flex; gap: 8px; }
.lm2-qr-actions .lm2-btn[hidden] { display: none; }
.lm2-qr-actions .lm2-btn.ok { background: #E3F3EA; color: var(--lm2-green) !important; border-color: var(--lm2-green); }
@media (max-width: 640px) {
    .lm2-modal { padding: 3vh 12px; }
    .lm2-qr-body { padding: 14px 16px 20px; }
    .lm2-qr-actions { flex-direction: column; }
    .lm2-qr { flex-basis: 68px; width: 68px; height: 68px; }
}

/* ---- Logged-out visitors (default brand): same top bar, no AdminLTE sidebar / page-title bar ---- */
body.lm-tpl-2.lm-out .wrapper.ew-layout > aside.main-sidebar { display: none !important; }
body.lm-tpl-2.lm-out .wrapper.ew-layout > div.content-wrapper { margin-left: 0 !important; }
body.lm-tpl-2.lm-out .wrapper.ew-layout > div.content-wrapper > div.content-header { display: none !important; }
.lm-t2-signin { font-size: 14px; font-weight: 500; color: #5C5349 !important; text-decoration: none; padding: 8px 6px; }
.lm-t2-signin:hover { color: #7B4EA3 !important; }
.lm-t2-register {
    font-size: 14px; font-weight: 600; text-decoration: none; color: #fff !important; background: #7B4EA3;
    border-radius: 999px; padding: 8px 18px;
}
.lm-t2-register:hover { background: #5F3A84; }

/* ---- Template 2 skin for the glass-family pages (Login, OTP, Reset, Register, Support, Activate Code, Cart, Change password)
        and the Shop: flat white cards, Inter, plum buttons; the sunset backdrop is dropped ---- */
body.lm-tpl-2 .dc-sunset-bg { display: none !important; }
body.lm-tpl-2 .wrapper.ew-layout, body.lm-tpl-2 .content-wrapper { background: transparent !important; min-height: 0; }
body.lm-tpl-2 .ew-login-box, body.lm-tpl-2 .ew-register-box, body.lm-tpl-2 #contactus-wrap { margin-top: 36px; }
body.lm-tpl-2 .ew-login-box .card.ew-login-card,
body.lm-tpl-2 .ew-register-box .card.ew-register-card,
body.lm-tpl-2 #contactus .card.ew-support-card,
body.lm-tpl-2 .card.card-registration {
    background: #fff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    border: 1px solid var(--lm2-line) !important; border-radius: 14px !important;
    box-shadow: 0 1px 2px rgba(42,36,32,.04), 0 10px 28px rgba(42,36,32,.07) !important;
}
body.lm-tpl-2 .ew-login-box .login-box-msg, body.lm-tpl-2 .ew-login-box p, body.lm-tpl-2 .ew-login-box label, body.lm-tpl-2 .ew-login-box hr,
body.lm-tpl-2 .ew-register-box p, body.lm-tpl-2 .ew-register-box label, body.lm-tpl-2 .ew-register-box hr, body.lm-tpl-2 .ew-register-box h1,
body.lm-tpl-2 .ew-register-box h2, body.lm-tpl-2 .ew-register-box h3, body.lm-tpl-2 .ew-register-title,
body.lm-tpl-2 #contactus label, body.lm-tpl-2 #contactus p, body.lm-tpl-2 #contactus h1, body.lm-tpl-2 #contactmsg p, body.lm-tpl-2 #contactmsg h1,
body.lm-tpl-2 #contact-info p, body.lm-tpl-2 #contact-info .dc-contact-label, body.lm-tpl-2 .card.card-registration label, body.lm-tpl-2 .card.card-registration h1,
body.lm-tpl-2 .card.card-registration h2, body.lm-tpl-2 .card.card-registration h3, body.lm-tpl-2 .card.card-registration h5, body.lm-tpl-2 .card.card-registration p {
    color: var(--lm2-text) !important; border-color: var(--lm2-line) !important; text-shadow: none !important;
}
body.lm-tpl-2 .ew-login-box input.form-control, body.lm-tpl-2 .ew-register-box input.form-control, body.lm-tpl-2 .ew-register-box select.form-select,
body.lm-tpl-2 .ew-register-box select.form-control, body.lm-tpl-2 #contactus .form-control, body.lm-tpl-2 .card.card-registration .form-control,
body.lm-tpl-2 .card.card-registration .form-select {
    background: #fff !important; border: 1px solid #DDD9E0 !important; border-radius: 10px !important; color: var(--lm2-text) !important;
    box-shadow: none !important; height: auto !important;
}
body.lm-tpl-2 .ew-login-box input.form-control:focus, body.lm-tpl-2 .ew-register-box .form-control:focus, body.lm-tpl-2 #contactus .form-control:focus,
body.lm-tpl-2 .card.card-registration .form-control:focus { border-color: var(--lm2-plum) !important; box-shadow: 0 0 0 3px rgba(123,78,163,.12) !important; }
body.lm-tpl-2 .ew-login-box ::placeholder, body.lm-tpl-2 .ew-register-box ::placeholder, body.lm-tpl-2 #contactus ::placeholder,
body.lm-tpl-2 .card.card-registration ::placeholder { color: #9A949E !important; }
body.lm-tpl-2 .ew-login-form .input-group-text, body.lm-tpl-2 .ew-login-form .ew-toggle-password,
body.lm-tpl-2 .ew-register-box .input-group-text, body.lm-tpl-2 .ew-register-box .ew-toggle-password {
    background: #fff !important; border: 1px solid #DDD9E0 !important; border-left: 0 !important; color: var(--lm2-muted) !important; box-shadow: none !important;
}
body.lm-tpl-2 .dc-logo-emboss { filter: none !important; opacity: 1 !important; max-width: 150px; height: auto; }
body.lm-tpl-2 .ew-login-box #btn-submit, body.lm-tpl-2 .ew-register-box #btn-submit, body.lm-tpl-2 .ew-register-box .btn-primary,
body.lm-tpl-2 #contactus #btn-submit, body.lm-tpl-2 .card.card-registration .ew-glass-btn, body.lm-tpl-2 .ew-login-box .ew-glass-btn {
    background: var(--lm2-plum) !important; background-image: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    border: 1px solid var(--lm2-plum) !important; border-radius: 10px !important; color: #fff !important; text-shadow: none !important;
    font-weight: 600; box-shadow: none !important; padding: 11px 16px !important;
}
body.lm-tpl-2 .ew-login-box #btn-submit:hover, body.lm-tpl-2 .ew-register-box #btn-submit:hover, body.lm-tpl-2 #contactus #btn-submit:hover,
body.lm-tpl-2 .card.card-registration .ew-glass-btn:hover, body.lm-tpl-2 .ew-login-box .ew-glass-btn:hover { background: var(--lm2-plum-dark) !important; filter: none !important; }
body.lm-tpl-2 .ew-login-box .ew-glass-btn-danger { background: #fff !important; color: #B3261E !important; border-color: #E8C4C0 !important; }
body.lm-tpl-2 .ew-login-box .card-link, body.lm-tpl-2 .ew-login-box a, body.lm-tpl-2 .ew-register-box a,
body.lm-tpl-2 #contact-info a, body.lm-tpl-2 .card.card-registration a { color: var(--lm2-plum) !important; font-weight: 600; }

/* Shop */
body.lm-tpl-2 .wrapper.ew-layout, body.lm-tpl-2 .content-wrapper { font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
body.lm-tpl-2 .lm-h-serif, body.lm-tpl-2 .lm-h-serif-italic { font-family: "Fraunces", Georgia, serif !important; font-weight: 500; letter-spacing: 0; }
body.lm-tpl-2 .lm-h-serif-italic { font-style: italic; }
body.lm-tpl-2 .lm-hero { border-radius: 14px; background-color: var(--lm2-panel) !important; }
body.lm-tpl-2 .dc-shop-grid .product, body.lm-tpl-2 .dc-shop-grid > div > div { border-radius: 14px !important; border: 1px solid var(--lm2-line) !important; box-shadow: none !important; }
body.lm-tpl-2 .dc-shop-price, body.lm-tpl-2 .dc-shop-gst { color: var(--lm2-text) !important; font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important; }
body.lm-tpl-2 .product-buttons .btn, body.lm-tpl-2 .product-buttons a.btn, body.lm-tpl-2 .dc-shop-grid .btn {
    background: var(--lm2-plum) !important; border-color: var(--lm2-plum) !important; color: #fff !important; border-radius: 10px !important;
}
body.lm-tpl-2 .dc-shop-more, body.lm-tpl-2 .dc-shop-grid a { color: var(--lm2-plum) !important; }
body.lm-tpl-2 .dc-shop-grid a.btn { color: #fff !important; }
body.lm-tpl-2 .dc-shop-trust, body.lm-tpl-2 .dc-shop-trust-item { color: var(--lm2-muted) !important; }

/* skin follow-ups */
body.lm-tpl-2 .ew-register-box .ew-glass-btn:not(#btn-submit), body.lm-tpl-2 .ew-register-box a.btn:not(.btn-primary) {
    background: #fff !important; background-image: none !important; color: var(--lm2-plum) !important; border: 1px solid #DDD9E0 !important;
    border-radius: 10px !important; box-shadow: none !important; text-shadow: none !important; backdrop-filter: none !important;
}
body.lm-tpl-2 .ew-register-box .ew-glass-btn:not(#btn-submit):hover { background: var(--lm2-plum-tint) !important; }
body.lm-tpl-2 .dc-shop-grid h2, body.lm-tpl-2 .dc-shop-grid h3, body.lm-tpl-2 .dc-shop-grid h4, body.lm-tpl-2 .dc-shop-grid h5,
body.lm-tpl-2 .dc-shop-grid [style*="Fraunces"], body.lm-tpl-2 .dc-shop-grid .dc-shop-name { font-family: "Fraunces", Georgia, serif !important; font-weight: 500 !important; color: var(--lm2-text) !important; }

/* skin follow-ups 2 */
body.lm-tpl-2 #tclink {
    background: #fff !important; background-image: none !important; color: var(--lm2-plum) !important; border: 1px solid #DDD9E0 !important;
    border-radius: 10px !important; box-shadow: none !important; text-shadow: none !important; backdrop-filter: none !important; padding: 8px 14px !important;
}
body.lm-tpl-2 #tclink:hover { background: var(--lm2-plum-tint) !important; }
body.lm-tpl-2 .block-body .heading, body.lm-tpl-2 .block-body .heading a { font-family: "Fraunces", Georgia, serif !important; font-weight: 500 !important; color: var(--lm2-text) !important; text-transform: none; }

/* ---- Login / Register panel: www "What is the Lived Memories QR Code Plaque" panel look (blush panel, Fraunces heading, pink pill + outline buttons) ---- */
body.lm-tpl-2 .ew-login-box .card.ew-login-card,
body.lm-tpl-2 .ew-register-box .card.ew-register-card {
    background: var(--lm2-panel) !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
body.lm-tpl-2 .ew-login-box .login-box-msg, body.lm-tpl-2 .ew-register-box h1, body.lm-tpl-2 .ew-register-box h2,
body.lm-tpl-2 .ew-register-box h3, body.lm-tpl-2 .ew-register-title {
    font-family: "Fraunces", Georgia, serif !important; font-weight: 500 !important; color: var(--lm2-text) !important;
}
body.lm-tpl-2 .ew-login-box hr, body.lm-tpl-2 .ew-register-box hr { border-color: rgba(42,36,32,.14) !important; }
body.lm-tpl-2 .ew-login-box #btn-submit, body.lm-tpl-2 .ew-register-box #btn-submit, body.lm-tpl-2 .ew-register-box .btn-primary,
body.lm-tpl-2 .ew-login-box .ew-glass-btn:not(.ew-glass-btn-danger) {
    background: #F2C4CF !important; border: 1px solid #F2C4CF !important; color: var(--lm2-text) !important;
    border-radius: 999px !important; font-weight: 600; letter-spacing: .02em; padding: 12px 28px !important;
}
body.lm-tpl-2 .ew-login-box #btn-submit:hover, body.lm-tpl-2 .ew-register-box #btn-submit:hover,
body.lm-tpl-2 .ew-register-box .btn-primary:hover, body.lm-tpl-2 .ew-login-box .ew-glass-btn:not(.ew-glass-btn-danger):hover {
    background: #EDB3C2 !important; border-color: #EDB3C2 !important;
}
body.lm-tpl-2 .ew-register-box .ew-glass-btn:not(#btn-submit), body.lm-tpl-2 .ew-register-box a.btn:not(.btn-primary),
body.lm-tpl-2 .ew-login-box .ew-glass-btn-danger {
    background: transparent !important; color: var(--lm2-text) !important; border: 1px solid var(--lm2-text) !important;
    border-radius: 999px !important; font-weight: 600;
}
body.lm-tpl-2 .ew-register-box .ew-glass-btn:not(#btn-submit):hover { background: rgba(255,255,255,.5) !important; }

/* login/register text styling as in the www panel: Work Sans, muted body copy, charcoal labels, serif heading size */
body.lm-tpl-2 .ew-login-box, body.lm-tpl-2 .ew-register-box { font-family: "Work Sans", system-ui, sans-serif; }
body.lm-tpl-2 .ew-login-box .login-box-msg { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
body.lm-tpl-2 .ew-login-box p, body.lm-tpl-2 .ew-register-box p { color: var(--lm2-muted) !important; font-size: 15px; line-height: 1.7; }
body.lm-tpl-2 .ew-login-box label, body.lm-tpl-2 .ew-register-box label { color: var(--lm2-text) !important; font-size: 14px; font-weight: 500; }
body.lm-tpl-2 .ew-login-box a, body.lm-tpl-2 .ew-register-box a:not(.btn) { color: #7B4EA3 !important; font-weight: 600; }
body.lm-tpl-2 .ew-login-box input.form-control, body.lm-tpl-2 .ew-register-box .form-control, body.lm-tpl-2 .ew-register-box .form-select { font-family: "Work Sans", system-ui, sans-serif; font-size: 15px; }

/* ---- All forms: same blush panel + text + button styling as login/register ---- */
body.lm-tpl-2 form.ew-add-form, body.lm-tpl-2 form.ew-edit-form, body.lm-tpl-2 form.ew-view-form, body.lm-tpl-2 form.ew-delete-form,
body.lm-tpl-2 form.ew-ext-search-form, body.lm-tpl-2 #contactus .card.ew-support-card, body.lm-tpl-2 .card.card-registration {
    background: var(--lm2-panel) !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 22px 26px;
}
body.lm-tpl-2 #contactus .card.ew-support-card, body.lm-tpl-2 .card.card-registration { padding: 0; }
body.lm-tpl-2 form.ew-add-form label, body.lm-tpl-2 form.ew-edit-form label, body.lm-tpl-2 form.ew-view-form label,
body.lm-tpl-2 form.ew-delete-form label, body.lm-tpl-2 form.ew-ext-search-form label, body.lm-tpl-2 #contactus label, body.lm-tpl-2 .card-registration label {
    color: var(--lm2-text) !important; font-size: 14px; font-weight: 500;
}
body.lm-tpl-2 form.ew-add-form p, body.lm-tpl-2 form.ew-edit-form p, body.lm-tpl-2 #contactus p, body.lm-tpl-2 .card-registration p { color: var(--lm2-muted) !important; line-height: 1.7; }
body.lm-tpl-2 #contactus h1, body.lm-tpl-2 .card-registration h1, body.lm-tpl-2 .card-registration h2, body.lm-tpl-2 .card-registration h3,
body.lm-tpl-2 form.ew-add-form h3, body.lm-tpl-2 form.ew-edit-form h3 { font-family: "Fraunces", Georgia, serif !important; font-weight: 500 !important; }
body.lm-tpl-2 form.ew-form .form-control, body.lm-tpl-2 form.ew-form .form-select, body.lm-tpl-2 #contactus .form-control, body.lm-tpl-2 .card-registration .form-control {
    background: #fff !important; border: 1px solid #DDD3CA !important; border-radius: 10px !important; font-family: "Work Sans", system-ui, sans-serif; font-size: 15px;
}
body.lm-tpl-2 form.ew-form .form-control:focus, body.lm-tpl-2 form.ew-form .form-select:focus { border-color: #AD8A4D !important; box-shadow: 0 0 0 3px rgba(173,138,77,.18) !important; }
body.lm-tpl-2 form.ew-form .btn-primary, body.lm-tpl-2 form.ew-form .btn-success, body.lm-tpl-2 form.ew-form button[type=submit],
body.lm-tpl-2 #contactus #btn-submit, body.lm-tpl-2 .card-registration .ew-glass-btn, body.lm-tpl-2 .ew-list-form .btn-primary, body.lm-tpl-2 .ew-btn-primary {
    background: #F2C4CF !important; border: 1px solid #F2C4CF !important; color: var(--lm2-text) !important;
    border-radius: 999px !important; font-weight: 600; letter-spacing: .02em; padding: 10px 26px !important; background-image: none !important;
}
body.lm-tpl-2 form.ew-form .btn-primary:hover, body.lm-tpl-2 form.ew-form .btn-success:hover, body.lm-tpl-2 form.ew-form button[type=submit]:hover,
body.lm-tpl-2 #contactus #btn-submit:hover, body.lm-tpl-2 .card-registration .ew-glass-btn:hover { background: #EDB3C2 !important; border-color: #EDB3C2 !important; }
body.lm-tpl-2 form.ew-form .btn-secondary, body.lm-tpl-2 form.ew-form .btn-default, body.lm-tpl-2 form.ew-form .btn-danger {
    background: transparent !important; color: var(--lm2-text) !important; border: 1px solid var(--lm2-text) !important; border-radius: 999px !important; font-weight: 600;
}

/* ---- Top menu text = www.livedmemories.com nav: Work Sans 14px / 600 / #7B4EA3, no active underline ---- */
.lm-t2-nav { gap: 28px; }
.lm-t2-nav a, .lm-t2-signin { font-family: "Work Sans", sans-serif; font-size: 14px; font-weight: 600; color: #7B4EA3 !important; }
.lm-t2-nav a { border-bottom: 0; padding-top: 0; }
.lm-t2-nav a:hover, .lm-t2-nav a.active, .lm-t2-signin:hover { color: #5F3A84 !important; border-bottom: 0; }
.lm-t2-cart { color: #7B4EA3 !important; }

/* header badge: larger, sourced from a 2x pre-resampled image so the dotted ring stays crisp */
.lm-t2-badge { width: 56px; height: 56px; }

/* Data grids (Order Tracking etc.): the t1 glass CSS forces white text for the dark sunset background; on t2's light page
   that text vanishes. Re-colour for light. Specificity is deliberately higher than t1's inline rules (.card.ew-grid ancestor). */
body.lm-tpl-2 .content-header h1, body.lm-tpl-2 .content-header .ew-breadcrumbs, body.lm-tpl-2 .content-header .ew-breadcrumbs .breadcrumb-item a,
body.lm-tpl-2 .content-header .ew-breadcrumbs .breadcrumb-item.active { color: var(--lm2-text) !important; text-shadow: none !important; }
body.lm-tpl-2 .content-header .ew-breadcrumbs .breadcrumb-item + .breadcrumb-item::before { color: var(--lm2-muted) !important; }
body.lm-tpl-2 .content-wrapper .ew-extended-search label, body.lm-tpl-2 .content-wrapper .ew-extended-search .form-label { color: var(--lm2-text) !important; }
body.lm-tpl-2 .content-wrapper .ew-extended-search .form-control, body.lm-tpl-2 .content-wrapper .ew-extended-search .form-select,
body.lm-tpl-2 .content-wrapper .ew-basic-search-keyword, body.lm-tpl-2 .content-wrapper .ew-search-panel .form-control,
body.lm-tpl-2 .content-wrapper .ew-pager .input-group > input.ew-page-number {
    background: #fff !important; border: 1px solid var(--lm2-line) !important; color: var(--lm2-text) !important;
}
body.lm-tpl-2 .content-wrapper .ew-extended-search .form-control::placeholder, body.lm-tpl-2 .content-wrapper .ew-basic-search-keyword::placeholder { color: var(--lm2-muted); }
body.lm-tpl-2 .content-wrapper .card.ew-grid {
    background: #fff !important; backdrop-filter: none; -webkit-backdrop-filter: none;
    border: 1px solid var(--lm2-line) !important; border-radius: 14px !important; box-shadow: 0 2px 10px rgba(40, 20, 40, 0.06);
}
body.lm-tpl-2 .content-wrapper .ew-grid-upper-panel.card-header, body.lm-tpl-2 .content-wrapper .ew-grid-lower-panel.card-footer { color: var(--lm2-text) !important; border-color: var(--lm2-line) !important; }
body.lm-tpl-2 .content-wrapper .ew-pager, body.lm-tpl-2 .content-wrapper .ew-pager a, body.lm-tpl-2 .content-wrapper .ew-pager span,
body.lm-tpl-2 .content-wrapper .ew-list-other-options { color: var(--lm2-text) !important; }
body.lm-tpl-2 .content-wrapper .card.ew-grid table.ew-table { color: var(--lm2-text); }
body.lm-tpl-2 .content-wrapper .card.ew-grid table.ew-table > :not(caption) > * > * { color: var(--lm2-text) !important; border-color: var(--lm2-line) !important; }
body.lm-tpl-2 .content-wrapper .card.ew-grid table.ew-table thead tr.ew-table-header > * { background: var(--lm2-plum-tint) !important; color: var(--lm2-plum-dark) !important; font-weight: 600; }
body.lm-tpl-2 .content-wrapper .card.ew-grid table.ew-table.table-hover > tbody > tr:hover > * { background: #FAF3F8 !important; }
body.lm-tpl-2 .content-wrapper .card.ew-grid table.ew-table a, body.lm-tpl-2 .content-wrapper .card.ew-grid .ew-row-link { color: var(--lm2-plum) !important; }
body.lm-tpl-2 .content-wrapper .card.ew-grid table.ew-table a:hover, body.lm-tpl-2 .content-wrapper .card.ew-grid .ew-row-link:hover { color: var(--lm2-plum-dark) !important; }
/* row-preview panel keeps its own white box */
body.lm-tpl-2 .content-wrapper .card.ew-grid table.ew-table tr.ew-table-preview-row td,
body.lm-tpl-2 .content-wrapper .card.ew-grid table.ew-table tr.ew-table-preview-row table > :not(caption) > * > * { background: #fff !important; color: var(--lm2-text) !important; }
body.lm-tpl-2 .content-wrapper .card.ew-grid table.ew-table tr.ew-table-preview-row table thead > tr > * { background: var(--lm2-plum-tint) !important; color: var(--lm2-plum-dark) !important; }