/* Comparator only: keep the mobile task compact without shrinking touch targets. */
.comparator-page .hero,.comparator-page .invoice-entry,.comparator-page .results-shell,.comparator-page .faq-section{max-width:min(760px,94%)}
.comparator-page .hero{margin:14px auto 10px;text-align:left}
.comparator-page .hero h1{font-size:30px;line-height:1.15;letter-spacing:-.035em;margin:0 0 5px}
.comparator-page .hero p{text-align:left;font-size:14px;line-height:1.4;margin:0}
.comparator-page .invoice-entry{margin:10px auto;padding:12px 16px 14px;border-radius:16px;background:#fff;box-shadow:none;border-color:#dfe5f1}
.invoice-entry-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;margin-bottom:3px}
.invoice-entry-head h2{font:600 18px/1.3 system-ui;margin:0;text-align:left;letter-spacing:-.02em}
.comparator-page .invoice-methods{display:block;flex:none;padding:0;margin:0;background:none;border-radius:0}
.comparator-page .invoice-methods button{min-height:44px;padding:6px 0 6px 10px;border:0;border-radius:6px;background:none;box-shadow:none;color:#526580;font:500 13px/1.3 system-ui;text-decoration:underline;text-underline-offset:3px}
.comparator-page .invoice-import>p{font-size:14px;line-height:1.4;margin:0 0 10px}
.comparator-page .invoice-import-actions{gap:8px;flex-wrap:nowrap}
.comparator-page .invoice-import-actions button{min-width:0;flex:1;padding:8px 10px;font-size:14px;border-radius:10px}
.comparator-page .invoice-import .invoice-link-details{margin:10px 0 0;padding:4px 0 0}
.comparator-page .invoice-link-details summary{font-size:13px;padding:8px 0;min-height:24px;line-height:24px}
.comparator-page .invoice-import .invoice-privacy{font-size:12px;line-height:1.4;margin:6px 0 0;color:#607089}
.comparator-page .invoice-review{margin-top:12px;padding-top:12px}
.comparator-page .invoice-review h3{font-size:17px;margin:0 0 10px}
.comparator-page .invoice-review dl{grid-template-columns:1fr 1fr;gap:8px 12px}
.comparator-page .invoice-review .invoice-data-dates{grid-column:2;grid-row:1}
.comparator-page .invoice-review :is(.invoice-data-amount,.invoice-data-amount-unavailable){grid-column:1;grid-row:1}
.comparator-page .invoice-review dt{font-size:12px}
.comparator-page .invoice-review dd{font-size:14px;line-height:1.35;margin-top:2px}
.comparator-page .invoice-review>p{font-size:13px;line-height:1.4;margin:10px 0}
.comparator-page .invoice-entry #invoice-message{font-size:13px;padding:9px 10px;margin-bottom:10px}
.comparator-page .results-shell{margin:14px auto 0}
.comparator-page .results-summary,.comparator-page .state-box{padding:14px;border-radius:12px;box-shadow:none}
.comparator-page .results-summary>strong{font-size:14px;line-height:1.4}
.comparator-page .faq-section{margin:32px auto 36px}
.comparator-page .faq-section h2{font-size:18px;line-height:1.35;text-align:left;margin-bottom:12px}
.comparator-page .faq-section details{margin-bottom:8px;border-radius:10px;padding:8px 12px}
.comparator-page .faq-section summary{font-size:14px;min-height:36px}
@media(max-width:768px){
 .comparator-page .hero{margin:10px auto 8px}
 .comparator-page .hero h1{font-size:24px;line-height:1.15;margin-bottom:4px}
 .comparator-page .hero p{font-size:13px}
 .comparator-page .invoice-entry{padding:8px 12px 12px;margin:8px auto;border-radius:14px}
 .comparator-page .invoice-entry-head h2{font-size:17px}
 .comparator-page #consultaForm .summary-grid{grid-template-columns:1fr 1fr;gap:8px}
 .comparator-page #consultaForm .summary-grid>div{padding:8px 10px}
 .comparator-page #consultaForm .summary-grid span{font-size:18px}
 .comparator-page #consultaForm .form-row{display:grid;gap:7px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .comparator-page #consultaForm .form-section:first-of-type .form-row>label:first-child{grid-column:1/-1}
 .comparator-page #consultaForm .invoice-consumption-row{grid-template-columns:repeat(3,minmax(0,1fr))}
 .comparator-page #consultaForm .form-row label{min-width:0;font-size:13px}
 .comparator-page #consultaForm input,.comparator-page #consultaForm select{min-width:0;min-height:44px;font-size:16px;padding:7px 8px;border-radius:9px}
 .comparator-page #consultaForm .field-note{font-size:12px;line-height:1.4}
 .comparator-page #consultaForm .form-section:last-of-type .section-head{display:none}
 .comparator-page #advancedToggle{min-height:44px;padding:8px 0}
 .comparator-page .results-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
 .comparator-page .results-summary-grid strong{font-size:11px;line-height:1.35}
 .comparator-page .results-summary-grid span{font-size:17px;line-height:1.3}
 .comparator-page .invoice-comparison-note{font-size:12px!important;line-height:1.4;margin-top:10px}
 .comparator-page .result{padding:14px;gap:10px;border-radius:14px;margin-bottom:12px}
 .comparator-page .result-best{padding-top:44px}
 .comparator-page .offer-brand{width:112px;min-height:50px;height:50px;border-radius:10px;padding:8px;box-shadow:none}
 .comparator-page .result .logo{max-width:94px;max-height:34px}
 .comparator-page .result .info h3{font-size:17px;line-height:1.3;margin:0 0 5px}
 .comparator-page .result .precio{font-size:32px;line-height:1.15;margin:2px 0 4px}
 .comparator-page .result .price-caption,.comparator-page .result .muted,.comparator-page .offer-difference{font-size:13px!important;line-height:1.4}
 .comparator-page .result .badge{font-size:11px;padding:5px 7px}
 .comparator-page .result .actions button{min-height:44px;padding:9px 12px}
}
@media(max-width:768px){
 .comparator-page .result .info h3,.comparator-page .result .info .muted,.comparator-page .result .price-caption{text-align:left}
 .comparator-page #consultaForm .section-title{text-align:left;font-size:14px}
}

/* Invoice controls and review only; offer/result styles above remain unchanged. */
.comparator-page .invoice-entry-head h2{color:#253772}
.comparator-page .invoice-methods button{color:#607089;text-decoration-color:#bac6df}
.comparator-page .invoice-import-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:600}
.comparator-page .invoice-import-actions button svg{flex:none}
.comparator-page #invoice-camera,.comparator-page #invoice-confirm{background:#4665d9;border-color:#4665d9;box-shadow:none}
.comparator-page #invoice-photo,.comparator-page #invoice-discard{background:#f5f7fc;border-color:transparent;color:#526580}
.comparator-page #invoice-camera:hover,.comparator-page #invoice-confirm:hover{background:#3652bb}
.comparator-page #invoice-photo:hover,.comparator-page #invoice-discard:hover{background:#edf1fa}
.comparator-page .invoice-review :is(.invoice-data-amount,.invoice-data-amount-unavailable,.invoice-data-dates){padding:10px;border-radius:10px;background:#f4f6fb;min-width:0}
.comparator-page .invoice-review :is(.invoice-data-amount,.invoice-data-amount-unavailable,.invoice-data-dates) dt{font-size:11px;color:#617089}
.comparator-page .invoice-review .invoice-data-amount dd{font-size:26px;line-height:1.15;font-weight:700;letter-spacing:-.04em;color:#253772;margin-top:5px}
.comparator-page .invoice-review .invoice-data-dates dd{font-size:13px;font-weight:600;line-height:1.45;margin-top:4px}
.comparator-page .invoice-review .invoice-data-amount-unavailable dd{font-size:13px;font-weight:500}
.comparator-page .invoice-review dt{color:#63728a}
.comparator-page .invoice-review dd{color:#34445e;font-weight:500}
.comparator-page .invoice-review>p{color:#617089}
.comparator-page #consultaForm .section-title{color:#425574;font-size:14px;font-weight:600;text-align:left}
.comparator-page #consultaForm input,.comparator-page #consultaForm select{background:#fff;border-color:#dfe5f1}
.comparator-page #consultaForm .summary-grid>div{box-shadow:none;background:#f5f7fc;border-color:#e5eaf5}
.comparator-page #consultaForm .summary-grid strong{color:#62728a;font-size:11px}
.comparator-page #consultaForm .summary-grid span{color:#344b71}
.comparator-page #consultaForm .submit-button{background:#4665d9;box-shadow:none;border-radius:10px;min-height:44px}
.comparator-page #advancedToggle{background:transparent;border:0;border-radius:8px;box-shadow:none;color:#526580;font-size:13px;font-weight:500;justify-content:flex-start}
.comparator-page #advancedToggle svg{width:18px;height:18px}
@media(max-width:360px){.comparator-page .invoice-import-actions button{padding:8px 7px;gap:5px;font-size:13px}}

/* Infoluz blue for invoice actions, keyboard focus and camera controls. */
.comparator-page .invoice-import button,.comparator-page #invoice-camera-dialog button{color:#3c5599;border-color:#d8e1f3}
.comparator-page #invoice-camera,.comparator-page #invoice-confirm,.comparator-page #consultaForm .submit-button{color:#fff}
.comparator-page #invoice-photo,.comparator-page #invoice-discard{color:#526580;border-color:transparent}
.comparator-page #consultaForm .submit-button:hover{background:#3652bb}
.comparator-page .invoice-entry :is(button,textarea,summary):focus-visible,.comparator-page #invoice-camera-dialog :is(button,select,input):focus-visible{outline:3px solid #91adff;outline-offset:3px}
.comparator-page #consultaForm :is(input,select):focus,.comparator-page #invoice-link:focus{border-color:#809dee;box-shadow:0 0 0 3px rgba(70,101,217,.12)}
.comparator-page #invoice-link,.comparator-page .invoice-review,.comparator-page .invoice-import .invoice-link-details{border-color:#e0e6f2}
.comparator-page #invoice-message:not([data-error=true]){background:#edf2ff;color:#36518f}
.comparator-page #invoice-camera-dialog{border-color:#dfe5f1}
.comparator-page .invoice-camera-frame{border-color:#91b0ff}
.comparator-page .invoice-camera-controls input{accent-color:#4665d9}
.comparator-page .invoice-camera-controls select{border-color:#d8e1f3}
.comparator-page #consultaForm .filter-pill{background:#f5f7fc;border-color:#e5eaf5}

/* Two clear ways to start, with quieter alternatives for digital invoices. */
.comparator-page .invoice-entry{margin:18px auto;padding:22px 24px 18px;border:1px solid #dce3f2;border-radius:20px;box-shadow:0 8px 28px rgba(37,55,114,.045)}
.comparator-page .invoice-entry-head{min-height:36px;margin-bottom:4px;gap:12px}
.comparator-page .invoice-entry-head h2{font-size:20px;line-height:1.3;letter-spacing:-.025em}
.comparator-page .invoice-import>.invoice-entry-intro{color:#607089;font-size:14px;line-height:1.5;margin:0 0 18px}
.comparator-page .invoice-entry-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.comparator-page .invoice-entry-actions button{display:flex;flex-direction:column;gap:10px;min-height:96px;padding:16px 8px;border-radius:14px;font:600 15px/1.3 system-ui;transition:background-color .15s,border-color .15s,box-shadow .15s}
.comparator-page .invoice-entry-actions button svg{width:24px;height:24px}
.comparator-page #invoice-camera{background:#4665d9;border-color:#4665d9;box-shadow:0 4px 12px rgba(70,101,217,.15)}
.comparator-page #invoice-camera:hover{background:#3652bb;border-color:#3652bb}
.comparator-page #invoice-mode-manual{background:#f5f7fd;border:1px solid #d8e1f3;color:#344e91;box-shadow:none}
.comparator-page #invoice-mode-manual:hover{background:#eaf0ff;border-color:#aabce9}
.comparator-page .invoice-secondary-actions{display:flex;align-items:flex-start;flex-wrap:wrap;column-gap:22px;row-gap:0;margin-top:8px}
.comparator-page .invoice-secondary-actions #invoice-photo{display:inline-flex;align-items:center;justify-content:flex-start;gap:7px;min-height:44px;padding:8px 0;border:0;border-radius:6px;background:transparent;color:#526580;font:500 13px/1.4 system-ui;box-shadow:none;text-align:left}
.comparator-page .invoice-secondary-actions #invoice-photo:hover{color:#3652bb;text-decoration:underline;text-underline-offset:3px}
.comparator-page .invoice-secondary-actions #invoice-photo svg{flex:none}
.comparator-page .invoice-secondary-actions .invoice-link-details{min-width:0;margin:0;padding:0;border:0;box-shadow:none}
.comparator-page .invoice-secondary-actions .invoice-link-details[open]{flex-basis:100%}
.comparator-page .invoice-secondary-actions .invoice-link-details summary{box-sizing:border-box;min-height:44px;padding:12px 0;color:#526580;font:500 13px/20px system-ui}
.comparator-page .invoice-secondary-actions .invoice-link-details summary:hover{color:#3652bb}
.comparator-page .invoice-import .invoice-privacy{display:flex;align-items:center;gap:7px;border-top:1px solid #edf0f7;padding-top:12px;margin:4px 0 0;color:#69788e;font-size:12px;line-height:1.5}
.comparator-page .invoice-privacy svg{flex:none}
.comparator-page .invoice-methods #invoice-mode-qr{min-height:36px;padding:7px 10px;border:1px solid #e0e6f2;border-radius:9px;background:#f5f7fd;color:#3c5599;font-size:12px;font-weight:600;text-decoration:none}
.comparator-page .invoice-methods #invoice-mode-qr:hover{background:#eaf0ff}
@media(max-width:768px){
 .comparator-page .invoice-entry{margin:14px auto;padding:16px 16px 14px;border-radius:18px}
 .comparator-page .invoice-entry-head h2{font-size:18px}
 .comparator-page .invoice-import>.invoice-entry-intro{font-size:13px;margin-bottom:14px}
 .comparator-page .invoice-entry-actions{gap:10px}
 .comparator-page .invoice-entry-actions button{min-height:92px;font-size:14px}
 .comparator-page .invoice-secondary-actions{column-gap:16px}
}
@media(prefers-reduced-motion:reduce){.comparator-page .invoice-entry-actions button{transition:none}}

/* Focus the QR review on the imported data and its confirmation. */
.comparator-page #invoice-entry-options>.invoice-entry-intro{color:#607089;font-size:14px;line-height:1.5;margin:0 0 18px}
.comparator-page .invoice-import:has(#invoice-entry-options[hidden])>.invoice-review{margin-top:8px;padding-top:0;border-top:0}

/* Keep form labels, summaries and actions consistent at every size. */
.comparator-page #consultaForm{gap:12px}
.comparator-page #consultaForm .form-section{gap:8px;padding-top:12px;border-top-color:#e7ecf5}
.comparator-page #consultaForm .form-section:first-of-type{padding-top:4px}
.comparator-page #consultaForm .form-row{display:grid;gap:8px;align-items:end}
.comparator-page #consultaForm .three-cols{grid-template-columns:repeat(3,minmax(0,1fr))}
.comparator-page #consultaForm .two-cols{grid-template-columns:repeat(2,minmax(0,1fr))}
.comparator-page #consultaForm .form-row label,.comparator-page #consultaForm .field{min-width:0;margin-top:0;gap:4px;font-size:13px;font-weight:600;line-height:1.4}
.comparator-page #consultaForm input,.comparator-page #consultaForm select{min-width:0;width:100%;min-height:44px;font-size:16px;padding:8px;border-radius:9px}
.comparator-page #consultaForm input::placeholder{font-size:14px;color:#77849a;opacity:1}
.comparator-page #consultaForm .field-note{margin-top:0;font-size:12px;line-height:1.5;font-weight:400}
.comparator-page #consultaForm .summary-grid{gap:8px;padding:0;margin-top:4px;border:0;background:transparent}
.comparator-page #consultaForm .summary-grid>div{min-width:0;padding:10px;border:0;border-radius:10px}
.comparator-page #consultaForm .summary-grid strong{font-size:11px;line-height:1.5;letter-spacing:0;text-transform:none}
.comparator-page #consultaForm .summary-grid span{font-size:16px;line-height:1.4;white-space:nowrap}
.comparator-page #consultaForm .submit-button{width:100%;margin:0;min-height:48px}
.comparator-page #advancedToggle{font-size:13px}
.comparator-page .faq-section{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;margin:28px auto 36px}
.comparator-page .faq-section h2{font-size:18px;font-weight:600;color:#253772;margin:0 0 12px;line-height:1.4}
.comparator-page .faq-section details{border-color:#e0e6f2;background:#f8f9fc}
.comparator-page .faq-section details[open]{background:#f1f5ff}
.comparator-page .faq-section summary{gap:14px;font-weight:500;line-height:1.5;color:#34445e}
.comparator-page .faq-section summary svg{width:20px;height:20px;color:#4665d9;fill:none}
.comparator-page .faq-section p{color:#526580;font-size:14px;line-height:1.6}
.comparator-page .faq-section summary:focus-visible{outline:3px solid #91adff;outline-offset:3px;border-radius:5px}
@media(max-width:768px){
 .comparator-page #invoice-entry-options>.invoice-entry-intro{font-size:13px;margin-bottom:14px}
 .comparator-page #consultaForm .invoice-location-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .comparator-page #consultaForm .invoice-location-row>label:first-child{grid-column:1/-1}
 .comparator-page #consultaForm .invoice-consumption-row{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:360px){
 .comparator-page .invoice-entry-head{gap:8px}
 .comparator-page .invoice-entry-head h2{font-size:17px}
 .comparator-page .invoice-methods #invoice-mode-qr{font-size:11px;padding:7px 8px}
 .comparator-page .invoice-entry-actions button{font-size:13px;padding:14px 4px;min-height:90px}
 .comparator-page .invoice-entry-actions button span{white-space:nowrap}
 .comparator-page #consultaForm .invoice-location-row{grid-template-columns:minmax(0,1fr)}
 .comparator-page #consultaForm .invoice-consumption-row{gap:6px}
 .comparator-page #consultaForm .invoice-consumption-row label{font-size:12px;white-space:nowrap}
 .comparator-page #consultaForm .summary-grid>div{padding:8px}
 .comparator-page #consultaForm .summary-grid span{font-size:15px}
}
