/* Agrinutriment DEV: local tokens never restyle the account shell. */
.mi-demand-actions,.mi-reservations{--mi-account-green:#21383b;--mi-account-copper:#257b48;--mi-account-bg:#eff5eb;--mi-account-surface:#fff;--mi-account-muted:#586c63;--mi-account-border:#d3e0ce;--mi-account-radius:12px;color:#21383b}
.mi-demand-actions [hidden], .mi-demand-account-list [hidden] { display: none !important; }
.ab-variation-cards .mi-ato-lead { margin: -2px 0 6px; color: #586c63; font-size: 12px; line-height: 1.35; font-weight: 600; }
.mi-demand-actions { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.mi-demand-actions .mi-demand-reserve-form { margin: 0; }
.mi-demand-actions .mi-demand-notify-toggle.mi-demand-secondary { align-self: center; border: 0; background: none; color: #257b48; font: inherit; font-size: 12px; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 3px 5px; }
.mi-demand-actions .mi-demand-notify-form { display: flex !important; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid rgba(43,33,29,.12); border-radius: 12px; background: #fff; }
.mi-demand-actions .mi-demand-notify-form[hidden] { display: none !important; }
.mi-demand-notify-form label { display: block; font-size: 12px; line-height: 1.4; }
.mi-demand-notify-form input[type=email] { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #d3e0ce; border-radius: 10px; }
.mi-demand-notify-form .mi-demand-consent { display: flex; gap: 7px; align-items: flex-start; }
.mi-demand-notify-form .mi-demand-consent input { margin-top: 3px; flex: 0 0 auto; }
.mi-demand-gate { padding: 8px 10px; border-radius: 11px; background: #eff5eb; color: #21383b; font-size: 12px; line-height: 1.4; }
.mi-demand-gate p { margin: 0 0 4px; }
.mi-demand-gate a { color: #257b48; font-weight: 700; }
.mi-demand-estimate { display: flex; flex-wrap: wrap; column-gap: 9px; row-gap: 2px; color: #586c63; font-size: 11px; line-height: 1.3; }
.mi-demand-estimate span:last-child { width: 100%; color: #21383b; font-weight: 800; font-size: 12px; }
.mi-demand-message { color: #257b48; font-size: 12px; line-height: 1.35; }
.mi-demand-message:empty { display: none; }
/* Reservations V2. Scope and specificity preserve the shared My Account owner. */
body.woocommerce-account .woocommerce-MyAccount-content .mi-reservations { max-width:1080px; min-width:0; color:var(--mi-account-green,#21383b); font:inherit; line-height:1.4; }
.mi-reservations *, .mi-reservations *::before, .mi-reservations *::after { box-sizing:border-box; }
body.woocommerce-account .woocommerce-MyAccount-content .mi-reservations [hidden] { display:none!important; }
body.woocommerce-account .woocommerce-MyAccount-content .mi-reservations .mi-demand-account-pagehead { margin:0 0 16px; }
.mi-reservations .mi-demand-account-pagehead h2 { margin:0 0 6px; color:inherit; }
body.woocommerce-account .woocommerce-MyAccount-content .mi-reservations p { margin:0; color:var(--mi-account-muted,#5a6b61); }
.mi-reservations .mi-reservations-counts { display:flex; flex-wrap:wrap; gap:24px; margin:0 0 12px; font-size:13px; }
.mi-reservations-counts div { display:flex; align-items:baseline; gap:8px; }
.mi-reservations-counts dt { color:var(--mi-account-muted,#5a6b61); }
.mi-reservations-counts dd { margin:0; font-size:17px; font-weight:700; font-variant-numeric:tabular-nums; }
.mi-reservations .mi-reservations-tabs { display:flex; gap:20px; border-bottom:1px solid var(--mi-account-border,#d3e0ce); margin-bottom:16px; }
.mi-reservations-tabs button { min-height:44px; padding:10px 2px; margin:0 0 -1px; border:0; border-bottom:2px solid transparent; border-radius:0; background:none; color:var(--mi-account-muted,#5a6b61); font:inherit; font-size:14px; cursor:pointer; }
.mi-reservations-tabs button[aria-selected=true] { color:var(--mi-account-green,#21383b); border-bottom-color:var(--mi-account-copper,#257b48); font-weight:700; }
.mi-reservations .mi-demand-account-list { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
body.woocommerce-account .woocommerce-MyAccount-content .mi-reservations :is(.mi-demand-account-row,.mi-demand-account-empty) { min-width:0; margin:0; padding:14px 18px 0; border:1px solid var(--mi-account-border,#d3e0ce); border-radius:var(--mi-account-radius,10px); background:var(--mi-account-surface,#ffffff); box-shadow:none; }
body.woocommerce-account .woocommerce-MyAccount-content .mi-reservations .mi-demand-account-empty { padding:24px 18px; }
.mi-reservations .mi-demand-account-empty strong { display:block; margin-bottom:6px; font-size:17px; }
.mi-reservations .mi-demand-account-head { display:flex; justify-content:space-between; align-items:flex-start; gap:8px 16px; }
.mi-reservations .mi-demand-account-identity { min-width:0; }
.mi-reservations .mi-demand-account-identity h3 { margin:0 0 3px; padding:0; color:inherit; font-size:17px; font-weight:650; line-height:1.25; overflow-wrap:anywhere; }
body.woocommerce-account #main-content .mi-reservations .mi-demand-account-identity h3 a { color:inherit!important; text-decoration:none; }
body.woocommerce-account #main-content .mi-reservations .mi-demand-account-identity h3 a:hover { text-decoration:underline; }
.mi-reservations .mi-demand-account-identity p { font-size:12px; overflow-wrap:anywhere; }
body.woocommerce-account .woocommerce-MyAccount-content .mi-reservations .mi-demand-account-status { flex:0 1 auto; padding:4px 8px; border:1px solid color-mix(in srgb,var(--mi-account-green,#21383b) 18%,transparent); border-radius:6px; background:color-mix(in srgb,var(--mi-account-green,#21383b) 6%,var(--mi-account-surface,#ffffff)); color:var(--mi-account-green,#21383b); font-size:11px; font-weight:600; line-height:1.3; }
body.woocommerce-account .woocommerce-MyAccount-content .mi-reservations .mi-demand-account-status--cancelled { color:var(--mi-account-muted,#5a6b61); border-color:var(--mi-account-border,#d3e0ce); background:var(--mi-account-bg,#eff5eb); }
.mi-reservations .mi-demand-account-commercial { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; gap:10px 16px; margin:12px 0 8px; }
.mi-reservations :is(.mi-demand-account-commercial,.mi-demand-account-detail-meta) dt { color:var(--mi-account-muted,#5a6b61); font-size:11px; line-height:1.3; margin:0 0 3px; }
.mi-reservations :is(.mi-demand-account-commercial,.mi-demand-account-detail-meta) dd { margin:0; font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.mi-reservations [data-reservation-measure] { display:inline; color:var(--mi-account-muted,#5a6b61); font-size:12px; font-weight:400; margin-left:6px; }
.mi-reservations [data-reservation-measure]:empty { display:none; }
.mi-reservations .mi-demand-account-total { text-align:right; }
.mi-reservations .mi-demand-account-total dd { font-size:21px; line-height:1.25; font-weight:700; font-variant-numeric:tabular-nums; }
.mi-reservations .mi-demand-account-management { border-top:1px solid var(--mi-account-border,#d3e0ce); }
body.woocommerce-account .woocommerce-MyAccount-content .mi-reservations summary { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:2px 12px; min-height:44px; padding:7px 0; list-style:none; cursor:pointer; font-size:12px; }
.mi-reservations summary::-webkit-details-marker { display:none; }
.mi-reservations summary time { color:var(--mi-account-muted,#5a6b61); font-size:11px; }
.mi-reservation-summary-action { display:flex; align-items:center; gap:8px; margin-left:auto; font-weight:650; }
.mi-reservation-chevron { flex:0 0 7px; width:7px; height:7px; margin:0 2px 3px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); }
.mi-reservations details[open] .mi-reservation-chevron { transform:rotate(225deg); margin-bottom:0; }
.mi-reservations .mi-reservation-detail { padding:10px 0 16px; }
.mi-reservations .mi-demand-account-detail-meta { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); gap:14px; margin:0 0 14px; }
.mi-reservations .mi-demand-account-detail-meta dd { font-size:13px; font-weight:400; }
body.woocommerce-account .woocommerce-MyAccount-content .mi-reservations .mi-reservation-help { margin:10px 0; font-size:12px; line-height:1.5; }
.mi-reservations .mi-demand-account-update { display:flex; flex-wrap:wrap; align-items:end; gap:8px; margin:14px 0 8px; }
.mi-reservations .mi-demand-account-update label { flex:1 0 100%; font-size:12px; font-weight:600; }
body.woocommerce-account .woocommerce-MyAccount-content .mi-reservations input[type=number] { width:96px; min-height:44px; max-width:100%; padding:8px; border:1px solid var(--mi-account-border,#d3e0ce); border-radius:6px; background:var(--mi-account-surface,#ffffff); color:var(--mi-account-green,#21383b); font:inherit; font-size:16px; }
body.woocommerce-account .woocommerce-MyAccount-content .mi-reservations .button { min-height:44px; max-width:100%; padding:10px 12px; border:1px solid var(--mi-account-copper,#257b48); border-radius:6px; background:var(--mi-account-copper,#257b48); color:#fff; font:inherit; font-size:13px; font-weight:600; line-height:1.4; white-space:normal; cursor:pointer; }
body.woocommerce-account .woocommerce-MyAccount-content .mi-reservations .mi-demand-cancel { background:transparent; color:var(--mi-account-green,#21383b); border-color:var(--mi-account-border,#d3e0ce); }
.mi-reservations :is(button,input):disabled { opacity:.6; cursor:not-allowed; }
body.woocommerce-account .woocommerce-MyAccount-content .mi-reservations .mi-demand-message, .mi-reservations-feedback { color:var(--mi-account-green,#21383b); font-size:13px; line-height:1.5; }
.mi-reservations-feedback:not(:empty) { padding:10px 12px; margin-bottom:12px; border:1px solid var(--mi-account-border,#d3e0ce); border-radius:6px; }
.mi-reservations-feedback:empty { display:none; }
.mi-reservations :is(a,button,summary,input,[tabindex]):focus-visible { outline:2px solid var(--mi-account-copper,#257b48); outline-offset:3px; }
.mi-reservation-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
/* Only this endpoint: the existing widget remains functional in document flow. */
body.woocommerce-account:has(.mi-reservations) > .mi-pro-launcher { position:relative!important; inset:auto!important; display:table; margin:12px 16px max(20px,env(safe-area-inset-bottom)) auto; max-width:calc(100% - 32px); }
@media(max-width:520px) {
 body.woocommerce-account .woocommerce-MyAccount-content .mi-reservations .mi-demand-account-row { padding:12px 12px 0; }
 .mi-reservations .mi-demand-account-head { flex-wrap:wrap; gap:6px; }
 .mi-reservations .mi-demand-account-identity { flex:1 0 100%; }
 .mi-reservations .mi-demand-account-identity h3 { font-size:16px; }
 .mi-reservations .mi-demand-account-commercial { margin:10px 0 6px; gap:8px; }
 .mi-reservations .mi-demand-account-total dd { font-size:19px; }
 .mi-reservations .mi-demand-account-update .button { flex:1 1 140px; }
}
/* Live Divi/portal headings use important font and margin rules. Keep this override local. */
body.mi-account-foundation.woocommerce-account #main-content .woocommerce-MyAccount-content .mi-reservations .mi-demand-account-identity h3 { margin:0 0 3px!important; font-size:17px!important; line-height:1.25!important; }
body.mi-account-foundation.woocommerce-account #main-content .woocommerce-MyAccount-content .mi-reservations .mi-demand-account-identity p { line-height:1.4; }
@media(max-width:520px) {
 body.mi-account-foundation.woocommerce-account #main-content .woocommerce-MyAccount-content .mi-reservations .mi-demand-account-identity h3 { font-size:16px!important; }
}

/* Preserve the minimum touch target against the legacy portal button rule. */
body.mi-account-foundation.woocommerce-account #main-content .woocommerce-MyAccount-content .mi-reservations .button { min-height:44px!important; }


.mi-demand-actions .button{border-color:#257b48;background:#257b48;color:#fff;border-radius:8px}
.mi-demand-actions .mi-demand-secondary-row{display:flex;flex-direction:column;gap:4px}
.mi-demand-actions .mi-demand-reassurance,.mi-demand-actions .mi-demand-helper{margin:0;color:#586c63;font-size:12px;line-height:1.45}
.mi-demand-actions .mi-demand-notify-form input:focus-visible,.mi-demand-actions button:focus-visible,.mi-reservations :is(button,a,input,summary):focus-visible{outline:2px solid #257b48;outline-offset:3px}
.mi-reservations .mi-demand-account-pagehead h2{font-size:clamp(22px,3vw,28px);line-height:1.2}
.mi-reservations .mi-demand-account-total dd{color:#257b48}
@media(max-width:520px){.mi-reservations .mi-reservations-counts{gap:12px 20px}.mi-reservations .mi-demand-account-commercial{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.mi-demand-actions .mi-demand-notify-form{padding:10px}}

.mi-demand-actions :is(.mi-demand-reserve-submit,.mi-demand-notify-submit){display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:44px;padding:8px 12px;font:inherit;font-weight:650;line-height:1.3;cursor:pointer}
