:root{--mp-navy:#14213d;--mp-blue:#2f6fed;--mp-bg:#f4f7fb;--mp-text:#182235;--mp-muted:#667085;--mp-border:#dce3ee}
body:has(.mp-parent-shell){background:var(--mp-bg)}
.mp-parent-shell{max-width:1180px;margin:0 auto;padding:48px 20px 80px;color:var(--mp-text);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.mp-parent-card{background:#fff;border:1px solid var(--mp-border);border-radius:20px;box-shadow:0 18px 55px rgba(20,33,61,.08);padding:34px}
.mp-parent-brand{font-size:14px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--mp-blue)}
.mp-parent-card h1{font-size:clamp(28px,4vw,44px);line-height:1.1;margin:10px 0}.mp-parent-intro{color:var(--mp-muted);font-size:18px}
.mp-access-form{max-width:520px;margin:30px auto 10px;display:grid;gap:12px}.mp-access-form label{font-weight:700}.mp-access-form input{font-size:22px;letter-spacing:.08em;padding:16px 18px;border:1px solid var(--mp-border);border-radius:12px;text-transform:uppercase}.mp-access-form button{border:0;border-radius:12px;padding:16px;background:var(--mp-blue);color:#fff;font-size:17px;font-weight:700;cursor:pointer}
.mp-parent-help{text-align:center;color:var(--mp-muted)}.mp-parent-error,.mp-parent-info,.mp-parent-empty,.mp-order-coming{padding:14px 16px;border-radius:12px;margin:18px 0}.mp-parent-error{background:#fff0f0;color:#9d1c1c}.mp-parent-info{background:#eef5ff;color:#234d9c}.mp-parent-empty{background:#f7f8fa;color:var(--mp-muted)}.mp-order-coming{background:#eefbf4;color:#17623a;margin-top:28px}
.mp-gallery-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;border-bottom:1px solid var(--mp-border);padding-bottom:24px}.mp-gallery-header h1{font-size:32px}.mp-gallery-header p{color:var(--mp-muted);margin:0}.mp-change-code{color:var(--mp-blue);font-weight:700;text-decoration:none}.mp-gallery-section-title{display:flex;justify-content:space-between;align-items:center;margin:28px 0 16px}.mp-gallery-section-title h2{margin:0}.mp-gallery-section-title span{color:var(--mp-muted)}
.mp-parent-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:18px}.mp-parent-photo{margin:0;border:1px solid var(--mp-border);border-radius:14px;overflow:hidden;background:#fff}.mp-photo-open{display:block;width:100%;border:0;padding:0;background:#eef1f5;cursor:zoom-in}.mp-photo-open img{display:block;width:100%;height:270px;object-fit:contain}.mp-parent-photo figcaption{padding:10px 12px;color:var(--mp-muted);font-size:14px}
.mp-photo-dialog{max-width:min(92vw,1100px);max-height:92vh;border:0;border-radius:14px;padding:16px;background:#111}.mp-photo-dialog::backdrop{background:rgba(0,0,0,.78)}.mp-photo-dialog img{display:block;max-width:86vw;max-height:82vh;object-fit:contain}.mp-dialog-close{position:absolute;right:12px;top:8px;border:0;background:#fff;color:#111;border-radius:999px;width:36px;height:36px;font-size:26px;cursor:pointer}
@media(max-width:640px){.mp-parent-shell{padding:18px 10px 50px}.mp-parent-card{padding:20px;border-radius:14px}.mp-gallery-header{display:block}.mp-change-code{display:inline-block;margin-top:12px}.mp-parent-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mp-photo-open img{height:190px}}


.mp-photo-select{display:flex;align-items:center;gap:7px;padding:8px 10px;font-weight:700;font-size:13px;background:#eef4ff}.mp-photo-select input{width:18px;height:18px}.mp-shop-panel,.mp-cart-panel{margin-top:24px;padding:22px;border:1px solid #dfe7f3;border-radius:16px;background:#fff}.mp-shop-controls{display:grid;grid-template-columns:minmax(240px,1fr) 110px auto;gap:12px;align-items:end}.mp-shop-controls label{display:flex;flex-direction:column;gap:6px;font-weight:700}.mp-shop-controls select,.mp-shop-controls input{min-height:44px;border:1px solid #cbd6e5;border-radius:9px;padding:8px 10px}.mp-shop-controls button,.mp-cart-next{min-height:44px;border:0;border-radius:9px;background:#2156d9;color:#fff;font-weight:800;padding:0 18px;cursor:pointer}.mp-cart-next:disabled{opacity:.45;cursor:not-allowed}.mp-selection-help,.mp-cart-message{font-size:14px;color:#536277}.mp-cart-message{min-height:20px;font-weight:700;color:#1d5a36}.mp-cart-header{display:flex;justify-content:space-between;align-items:center}.mp-link-button{border:0;background:none;color:#b32d2e;text-decoration:underline;cursor:pointer}.mp-cart-line{display:grid;grid-template-columns:56px 1fr auto auto 32px;gap:12px;align-items:center;border-top:1px solid #edf1f6;padding:12px 0}.mp-cart-line small{display:block;color:#6b7788;margin-top:3px}.mp-cart-thumb{width:52px;height:52px;border-radius:8px;overflow:hidden;background:#edf1f5}.mp-cart-thumb img{width:100%;height:100%;object-fit:cover}.mp-cart-line button{border:0;background:#fbe7e7;color:#a82424;border-radius:50%;width:28px;height:28px;cursor:pointer}.mp-cart-total{text-align:right;font-size:20px;font-weight:900;padding:15px 0}.mp-cart-next{display:block;margin-left:auto}@media(max-width:700px){.mp-shop-controls{grid-template-columns:1fr}.mp-cart-line{grid-template-columns:48px 1fr auto}.mp-cart-line>div:nth-child(4){grid-column:2}.mp-cart-line button{grid-column:3;grid-row:1}}

.mp-parent-photo{cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.mp-parent-photo.is-selected{border:3px solid #2156d9;box-shadow:0 0 0 4px rgba(33,86,217,.14);transform:translateY(-1px)}
.mp-parent-photo.is-selected .mp-photo-select{background:#dce8ff;color:#163f9f}
#mp-add-to-cart:disabled{opacity:.45;cursor:not-allowed}
#mp-selected-count{color:#163f9f}

.mp-photo-order{display:grid;gap:10px;padding:12px;border-top:1px solid #e5eaf1;background:#f8fafc}
.mp-photo-order label{display:grid;gap:5px;font-size:13px;font-weight:700}
.mp-photo-order select,.mp-photo-order input{width:100%;min-height:40px;border:1px solid #cbd6e5;border-radius:8px;padding:7px 9px;background:#fff}
.mp-photo-order .mp-photo-add{min-height:42px;border:0;border-radius:8px;background:#2156d9;color:#fff;font-weight:800;cursor:pointer}
.mp-photo-message{min-height:18px;font-size:13px;font-weight:700;color:#1d5a36}
.mp-pack-panel{margin-top:24px;padding:20px;border:1px dashed #9eb5df;border-radius:14px;background:#f5f8ff}
.mp-pack-panel h2{margin-top:0}

.mp-pack-photo-select{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;background:#fff6df;font-size:13px;font-weight:700}.mp-pack-photo-select input{width:72px;min-height:38px;border:1px solid #d6b96b;border-radius:8px;padding:6px;text-align:center;background:#fff}.mp-pack-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin-top:14px}.mp-pack-card{display:grid;gap:8px;padding:16px;border:1px solid #c9d8f2;border-radius:12px;background:#fff}.mp-pack-card h3,.mp-pack-card p{margin:0}.mp-pack-card strong{font-size:22px;color:#163f9f}.mp-pack-card small{color:#667085}.mp-pack-add{min-height:42px;border:0;border-radius:8px;background:#163f9f;color:#fff;font-weight:800;cursor:pointer}.mp-pack-message{min-height:18px;color:#1d5a36;font-size:13px;font-weight:700}#mp-pack-selected-count{font-weight:800;color:#163f9f}

.mp-cart-line.is-pack{grid-template-columns:minmax(130px,auto) 1fr auto auto 32px}
.mp-cart-pack-thumbs{display:flex;flex-wrap:wrap;gap:6px;max-width:230px}
.mp-cart-pack-thumb{position:relative;width:52px;height:52px;border-radius:8px;overflow:hidden;background:#edf1f5;border:1px solid #d8e0eb}
.mp-cart-pack-thumb img{width:100%;height:100%;object-fit:cover}
.mp-cart-pack-thumb b{position:absolute;right:2px;bottom:2px;padding:1px 5px;border-radius:999px;background:rgba(20,33,61,.88);color:#fff;font-size:11px}
@media(max-width:700px){.mp-cart-line.is-pack{grid-template-columns:1fr auto}.mp-cart-line.is-pack .mp-cart-pack-thumbs{grid-column:1/-1}.mp-cart-line.is-pack>div:nth-child(4){grid-column:1}}

.mp-checkout-panel,.mp-order-success{margin-top:24px;padding:24px;border:1px solid #dfe7f3;border-radius:16px;background:#fff}
.mp-checkout-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.mp-checkout-grid label{display:grid;gap:6px;font-weight:700}
.mp-checkout-grid input{min-height:44px;border:1px solid #cbd6e5;border-radius:9px;padding:8px 10px}
.mp-payment-methods{display:grid;gap:10px;margin:20px 0;border:1px solid #dfe7f3;border-radius:10px;padding:14px}
.mp-payment-methods label,.mp-order-consent{display:flex;align-items:center;gap:9px}
#mp-submit-order,.mp-payment-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin-top:18px;border:0;border-radius:9px;background:#2156d9;color:#fff;font-weight:800;padding:0 18px;text-decoration:none;cursor:pointer}
#mp-submit-order:disabled{opacity:.5}.mp-order-success{background:#eefbf4;border-color:#b9e1c9}
@media(max-width:700px){.mp-checkout-grid{grid-template-columns:1fr}}

.mp-payment-information{margin-top:10px;padding:12px;border-radius:9px;background:#eef5ff;color:#234d9c}
.mp-payment-information p{margin:0}.mp-payment-information a{font-weight:800;color:#163f9f}

.mp-sibling-access{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:18px 0;padding:14px 16px;border:1px solid #c9d8f2;border-radius:12px;background:#f5f8ff}
.mp-sibling-access>div{display:grid;gap:3px}.mp-sibling-access span{color:#667085;font-size:13px}
.mp-sibling-access form{display:flex;gap:8px}.mp-sibling-access input{min-width:230px;min-height:42px;border:1px solid #cbd6e5;border-radius:9px;padding:7px 10px}
.mp-sibling-access button{border:0;border-radius:9px;background:#2156d9;color:#fff;font-weight:800;padding:0 16px}
.mp-parent-photo figcaption strong{color:#163f9f}
@media(max-width:700px){.mp-sibling-access{align-items:stretch;flex-direction:column}.mp-sibling-access form{display:grid}.mp-sibling-access input{min-width:0;width:100%}.mp-sibling-access button{min-height:42px}}

.mp-parent-header-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.mp-account-link,.mp-account-success-link{font-weight:800;color:#1749bd}
.mp-account-card{max-width:1100px;margin:auto}.mp-account-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}
.mp-account-heading h1{margin-bottom:4px}.mp-account-links{margin-top:16px}.mp-account-orders{display:grid;gap:12px}
.mp-account-orders article{display:grid;grid-template-columns:1fr 1.5fr .8fr .8fr auto;gap:14px;align-items:center;padding:16px;border:1px solid #dfe6f1;border-radius:12px}
.mp-account-orders article>div{display:grid;gap:3px}.mp-account-orders small{color:#667085}.mp-account-orders a{font-weight:800}
.mp-account-status{display:inline-flex;padding:6px 10px;border-radius:999px;background:#eef4ff;color:#184ab8;font-weight:800;font-size:13px}
.mp-account-back{display:inline-block;margin-bottom:18px;font-weight:800}.mp-account-order-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}
.mp-account-order-meta>div{display:grid;gap:4px;padding:14px;border:1px solid #dfe6f1;border-radius:10px}.mp-account-order-meta small{color:#667085}
.mp-account-items{display:grid;gap:12px}.mp-account-items>article{display:grid;grid-template-columns:1fr 1.5fr auto;gap:16px;align-items:center;padding:14px;border:1px solid #dfe6f1;border-radius:10px}
.mp-account-item-photos{display:flex;gap:7px;flex-wrap:wrap}.mp-account-item-photos figure{margin:0}.mp-account-item-photos img{width:54px;height:72px;object-fit:cover;border-radius:6px}
.mp-account-item-photos figcaption{text-align:center;font-size:11px}.mp-account-success-link{display:inline-block;padding:11px 15px;border-radius:9px;background:#1749bd;color:#fff}
@media(max-width:760px){.mp-account-orders article{grid-template-columns:1fr}.mp-account-order-meta{grid-template-columns:1fr}.mp-account-items>article{grid-template-columns:1fr}.mp-account-heading{align-items:flex-start;flex-direction:column}}

.mp-account-detail-actions{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}
.mp-account-print{border:0;border-radius:9px;background:#1749bd;color:#fff;font-weight:800;padding:10px 15px;cursor:pointer}
@media print{
  .mp-account-heading,.mp-account-detail-actions,.mp-parent-brand,#wpadminbar,header,footer{display:none!important}
  body,.mp-parent-shell,.mp-parent-card,.mp-account-card{background:#fff!important;margin:0!important;padding:0!important;box-shadow:none!important;max-width:none!important}
  .mp-account-order-detail{border:0!important}
  .mp-account-item-photos img{width:20mm!important;height:30mm!important}
  @page{size:A4 portrait;margin:12mm}
}

.mp-public-home{max-width:1180px;margin:0 auto;padding:60px 20px 80px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#182235}
.mp-public-hero{padding:70px 50px;border-radius:26px;background:linear-gradient(135deg,#f0f5ff,#fff);border:1px solid #dce3ee;text-align:center}
.mp-public-hero h1{font-size:clamp(38px,6vw,68px);line-height:1.02;margin:14px auto;max-width:850px}.mp-public-hero p{font-size:20px;color:#667085;max-width:760px;margin:0 auto}
.mp-public-actions{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:30px}.mp-public-actions a,.mp-public-school-link a{padding:14px 20px;border-radius:11px;font-weight:800;text-decoration:none}
.mp-public-primary,.mp-public-school-link a{background:#2f6fed;color:#fff}.mp-public-secondary{border:1px solid #b9c8e3;color:#214da5;background:#fff}
.mp-public-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:24px}.mp-public-cards article{padding:26px;border:1px solid #dce3ee;border-radius:18px;background:#fff}.mp-public-cards span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#e7efff;color:#2156d9;font-weight:900}.mp-public-cards h2{font-size:20px}.mp-public-cards p{color:#667085}
.mp-public-school-link{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:24px;padding:28px;border-radius:18px;background:#14213d;color:#fff}.mp-public-school-link h2,.mp-public-school-link p{margin:0}.mp-public-school-link p{opacity:.78;margin-top:5px}
.mp-public-school-filters{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr)) auto;gap:10px;align-items:end;margin:20px 0}.mp-public-school-filters label{display:grid;gap:5px;font-weight:700}.mp-public-school-filters select,.mp-public-school-filters input{min-height:42px;border:1px solid #cbd6e5;border-radius:8px;padding:7px}.mp-public-school-filters button,.mp-public-bulk button{min-height:42px;border:0;border-radius:8px;background:#2156d9;color:#fff;font-weight:800;padding:0 15px}
.mp-public-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin:18px 0}.mp-public-kpis>div{display:grid;gap:5px;padding:14px;border:1px solid #dce3ee;border-radius:10px}.mp-public-kpis small{color:#667085}.mp-public-kpis strong{font-size:19px}
.mp-public-bulk{display:flex;gap:8px;margin:16px 0}.mp-public-bulk button+button{background:#fff;color:#2156d9;border:1px solid #9eb5df}.mp-public-order-table{overflow:auto}.mp-public-order-table table{width:100%;border-collapse:collapse;min-width:980px}.mp-public-order-table th,.mp-public-order-table td{padding:10px;border-bottom:1px solid #e4e9f1;text-align:left;font-size:13px}
@media(max-width:800px){.mp-public-hero{padding:45px 22px}.mp-public-cards{grid-template-columns:1fr}.mp-public-school-link{align-items:flex-start;flex-direction:column}.mp-public-school-filters{grid-template-columns:1fr}.mp-public-kpis{grid-template-columns:repeat(2,1fr)}}


/* ===== Public pleasant interface refresh ===== */
body {
    background:
        radial-gradient(circle at top left, rgba(99, 140, 255, .16), transparent 30%),
        radial-gradient(circle at top right, rgba(76, 195, 184, .12), transparent 22%),
        linear-gradient(180deg, #f6f8fc 0%, #edf2f8 100%);
}

.mp-parent-shell,
.mp-public-home {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mp-parent-card,
.mp-account-card,
.mp-school-public-card {
    border: 1px solid rgba(219, 227, 240, .9);
    box-shadow: 0 20px 55px rgba(21, 35, 63, .08);
    border-radius: 24px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(6px);
}

.mp-parent-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-weight: 800;
    letter-spacing: .02em;
}

.mp-parent-intro,
.mp-account-heading p,
.mp-school-public-card > p,
.mp-public-hero p {
    color: #667085;
}

.mp-access-form,
form[name="loginform"] {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.mp-access-form input,
form[name="loginform"] input[type="text"],
form[name="loginform"] input[type="password"],
form[name="loginform"] input[type="email"],
.mp-sibling-access input,
.mp-public-school-filters input,
.mp-public-school-filters select,
.mp-checkout-grid input,
.mp-checkout-grid select,
.mp-checkout-grid textarea {
    border: 1px solid #ccd6e6;
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    min-height: 48px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}

.mp-access-form button,
form[name="loginform"] .button,
form[name="loginform"] input[type="submit"],
.mp-sibling-access button,
.mp-checkout-submit,
.mp-public-school-filters button,
.mp-public-bulk button,
.mp-account-print {
    border: 0;
    min-height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2664eb 0%, #1d4ed8 100%);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .24);
    cursor: pointer;
}

.mp-account-link,
.mp-change-code,
.mp-account-back,
.mp-account-links a {
    font-weight: 700;
}

.mp-gallery-grid {
    gap: 18px;
}

.mp-parent-photo {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
    transition: transform .18s ease, box-shadow .18s ease;
}
.mp-parent-photo:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .11);
}
.mp-parent-photo figcaption {
    line-height: 1.45;
    padding: 12px 14px 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,255,.96));
}
.mp-parent-photo.is-selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15), 0 18px 40px rgba(15, 23, 42, .12);
}

.mp-cart-panel,
.mp-pack-panel,
.mp-checkout-panel,
.mp-order-success,
.mp-account-order-detail,
.mp-account-orders article,
.mp-account-order-meta > div,
.mp-account-items > article,
.mp-sibling-access,
.mp-public-link-card,
.mp-public-cards article,
.mp-public-school-link,
.mp-public-kpis > div {
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .05);
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(249,251,255,.98) 100%);
}

.mp-cart-header,
.mp-gallery-header,
.mp-account-heading {
    gap: 16px;
}

.mp-account-orders article,
.mp-account-items > article {
    align-items: center;
}

.mp-account-order-meta strong,
.mp-public-kpis strong {
    color: #14213d;
}

.mp-account-status {
    background: #edf4ff;
    color: #1d4ed8;
    border: 1px solid #cfe0ff;
}

.mp-public-home {
    padding: 40px 20px 80px;
}

.mp-public-topline {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .09);
    color: #2156d9;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 16px;
}

.mp-public-hero {
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(20, 33, 61, .10);
}
.mp-public-hero::before {
    content: "";
    position: absolute;
    inset: auto -80px -100px auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .08);
}
.mp-public-hero::after {
    content: "";
    position: absolute;
    inset: -90px auto auto -70px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(56, 189, 248, .08);
}
.mp-public-hero > * {
    position: relative;
    z-index: 1;
}

.mp-public-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.mp-public-badges span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.8);
    border: 1px solid #dbe3f0;
    font-weight: 700;
    color: #37517e;
}

.mp-public-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}
.mp-public-link-card {
    display: grid;
    gap: 6px;
    padding: 24px;
    text-decoration: none;
    color: #14213d;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mp-public-link-card:hover {
    transform: translateY(-4px);
    border-color: #b9cbec;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .09);
}
.mp-public-link-card strong {
    font-size: 18px;
}
.mp-public-link-card span {
    color: #667085;
    line-height: 1.5;
}

.mp-public-school-link {
    margin-top: 24px;
    background: linear-gradient(135deg, #14213d 0%, #1f3b74 100%);
    border-color: rgba(255,255,255,.08);
}
.mp-public-school-link a {
    white-space: nowrap;
    box-shadow: none;
}

.mp-school-public-card {
    max-width: 1180px;
}

.mp-public-school-filters {
    background: #f8fbff;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
}
.mp-public-school-filters label {
    color: #14213d;
}
.mp-public-bulk {
    flex-wrap: wrap;
}
.mp-public-bulk button + button {
    background: #fff;
    color: #2156d9;
    border: 1px solid #b7caec;
    box-shadow: none;
}
.mp-public-order-table {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
}
.mp-public-order-table thead th {
    background: #f5f8ff;
    color: #344054;
    position: sticky;
    top: 0;
}
.mp-public-order-table tr:hover td {
    background: #fafcff;
}

@media (max-width: 980px) {
    .mp-public-links-grid,
    .mp-public-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .mp-parent-card,
    .mp-account-card,
    .mp-school-public-card {
        border-radius: 18px;
        padding: 20px;
    }
    .mp-public-hero h1 {
        font-size: 34px;
    }
    .mp-public-actions {
        flex-direction: column;
    }
    .mp-public-actions a,
    .mp-public-school-link a {
        width: 100%;
        text-align: center;
    }
    .mp-public-kpis {
        grid-template-columns: 1fr 1fr;
    }
}


/* ===== Standalone public interfaces ===== */
html,
body.mp-standalone-public {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100%;
    width: 100%;
}

body.mp-standalone-public {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(47,111,237,.12), transparent 28%),
        linear-gradient(180deg, #f6f8fc 0%, #edf2f8 100%);
}

body.mp-standalone-public #wpadminbar {
    display: none !important;
}

.mp-standalone-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 0 32px;
    border-bottom: 1px solid rgba(220,227,238,.95);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(20,33,61,.04);
    font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.mp-standalone-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #14213d;
    text-decoration: none;
}

.mp-standalone-brand > span:last-child {
    display: grid;
    line-height: 1.15;
}

.mp-standalone-brand strong {
    font-size: 18px;
}

.mp-standalone-brand small {
    color: #667085;
    font-size: 11px;
    margin-top: 3px;
}

.mp-standalone-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg,#2f6fed,#1d4ed8);
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(47,111,237,.24);
}

.mp-standalone-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mp-standalone-nav a {
    padding: 10px 13px;
    border-radius: 9px;
    color: #475467;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.mp-standalone-nav a:hover,
.mp-standalone-nav a.is-active {
    color: #1d4ed8;
    background: #eef4ff;
}

.mp-standalone-page {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

body.mp-page-photos .mp-parent-shell,
body.mp-page-account .mp-parent-shell,
body.mp-page-school .mp-parent-shell {
    max-width: 1440px;
    width: 100%;
    box-sizing: border-box;
    padding-top: 34px;
}

body.mp-page-school .mp-school-public-card {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
}

body.mp-page-school .mp-public-kpis {
    grid-template-columns: repeat(6,minmax(145px,1fr));
}

body.mp-page-school .mp-public-school-filters {
    grid-template-columns: repeat(4,minmax(160px,1fr)) auto;
}

body.mp-page-photos .mp-parent-gallery {
    grid-template-columns: repeat(auto-fill,minmax(230px,1fr));
}

.mp-standalone-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 32px;
    border-top: 1px solid #dce3ee;
    background: rgba(255,255,255,.72);
    color: #667085;
    font: 13px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

@media(max-width:900px) {
    .mp-standalone-header {
        padding: 0 16px;
    }

    .mp-standalone-nav a {
        padding: 9px 10px;
        font-size: 13px;
    }

    body.mp-page-school .mp-public-kpis {
        grid-template-columns: repeat(3,minmax(140px,1fr));
    }

    body.mp-page-school .mp-public-school-filters {
        grid-template-columns: repeat(2,minmax(150px,1fr));
    }
}

@media(max-width:640px) {
    .mp-standalone-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 14px;
    }

    .mp-standalone-nav {
        width: 100%;
        overflow-x: auto;
    }

    .mp-standalone-nav a {
        white-space: nowrap;
    }

    .mp-standalone-footer {
        flex-direction: column;
        padding: 18px;
    }

    body.mp-page-school .mp-public-kpis,
    body.mp-page-school .mp-public-school-filters {
        grid-template-columns: 1fr;
    }
}


/* ===== Lisibilité renforcée des interfaces parent et école ===== */
.mp-standalone-public,
.mp-parent-shell,
.mp-parent-card,
.mp-school-public-card {
    font-size: 16px;
}

.mp-parent-card h1,
.mp-school-public-card h1 {
    font-size: 32px;
    line-height: 1.2;
}

.mp-parent-card h2,
.mp-school-public-card h2 {
    font-size: 23px;
}

.mp-parent-card label,
.mp-school-public-card label {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 650;
}

.mp-parent-card input,
.mp-parent-card select,
.mp-parent-card textarea,
.mp-school-public-card input,
.mp-school-public-card select,
.mp-school-public-card textarea {
    min-height: 48px;
    padding: 10px 13px;
    font-size: 17px;
    line-height: 1.35;
    border-radius: 9px;
    box-sizing: border-box;
}

.mp-parent-card textarea,
.mp-school-public-card textarea {
    min-height: 110px;
}

.mp-parent-card button,
.mp-parent-card .button,
.mp-school-public-card button,
.mp-school-public-card .button {
    min-height: 46px;
    padding: 10px 17px;
    font-size: 16px;
    border-radius: 9px;
}

.mp-parent-card table th,
.mp-school-public-card table th {
    padding: 13px 12px;
    font-size: 15px;
}

.mp-parent-card table td,
.mp-school-public-card table td {
    padding: 14px 12px;
    font-size: 15px;
    line-height: 1.45;
}


/* ===== Réglage intermédiaire parent et école ===== */
.mp-standalone-public,
.mp-parent-shell,
.mp-parent-card,
.mp-school-public-card {
    font-size: 15px;
}

.mp-parent-card h1,
.mp-school-public-card h1 {
    font-size: 28px;
}

.mp-parent-card h2,
.mp-school-public-card h2 {
    font-size: 21px;
}

.mp-parent-card label,
.mp-school-public-card label {
    font-size: 15px;
}

.mp-parent-card input,
.mp-parent-card select,
.mp-parent-card textarea,
.mp-school-public-card input,
.mp-school-public-card select,
.mp-school-public-card textarea {
    min-height: 43px;
    padding: 8px 11px;
    font-size: 15.5px;
    border-radius: 8px;
}

.mp-parent-card textarea,
.mp-school-public-card textarea {
    min-height: 94px;
}

.mp-parent-card button,
.mp-parent-card .button,
.mp-school-public-card button,
.mp-school-public-card .button {
    min-height: 41px;
    padding: 8px 14px;
    font-size: 15px;
}

.mp-parent-card table th,
.mp-school-public-card table th {
    padding: 11px 10px;
    font-size: 14px;
}

.mp-parent-card table td,
.mp-school-public-card table td {
    padding: 12px 10px;
    font-size: 14px;
}

.mp-products-showcase{margin:24px 0 28px;padding:22px;border:1px solid #dce3ee;border-radius:16px;background:#fff}
.mp-products-showcase-heading h2{margin:0 0 4px}.mp-products-showcase-heading p{margin:0 0 18px;color:#667085}
.mp-products-showcase-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}
.mp-product-showcase-card{overflow:hidden;border:1px solid #e0e6ef;border-radius:13px;background:#f9fbfe}
.mp-product-showcase-image{display:grid;place-items:center;width:100%;aspect-ratio:4/3;overflow:hidden;background:#edf2f8;color:#98a2b3}
.mp-product-showcase-image img{width:100%;height:100%;object-fit:cover}
.mp-product-showcase-content{padding:14px}.mp-product-showcase-content h3{margin:0 0 7px;font-size:17px}
.mp-product-showcase-content p{margin:0 0 10px;color:#667085;font-size:14px;line-height:1.4}
.mp-product-showcase-content strong{color:#1d4ed8;font-size:18px}


/* ===== Articles proposés : vignettes compactes et homogènes ===== */
.mp-products-showcase {
    padding: 18px;
}

.mp-products-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 180px));
    justify-content: start;
    gap: 14px;
}

.mp-product-showcase-card {
    width: 100%;
    max-width: 180px;
    border-radius: 11px;
}

.mp-product-showcase-image {
    width: 100%;
    height: 120px;
    aspect-ratio: auto;
    overflow: hidden;
    background: #edf2f8;
}

.mp-product-showcase-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.mp-product-showcase-content {
    padding: 10px 11px 12px;
}

.mp-product-showcase-content h3 {
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.25;
}

.mp-product-showcase-content p {
    margin: 0 0 7px;
    min-height: 34px;
    max-height: 36px;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.35;
}

.mp-product-showcase-content strong {
    font-size: 15px;
}

@media (max-width: 700px) {
    .mp-products-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mp-product-showcase-card {
        max-width: none;
    }

    .mp-product-showcase-image,
    .mp-product-showcase-image img {
        height: 105px;
    }
}


/* ===== Packs intégrés aux articles proposés ===== */
.mp-product-kind {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    margin-bottom: 5px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mp-pack-showcase-card .mp-product-kind {
    background: #fff4e8;
    color: #b54708;
}

.mp-product-showcase-content small {
    display: block;
    min-height: 30px;
    margin: 0 0 6px;
    color: #667085;
    font-size: 11.5px;
    line-height: 1.3;
}


/* ===== Images d’articles et packs : image entière, sans recadrage ===== */
.mp-product-showcase-image {
    padding: 6px;
    box-sizing: border-box;
    background: #f4f6f9;
}

.mp-product-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #fff;
}


/* ===== Correction définitive : aucune image d’article ne doit être recadrée ===== */
body.mp-standalone-public .mp-products-showcase .mp-product-showcase-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 110px !important;
    min-height: 110px !important;
    max-height: 110px !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background: #f2f4f7 !important;
}

body.mp-standalone-public .mp-products-showcase .mp-product-showcase-image img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    aspect-ratio: auto !important;
    margin: auto !important;
    background: transparent !important;
}

body.mp-standalone-public .mp-products-showcase .mp-product-showcase-card {
    max-width: 165px !important;
}

body.mp-standalone-public .mp-products-showcase .mp-products-showcase-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 165px)) !important;
}

@media (max-width: 700px) {
    body.mp-standalone-public .mp-products-showcase .mp-product-showcase-image {
        height: 96px !important;
        min-height: 96px !important;
        max-height: 96px !important;
    }
}
