.sp-grout-calc {box-sizing:border-box;margin:28px 0;padding:24px;border:1px solid #e2e2e2;border-top:4px solid #feb813;border-radius:8px;background:#fafafa;color:#242424;}
.sp-grout-calc *, .sp-grout-calc *::before,.sp-grout-calc *::after {box-sizing:border-box;}
.sp-grout-calc h2 {margin:0 0 12px;}
.sp-grout-calc .spgc-intro {margin:0 0 20px;}
.sp-grout-calc .spgc-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;}
.sp-grout-calc .spgc-field {display:flex;flex-direction:column;gap:6px;margin:0;font-size:14px;font-weight:600;min-width:0;}
.sp-grout-calc .spgc-field input,.sp-grout-calc .spgc-field select {display:block;width:100%;min-width:0;min-height:44px;margin:0;padding:9px 12px;border:1px solid #ccc;border-radius:5px;background:#fff;color:#242424;font:inherit;font-size:16px;font-weight:400;}
.sp-grout-calc .spgc-field input:focus,.sp-grout-calc .spgc-field select:focus {outline:2px solid #9a6700;outline-offset:1px;}
.sp-grout-calc [aria-invalid="true"] {border-color:#b42318!important;}
.sp-grout-calc .spgc-actions {display:flex;align-items:end;}
.sp-grout-calc .spgc-reset {min-height:44px;padding:8px 12px;border:1px solid #ccc;border-radius:5px;background:#fff;color:#333;font:inherit;font-size:14px;cursor:pointer;}
.sp-grout-calc .spgc-reset:hover {background:#eee;}
.sp-grout-calc .spgc-summary {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:22px;}
.sp-grout-calc .spgc-result {display:flex;flex-direction:column;justify-content:space-between;gap:8px;padding:14px;border:1px solid #e4e4e4;border-radius:5px;background:#fff;font-size:13px;}
.sp-grout-calc .spgc-result strong {font-size:clamp(18px,2.3vw,24px);line-height:1.2;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;}
.sp-grout-calc .spgc-total {background:#fff1c6;border-color:#feb813;}
.sp-grout-calc .spgc-pack-title {margin:20px 0 10px;}
.sp-grout-calc .spgc-packs {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
.sp-grout-calc .spgc-packs > div {display:flex;flex-direction:column;gap:4px;padding:12px 7px;text-align:center;border:1px solid #e4e4e4;border-radius:5px;background:#fff;overflow-wrap:anywhere;}
.sp-grout-calc .spgc-packs strong {font-size:16px;}
.sp-grout-calc .spgc-packs small {color:#666;}
.sp-grout-calc .spgc-note {margin:16px 0;color:#555;font-size:13px;line-height:1.5;}
.sp-grout-calc .spgc-error {margin:16px 0 0;color:#a11b13;font-size:14px;}
.sp-grout-calc [hidden] {display:none!important;}
.sp-grout-calc a.spgc-catalog {display:inline-block;padding:11px 16px;background:#feb813;border-radius:5px;color:#242424;text-decoration:none;font-weight:600;line-height:1.4;}
.sp-grout-calc a.spgc-catalog:hover {background:#e9a400;color:#242424;text-decoration:none;}
.sp-grout-calc button:focus-visible,.sp-grout-calc a:focus-visible {outline:2px solid #805200;outline-offset:3px;}
@media(max-width:767px){.sp-grout-calc {padding:16px;}.sp-grout-calc .spgc-fields {gap:12px;}.sp-grout-calc .spgc-summary {grid-template-columns:repeat(2,minmax(0,1fr));}.sp-grout-calc .spgc-total {grid-column:1/-1;}.sp-grout-calc .spgc-packs {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:380px){.sp-grout-calc .spgc-fields {grid-template-columns:1fr;}}
