.hgrf-preview{box-sizing:border-box;background:var(--hf-background,#fff);color:var(--hf-text,#17324d);font-family:var(--hf-font,inherit);font-size:var(--hf-font_size,16px);padding:var(--hf-padding,16px);container-type:inline-size}.hgrf-preview h3,.hgrf-preview p,.hgrf-preview label{color:inherit}.hgrf-preview .hgrf-grid{display:flex;flex-wrap:wrap}.hgrf-preview .hgrf-cell,.hgrf-preview #hgrf-fields .field{box-sizing:border-box;padding:calc(var(--hf-gap,12px)/2)}.hgrf-preview input:not([type=checkbox]):not([type=radio]),.hgrf-preview textarea,.hgrf-preview select{box-sizing:border-box;width:100%;min-height:var(--hf-height,42px);border:var(--hf-border_width,1px) solid var(--hf-border,#cbd5e1);border-radius:var(--hf-radius,6px);padding:6px 10px;background:var(--hf-field_bg,#fff);color:var(--hf-field_text,#222);font:inherit}.hgrf-preview textarea{min-height:90px}.hgrf-preview small{display:block}.hgrf-preview .hgrf-submit{background:var(--hf-accent,#2463aa);color:var(--hf-button_text,#fff);border:0;border-radius:var(--hf-radius,6px);padding:12px 24px;font:inherit;opacity:1}.hgrf-preview #hgrf-fields input[type=radio]{width:auto}@container(max-width:420px){.hgrf-preview .hgrf-cell{width:100%!important}}
.hgrf-preview fieldset{border:0;padding:0;margin:0;min-width:0}.hgrf-preview input[type=hidden]{display:none}.hgrf-preview .hgrf-submit{cursor:pointer}
.hgrf-preview .hgrf-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.hgrf-cell[hidden]{display:none!important}
.hgrf-preview [hidden]{display:none!important}.hgrf-break{display:none}.hgrf-step-header progress{width:100%;accent-color:var(--hf-accent,#2463aa)}.hgrf-step-nav{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}.hgrf-step-nav button:first-child{margin-right:auto}
.hf-content-text img{max-width:100%;height:auto}.hf-content-text ul{list-style:disc;padding-left:1.5em}.hf-content-text ol{list-style:decimal;padding-left:1.5em}

.hgrf-preview .hgrf-cell label,.hgrf-preview legend,.hgrf-preview .field>strong,.hgrf-preview .field label{color:var(--hf-label_color,var(--hf-text,#17324d))}.hgrf-preview input::placeholder,.hgrf-preview textarea::placeholder{color:var(--hf-placeholder_color,#777);opacity:1}.hgrf-preview input:focus-visible,.hgrf-preview textarea:focus-visible,.hgrf-preview select:focus-visible{outline:2px solid var(--hf-focus_color,#2463aa);outline-offset:2px}.hgrf-preview input[type=checkbox],.hgrf-preview input[type=radio],.hgrf-preview input[type=range]{accent-color:var(--hf-choice_color,#2463aa)}#hgrf-fields .field.selected{background:transparent;border-color:var(--hf-focus_color,#2463aa)}

.hgrf-preview .hf-calc-display{display:block;width:100%;box-sizing:border-box;padding:10px;border:1px solid var(--hf-border,#ccc);border-radius:4px;background:var(--hf-field_bg,#fff);color:var(--hf-field_text,#222);min-height:40px}.hgrf-preview .hf-calc-error{color:#b42318}

.hgrf-preview .hf-rich{border:1px solid var(--hf-border,#bbc5cf);border-radius:5px;overflow:hidden}.hgrf-preview .hf-rich-tools{display:flex;flex-wrap:wrap;gap:4px;padding:6px;background:#eef1f4}.hgrf-preview .hf-rich-tools button{background:white;color:#17324d;border:1px solid #bbc5cf;padding:4px 7px;border-radius:3px;cursor:pointer}.hgrf-preview .hf-rich-tools input[type=color]{width:32px;height:28px;padding:0}.hgrf-preview .hf-rich-edit{min-height:130px;padding:10px;background:var(--hf-field-bg,#fff);color:var(--hf-field-text,#17324d);overflow-wrap:anywhere}.hf-rich-edit:empty:before{content:attr(data-placeholder);opacity:.65;pointer-events:none}.hgrf-preview textarea.hf-rich-source{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;opacity:0;padding:0!important;pointer-events:none}.hgrf-preview .hf-rich-edit ul{list-style:disc;padding-left:24px}.hgrf-preview .hf-rich-edit ol{list-style:decimal;padding-left:24px}

.hgrf-preview .hf-rich-link{padding:10px;background:#eef1f4;color:#17324d;display:flex;flex-wrap:wrap;gap:8px;align-items:center}.hgrf-preview .hf-rich-link[hidden],.hgrf-preview .hf-rich-link button[hidden]{display:none!important}.hgrf-preview .hf-rich-link label{flex:1 1 180px}.hgrf-preview .hf-rich-link input[type=text]{width:100%}.hgrf-preview .hf-rich-link button{padding:5px 9px;cursor:pointer}.hgrf-preview .hf-rich-link span{flex-basis:100%;color:#a21b1b}.hgrf-preview .hf-rich-edit a{text-decoration:underline;color:#2460a0}

.hf-layout-break{flex:0 0 100%;height:0;padding:0;margin:0}.hgrf-preview .hgrf-cell,#hgrf-fields .field{min-width:0;overflow-wrap:anywhere}.hgrf-preview input,.hgrf-preview select,.hgrf-preview textarea{max-width:100%;min-width:0}@container (max-width:600px){.hgrf-preview .hgrf-cell,#hgrf-fields .field{width:100%!important}}@container (min-width:601px) and (max-width:800px){.hgrf-preview .hgrf-cell[style^="width:25%"],.hgrf-preview .hgrf-cell[style^="width:33%"],.hgrf-preview .hgrf-cell[style^="width:34%"],#hgrf-fields .field[style^="width: 25%"],#hgrf-fields .field[style^="width: 33%"],#hgrf-fields .field[style^="width: 34%"]{width:50%!important}}

.hgrf-preview .hgrf-cell,.hgrf-preview #hgrf-fields .field{padding:calc(var(--hf-row-gap_y,var(--hf-gap,12px))/2 + var(--hf-row-padding,0px)) calc(var(--hf-row-gap_x,var(--hf-gap,12px))/2 + var(--hf-row-padding,0px));background-color:var(--hf-row-background,transparent);border-style:solid;border-width:var(--hf-row-border_width,0px);border-color:var(--hf-row-border,transparent);border-radius:var(--hf-row-radius,0px)}
@container (min-width:601px) and (max-width:800px){.hgrf-preview .hgrf-cell[style*="--hf-row-tablet"],.hgrf-preview #hgrf-fields .field[style*="--hf-row-tablet"]{width:var(--hf-row-tablet)!important}}
@container (max-width:600px){.hgrf-preview .hgrf-cell[style*="--hf-row-mobile"],.hgrf-preview #hgrf-fields .field[style*="--hf-row-mobile"]{width:var(--hf-row-mobile)!important}}

.hgrf-preview .hf-shared-row{display:flex;flex-wrap:wrap;box-sizing:border-box;width:100%;min-width:0;background:var(--hf-row-background,transparent);border:var(--hf-row-border_width,0px) solid var(--hf-row-border,transparent);border-radius:var(--hf-row-radius,0px);padding:var(--hf-row-padding,0px)}.hgrf-preview .hf-shared-row>.hgrf-cell{background:transparent;border:0;border-radius:0;padding:calc(var(--hf-row-gap_y,var(--hf-gap,12px))/2) calc(var(--hf-row-gap_x,var(--hf-gap,12px))/2)}

.hf-public-row-title{width:100%;font-weight:600;padding:6px 8px;box-sizing:border-box}
.hf-signature-pad{display:block;width:100%;box-sizing:border-box;border:1px solid var(--hf-border,#aaa);border-radius:5px;touch-action:none;cursor:crosshair;padding:0}.hf-signature{position:relative}.hf-signature .hf-signature-value{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;opacity:0;padding:0!important;bottom:0;left:0;pointer-events:none}.hf-signature-clear{margin:6px 0;cursor:pointer}

.hgrf-preview .hf-signature-clear{background:transparent;color:inherit;border:1px solid var(--hf-border,#aaa);border-radius:5px;padding:7px 12px;font:inherit;cursor:pointer}.hgrf-preview .hf-signature-clear:hover{opacity:.75}.hf-signature-agreement{margin:0 0 8px}

.hf-repeat-wrap{width:100%;box-sizing:border-box}.hf-repeat-row{display:flex;flex-wrap:wrap;align-items:flex-start;border:1px solid var(--hf-border,#ddd);border-radius:8px;margin:8px 0;padding:8px;box-sizing:border-box}.hf-repeat-title{width:100%;padding:4px}.hf-repeat-remove{margin:6px;cursor:pointer}.hf-repeat-wrap[hidden],.hf-repeat-remove[hidden]{display:none!important}

.hf-repeat-remove{font:inherit;padding:6px 12px;border:1px solid currentColor;border-radius:5px;background:transparent;color:inherit}.hf-repeat-title[hidden]{display:none!important}

.hgrf-image-grid{display:grid;grid-template-columns:repeat(var(--hf-image-cols,3),minmax(0,1fr));gap:10px}.hgrf-image-grid label{display:flex!important;flex-direction:column;align-items:center;gap:8px;border:1px solid #aab9c8;border-radius:6px;padding:10px;cursor:pointer;min-width:0}.hgrf-image-grid label:has(input:checked){outline:2px solid currentColor;outline-offset:-2px}.hgrf-image-grid img{width:100%;aspect-ratio:4/3;object-fit:contain}.hgrf-image-grid input{width:auto!important}.hgrf-image-grid label:focus-within{outline:2px solid currentColor}

.hgrf-image-grid label{margin:0;box-sizing:border-box}.hgrf-image-grid input[type=radio],.hgrf-image-grid input[type=checkbox]{width:16px!important;height:16px!important;min-width:16px;flex:none;margin:0}.hgrf-image-grid img{display:block;max-width:100%;height:auto}.hgrf-image-grid span{overflow-wrap:anywhere;text-align:center}
@media(max-width:600px){.hgrf-image-grid{grid-template-columns:repeat(min(var(--hf-image-cols,3),2),minmax(0,1fr))}}
@media(max-width:380px){.hgrf-image-grid{grid-template-columns:1fr}}

.hgrf-image-grid img{max-width:var(--hf-image-size,100%)}.hgrf-image-grid.hf-image-hide-control label{position:relative}.hgrf-image-grid.hf-image-hide-control input{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;min-width:0!important}.hgrf-image-grid small{text-align:center;overflow-wrap:anywhere}

.hgrf-image-grid label{position:relative;background:var(--hf-ic-bg,transparent);border-color:var(--hf-ic-border,#aab9c8);border-width:var(--hf-ic-border-width,1px);border-radius:var(--hf-ic-radius,6px)}
.hgrf-image-grid label:has(input:checked){background:var(--hf-ic-selected,var(--hf-ic-bg,transparent))}.hgrf-image-grid strong{color:var(--hf-ic-price-color,inherit);font-size:var(--hf-ic-price-size,14px)}.hgrf-image-grid small{color:var(--hf-ic-desc-color,inherit);font-size:var(--hf-ic-desc-size,13px)}.hf-image-tick label:has(input:checked)::after{content:'✓';position:absolute;right:8px;top:8px;background:#17324d;color:white;border-radius:50%;width:24px;height:24px;text-align:center;line-height:24px}
@media(max-width:900px){.hgrf-image-grid{grid-template-columns:repeat(var(--hf-ic-tablet,var(--hf-image-cols,3)),minmax(0,1fr))}}@media(max-width:600px){.hgrf-image-grid{grid-template-columns:repeat(var(--hf-ic-mobile,min(var(--hf-image-cols,3),2)),minmax(0,1fr))}}@media(max-width:380px){.hgrf-image-grid{grid-template-columns:repeat(var(--hf-ic-mobile,1),minmax(0,1fr))}}

.hgrf-preview .hf-final-submit[hidden],#hgrf-workspace .hgrf-submit[hidden]{display:none!important}

.hgrf-preview .hgrf-demo-notice{background:#eff6ff;color:#1e3a8a;border:1px solid #bfdbfe;border-radius:8px;padding:14px 16px;margin:12px 0 20px;line-height:1.5;}

.hf-agreement{display:flex!important;align-items:flex-start;gap:10px;cursor:pointer;line-height:1.5}.hf-agreement input[type=checkbox]{width:var(--hf-agreement-size,18px)!important;height:var(--hf-agreement-size,18px)!important;min-width:var(--hf-agreement-size,18px);flex:none;margin:3px 0 0!important}.hf-agreement span{min-width:0;overflow-wrap:anywhere}.hf-agreement-right input{order:1}.hf-agreement-title{margin-bottom:6px}.hf-agreement a{text-decoration:underline}

/* Flexible choice layout */
.hf-choice-options{display:flex;flex-direction:column;gap:var(--hf-choice-y,8px) var(--hf-choice-x,20px);min-width:0}.hf-choice-options.hf-choice-inline{flex-direction:row;flex-wrap:wrap}.hf-choice-options.hf-choice-2,.hf-choice-options.hf-choice-3,.hf-choice-options.hf-choice-4{display:grid;grid-template-columns:repeat(var(--hf-choice-cols),minmax(0,1fr))}.hf-choice-2{--hf-choice-cols:2}.hf-choice-3{--hf-choice-cols:3}.hf-choice-4{--hf-choice-cols:4}.hgrf-preview .hf-choice-options label,#hgrf-fields .hf-choice-options label{display:flex;align-items:flex-start;gap:6px;min-width:0;overflow-wrap:anywhere;margin:0}.hf-choice-options label input{flex:none;margin:3px 0 0!important;width:auto!important;min-height:0!important}.hf-choice-options.hf-choice-mobile{container-type:normal}@container(max-width:420px){.hf-choice-options.hf-choice-mobile{display:flex;flex-direction:column}}@media(max-width:480px){.hf-choice-options.hf-choice-mobile{display:flex;flex-direction:column}}

.hgrf-preview[style*="--hf-label_size:"] .hgrf-cell>label:not(.hf-agreement):not(.hgrf-sr),.hgrf-preview .hgrf-cell[style*="--hf-label_size:"]>label:not(.hf-agreement):not(.hgrf-sr){font-size:var(--hf-label_size)}
.hgrf-preview[style*="--hf-label_size:"] legend:not(.hgrf-sr),.hgrf-preview .hgrf-cell[style*="--hf-label_size:"] legend:not(.hgrf-sr),.hgrf-preview .field[style*="--hf-label_size:"] legend:not(.hgrf-sr){font-size:var(--hf-label_size)}
.hgrf-preview[style*="--hf-label_size:"] .field>strong,.hgrf-preview .field[style*="--hf-label_size:"]>strong{font-size:var(--hf-label_size)}
.hgrf-preview[style*="--hf-label_weight:"] .hgrf-cell>label:not(.hf-agreement):not(.hgrf-sr),.hgrf-preview .hgrf-cell[style*="--hf-label_weight:"]>label:not(.hf-agreement):not(.hgrf-sr){font-weight:var(--hf-label_weight)}
.hgrf-preview[style*="--hf-label_weight:"] legend:not(.hgrf-sr),.hgrf-preview .hgrf-cell[style*="--hf-label_weight:"] legend:not(.hgrf-sr),.hgrf-preview .field[style*="--hf-label_weight:"] legend:not(.hgrf-sr){font-weight:var(--hf-label_weight)}
.hgrf-preview[style*="--hf-label_weight:"] .field>strong,.hgrf-preview .field[style*="--hf-label_weight:"]>strong{font-weight:var(--hf-label_weight)}
.hgrf-preview[style*="--hf-label_line:"] .hgrf-cell>label:not(.hf-agreement):not(.hgrf-sr),.hgrf-preview .hgrf-cell[style*="--hf-label_line:"]>label:not(.hf-agreement):not(.hgrf-sr){line-height:var(--hf-label_line)}
.hgrf-preview[style*="--hf-label_line:"] legend:not(.hgrf-sr),.hgrf-preview .hgrf-cell[style*="--hf-label_line:"] legend:not(.hgrf-sr),.hgrf-preview .field[style*="--hf-label_line:"] legend:not(.hgrf-sr){line-height:var(--hf-label_line)}
.hgrf-preview[style*="--hf-label_line:"] .field>strong,.hgrf-preview .field[style*="--hf-label_line:"]>strong{line-height:var(--hf-label_line)}
.hgrf-preview[style*="--hf-label_gap:"] .hgrf-cell>label:not(.hf-agreement):not(.hgrf-sr),.hgrf-preview .hgrf-cell[style*="--hf-label_gap:"]>label:not(.hf-agreement):not(.hgrf-sr){margin-bottom:var(--hf-label_gap)}
.hgrf-preview[style*="--hf-label_gap:"] legend:not(.hgrf-sr),.hgrf-preview .hgrf-cell[style*="--hf-label_gap:"] legend:not(.hgrf-sr),.hgrf-preview .field[style*="--hf-label_gap:"] legend:not(.hgrf-sr){margin-bottom:var(--hf-label_gap)}
.hgrf-preview[style*="--hf-label_gap:"] .field>strong,.hgrf-preview .field[style*="--hf-label_gap:"]>strong{margin-bottom:var(--hf-label_gap)}
.hgrf-preview[style*="--hf-option_size:"] .hf-choice-options label,.hgrf-preview .hgrf-cell[style*="--hf-option_size:"] .hf-choice-options label,.hgrf-preview .field[style*="--hf-option_size:"] .hf-choice-options label{font-size:var(--hf-option_size)}
.hgrf-preview[style*="--hf-option_size:"] .hgrf-image-grid label,.hgrf-preview .hgrf-cell[style*="--hf-option_size:"] .hgrf-image-grid label,.hgrf-preview .field[style*="--hf-option_size:"] .hgrf-image-grid label{font-size:var(--hf-option_size)}
.hgrf-preview[style*="--hf-option_size:"] .hf-agreement,.hgrf-preview .hgrf-cell[style*="--hf-option_size:"] .hf-agreement,.hgrf-preview .field[style*="--hf-option_size:"] .hf-agreement{font-size:var(--hf-option_size)}
.hgrf-preview[style*="--hf-option_size:"] select,.hgrf-preview .hgrf-cell[style*="--hf-option_size:"] select,.hgrf-preview .field[style*="--hf-option_size:"] select{font-size:var(--hf-option_size)}
.hgrf-preview[style*="--hf-option_weight:"] .hf-choice-options label,.hgrf-preview .hgrf-cell[style*="--hf-option_weight:"] .hf-choice-options label,.hgrf-preview .field[style*="--hf-option_weight:"] .hf-choice-options label{font-weight:var(--hf-option_weight)}
.hgrf-preview[style*="--hf-option_weight:"] .hgrf-image-grid label,.hgrf-preview .hgrf-cell[style*="--hf-option_weight:"] .hgrf-image-grid label,.hgrf-preview .field[style*="--hf-option_weight:"] .hgrf-image-grid label{font-weight:var(--hf-option_weight)}
.hgrf-preview[style*="--hf-option_weight:"] .hf-agreement,.hgrf-preview .hgrf-cell[style*="--hf-option_weight:"] .hf-agreement,.hgrf-preview .field[style*="--hf-option_weight:"] .hf-agreement{font-weight:var(--hf-option_weight)}
.hgrf-preview[style*="--hf-option_weight:"] select,.hgrf-preview .hgrf-cell[style*="--hf-option_weight:"] select,.hgrf-preview .field[style*="--hf-option_weight:"] select{font-weight:var(--hf-option_weight)}
.hgrf-preview[style*="--hf-option_line:"] .hf-choice-options label,.hgrf-preview .hgrf-cell[style*="--hf-option_line:"] .hf-choice-options label,.hgrf-preview .field[style*="--hf-option_line:"] .hf-choice-options label{line-height:var(--hf-option_line)}
.hgrf-preview[style*="--hf-option_line:"] .hgrf-image-grid label,.hgrf-preview .hgrf-cell[style*="--hf-option_line:"] .hgrf-image-grid label,.hgrf-preview .field[style*="--hf-option_line:"] .hgrf-image-grid label{line-height:var(--hf-option_line)}
.hgrf-preview[style*="--hf-option_line:"] .hf-agreement,.hgrf-preview .hgrf-cell[style*="--hf-option_line:"] .hf-agreement,.hgrf-preview .field[style*="--hf-option_line:"] .hf-agreement{line-height:var(--hf-option_line)}
.hgrf-preview[style*="--hf-option_line:"] select,.hgrf-preview .hgrf-cell[style*="--hf-option_line:"] select,.hgrf-preview .field[style*="--hf-option_line:"] select{line-height:var(--hf-option_line)}
.hgrf-preview[style*="--hf-option_color:"] .hf-choice-options label,.hgrf-preview .hgrf-cell[style*="--hf-option_color:"] .hf-choice-options label,.hgrf-preview .field[style*="--hf-option_color:"] .hf-choice-options label{color:var(--hf-option_color)}
.hgrf-preview[style*="--hf-option_color:"] .hgrf-image-grid label,.hgrf-preview .hgrf-cell[style*="--hf-option_color:"] .hgrf-image-grid label,.hgrf-preview .field[style*="--hf-option_color:"] .hgrf-image-grid label{color:var(--hf-option_color)}
.hgrf-preview[style*="--hf-option_color:"] .hf-agreement,.hgrf-preview .hgrf-cell[style*="--hf-option_color:"] .hf-agreement,.hgrf-preview .field[style*="--hf-option_color:"] .hf-agreement{color:var(--hf-option_color)}
.hgrf-preview[style*="--hf-option_color:"] select,.hgrf-preview .hgrf-cell[style*="--hf-option_color:"] select,.hgrf-preview .field[style*="--hf-option_color:"] select{color:var(--hf-option_color)}
 .hgrf-preview[style*="--hf-label_gap:"] .hgrf-cell>label:not(.hf-agreement):not(.hgrf-sr),.hgrf-preview .hgrf-cell[style*="--hf-label_gap:"]>label:not(.hf-agreement):not(.hgrf-sr){display:inline-block}
.hgrf-preview .hf-choice-options{gap:var(--hf-option_gap_y,var(--hf-choice-y,8px)) var(--hf-option_gap_x,var(--hf-choice-x,20px))}

.hgrf-preview[style*="--hf-input_size:"] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]),.hgrf-preview[style*="--hf-input_size:"] textarea:not(.hf-rich-source),.hgrf-preview[style*="--hf-input_size:"] select,.hgrf-preview[style*="--hf-input_size:"] .hf-calc-display,.hgrf-preview[style*="--hf-input_size:"] .hf-rich-edit,.hgrf-preview .field[style*="--hf-input_size:"] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]),.hgrf-preview .field[style*="--hf-input_size:"] textarea:not(.hf-rich-source),.hgrf-preview .field[style*="--hf-input_size:"] select,.hgrf-preview .field[style*="--hf-input_size:"] .hf-calc-display,.hgrf-preview .field[style*="--hf-input_size:"] .hf-rich-edit,.hgrf-preview .hgrf-cell[style*="--hf-input_size:"] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]),.hgrf-preview .hgrf-cell[style*="--hf-input_size:"] textarea:not(.hf-rich-source),.hgrf-preview .hgrf-cell[style*="--hf-input_size:"] select,.hgrf-preview .hgrf-cell[style*="--hf-input_size:"] .hf-calc-display,.hgrf-preview .hgrf-cell[style*="--hf-input_size:"] .hf-rich-edit{font-size:var(--hf-input_size)}

.hgrf-preview[style*="--hf-input_weight:"] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]),.hgrf-preview[style*="--hf-input_weight:"] textarea:not(.hf-rich-source),.hgrf-preview[style*="--hf-input_weight:"] select,.hgrf-preview[style*="--hf-input_weight:"] .hf-calc-display,.hgrf-preview[style*="--hf-input_weight:"] .hf-rich-edit,.hgrf-preview .field[style*="--hf-input_weight:"] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]),.hgrf-preview .field[style*="--hf-input_weight:"] textarea:not(.hf-rich-source),.hgrf-preview .field[style*="--hf-input_weight:"] select,.hgrf-preview .field[style*="--hf-input_weight:"] .hf-calc-display,.hgrf-preview .field[style*="--hf-input_weight:"] .hf-rich-edit,.hgrf-preview .hgrf-cell[style*="--hf-input_weight:"] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]),.hgrf-preview .hgrf-cell[style*="--hf-input_weight:"] textarea:not(.hf-rich-source),.hgrf-preview .hgrf-cell[style*="--hf-input_weight:"] select,.hgrf-preview .hgrf-cell[style*="--hf-input_weight:"] .hf-calc-display,.hgrf-preview .hgrf-cell[style*="--hf-input_weight:"] .hf-rich-edit{font-weight:var(--hf-input_weight)}

.hgrf-preview[style*="--hf-input_line:"] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]),.hgrf-preview[style*="--hf-input_line:"] textarea:not(.hf-rich-source),.hgrf-preview[style*="--hf-input_line:"] select,.hgrf-preview[style*="--hf-input_line:"] .hf-calc-display,.hgrf-preview[style*="--hf-input_line:"] .hf-rich-edit,.hgrf-preview .field[style*="--hf-input_line:"] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]),.hgrf-preview .field[style*="--hf-input_line:"] textarea:not(.hf-rich-source),.hgrf-preview .field[style*="--hf-input_line:"] select,.hgrf-preview .field[style*="--hf-input_line:"] .hf-calc-display,.hgrf-preview .field[style*="--hf-input_line:"] .hf-rich-edit,.hgrf-preview .hgrf-cell[style*="--hf-input_line:"] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]),.hgrf-preview .hgrf-cell[style*="--hf-input_line:"] textarea:not(.hf-rich-source),.hgrf-preview .hgrf-cell[style*="--hf-input_line:"] select,.hgrf-preview .hgrf-cell[style*="--hf-input_line:"] .hf-calc-display,.hgrf-preview .hgrf-cell[style*="--hf-input_line:"] .hf-rich-edit{line-height:var(--hf-input_line)}

.hgrf-preview[style*="--hf-input_color:"] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]),.hgrf-preview[style*="--hf-input_color:"] textarea:not(.hf-rich-source),.hgrf-preview[style*="--hf-input_color:"] select,.hgrf-preview[style*="--hf-input_color:"] .hf-calc-display,.hgrf-preview[style*="--hf-input_color:"] .hf-rich-edit,.hgrf-preview .field[style*="--hf-input_color:"] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]),.hgrf-preview .field[style*="--hf-input_color:"] textarea:not(.hf-rich-source),.hgrf-preview .field[style*="--hf-input_color:"] select,.hgrf-preview .field[style*="--hf-input_color:"] .hf-calc-display,.hgrf-preview .field[style*="--hf-input_color:"] .hf-rich-edit,.hgrf-preview .hgrf-cell[style*="--hf-input_color:"] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]),.hgrf-preview .hgrf-cell[style*="--hf-input_color:"] textarea:not(.hf-rich-source),.hgrf-preview .hgrf-cell[style*="--hf-input_color:"] select,.hgrf-preview .hgrf-cell[style*="--hf-input_color:"] .hf-calc-display,.hgrf-preview .hgrf-cell[style*="--hf-input_color:"] .hf-rich-edit{color:var(--hf-input_color)}

.hgrf-preview[style*="--hf-input_align:"] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]),.hgrf-preview[style*="--hf-input_align:"] textarea:not(.hf-rich-source),.hgrf-preview[style*="--hf-input_align:"] select,.hgrf-preview[style*="--hf-input_align:"] .hf-calc-display,.hgrf-preview[style*="--hf-input_align:"] .hf-rich-edit,.hgrf-preview .field[style*="--hf-input_align:"] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]),.hgrf-preview .field[style*="--hf-input_align:"] textarea:not(.hf-rich-source),.hgrf-preview .field[style*="--hf-input_align:"] select,.hgrf-preview .field[style*="--hf-input_align:"] .hf-calc-display,.hgrf-preview .field[style*="--hf-input_align:"] .hf-rich-edit,.hgrf-preview .hgrf-cell[style*="--hf-input_align:"] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]),.hgrf-preview .hgrf-cell[style*="--hf-input_align:"] textarea:not(.hf-rich-source),.hgrf-preview .hgrf-cell[style*="--hf-input_align:"] select,.hgrf-preview .hgrf-cell[style*="--hf-input_align:"] .hf-calc-display,.hgrf-preview .hgrf-cell[style*="--hf-input_align:"] .hf-rich-edit{text-align:var(--hf-input_align)}

