@@ -12,6 +12,7 @@ $font-size-m: var(--font-size-m);
1212$font-size-l : var (--font-size-l );
1313$font-size-xl : var (--font-size-xl );
1414$font-weight-regular : var (--font-weight-regular );
15+ $font-weight-medium : var (--font-weight-medium );
1516$gray-darkest : var (--gray-darkest );
1617$white-300 : var (--white-300 );
1718$border-radius : var (--border-radius );
@@ -56,6 +57,9 @@ $white-300: var(--white-300);
5657 border-radius : $border-radius ; /* 5px */
5758 padding : $spacer-125 $spacer-100 0.875rem ; /* 14px */ /* 20px 16px 14px */
5859 min-height : 18.25rem ; /* 292px */ // to add some space for the guide panel
60+ display : flex ;
61+ justify-content : center ;
62+ flex-direction : column ;
5963 }
6064
6165 & __guide-panel-loader {
@@ -154,23 +158,99 @@ $white-300: var(--white-300);
154158 padding : 0.875rem 0.75rem 1rem ; /* 14px, 12px, 16px */
155159 }
156160
161+ & __textarea-wrap {
162+ position : relative ;
163+ }
164+
157165 & __textarea {
158166 width : 100% ;
159167 min-height : 6.375rem ; /* 102px */
160168 border : 0 ;
161169 padding : 0 ;
170+ padding-right : 3.5rem ; /* 56px - space for quota circle (40px + 12px margin) */
162171 font-size : $font-size-m ; /* 15px */
163172 line-height : 1.5rem ; /* 24px */
164173 color : $gray-darkest ; /* #4a4a4a */
165174 resize : none ; // resize the textarea to none
166175 background : transparent ;
167-
176+
168177 & :focus {
169178 outline : none ;
170179 box-shadow : none ;
171180 }
172181 }
173-
182+
183+ & __quota-circle {
184+ position : absolute ;
185+ top : $spacer-075 ; /* 12px */
186+ right : $spacer-075 ; /* 12px */
187+ width : $spacer-250 ; /* 40px */
188+ height : $spacer-250 ; /* 40px */
189+ display : flex ;
190+ align-items : center ;
191+ justify-content : center ;
192+ pointer-events : none ;
193+ }
194+
195+ & __quota-circle-svg {
196+ position : absolute ;
197+ inset : 0 ;
198+ }
199+
200+ & __quota-circle-count {
201+ position : relative ;
202+ z-index : 1 ;
203+ font-size : 0.875rem ; /* 14px */
204+ font-weight : 600 ;
205+ color : $gray-darkest ; /* #333 */
206+ }
207+
208+ & __limit-alert {
209+ display : flex ;
210+ justify-content : space-between ;
211+ }
212+
213+ & __limit-alert-text {
214+ color : #ec6a5e ;
215+ text-align : center ;
216+ font-size : $font-size-m ; /* 15px */
217+ font-weight : $font-weight-medium ; /* 500 */
218+ line-height : 1.5rem ; /* 24px */
219+ margin-left : 0.625rem ; /* 10px */
220+ }
221+
222+ & __limit-alert-timer {
223+ color : rgba (74 , 74 , 74 , 0.9 );
224+ text-align : center ;
225+ font-size : 0.875rem ; /* 14px */
226+ font-weight : $font-weight-regular ; /* 400 */
227+ line-height : 1.5rem ; /* 24px */
228+ white-space : nowrap ;
229+ }
230+
231+ & __limit-reached-line {
232+ color : rgba (74 , 74 , 74 , 0.9 );
233+ text-align : center ;
234+ font-family : var (--font-family-base );
235+ font-size : $font-size-m ; /* 15px */
236+ font-style : normal ;
237+ font-weight : $font-weight-medium ; /* 500 */
238+ line-height : 1.5rem ; /* 24px */
239+ margin-bottom : 0 ;
240+ }
241+
242+ & __limit-reached-subline {
243+ display : flex ;
244+ justify-content : center ;
245+ color : rgba (74 , 74 , 74 , 0.9 );
246+ font-family : var (--font-family-base );
247+ font-size : $font-size-m ; /* 15px */
248+ font-style : normal ;
249+ font-weight : $font-weight-regular ; /* 400 */
250+ line-height : 1.5rem ; /* 24px */
251+ margin-bottom : 0.8125rem ; /* 13px */
252+ }
253+
174254 & __prompt-chips {
175255 display : flex ;
176256 flex-wrap : wrap ;
0 commit comments