{"version":3,"sources":["../../../../src/nhsuk/components/character-count/_index.scss"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,4BAA4B;AAC5B,2BAA2B;AAC3B,kBAAkB;AAClB,mBAAmB;AACnB,sBAAsB;;AAEtB,GAAG;AACH,4BAA4B;AAC5B,EAAE;AACF,oCAAoC;AACpC,GAAG;;AAEH;EACE;IACE,6CAA6C;;IAE7C;;MAEE,gBAAgB;IAClB;;IAEA,0EAA0E;IAC1E,yEAAyE;IACzE,wDAAwD;IACxD;MACE,iCAAiC;MACjC,4EAA4E;IAC9E;EACF;;EAEA;;IAEE,4BAA4B;IAC5B,gBAAgB;;IAEhB,uEAAuE;IACvE,qEAAqE;IACrE;;MAEE,aAAa;IACf;;IAEA,8DAA8D;IAC9D;MACE,cAAc;IAChB;EACF;;EAEA,oCAAoC;EACpC;;IAEE,aAAa;EACf;AACF","file":"_index.scss","sourcesContent":["@use \"../../core/settings\" as *;\n@use \"../../core/tools\" as *;\n@forward \"../error-message\";\n@forward \"../hint\";\n@forward \"../label\";\n@forward \"../textarea\";\n\n////\n/// Character count component\n///\n/// @group components/character-count\n////\n\n@include nhsuk-exports(\"nhsuk/components/character-count\") {\n  .nhsuk-character-count {\n    @include nhsuk-responsive-margin(5, \"bottom\");\n\n    .nhsuk-form-group,\n    .nhsuk-textarea {\n      margin-bottom: 0;\n    }\n\n    // If the textarea enters the error state whilst the user is focused on it,\n    // show the error state. This presents feedback to the user that the value\n    // has become invalid without needing to see the counter.\n    .nhsuk-textarea--error:focus {\n      border-color: $nhsuk-error-colour;\n      box-shadow: inset 0 0 0 $nhsuk-border-width-form-element $nhsuk-error-colour;\n    }\n  }\n\n  .nhsuk-character-count__message,\n  .nhsuk-character-count__status {\n    margin-top: nhsuk-spacing(1);\n    margin-bottom: 0;\n\n    // Hide when no textarea description is provided, during initialisation,\n    // or when optionally hidden until the configured threshold is reached\n    &[hidden],\n    .nhsuk-frontend-supported & {\n      display: none;\n    }\n\n    // Show when initialisation is complete (unless already hidden)\n    .nhsuk-frontend-supported [data-nhsuk-character-count-init] &:not([hidden]) {\n      display: block;\n    }\n  }\n\n  // Deprecated, to be removed in v11.0\n  .nhsuk-character-count__status--disabled,\n  .nhsuk-character-count__message--disabled {\n    display: none;\n  }\n}\n"]}