.hgrf-preview[style*="--hf-input_padding:"] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]),.hgrf-preview[style*="--hf-input_padding:"] textarea:not(.hf-rich-source),.hgrf-preview[style*="--hf-input_padding:"] select,.hgrf-preview[style*="--hf-input_padding:"] .hf-calc-display,.hgrf-preview[style*="--hf-input_padding:"] .hf-rich-edit,.hgrf-preview .field[style*="--hf-input_padding:"] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]),.hgrf-preview .field[style*="--hf-input_padding:"] textarea:not(.hf-rich-source),.hgrf-preview .field[style*="--hf-input_padding:"] select,.hgrf-preview .field[style*="--hf-input_padding:"] .hf-calc-display,.hgrf-preview .field[style*="--hf-input_padding:"] .hf-rich-edit,.hgrf-preview .hgrf-cell[style*="--hf-input_padding:"] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]),.hgrf-preview .hgrf-cell[style*="--hf-input_padding:"] textarea:not(.hf-rich-source),.hgrf-preview .hgrf-cell[style*="--hf-input_padding:"] select,.hgrf-preview .hgrf-cell[style*="--hf-input_padding:"] .hf-calc-display,.hgrf-preview .hgrf-cell[style*="--hf-input_padding:"] .hf-rich-edit{padding-block:var(--hf-input_padding)}

