.buyer-overlay[hidden]{display:none}.buyer-overlay{position:fixed;inset:0;background:#0b251bb8;z-index:3000;display:flex;align-items:center;justify-content:center;padding:18px}.buyer-modal{width:min(620px,100%);max-height:92vh;overflow-y:auto;background:#fff;border-radius:16px;color:#173b30;box-shadow:0 18px 70px #0004;font-family:'DM Sans',sans-serif}.buyer-header{display:flex;justify-content:space-between;align-items:start;padding:22px 24px;border-bottom:1px solid #e1eadf;position:sticky;top:0;background:#fff;z-index:1}.buyer-header small{font-size:10px;letter-spacing:1.4px;font-weight:800;color:#83985d}.buyer-header h2{font:800 23px Manrope,sans-serif;margin:5px 0 0}.buyer-close{background:#eff4eb;border:0;border-radius:50%;width:38px;height:38px;cursor:pointer;color:#2d523e}.buyer-body{padding:22px 24px 26px}.buyer-body p{font-size:13px;line-height:1.55}.buyer-notice{background:#eef5e5;border-radius:8px;padding:12px;color:#4f6846;margin:0 0 18px}.buyer-body label{display:block;margin:12px 0;font-size:12px;font-weight:700}.buyer-body input,.buyer-body select{display:block;width:100%;margin-top:6px;padding:11px 12px;border:1px solid #d5e2d1;border-radius:7px;background:#fff;color:#173b30;font:14px 'DM Sans',sans-serif}.buyer-items{padding:0;margin:16px 0;list-style:none}.buyer-items li{display:flex;gap:14px;justify-content:space-between;border-bottom:1px solid #ebf0e9;padding:10px 0;font-size:12px;line-height:1.5}.buyer-items strong{text-align:right;flex-shrink:0;max-width:45%}.buyer-total{font-size:14px!important}.buyer-hint{color:#728578;font-size:12px!important}.buyer-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.buyer-actions button,.buyer-tabs button,.buyer-back,.buyer-primary{border:1px solid #c9d9c3;background:white;color:#24533b;border-radius:7px;padding:10px 14px;font:700 12px 'DM Sans',sans-serif;cursor:pointer}.buyer-primary{background:#174632!important;border-color:#174632!important;color:#fff!important}.buyer-primary:disabled{opacity:.5;cursor:not-allowed}.buyer-status{margin:12px 0;color:#a33323;font-weight:700}.buyer-status:empty{display:none}.buyer-status.info{color:#476b45}.buyer-tabs{display:flex;gap:8px;margin:15px 0}.buyer-tabs button[aria-pressed="true"]{background:#e2eed4;border-color:#9bbd84}.buyer-register button,.buyer-login button{margin-top:8px}.buyer-back{margin-top:16px}.buyer-success{font-weight:800;color:#245e42;font-size:16px!important}@media(max-width:600px){.buyer-overlay{padding:8px;align-items:end}.buyer-modal{border-radius:16px 16px 10px 10px;max-height:94vh}.buyer-header,.buyer-body{padding-left:18px;padding-right:18px}.buyer-items li{display:block}.buyer-items strong{display:block;text-align:left;max-width:none;margin-top:3px}.buyer-actions{flex-direction:column-reverse}.buyer-actions button{width:100%}}

/* Solicitud de compra: papel cálido, cabecera de tinta y acciones claras. */
.buyer-overlay{background:#0b211bd1;backdrop-filter:blur(3px)}
.buyer-modal{background:var(--agr-panel-card,#fffdf7);border:1px solid #e1d6c3;border-radius:18px;box-shadow:0 24px 75px #071b1666;color:#163a31}
.buyer-header{background:var(--agr-panel-forest,#123a2f);border:0;padding:22px 24px;color:#fffdf6}
.buyer-header small{color:#d8e793;letter-spacing:.16em}.buyer-header h2{color:#fffdf6;letter-spacing:-.5px}
.buyer-close{background:#ffffff13;color:#fff;border:1px solid #ffffff55}.buyer-close:hover{background:#ffffff28}
.buyer-body{background:#fffdf7}.buyer-notice{background:#f3eee1;border-left:3px solid #b66a48;border-radius:0 9px 9px 0;color:#4f6657;padding:14px}
.buyer-body input,.buyer-body select{background:white;border-color:#cfdacb;border-radius:9px;min-height:44px}
.buyer-body input:focus-visible,.buyer-body select:focus-visible{outline:3px solid #bf7b54;outline-offset:2px}
.buyer-items li{border-color:#e9e1d3;padding:12px 0}.buyer-items strong{color:#193f30}.buyer-total{background:#edf3df;border:1px solid #dae6cd;border-radius:10px;padding:12px;color:#1c4a35}
.buyer-actions button,.buyer-tabs button,.buyer-back,.buyer-primary{border-radius:9px;min-height:43px;border-color:#cddbc9}
.buyer-primary{background:#153f30!important;border-color:#153f30!important}.buyer-primary:hover:not(:disabled){background:#265b43!important}
.buyer-tabs button[aria-pressed="true"]{background:#dfeabf;border-color:#abc397;color:#214b32}.buyer-hint{color:#5d7464}.buyer-success{color:#1f613e}
.buyer-modal button:focus-visible{outline:3px solid #c98760;outline-offset:3px}
@media(max-width:600px){.buyer-overlay{padding:0;align-items:end}.buyer-modal{max-height:94dvh;border-radius:18px 18px 0 0}.buyer-header,.buyer-body{padding-left:18px;padding-right:18px}.buyer-header h2{font-size:21px}.buyer-body{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}}

.buyer-modal{overscroll-behavior:contain}.buyer-items li{min-width:0;overflow-wrap:anywhere}
