.v178-dialog{max-width:720px;color:#49382f}.v178-dialog h2{font-family:Georgia,serif}.v178-dialog form{display:grid;gap:12px}.v178-dialog form>label,.v178-dialog [data-v178-fields]>label{display:grid;gap:6px;font-size:13px;font-weight:600}.v178-dialog input,.v178-dialog select,.v178-dialog textarea{width:100%;padding:11px;border-radius:10px;border:1px solid #e4d4bf;background:#fff;color:#49382f}.v178-dialog [data-v178-fields]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.v178-warning{background:#fff2dd;border:1px solid #e8c38d;border-radius:12px;padding:12px;color:#80551e}.v178-info{grid-column:1/-1;padding:13px;background:#f8f1e8;border-radius:12px}.v178-check{display:flex!important;align-items:start;gap:10px;background:#f8f2e9;border-radius:12px;padding:12px}.v178-check input{width:auto!important;flex:none;margin-top:3px}.v178-actions{display:flex;flex-wrap:wrap;gap:10px}.v178-dialog .hint{line-height:1.5}@media(max-width:550px){.v178-dialog [data-v178-fields]{grid-template-columns:1fr}.v178-actions button{width:100%}}
/* V179: confirmation Luxury Premium */
.v179-review{color:#49382f;max-width:760px;animation:v179fade .2s ease-out}.v179-review-inner{background:#fffdfa;border:1px solid #e9d6be;border-radius:20px;overflow:hidden;box-shadow:0 18px 42px #4b2d3a20}.v179-header{padding:25px 27px;background:linear-gradient(115deg,#46283e,#74516a 70%,#a48377);color:white}.v179-eyebrow{font-size:10px;letter-spacing:2px;color:#efd4a1;font-weight:700}.v179-header h2{font-family:Georgia,serif;font-size:27px;margin:10px 0 5px;color:#fff}.v179-header p{margin:0;color:#f5e9ed;font-size:13px}.v179-content{padding:22px 26px}.v179-order{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px 15px;border-radius:12px;background:#f7f0e8;font-size:13px}.v179-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}.v179-compare section{border:1px solid #e6d8c7;border-radius:13px;padding:15px;min-width:0}.v179-compare section:last-child{background:#f9f0e2;border-color:#d7b988}.v179-compare small,.v179-reason small{display:block;color:#947b64;letter-spacing:1px;font-size:10px;font-weight:700}.v179-compare strong{display:block;font-size:15px;margin-top:8px}.v179-compare p{overflow-wrap:anywhere;line-height:1.5;font-size:12px;color:#79665a;margin-bottom:0;white-space:pre-wrap}.v179-details{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.v179-details>div{display:grid;gap:4px;padding:11px 13px;background:#faf6f0;border-radius:10px;min-width:0}.v179-details span{font-size:11px;color:#947b64}.v179-details b{font-size:13px;overflow-wrap:anywhere}.v179-reason{background:#f8f1e8;padding:14px;border-radius:11px}.v179-reason p{font-size:13px;margin:7px 0 0;overflow-wrap:anywhere}.v179-warning{padding:13px;background:#fff2d9;border:1px solid #e8c38d;border-radius:10px;color:#82561b;margin-top:12px;font-size:12px}.v179-notice{font-size:12px;color:#8b776a;margin:14px 0 0}.v179-footer{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:17px 25px;background:#f9f3ed;border-top:1px solid #eadfce}.v179-footer button{min-height:42px}.v179-footer button:disabled{opacity:.5;cursor:wait}@keyframes v179fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(max-width:550px){.v179-header{padding:20px}.v179-content{padding:16px}.v179-compare,.v179-details{grid-template-columns:1fr}.v179-footer{padding:14px}.v179-footer button{width:100%}}@media(prefers-reduced-motion:reduce){.v179-review{animation:none}}

/* V180 — Mobile-first, safe-area-aware delivery editor and review */
.v178-dialog,.v179-review{box-sizing:border-box;width:100%;min-width:0}
.v178-dialog *, .v179-review *{box-sizing:border-box}
.v178-dialog input,.v178-dialog select,.v178-dialog textarea{max-width:100%;min-width:0;font-size:16px}
.v178-dialog textarea{resize:vertical;min-height:76px}
.v178-dialog [data-v178-fields]>label,.v178-dialog form>label{min-width:0;overflow-wrap:anywhere}
.v179-order,.v179-compare section,.v179-details>div,.v179-reason{overflow-wrap:anywhere}
@media(max-width:700px){
 .modal:has(.v178-dialog){padding:10px;align-items:center;overflow:hidden}
 .modal:has(.v178-dialog) .modal-card{width:100%;max-width:560px;max-height:calc(100dvh - 20px);padding:18px 16px 18px;overflow-y:auto;overscroll-behavior:contain;border-radius:18px}
 .modal:has(.v178-dialog) .modal-card .floating{position:sticky;top:0;float:right;margin:-8px -5px 0 8px;z-index:3;background:#fff9f1;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;box-shadow:0 2px 10px #0001}
 .v178-dialog h2{font-size:clamp(23px,6vw,30px);line-height:1.15;margin:10px 0}
 .v178-dialog .hint{font-size:12px}
 .v178-dialog [data-v178-fields]{grid-template-columns:minmax(0,1fr);gap:10px}
 .v178-dialog form{gap:11px}
 .v178-actions{display:grid;grid-template-columns:1fr;gap:9px}
 .v178-actions button{width:100%;min-height:48px;white-space:normal}
 .v178-check{font-size:12px;line-height:1.5}
 .modal:has(.v179-review){padding:0;align-items:stretch;overflow:hidden}
 .modal:has(.v179-review) .modal-card{width:100%;max-width:none;height:100dvh;max-height:100dvh;overflow:hidden;padding:0;background:#fffdfa;border-radius:0;display:flex;flex-direction:column}
 .modal:has(.v179-review) #modalContent{min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden}
 .modal:has(.v179-review) .floating{position:absolute;right:12px;top:calc(12px + env(safe-area-inset-top,0px));z-index:8;width:38px;height:38px;border-radius:50%;background:#ffffffed;box-shadow:0 2px 12px #0002;display:grid;place-items:center}
 .v179-review{height:100%;max-width:none;display:flex;flex-direction:column;overflow:hidden;animation:none}
 .v179-review-inner{height:100%;min-height:0;display:flex;flex-direction:column;border:0;border-radius:0;box-shadow:none}
 .v179-header{flex:none;padding:calc(23px + env(safe-area-inset-top,0px)) 55px 17px 19px}
 .v179-header h2{font-size:clamp(22px,6vw,28px);line-height:1.18;margin:8px 0}
 .v179-header p{font-size:12px;line-height:1.4}
 .v179-content{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:16px 16px 22px}
 .v179-order{display:grid;gap:5px;padding:11px 13px}
 .v179-compare,.v179-details{grid-template-columns:minmax(0,1fr);gap:10px}
 .v179-compare section{padding:13px}
 .v179-compare strong{font-size:14px}
 .v179-compare p{font-size:12px}
 .v179-details{margin:12px 0}
 .v179-details>div{padding:10px 12px}
 .v179-footer{flex:none;display:grid;grid-template-columns:1fr;gap:9px;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));box-shadow:0 -6px 20px #46283e0c;z-index:2}
 .v179-footer button{width:100%;min-height:48px;white-space:normal;font-size:14px}
 .v179-footer [data-v179-confirm]{order:-1}
}
@media(max-width:360px){.v179-header{padding-right:52px}.v179-eyebrow{font-size:9px;letter-spacing:1.1px}.v179-footer{padding-left:12px;padding-right:12px}}
@media(max-height:540px) and (max-width:950px){.v179-header{padding-top:12px;padding-bottom:10px}.v179-header h2{font-size:20px;margin:4px 0}.v179-footer{grid-template-columns:1fr 1fr}.v179-footer [data-v179-confirm]{order:0}}

/* V181: desplazamiento táctil restaurado en editor y confirmación.
   Una sola zona de scroll evita el bloqueo causado por flex + overflow:hidden. */
@media (max-width:700px){
 #modal:not([hidden]):has(.v178-dialog),
 #modal:not([hidden]):has(.v179-review){
   position:fixed;inset:0;display:flex;align-items:flex-start;justify-content:center;
   overflow-y:auto!important;overflow-x:hidden!important;
   -webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;
   touch-action:pan-y!important;padding:8px!important;
 }
 #modal:has(.v178-dialog) .modal-card,
 #modal:has(.v179-review) .modal-card{
   position:relative!important;display:block!important;flex:none!important;
   width:100%!important;max-width:560px!important;
   height:auto!important;min-height:0!important;
   max-height:none!important;overflow:visible!important;
   margin:auto auto 8px!important;padding:16px!important;
   border-radius:18px!important;
   touch-action:pan-y!important;
 }
 #modal:has(.v178-dialog) #modalContent,
 #modal:has(.v179-review) #modalContent{
   display:block!important;min-height:0!important;height:auto!important;
   overflow:visible!important;touch-action:pan-y!important;
 }
 #modal:has(.v178-dialog) .v178-dialog,
 #modal:has(.v179-review) .v179-review,
 #modal:has(.v179-review) .v179-review-inner{
   display:block!important;height:auto!important;min-height:0!important;
   max-height:none!important;overflow:visible!important;
   touch-action:pan-y!important;
 }
 #modal:has(.v179-review) .v179-review-inner{border-radius:14px!important;overflow:hidden!important}
 #modal:has(.v179-review) .v179-content{display:block!important;overflow:visible!important;max-height:none!important;min-height:0!important;touch-action:pan-y!important}
 #modal:has(.v179-review) .v179-footer{display:grid!important;position:static!important;grid-template-columns:1fr!important;padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))!important}
 #modal:has(.v179-review) .v179-header{padding-top:22px!important}
 #modal:has(.v178-dialog) .floating,
 #modal:has(.v179-review) .floating{position:sticky!important;top:4px!important;float:right!important;right:auto!important;z-index:10!important}
}
@media(max-width:700px) and (max-height:540px){
 #modal:has(.v179-review) .v179-footer{grid-template-columns:1fr!important}
}