.hgrf-preview[style*="--hf-label_align:"] .field>label:not(.hf-agreement):not(.hgrf-sr),.hgrf-preview[style*="--hf-label_align:"] .field legend:not(.hgrf-sr),.hgrf-preview[style*="--hf-label_align:"] .field>strong,.hgrf-preview[style*="--hf-label_align:"] .hgrf-cell>label:not(.hf-agreement):not(.hgrf-sr),.hgrf-preview[style*="--hf-label_align:"] .hgrf-cell legend:not(.hgrf-sr),.hgrf-preview[style*="--hf-label_align:"] .hgrf-cell>strong,.hgrf-preview .field[style*="--hf-label_align:"]>label:not(.hf-agreement):not(.hgrf-sr),.hgrf-preview .field[style*="--hf-label_align:"] legend:not(.hgrf-sr),.hgrf-preview .field[style*="--hf-label_align:"]>strong,.hgrf-preview .hgrf-cell[style*="--hf-label_align:"]>label:not(.hf-agreement):not(.hgrf-sr),.hgrf-preview .hgrf-cell[style*="--hf-label_align:"] legend:not(.hgrf-sr),.hgrf-preview .hgrf-cell[style*="--hf-label_align:"]>strong{display:block;width:100%;box-sizing:border-box;text-align:var(--hf-label_align)}

