/* EdiWay light dashboard surfaces. */
.ediway-inbox-filters { display:flex; flex-wrap:wrap; align-items:end; gap:16px; margin:24px 0; }
.ediway-inbox-filters label { display:grid; gap:8px; flex:1 1 200px; color:#172b4d; }
.ediway-inbox-filters select { width:100%; min-height:44px; padding:8px; border:1px solid #bacddd; border-radius:8px; }
.ediway-inbox-filters button { min-height:44px; padding:10px 20px; border:0; border-radius:8px; background:#07649e; color:#fff; cursor:pointer; }
.ediway-inbox-children { display:flex; flex-wrap:wrap; gap:12px; margin:16px 0 24px; }
.ediway-inbox-children a { padding:10px 14px; border:1px solid #c7def4; border-radius:8px; color:#07649e; }
.ediway-inbox-children a[aria-current] { background:#edf7ff; font-weight:700; border-color:#07649e; }
.ediway-inbox-filters :is(select,button):focus-visible { outline:3px solid #07649e; outline-offset:3px; }
.ediway-commerce-home { color:#172b4d; background:#fff; padding:clamp(16px,3vw,32px); border:1px solid #e1e8f0; border-radius:16px; }
.ediway-commerce-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px; border:1px solid #c7def4; border-radius:12px; background:linear-gradient(120deg,#edf7ff,#fff); }
.ediway-commerce-home h2,.ediway-commerce-home h3 { color:#172b4d; margin:0 0 12px; }
.ediway-commerce-home p { color:#52647b; line-height:1.6; margin:0; }
.ediway-commerce-home .ediway-commerce-eyebrow { color:#07649e; font-weight:600; margin-bottom:8px; }
.ediway-commerce-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:18px; margin:24px 0; }
.ediway-commerce-card { display:block; padding:24px; background:#fff; border:1px solid #d5e3ef; border-radius:12px; text-decoration:none; box-shadow:0 4px 18px #17385808; }
.ediway-commerce-card span,.ediway-commerce-link { display:inline-block; color:#07649e; font-weight:600; margin-top:16px; }
.ediway-commerce-home a:focus-visible { outline:3px solid #07649e; outline-offset:4px; }
.ediway-commerce-card:hover { border-color:#087bc1; background:#f6fbff; }
.ediway-commerce-status { padding:24px; border:1px solid #e1e8f0; border-radius:12px; }
.ediway-commerce-status dl { margin:16px 0 0; }
.ediway-commerce-status dl div { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:12px 0; border-bottom:1px solid #e1e8f0; }
.ediway-commerce-status dd { margin:0; color:#52647b; }
.ediway-commerce-home .ediway-commerce-note { margin-top:20px; padding:16px; background:#f6f8fc; border-radius:8px; }
@media(max-width:640px) { .ediway-commerce-heading { align-items:flex-start; flex-direction:column; padding:16px; } .ediway-commerce-card,.ediway-commerce-status { padding:16px; } }
.ediway-marketplace-light #lpm-product-detail {
    --lpm-brand-bg: #fff; --lpm-brand-surface: #fff; --lpm-brand-accent: #087bc1; --lpm-brand-text: #172b4d;
    background: #fff !important; color: #172b4d !important; color-scheme: light;
}
.ediway-marketplace-light #lpm-product-detail :is(.lpm-product-wrapper,.lpm-product-container,.lpm-product-info,.lpm-product-header,.lpm-product-gallery,.lpm-product-tabs,.lpm-tab-content,.lpm-seller-info) { background: #fff !important; color: #172b4d !important; border-color: #e1e8f0 !important; }
.ediway-marketplace-light #lpm-product-detail :is(h1,h2,h3,h4,p,label,li,.lpm-product-price,.lpm-product-title,.lpm-product-description) { color: #172b4d !important; }
.ediway-marketplace-light #lpm-product-detail :is(a,.lpm-product-breadcrumb) { color: #087bc1 !important; }
.ediway-marketplace-light #lpm-product-detail :is(button,.button,.lpm-btn,.lpm-button) { background: #087bc1 !important; color: #fff !important; border-color: #087bc1 !important; }
.ediway-marketplace-light #lpm-product-detail :is(input,select,textarea) { background: #fff !important; color: #172b4d !important; border-color: #cbd7e5 !important; }
/* Match the actual shortcode roots, including pages embedded in the school shell. */
.ediway-marketplace-light.ediway-marketplace-light :is(.lpm-dashboard-wrapper,.lpm-product-form-wrapper,.lpm-products-page,.lpm-product-detail-wrapper,.lpm-single-product,.lpm-checkout-page) {
    --lpm-brand-bg: #fff;
    --lpm-brand-surface: #fff;
    --lpm-brand-accent: #087bc1;
    --lpm-brand-text: #172b4d;
    --lpm-brand-muted: #52647b;
    --lpm-primary: #087bc1;
    --lpm-accent: #087bc1;
    color-scheme: light;
    background: #fff !important;
    color: #172b4d !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}
.ediway-marketplace-light.ediway-marketplace-light .lpm-dashboard-wrapper { margin: 0 0 24px !important; padding: 0 !important; }
.ediway-marketplace-light.ediway-marketplace-light :is(.lpm-seller-overview,.lpm-buyer-overview,.lpm-product-form-container) {
    --lpm-brand-bg: #fff; --lpm-brand-surface: #fff; --lpm-brand-text: #172b4d; --lpm-brand-accent: #087bc1;
}
.ediway-marketplace-light.ediway-marketplace-light :is(.lpm-dashboard-wrapper,.lpm-product-form-wrapper,.lpm-products-page,.lpm-checkout-page) :is(.lpm-dashboard-panel,.lpm-dashboard-header,.lpm-overview-section,.lpm-summary-section,.lpm-stat-card,.lpm-action-card,.lpm-form-section,.lpm-checkout-section,.lpm-checkout-summary,.lpm-filter-panel,.lpm-product-card,.lpm-category-hero,.lpm-category-trust,.lpm-checkout-reassurance,.lpm-buyer-hero-item) {
    background: #fff !important; color: #172b4d !important; border: 1px solid #e1e8f0 !important;
    box-shadow: 0 3px 14px rgb(29 57 90 / 5%) !important; border-radius: 12px !important;
}
.ediway-marketplace-light.ediway-marketplace-light :is(.lpm-dashboard-wrapper,.lpm-product-form-wrapper,.lpm-products-page,.lpm-checkout-page) :is(h1,h2,h3,h4,h5,dt,dd,label,.lpm-stat-label,.lpm-stat-value,.lpm-product-title,.lpm-product-price,.lpm-section-title,.lpm-payout-amount,.lpm-url-item,.lpm-action-content) { color: #172b4d !important; }
.ediway-marketplace-light.ediway-marketplace-light :is(.lpm-dashboard-wrapper,.lpm-product-form-wrapper,.lpm-products-page,.lpm-checkout-page) :is(p,.description,.lpm-payout-meta,.lpm-dashboard-subtitle,.lpm-form-ai-description,.lpm-field-note) { color: #52647b !important; }
.ediway-marketplace-light.ediway-marketplace-light :is(.lpm-dashboard-wrapper,.lpm-product-form-wrapper,.lpm-products-page,.lpm-checkout-page) :is(.button,.button-primary,.lpm-button,.lpm-btn,.lpm-nav-button,.button-store,.button-products,button[type="submit"]) {
    background: #087bc1 !important; color: #fff !important; border-color: #087bc1 !important; box-shadow: none !important; border-radius: 8px !important;
}
.ediway-marketplace-light.ediway-marketplace-light :is(.lpm-dashboard-wrapper,.lpm-product-form-wrapper,.lpm-products-page,.lpm-checkout-page) :is(.button,.button-primary,.lpm-button,.lpm-btn,.lpm-nav-button,.button-store,.button-products,button[type="submit"]):hover { background: #06649e !important; color: #fff !important; }
.ediway-marketplace-light.ediway-marketplace-light .lpm-dashboard-wrapper :is(.lpm-action-icon,.lpm-stat-icon,.lpm-overview-action-count) { background: #e9f3ff !important; color: #087bc1 !important; }
.ediway-marketplace-light.ediway-marketplace-light :is(.lpm-dashboard-wrapper,.lpm-product-form-wrapper,.lpm-products-page,.lpm-checkout-page) :is(input,select,textarea) { background: #fff !important; color: #172b4d !important; border-color: #cbd7e5 !important; accent-color: #087bc1; }
.ediway-marketplace-light.ediway-marketplace-light :is(.lpm-notice-error,.lpm-notice-error p,.lpm-notice-error h4) { background: #fff1f2 !important; color: #9f1239 !important; border-color: #e11d48 !important; }
.ediway-marketplace-light.ediway-marketplace-light :is(.lpm-notice-warning,.lpm-notice-warning p,.lpm-notice-warning h4) { background: #fffbeb !important; color: #92400e !important; border-color: #d97706 !important; }
.ediway-marketplace-light.ediway-marketplace-light :is(.lpm-notice-success,.lpm-notice-success p,.lpm-notice-success h4) { background: #ecfdf5 !important; color: #065f46 !important; border-color: #059669 !important; }
@media (max-width: 700px) {
    .ediway-marketplace-light.ediway-marketplace-light .lpm-dashboard-wrapper .lpm-dashboard-header { grid-template-columns: minmax(0,1fr) !important; padding: 18px !important; }
    .ediway-marketplace-light.ediway-marketplace-light .lpm-dashboard-header-content h1 { font-size: 1.75rem !important; }
}
.ediway-marketplace-light .lpm-dashboard-wrapper{--lpm-brand-bg:#f6f8fc;--lpm-brand-surface:#fff;--lpm-brand-accent:#087bc1;--lpm-brand-text:#172b4d;--lpm-brand-muted:#52647b;font-family:inherit}
.ediway-marketplace-light .lpm-dashboard-wrapper :is(.lpm-dashboard-nav-wrapper,.lpm-summary-section,.lpm-buyer-hero-item,.lpm-overview-action-required,.lpm-overview-action-row,.lpm-buyer-earned-preview){background:#fff!important;color:#172b4d!important;border-color:#e1e8f0!important}
.ediway-marketplace-light .lpm-dashboard-wrapper :is(.lpm-dashboard-subtitle,.lpm-action-content,.lpm-buyer-hero-label,.lpm-buyer-hero-value,.lpm-overview-action-row strong,.lpm-overview-action-row span,.lpm-info-list dd){color:#52647b!important}
.ediway-marketplace-light .lpm-dashboard-wrapper :is(.lpm-nav-button,.button-products,.button-store){background:#edf5ff!important;color:#076ab3!important;border:1px solid #c7def4!important;border-radius:8px}
.ediway-marketplace-light .lpm-dashboard-wrapper :is(.lpm-nav-button,.button-products,.button-store):hover{background:#087bc1!important;color:#fff!important}
.ediway-marketplace-light .lpm-dashboard-wrapper .lpm-dashboard-tab{background:#fff!important;color:#38516f!important;border-color:#e1e8f0!important}
.ediway-marketplace-light .lpm-dashboard-wrapper .lpm-dashboard-tab.active{background:#e9f3ff!important;color:#076ab3!important}
.ediway-marketplace-light .lpm-product-form-wrapper :is(.lpm-product-form-container,.lpm-form-section,.lpm-form-content,.lpm-form-field,.lpm-section-header,.lpm-attribute-group,.lpm-dimensions-unboxed){background:#fff!important;color:#172b4d!important;border-color:#e1e8f0!important}
.ediway-marketplace-light .lpm-product-form-wrapper :is(h1,h2,h3,h4,label,.description,.lpm-field-note,.lpm-section-title){color:#17345d!important}
.ediway-marketplace-light .lpm-product-form-wrapper :is(input,select,textarea){background:#fff!important;color:#172b4d!important;border-color:#cbd7e5!important}
.lpm-disabled-badges :is(.lpm-buyer-earned-preview,.lpm-fe-badge-page,.lpm-fe-badge-card,.lpm-badge-showcase),.lpm-disabled-subscriptions a[href*="tab=subscriptions"],.lpm-disabled-affiliate a[href*="tab=affiliate"],.lpm-disabled-badges a[href*="tab=badges"],.lpm-disabled-offers a[href*="tab=offers"],.lpm-disabled-saved-items a[href*="tab=saved-items"]{display:none!important}
.ediway-marketplace-light :is(.lpm-dashboard-wrapper,.lpm-product-form-wrapper,.lpm-product-detail-wrapper,.lpm-products-listing){color-scheme:light;color:#172b4d;background:#f6f8fc;width:100%;max-width:none;--lpm-primary:#087bc1;--lpm-background:#fff;--lpm-text:#172b4d;--lpm-border:#e1e8f0}
.ediway-marketplace-light .lpm-dashboard-wrapper :is(.lpm-dashboard-header,.lpm-dashboard-nav,.lpm-dashboard-content,.lpm-overview-section,.lpm-stat-card,.lpm-action-card,.lpm-stripe-balance-item,.lpm-dashboard-panel,.lpm-dashboard-dropdown-menu),.ediway-marketplace-light :is(.lpm-form-section,.lpm-form-content,.lpm-product-content-panel,.lpm-product-card){background:#fff!important;color:#172b4d!important;border-color:#e1e8f0!important;border-radius:12px;box-shadow:0 3px 16px rgb(29 57 90 / 4%)}
.ediway-marketplace-light .lpm-dashboard-wrapper :is(h1,h2,h3,h4,.lpm-stat-value,.lpm-stripe-balance-value){color:#17345d!important}
.ediway-marketplace-light .lpm-dashboard-wrapper :is(p,td,th,label,.lpm-stripe-balance-label,.lpm-stripe-overview-note){color:#52647b!important}
.ediway-marketplace-light :is(.lpm-dashboard-wrapper,.lpm-form-content) :is(input,select,textarea){background:#fff!important;color:#172b4d!important;border:1px solid #cbd7e5!important}
.ediway-marketplace-light .lpm-dashboard-wrapper :is(table,tbody,tr,td){background:#fff!important;border-color:#e1e8f0!important}
.ediway-marketplace-light .lpm-dashboard-wrapper th{background:#f3f7fb!important}
.ediway-marketplace-light .lpm-dashboard-tab{color:#38516f!important}
.ediway-marketplace-light .lpm-dashboard-tab.active{background:#e9f3ff!important;color:#076ab3!important}
.ediway-marketplace-light .lpm-dashboard-tab img[src*="white"]{filter:brightness(.35) sepia(1) saturate(3) hue-rotate(170deg)}
.ediway-marketplace-light .lpm-dashboard-wrapper :focus-visible{outline:3px solid #087bc1;outline-offset:3px}
.lpm-disabled-offers :is(.lpm-offers-opt-in-card,[data-tab="offers"],.lpm-product-offer-btn),.lpm-disabled-saved-items :is([data-tab="saved-items"],.lpm-save-item-btn),.lpm-disabled-badges [data-tab="badges"],.lpm-disabled-affiliate [data-tab="affiliate"],.lpm-disabled-subscriptions [data-tab="subscriptions"]{display:none!important}
@media(max-width:700px){.ediway-marketplace-light .lpm-dashboard-header{flex-wrap:wrap;gap:16px}.ediway-marketplace-light .lpm-dashboard-nav-left{flex-wrap:wrap}.ediway-marketplace-light .lpm-dashboard-content{padding:14px!important;min-width:0;overflow-x:auto}}

/* School workspaces share one surface system; standalone marketplace styling is unchanged. */
.ediway-marketplace-light :is(.lpm-seller-products,.lpm-seller-orders,.lpm-store-report,.lpm-seller-shipping,.lpm-product-form-container) {
    --lpm-brand-bg: #fff;
    --lpm-brand-surface: #fff;
    --lpm-brand-accent: #087bc1;
    --lpm-brand-text: #172b4d;
    --lpm-brand-muted: #52647b;
    color-scheme: light;
    width: 100%;
    max-width: none !important;
    min-width: 0;
    padding: clamp(16px, 2.5vw, 30px) !important;
    background: #fff !important;
    color: #172b4d !important;
    box-sizing: border-box;
}
.ediway-marketplace-light :is(.lpm-seller-products,.lpm-seller-orders,.lpm-store-report,.lpm-seller-shipping) .lpm-panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px !important;
    margin-bottom: 24px;
    border: 1px solid #d9e9f7;
    border-radius: 14px;
    background: linear-gradient(115deg, #edf6ff, #fff 75%) !important;
    box-shadow: none !important;
}
.ediway-marketplace-light :is(.lpm-seller-products,.lpm-seller-orders,.lpm-store-report,.lpm-seller-shipping) .lpm-panel-header h2 {
    margin: 0;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    line-height: 1.3;
    letter-spacing: -.025em;
    color: #17345d !important;
}
.ediway-marketplace-light :is(.lpm-products-table-wrap,.lpm-orders-table-wrapper,.lpm-table-responsive) {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #e1e8f0;
    border-radius: 12px;
    background: #fff !important;
}
.ediway-marketplace-light :is(.lpm-seller-products,.lpm-seller-orders,.lpm-store-report,.lpm-seller-shipping) table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: none !important;
}
.ediway-marketplace-light :is(.lpm-seller-products,.lpm-seller-orders,.lpm-store-report,.lpm-seller-shipping) :is(th,td) {
    padding: 14px 16px !important;
    border-bottom: 1px solid #edf1f6;
    vertical-align: middle;
    line-height: 1.5;
    color: #263d58 !important;
}
.ediway-marketplace-light :is(.lpm-seller-products,.lpm-seller-orders,.lpm-store-report,.lpm-seller-shipping) th {
    background: #f3f7fc !important;
    font-size: .8rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: .01em;
}
.ediway-marketplace-light :is(.lpm-seller-products,.lpm-seller-orders,.lpm-store-report,.lpm-seller-shipping) tbody tr:hover td { background: #f7fbff !important; }
.ediway-marketplace-light .lpm-store-report .lpm-dashboard-stats { display: grid; gap: 16px; margin: 24px 0; }
.ediway-marketplace-light .lpm-store-report .lpm-stat-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-top: 3px solid #087bc1 !important; }
.ediway-marketplace-light .lpm-store-report .lpm-stat-card strong { font-size: 1.8rem; font-variant-numeric: tabular-nums; color: #17345d; }
.ediway-marketplace-light .lpm-report-filter { padding: 16px; border-radius: 12px; background: #f5f8fc; }
.ediway-marketplace-light .lpm-product-form-container :is(.lpm-form-section,.lpm-section-header,.lpm-attribute-group) { padding: 20px; border: 1px solid #e1e8f0 !important; box-shadow: none !important; }
.ediway-marketplace-light .lpm-product-form-container :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea) { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 8px; box-sizing: border-box; }
.ediway-marketplace-light .lpm-product-form-container textarea { min-height: 130px; line-height: 1.6; }
.ediway-marketplace-light :is(.lpm-seller-products,.lpm-seller-orders,.lpm-store-report,.lpm-seller-shipping,.lpm-product-form-container) :is(a,button,input,select,textarea):focus-visible { outline: 3px solid #087bc1 !important; outline-offset: 3px; }
@media (max-width: 700px) {
    .ediway-marketplace-light :is(.lpm-seller-products,.lpm-seller-orders,.lpm-store-report,.lpm-seller-shipping) .lpm-panel-header { align-items: flex-start; padding: 16px !important; }
    .ediway-marketplace-light .lpm-report-filter > * { flex: 1 1 100%; min-width: 0; }
    .ediway-marketplace-light .lpm-store-report .lpm-dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .ediway-marketplace-light .lpm-store-report .lpm-stat-card strong { font-size: 1.3rem; overflow-wrap: anywhere; }
}
