/* R56 preview. Every rule is restricted to phones. R55 desktop is untouched. */
@media screen and (max-width:600px) {
 html body .presentation-dialog{padding:14px;width:calc(100vw - 16px);max-height:94dvh;}
 html body .presentation-dialog .presentation-layout{gap:12px;}
 html body .presentation-dialog .presentation-media{height:auto;min-height:0;}
 html body .presentation-dialog .presentation-media-stage{height:32dvh;}
 html body .presentation-dialog:has(img[data-zoom-src*="rn-01-sin-papeles-r35"]) .presentation-difference{display:none!important;}
 html body .presentation-dialog .presentation-content>h3{height:auto;min-height:0;margin:0 0 10px;font-size:25px;}
 html body .presentation-dialog .presentation-content>ul{height:auto;min-height:0;margin:0 0 12px;overflow:visible;font-size:15px;line-height:1.5;}
 html body .presentation-dialog .presentation-price{margin:12px 0 8px;padding-top:10px;font-size:27px;}
 html body .presentation-dialog .presentation-status{height:auto;min-height:0;margin:0 0 12px;}
 html body .presentation-dialog .presentation-note{margin:8px 0 0;}
 html body .presentation-dialog .presentation-top h2{min-height:0;}
 html body .order-dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px);max-height:96dvh;scroll-padding-top:80px;}
 html body .order-dialog .order-top{padding:6px 12px;gap:0;min-height:0;}
 html body .order-dialog .order-top h2{font-size:23px!important;line-height:1.12;margin:0;}
 html body .order-dialog .order-close{min-height:44px;padding:0;font-size:17px!important;gap:6px;line-height:1.2;}
 html body .order-dialog .order-close .acorn-action-icon{width:18px;height:24px;}
 html body .order-dialog .order-layout{padding:12px;gap:14px;}
 html body .order-dialog .order-form legend{font-size:28px;line-height:1.15;margin-bottom:12px;}
 html body .order-dialog .order-packaging-section{margin:0;padding:0;}
 html body .order-dialog .robles-presentaciones .rp-layout{gap:12px;}
 html body .order-dialog .robles-presentaciones .rp-visuals{gap:8px;}
 html body .order-dialog .robles-presentaciones .rp-preview .rp-zoom,
 html body .order-dialog .robles-presentaciones .rp-detail-open{aspect-ratio:1122/1402;}
 html body .order-dialog .robles-presentaciones .rp-preview .rp-zoom img{object-fit:contain;}
 html body .order-dialog .robles-presentaciones .rp-options{gap:12px;}
 html body .order-dialog .robles-presentaciones .rp-label{margin:6px 0;font-size:14px;}
 html body .order-dialog .robles-presentaciones .rp-choices{max-width:none;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:3px;}
 html body .order-dialog .robles-presentaciones .rp-choice{padding:4px;min-height:68px;}
 html body .order-dialog .robles-presentaciones .rp-choice img{width:100%;height:auto;aspect-ratio:2.2;object-fit:cover;object-position:center;}
 html body .order-dialog .robles-presentaciones .rp-choice .rp-choice-label{min-height:0;padding:3px 0;gap:3px;align-items:center;}
 html body .order-dialog .robles-presentaciones .rp-choice .rp-choice-title{width:auto;min-height:0;white-space:nowrap;font-size:13px;line-height:1.4;}
 html body .order-dialog .robles-presentaciones .rp-choice small{font-size:10px;}
 html body .order-dialog .robles-presentaciones .rp-guidance h3{font-size:24px;margin:0 0 6px;}
 html body .order-dialog .robles-presentaciones .rp-guidance p{font-size:16px;margin:0 0 6px;}
 html body .order-dialog .personalization-layout{margin-top:16px;gap:12px;}
 html body .order-dialog .personalization-section-title{font-size:27px;margin:0 0 8px;}
 html body .order-dialog .order-form label{margin:8px 0 4px;font-size:14px;line-height:1.4;}
 html body .order-dialog .order-form input:not([type=checkbox]):not([type=radio]),
 html body .order-dialog .order-form select{padding:8px 10px;min-height:44px;font-size:16px;}
 html body .order-dialog .order-form textarea{padding:8px 10px;font-size:16px;line-height:1.4;}
 html body .order-dialog #order-dedication{height:90px;min-height:90px;resize:vertical;}
 html body .order-dialog .order-hint{font-size:13px;line-height:1.45;margin:5px 0 8px;}
 html body .order-dialog #letter-preview-slot{position:static;}
 html body .order-dialog #letter-preview-slot .order-aside{border:0;}
 html body .order-dialog #letter-preview-slot h3{font-size:23px!important;margin:0 0 4px;}
 html body .order-dialog .preview-document-title{font-size:20px!important;margin:0 0 4px;}
 html body .order-dialog .letter-illustration-hint{font-size:19px!important;min-height:30px;margin:0 0 6px;}
 html body .order-dialog .letter-illustration-hint svg{width:35px;height:58px;right:10%;top:10px;}
 html body .order-dialog #order-letter-frame{width:min(100%,220px);margin:0 auto;}
 html body .order-dialog .illustration-navigation{gap:4px;padding-top:6px;margin:0;}
 html body .order-dialog .illustration-navigation button[data-art-direction]{min-height:44px;flex:1 1 130px;padding:3px;}
 html body .order-dialog .illustration-navigation .illustration-control-label{font-size:15px;line-height:1.2;}
 html body .order-dialog .illustration-navigation button.illustration-continue{margin-top:4px;min-height:44px;}
 html body .order-dialog .phrase-options{margin:10px 0;padding:8px;}
 html body .order-dialog .phrase-heading{font-size:20px;line-height:1.3;}
 html body .order-dialog .surprise-option{margin-top:12px;padding:10px 0;}
 html body .order-dialog .order-actions{margin-top:14px;gap:10px;}
 html body .order-dialog[data-order-stage="kit"] .review-gift-tools-layout{grid-template-columns:1fr;gap:12px;}
 html body .order-dialog[data-order-stage="kit"] #review-personalized-preview{width:176px;max-width:100%;margin:0 auto!important;justify-self:center;}
 html body .order-dialog[data-order-stage="kit"] .selected-gift-preview{margin:0;padding:0;}
 html body .order-dialog[data-order-stage="kit"] .r42-approved-kit-photo img{width:100%;height:auto!important;max-height:none;object-fit:contain;}
 html body .order-dialog[data-order-stage="kit"] .review-optional-tools{height:auto!important;min-height:0;}
 html body .order-dialog[data-order-stage="kit"] .review-optional-tools>h3{font-size:24px;margin:0 0 10px;}
 html body .order-dialog[data-order-stage="kit"] .review-tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto!important;gap:8px;flex:none;}
 html body .order-dialog[data-order-stage="kit"] .review-tool-card{height:auto;min-width:0;}
 html body .order-dialog[data-order-stage="kit"] .review-tool-choice{height:100%!important;justify-content:flex-start;}
 html body .order-dialog[data-order-stage="kit"] .r32-tool-visuals{width:100%;max-width:none;margin:0;padding:6px 3px;min-height:74px;justify-content:center;flex:none;}
 html body .order-dialog[data-order-stage="kit"] .r32-tool-window{flex:none;}
 html body .order-dialog[data-order-stage="kit"] .r32-tool-window svg{display:block;width:100%;height:auto;max-height:none;}
 html body .order-dialog[data-order-stage="kit"] .review-tool-copy{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:8px;flex:1;}
 html body .order-dialog[data-order-stage="kit"] .r32-tool-description{gap:4px;}
 html body .order-dialog[data-order-stage="kit"] .r32-tool-description strong{font-size:21px!important;line-height:1.15;}
 html body .order-dialog[data-order-stage="kit"] .r32-tool-description>span{font-size:12px!important;line-height:1.35;}
 html body #order-form .review-tool-copy .review-tool-purchase{flex-direction:column;gap:6px;width:100%;margin-top:auto;flex:0;}
 html body #order-form .review-tool-price small{font-size:11px;line-height:1.3;}
 html body #order-form .review-tool-card .review-tool-add{width:100%!important;min-width:0!important;max-width:135px!important;height:44px!important;min-height:44px!important;padding:6px!important;font-size:18px!important;gap:4px;}
 html body #order-form .review-tool-add .acorn-action-icon{width:16px;height:22px;}
 html body .order-dialog #review-kit-delivery-policy{font-size:13px;line-height:1.45;margin:12px 0;}
 html body .order-dialog>.robles-document-footer,
 html body .presentation-dialog>.robles-document-footer{padding:16px 12px;margin:0;font-size:12px;}

 /* R56 v4: full-width ribbon samples and a complete compact letter overview. */
 html body .order-dialog .order-top{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px 12px;}
 html body .order-dialog .order-top h2{font-size:20px!important;line-height:1.1;}
 html body .order-dialog .order-close{font-size:16px!important;min-height:44px;}
 html body .order-dialog .personalization-layout{margin-top:10px;}
 html body .order-dialog .personalization-section-title{font-size:25px;margin:0 0 4px;}
 html body .order-dialog .r56-mobile-names{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;}
 html body .order-dialog .r56-mobile-field{min-width:0;}
 html body .order-dialog .r56-mobile-field label{margin:4px 0;}
 html body .order-dialog .r56-mobile-tree{padding:0;margin:0 0 4px;border:0;}
 html body .order-dialog .r56-mobile-tree>summary{font-size:14px;line-height:1.4;min-height:44px;display:flex;align-items:center;gap:6px;cursor:pointer;}
 html body .order-dialog .r56-mobile-tree>summary::before{content:'▸';}
 html body .order-dialog .r56-mobile-tree[open]>summary::before{content:'▾';}
 html body .order-dialog #order-dedication{height:66px;min-height:66px;}
 html body .order-dialog #letter-preview-slot{margin:6px 0 0;}
 html body .order-dialog #letter-preview-slot .order-aside>h3,
 html body .order-dialog #letter-preview-slot .preview-document-title{display:none!important;}
 html body .order-dialog .letter-illustration-hint{font-size:16px!important;line-height:1.25;min-height:20px;margin:0 0 4px;}
 html body .order-dialog .letter-illustration-hint span{padding-right:0;}
 html body .order-dialog .letter-illustration-hint svg{display:none;}
 html body .order-dialog #order-letter-frame{width:min(100%,160px);}
 html body .order-dialog .illustration-navigation{padding-top:4px;gap:2px;}
 html body .order-dialog .illustration-navigation button.illustration-continue{margin-top:0;}

 /* R56 v5: delivery and final review; approved v4 personalization unchanged. */
 html body .order-dialog[data-order-stage="delivery"] .buyer-origin{padding:10px 12px;margin:4px 0 12px;}
 html body .order-dialog[data-order-stage="delivery"] .buyer-origin>p{margin:0 0 6px;font-size:15px;line-height:1.4;}
 html body .order-dialog[data-order-stage="delivery"] .buyer-origin label{min-height:44px;margin:0!important;}
 html body .order-dialog[data-order-stage="delivery"] .order-form legend,
 html body .order-dialog[data-order-stage="summary"] .order-form legend{font-size:25px;margin-bottom:10px;}
 html body .order-dialog[data-order-stage="summary"] .order-review{gap:10px;}
 html body .order-dialog[data-order-stage="summary"] .order-review-group{padding:14px 12px;}
 html body .order-dialog[data-order-stage="summary"] .order-review-group>h3{margin:0 0 10px;font-size:23px;}
 html body .order-dialog[data-order-stage="summary"] .order-review-group dl>div{margin-bottom:10px;}
 html body .order-dialog[data-order-stage="summary"] .order-review-group dt{margin-bottom:2px;}
 html body .order-dialog[data-order-stage="summary"] .order-review-group dd{font-size:14px;line-height:1.45;overflow-wrap:anywhere;}
 html body .order-dialog[data-order-stage="summary"] .edit-order{min-height:44px;}
 html body #robles-cart-panel .r33-cart-details{overflow-wrap:anywhere;}
 html body #robles-cart-panel .order-review-group{padding:12px;}
 html body #robles-cart-panel .order-review-group dl>div{margin-bottom:10px;}
 html body #robles-cart-panel .r28-cart-return,
 html body #robles-cart-panel [data-cart-close]{min-height:44px;}
}
@media screen and (max-width:600px){
 #order-review .r21-review-visual{position:relative;}
 #order-review .r56-summary-zoom-open{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in;z-index:10;}
 #order-review .r56-summary-zoom-open:focus-visible{outline:2px solid #237B6B;outline-offset:2px;}
}