/* Consistent label spacing without an additional line break. */
.hgrf-preview .hgrf-cell>label:not(.hf-agreement):not(.hgrf-sr),.hgrf-preview #hgrf-fields .field>strong{display:block;width:100%;box-sizing:border-box;margin:0 0 var(--hf-label_gap,6px)!important;padding:0;line-height:var(--hf-label_line,1.4)}
.hgrf-preview .hgrf-cell legend:not(.hgrf-sr){margin:0 0 var(--hf-label_gap,6px)!important;padding:0;line-height:var(--hf-label_line,1.4)}
.hgrf-preview .hf-product-grid{display:grid;grid-template-columns:repeat(var(--hf-product-cols,3),minmax(0,1fr));gap:12px}.hgrf-preview .hf-product-card{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px;border:1px solid #cbd5e1;border-radius:6px;min-width:0}.hf-product-card img{width:100%;height:160px;object-fit:contain}.hf-product-controls{display:flex;align-items:center;gap:5px;width:100%}.hgrf-preview .hf-product-controls input{min-width:0;width:100%;text-align:center}.hgrf-preview .hf-product-controls button{flex:0 0 auto;padding:6px 12px}.hf-product-card output{font-weight:600}@media(max-width:600px){.hgrf-preview .hf-product-grid{grid-template-columns:1fr}}

/* Compact product quantity controls, shared by preview and storefront. */
.hgrf-preview .hf-product-controls{display:flex;justify-content:center;align-items:center;width:100%;max-width:152px;gap:4px;margin-inline:auto}
.hgrf-preview .hf-product-card .hf-product-controls input[type=number]{box-sizing:border-box;flex:0 1 56px;width:56px!important;max-width:56px;min-width:0;height:36px;min-height:36px;padding:4px!important;margin:0;text-align:center;appearance:textfield;-moz-appearance:textfield}
.hgrf-preview .hf-product-controls input[type=number]::-webkit-inner-spin-button,.hgrf-preview .hf-product-controls input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.hgrf-preview .hf-product-card .hf-product-controls button{box-sizing:border-box;flex:0 0 36px;width:36px;height:36px;min-width:0;padding:0!important;margin:0;display:grid;place-items:center;border:1px solid #cbd5e1;border-radius:6px;font-size:18px;line-height:1}

.hf-order-summary{margin:16px 0;padding:14px;border:1px solid #cbd5e1;border-radius:8px;min-width:0}.hf-order-summary[hidden]{display:none!important}.hf-order-summary h4{margin:0 0 12px}.hf-order-summary table{width:100%;border-collapse:collapse;table-layout:auto;font-size:inherit}.hf-order-summary th,.hf-order-summary td{padding:8px 4px;border-bottom:1px solid #cbd5e1;text-align:left;overflow-wrap:anywhere}.hf-order-summary th:not(:first-child),.hf-order-summary td:not(:first-child){text-align:right}.hf-order-summary>strong{display:block;text-align:right;margin-top:12px}

/* Form title, independent of the administration name. */
.hgrf-preview > .hgrf-form-title {font-family:var(--hf-title_font,inherit);font-size:var(--hf-title_size,revert-layer);color:var(--hf-title_color,inherit);text-align:var(--hf-title_align,revert-layer);margin-bottom:var(--hf-title_gap,revert-layer);}
.hgrf-preview > .hgrf-form-title[hidden] {display:none!important;}
