﻿.swe-front-widget,.swe-front-widget *,.swe-front-widget *::before,.swe-front-widget *::after{box-sizing:border-box;}
.swe-front-widget{font-family:inherit;font-size:17px;line-height:1.55;--swe-primary:var(--wp--preset--color--primary,var(--global--color-primary,var(--ast-global-color-0,var(--e-global-color-primary,#222))));--swe-primary-hover:var(--wp--preset--color--secondary,var(--global--color-secondary,var(--ast-global-color-1,var(--e-global-color-secondary,#444))));--swe-primary-text:var(--wp--preset--color--base,#fff);--swe-accent:var(--swe-primary);--swe-accent-soft:color-mix(in srgb,var(--swe-primary) 10%,transparent);--swe-muted-bg:var(--wp--preset--color--contrast-2,#dde5f5);}

.swe-error-msg{background:#fff5f5;border-left:3px solid #e53e3e;padding:12px 16px;border-radius:0 4px 4px 0;font-size:13px;color:#c53030;}

/* â•â• WIDGET 1: EVENTS GRID â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.swe-widget-header{margin-bottom:24px;}
.swe-widget-title{font-size:30px;font-weight:700;color:#1a1a2e;margin-bottom:6px;line-height:1.2;}
.swe-widget-subtitle{font-size:17px;color:#666;margin:0;}
.swe-card-wrap{display:flex;flex-direction:column;height:100%;min-height:0;}
.swe-card-label{font-size:18px;font-weight:700;color:#1a1a2e;margin-bottom:10px;padding-bottom:8px;border-bottom:2px solid var(--swe-primary);}
.swe-card{display:flex;flex-direction:column;flex:1;min-height:0;}
.swe-widget{display:grid;gap:20px;align-items:stretch;}
.swe-cols-auto{grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));}
.swe-cols-1{grid-template-columns:1fr;}
.swe-cols-2{grid-template-columns:repeat(2,1fr);}
.swe-cols-3{grid-template-columns:repeat(3,1fr);}
.swe-cols-4{grid-template-columns:repeat(4,1fr);}
@media(max-width:900px){.swe-cols-3,.swe-cols-4{grid-template-columns:repeat(2,1fr);}}
@media(max-width:600px){.swe-cols-auto,.swe-cols-2,.swe-cols-3,.swe-cols-4{grid-template-columns:1fr;}}

.swe-card{background:#fff;border:1px solid #e8e8e8;border-radius:8px;overflow:hidden;cursor:pointer;transition:box-shadow .2s,transform .2s;display:flex;flex-direction:column;box-shadow:0 1px 4px rgba(0,0,0,.05);height:100%;}
.swe-card:hover{box-shadow:0 6px 24px rgba(0,0,0,.12);transform:translateY(-2px);}
.swe-card__img{width:100%;aspect-ratio:16/9;height:auto;min-height:0;line-height:0;overflow:hidden;background-color:var(--swe-muted-bg);background-image:linear-gradient(135deg,var(--swe-primary),var(--swe-primary-hover));background-size:cover;background-position:center;background-repeat:no-repeat;flex:0 0 auto;position:relative;}
.swe-card__body{padding:18px;flex:1;display:flex;flex-direction:column;gap:7px;}
.swe-card__date{font-size:14px;color:var(--swe-accent);font-weight:600;background:var(--swe-accent-soft);padding:3px 9px;border-radius:3px;display:inline-block;width:fit-content;}
.swe-card__title{font-size:19px;font-weight:700;color:#1a1a2e;line-height:1.35;}
.swe-card__loc{font-size:15px;color:#777;line-height:1.4;}
.swe-card__actions{margin-top:auto;padding-top:10px;}
.swe-card__actions{margin-top:auto;padding-top:10px;display:flex;flex-direction:column;gap:6px;}
.swe-card__actions--inline{flex-direction:row;}
.swe-card__actions--inline .swe-btn-view,
.swe-card__actions--inline .swe-btn-donate{flex:1;}
.swe-btn-view{width:100%;padding:11px 14px;background:var(--swe-primary);color:var(--swe-primary-text);border:none;border-radius:5px;font-size:16px;font-weight:600;cursor:pointer;transition:background .15s;text-align:center;}
.swe-btn-view:hover{background:var(--swe-primary-hover);}
.swe-btn-donate{width:100%;padding:11px 14px;background:var(--swe-primary-hover);color:var(--swe-primary-text);border:none;border-radius:5px;font-size:16px;font-weight:600;cursor:pointer;transition:background .15s;text-align:center;text-decoration:none;display:block;}
.swe-btn-donate:hover{background:var(--swe-primary);color:var(--swe-primary-text);}

/* â•â• WIDGET 2: EVENTS LEADERBOARD â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.swe-lb-widget{max-width:760px;}
.swe-lb-title{font-size:24px;font-weight:700;color:#1a1a2e;margin-bottom:6px;}
.swe-lb-subtitle{font-size:16px;color:#888;margin-bottom:20px;}
.swe-searchbar{width:100%;padding:11px 14px;border:1px solid #d1d5db;border-radius:6px;font-size:16px;margin-bottom:16px;transition:border-color .15s;}
.swe-searchbar:focus{border-color:var(--swe-primary);outline:none;box-shadow:0 0 0 2px rgba(26,46,90,.08);}

.swe-ev-lb-list{display:flex;flex-direction:column;gap:10px;}
.swe-ev-lb-item{display:flex;align-items:center;gap:14px;padding:14px 16px;background:#fff;border:1px solid #ebebeb;border-radius:8px;transition:border-color .15s,box-shadow .15s;}
.swe-ev-lb-item:hover{border-color:var(--swe-accent);box-shadow:0 2px 10px rgba(0,0,0,.07);}
.swe-ev-lb-rank{width:32px;height:32px;border-radius:50%;background:var(--swe-primary);color:var(--swe-primary-text);font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.rank-gold{background:linear-gradient(135deg,#d4a017,#b8860b);}
.rank-silver{background:linear-gradient(135deg,#aaa,#888);}
.rank-bronze{background:linear-gradient(135deg,#b97a50,#8b4513);}
.swe-ev-lb-thumb{width:52px;height:52px;border-radius:6px;object-fit:cover;flex-shrink:0;background:linear-gradient(135deg,var(--swe-primary),var(--swe-primary-hover));}
.swe-ev-lb-info{flex:1;min-width:0;}
.swe-ev-lb-name{font-weight:700;font-size:17px;color:#1a1a2e;margin-bottom:4px;}
.swe-ev-lb-meta{font-size:14px;color:#888;}
/* After Bar (default) */
.swe-ev-lb-bar-wrap{display:flex;align-items:center;gap:8px;margin-top:6px;}
.swe-ev-lb-bar-track{flex:1;height:5px;background:#e8e8e8;border-radius:3px;overflow:hidden;}
.swe-ev-lb-bar{height:5px;background:var(--swe-accent);border-radius:3px;}
.swe-ev-lb-pct{font-size:12px;color:#888;flex-shrink:0;white-space:nowrap;}

/* Hidden — bar only, no percentage */
.swe-ev-lb-bar-wrap--hidden .swe-ev-lb-pct{display:none;}

/* Inside Bar */
.swe-ev-lb-bar-wrap--inside{display:block;margin-top:8px;}
.swe-ev-lb-bar-track--tall{height:22px;background:#e8e8e8;border-radius:4px;overflow:hidden;position:relative;}
.swe-ev-lb-bar--tall{height:22px;background:var(--swe-accent);border-radius:4px;position:relative;min-width:0;transition:width .4s ease;}
.swe-ev-lb-pct-inside{position:absolute;right:6px;top:50%;transform:translateY(-50%);font-size:11px;font-weight:700;color:#fff;white-space:nowrap;pointer-events:none;}
.swe-ev-lb-pct-inside--overflow{right:auto;left:calc(100% + 6px);color:#666;}
.swe-ev-lb-title{font-size:18px;font-weight:700;color:#1a1a2e;line-height:1.2;}
.swe-ev-lb-name--sub{font-size:14px;color:#888;margin-top:2px;}
.swe-ev-lb-right{display:flex;flex-direction:column;align-items:flex-end;flex-shrink:0;}
.swe-ev-lb-amount{font-size:20px;font-weight:800;color:var(--swe-primary);}
.swe-ev-lb-goal{font-size:13px;color:#888;margin-top:2px;}
.swe-ev-lb-item{cursor:pointer;}

/* â•â• WIDGET 3: INDIVIDUAL LEADERBOARD â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.swe-ind-lb-list{display:flex;flex-direction:column;gap:10px;}
.swe-ind-item{display:flex;align-items:center;gap:12px;padding:13px 16px;background:#fff;border:1px solid #ebebeb;border-radius:8px;text-decoration:none;color:inherit;cursor:pointer;transition:border-color .15s,box-shadow .15s;}
.swe-ind-item:hover{border-color:var(--swe-accent);box-shadow:0 2px 10px rgba(0,0,0,.07);}
.swe-ind-rank{width:30px;height:30px;border-radius:50%;background:var(--swe-primary);color:var(--swe-primary-text);font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.swe-ind-avatar{width:44px;height:44px;border-radius:50%;background:var(--swe-muted-bg);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:17px;color:var(--swe-primary);flex-shrink:0;overflow:hidden;}
.swe-ind-avatar img{width:100%;height:100%;object-fit:cover;}
.swe-ind-info{flex:1;min-width:0;}
.swe-ind-name{font-weight:700;font-size:17px;color:#1a1a2e;}
.swe-ind-event{font-size:14px;color:#888;margin-top:2px;}
.swe-ind-bar-wrap{height:4px;background:#e8e8e8;border-radius:3px;margin-top:5px;overflow:hidden;}
.swe-ind-bar{height:100%;background:var(--swe-accent);border-radius:3px;}
.swe-ind-amount{font-size:18px;font-weight:800;color:var(--swe-primary);flex-shrink:0;}

/* â•â• WIDGET 4: PARTICIPANTS & DONATIONS â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.swe-pd-list{display:flex;flex-direction:column;gap:8px;}
.swe-pd-item{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff;border:1px solid #ebebeb;border-radius:8px;cursor:pointer;transition:border-color .15s,box-shadow .15s;}
.swe-pd-item:hover{border-color:var(--swe-accent);box-shadow:0 2px 10px rgba(0,0,0,.07);}
.swe-pd-avatar{width:40px;height:40px;border-radius:50%;background:var(--swe-muted-bg);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;color:var(--swe-primary);flex-shrink:0;}
.swe-pd-info{flex:1;min-width:0;}
.swe-pd-name{font-weight:700;font-size:17px;color:#1a1a2e;}
.swe-pd-event{font-size:14px;color:#888;margin-top:1px;}
.swe-pd-total{font-size:16px;font-weight:800;color:var(--swe-primary);flex-shrink:0;}
.swe-pd-count{font-size:13px;color:#777;text-align:right;margin-top:1px;}
.swe-pd-chevron{color:#ccc;font-size:14px;flex-shrink:0;}

/* â•â• OVERLAY + SIDEBAR â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.swe-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:9998;backdrop-filter:blur(2px);}
.swe-overlay.is-open{display:block;}
.swe-sidebar{position:fixed;top:0;right:0;height:100%;width:min(600px,95vw);background:#fff;z-index:9999;transform:translateX(100%);transition:transform .3s cubic-bezier(.4,0,.2,1);overflow:hidden;box-shadow:-4px 0 30px rgba(0,0,0,.15);display:flex;flex-direction:column;}
.swe-sidebar.is-open{transform:translateX(0);}
.swe-sidebar__close{position:absolute;top:12px;right:14px;width:34px;height:34px;min-width:34px;min-height:34px;padding:0;border-radius:50%;background:rgba(255,255,255,.94);border:1px solid rgba(0,0,0,.12);color:#222;font-family:inherit;font-size:22px;font-weight:400;line-height:1;cursor:pointer;z-index:3;display:flex;align-items:center;justify-content:center;appearance:none;box-shadow:0 1px 4px rgba(0,0,0,.12);transition:background .15s,box-shadow .15s;}
.swe-sidebar__close:hover{background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.18);}
.swe-sidebar__banner{width:100%;aspect-ratio:16/7;object-fit:cover;display:block;}
.swe-sidebar__banner-ph{width:100%;aspect-ratio:16/7;background:linear-gradient(135deg,var(--swe-primary),var(--swe-primary-hover));}
.swe-sidebar__content{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;}
.swe-sidebar__body{padding:20px 24px;flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;}
.swe-sidebar__title{font-size:25px;font-weight:700;color:#1a1a2e;margin-bottom:14px;line-height:1.25;}
.swe-sidebar__meta{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px;}
.swe-sidebar__meta-item{display:flex;align-items:flex-start;gap:7px;font-size:15px;flex:1 1 180px;}
.swe-sidebar__meta-icon{color:var(--swe-accent);margin-top:1px;flex-shrink:0;}
.swe-sidebar__meta-text{display:flex;flex-direction:column;}
.swe-sidebar__meta-text strong{font-weight:600;}
.swe-sidebar__meta-text small{font-size:15px;color:#777;}
.swe-sidebar__meta-text a{color:var(--swe-accent);font-size:15px;text-decoration:none;}
.swe-sidebar__meta-text a:hover{text-decoration:underline;}

.swe-tabs{display:flex;gap:18px;border-bottom:1px solid #e8e8e8;margin:0 -24px 18px;padding:0 24px;background:#fff;position:sticky;top:-20px;z-index:2;}
.swe-tab{width:auto!important;min-width:0!important;min-height:0!important;padding:12px 0 10px!important;font-size:17px!important;font-weight:600;color:#666!important;cursor:pointer;border:0!important;border-radius:0!important;background:transparent!important;border-bottom:3px solid transparent!important;margin:0!important;box-shadow:none!important;appearance:none!important;line-height:1.2!important;text-decoration:none!important;transition:color .15s,border-color .15s;}
.swe-tab:hover{color:var(--swe-primary)!important;background:transparent!important;box-shadow:none!important;}
.swe-tab.is-active{color:var(--swe-primary)!important;border-bottom-color:var(--swe-primary)!important;background:transparent!important;box-shadow:none!important;}
.swe-tab::before,.swe-tab::after{content:none!important;display:none!important;}
.swe-tab-panel{display:none;}
.swe-tab-panel.is-active{display:block;}
.swe-sidebar__desc{font-size:17px;line-height:1.75;color:#444;}

/* ── Walker profile sidebar ──────────────────────────────────── */
.swe-walker-profile{padding:32px 24px 24px;}
.swe-walker-profile__name{font-size:28px;font-weight:700;color:#1a1a2e;margin-bottom:4px;line-height:1.2;}
.swe-walker-profile__event{font-size:16px;color:#777;margin-bottom:20px;}
.swe-walker-profile__amount{font-size:34px;font-weight:800;color:var(--swe-primary);margin-bottom:4px;}
.swe-walker-profile__goal{font-size:16px;color:#777;margin-bottom:12px;}
.swe-walker-profile__bar-wrap{display:flex;align-items:center;gap:12px;}
.swe-walker-profile__bar-track{flex:1;height:8px;background:#e8e8e8;border-radius:5px;overflow:hidden;}
.swe-walker-profile__bar{height:100%;background:var(--swe-accent,#1a2e5a);border-radius:5px;}
.swe-walker-profile__pct{font-size:14px;font-weight:700;color:var(--swe-primary);flex-shrink:0;}
.swe-walker-profile__donate-wrap{position:sticky;bottom:-20px;padding:12px 24px;background:#fff;border-top:1px solid #e8e8e8;margin:0 -24px -20px;}
.swe-walker-profile__donate{display:block;width:100%;padding:14px;background:var(--swe-primary);color:var(--swe-primary-text);border:none;border-radius:5px;font-size:17px;font-weight:700;text-align:center;text-decoration:none;transition:background .15s;}
.swe-walker-profile__donate:hover{background:var(--swe-primary-hover);}

/* ── Rank badge styles ───────────────────────────────────────── */
.swe-rank-badge{width:30px;height:30px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;}
.swe-rank-badge--shape{border-radius:50%;color:#fff;}
.swe-rank-badge--outline{border-radius:50%;border:2px solid;background:transparent;}
.swe-rank-badge--number{background:transparent;}

/* ── Walker goal label ───────────────────────────────────────── */
.swe-ind-goal,.swe-pd-goal{font-size:13px;color:#888;margin-top:3px;}

/* ── Sidebar fundraising stats ───────────────────────────────── */
.swe-fundraising-stats{padding:14px 0 10px;}
.swe-fundraising-stats__amount{font-size:24px;font-weight:800;color:var(--swe-primary);margin-bottom:8px;}
.swe-fundraising-stats__bar-wrap{display:flex;align-items:center;gap:10px;margin-bottom:6px;}
.swe-fundraising-stats__bar-track{flex:1;height:8px;background:#e8e8e8;border-radius:4px;overflow:hidden;}
.swe-fundraising-stats__bar{height:100%;background:var(--swe-accent,#1a2e5a);border-radius:4px;transition:width .4s ease;}
.swe-fundraising-stats__pct{font-size:13px;font-weight:700;color:var(--swe-primary);flex-shrink:0;}
.swe-fundraising-stats__goal{font-size:13px;color:#888;margin-bottom:4px;}
.swe-fundraising-stats__divider{border-top:1px solid #f0f0f0;margin:12px 0;}

/* Sidebar leaderboard */
.swe-sb-lb{display:flex;flex-direction:column;gap:8px;}
.swe-sb-lb-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #ebebeb;border-radius:7px;background:#fafafa;cursor:pointer;transition:all .15s;}
.swe-sb-lb-item:hover{border-color:var(--swe-accent);background:#f0f6fc;}
.swe-sb-lb-rank{width:26px;height:26px;border-radius:50%;background:var(--swe-primary);color:var(--swe-primary-text);font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.swe-sb-lb-avatar{width:36px;height:36px;border-radius:50%;background:var(--swe-muted-bg);display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;color:var(--swe-primary);flex-shrink:0;}
.swe-sb-lb-info{flex:1;min-width:0;}
.swe-sb-lb-name{font-weight:600;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.swe-sb-lb-bar-wrap{height:4px;background:#e8e8e8;border-radius:3px;margin-top:3px;overflow:hidden;}
.swe-sb-lb-bar{height:100%;background:var(--swe-accent,#1a2e5a);border-radius:3px;}
.swe-sb-lb-amount{font-weight:700;font-size:14px;color:var(--swe-primary);flex-shrink:0;}
.swe-sidebar-btns{display:flex;flex-direction:column;gap:8px;margin:auto -24px -20px;padding:12px 24px;background:#fff;border-top:1px solid #e8e8e8;position:sticky;bottom:-20px;z-index:2;}
.swe-sidebar-btns--inline{flex-direction:row;}
.swe-register-btn{display:block;flex:1;padding:14px;background:var(--swe-primary);color:var(--swe-primary-text);border:none;border-radius:5px;font-size:17px;font-weight:700;text-align:center;text-decoration:none;cursor:pointer;transition:background .15s;}
.swe-register-btn:hover{background:var(--swe-primary-hover);}
.swe-event-link-btn{display:block;flex:1;padding:14px;background:transparent;color:var(--swe-primary);border:2px solid var(--swe-primary);border-radius:5px;font-size:17px;font-weight:700;text-align:center;text-decoration:none;cursor:pointer;transition:all .15s;}
.swe-event-link-btn:hover{background:var(--swe-primary);color:var(--swe-primary-text);}
.swe-location-block{padding:4px 0;}
.swe-location-block--compact .swe-map-wrap{height:180px;}
.swe-location-block--compact .swe-map-iframe{height:180px;}
.swe-location-heading{font-size:18px;font-weight:700;color:#1a1a2e;margin-bottom:8px;}
.swe-location-venue{display:block;font-size:16px;font-weight:600;color:var(--swe-accent);text-decoration:none;margin-bottom:3px;}
.swe-location-venue:hover{text-decoration:underline;}
.swe-location-address{font-size:16px;color:#555;margin-bottom:10px;line-height:1.55;}
.swe-btn-directions{display:inline-block;padding:8px 14px;background:var(--swe-primary);color:var(--swe-primary-text);border-radius:4px;font-size:15px;font-weight:600;text-decoration:none;margin-bottom:12px;transition:background .15s;}
.swe-btn-directions:hover{background:var(--swe-primary-hover);}
.swe-map-wrap{border-radius:8px;overflow:hidden;border:1px solid #e8e8e8;}
.swe-map-iframe{width:100%;height:260px;border:none;display:block;}
.swe-summary-location-divider{border-top:1px solid #f0f0f0;margin:20px 0;}
.swe-sidebar__desc{font-size:17px;line-height:1.75;color:#444;}
.swe-sidebar__desc h3{font-size:18px;font-weight:700;margin-bottom:8px;color:#1a1a2e;}
.swe-sidebar__desc p{margin-bottom:8px;}
.swe-host-card{display:flex;gap:16px;align-items:flex-start;padding:8px 0;}
.swe-host-pic{width:80px;height:80px;border-radius:50%;object-fit:cover;border:3px solid #e8e8e8;flex-shrink:0;}
.swe-host-pic-placeholder{width:80px;height:80px;border-radius:50%;background:var(--swe-muted-bg);display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:700;color:var(--swe-primary);flex-shrink:0;}
.swe-host-info{flex:1;min-width:0;}
.swe-host-name{font-size:17px;font-weight:700;color:#1a1a2e;margin-bottom:6px;}
.swe-host-desc{font-size:16px;line-height:1.7;color:#555;}

/* Donations sidebar */
.swe-donation-list{display:flex;flex-direction:column;gap:8px;}
.swe-donation-item{display:flex;align-items:center;gap:12px;padding:11px 14px;border:1px solid #f0f0f0;border-radius:7px;background:#fafafa;}
.swe-donation-donor{font-weight:600;font-size:16px;color:#1a1a2e;}
.swe-donation-note{font-size:14px;color:#777;}
.swe-donation-amount{font-weight:700;font-size:15px;color:var(--swe-primary);margin-left:auto;flex-shrink:0;}
.swe-donation-date{font-size:13px;color:#777;flex-shrink:0;}
.swe-donation-avatar{width:34px;height:34px;border-radius:50%;background:var(--swe-muted-bg);display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;color:var(--swe-primary);flex-shrink:0;}
.swe-no-donations{text-align:center;padding:24px;color:#777;font-size:16px;}

@media(max-width:600px){.swe-sidebar{width:100vw;}}


