/* Narrowly scoped HomePro Square native checkout; does not restyle WooCommerce. */
body.hprc-square-modal-open { overflow: hidden; }
.hprc-square-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    background: rgba(16, 35, 41, .74);
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}
.hprc-square-dialog {
    display: block;
    box-sizing: border-box;
    width: min(100%, 520px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    margin: auto;
    background: #fff;
    border: 1px solid #d8e5e5;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(11, 37, 40, .28);
    color: #173940;
    font-family: inherit;
}
.hprc-square-dialog h2 { color:#173940; font-size:24px; line-height:1.25; font-weight:700; margin:0 0 14px; }
.hprc-square-description { font-size:17px; font-weight:650; color:#0b7875; margin:0 0 12px; overflow-wrap:anywhere; }
.hprc-square-notice { border-left:3px solid #0eaaa6; padding:8px 11px; color:#34575a; background:#edfafa; line-height:1.55; font-size:13px; margin:10px 0 18px; }
.hprc-square-card-field { width:100%; min-height:85px; overflow:visible; }
.hprc-square-feedback { min-height:42px; margin:9px 0; line-height:1.55; font-size:13px; color:#1e4245; }
.hprc-square-actions { display:flex; gap:10px; align-items:stretch; flex-wrap:wrap; margin-top:12px; }
.hprc-square-submit, .hprc-square-cancel { border-radius:9px; min-height:48px; padding:10px 14px; font-size:14px; font-weight:700; cursor:pointer; line-height:1.35; }
.hprc-square-submit { flex:1 1 240px; color:#fff; background:#0eaaa6; border:2px solid #0eaaa6; }
.hprc-square-cancel { flex:0 1 auto; color:#163c43; background:#fff; border:2px solid #d2e2e2; }
.hprc-square-submit:hover:not([disabled]) {background:#0a908c;}
.hprc-square-submit:focus-visible,.hprc-square-cancel:focus-visible {outline:3px solid #135c61;outline-offset:2px;}
.hprc-square-submit[disabled],.hprc-square-cancel[disabled] {opacity:.6;cursor:wait;}
.hprc-square-privacy {color:#63777c;font-size:12px;line-height:1.5;margin:18px 0 0;}
.hprc-square-inline-error {border-left:3px solid #bd442e;background:#fff7f4;color:#812a20;padding:10px 12px;line-height:1.5;font-size:13px;margin:8px 0 0;}
@media (max-width:460px) {
  .hprc-square-dialog {padding:18px 15px;border-radius:14px;max-height:calc(100dvh - 24px);}
  .hprc-square-dialog h2 {font-size:20px;}
  .hprc-square-actions {flex-direction:column;}
  .hprc-square-submit,.hprc-square-cancel {width:100%;flex:0 0 auto;}
}
.hprc-square-reference {font-size:12px;line-height:1.5;color:#526b70;overflow-wrap:anywhere;margin:8px 0 0;}
.hprc-square-recovery {box-sizing:border-box;border:1px solid #a7d6d4;border-radius:10px;padding:14px;margin:12px 0;background:#edfafa;color:#173940;max-width:100%;}
.hprc-square-recovery p {margin:0 0 10px;line-height:1.5;}
.hprc-square-card-field[hidden] {display:none;}
.hprc-native-square[aria-disabled="true"] {opacity:.6;cursor:not-allowed;}
