/* Base widget */
#text-size.text-size-widget{
	position: fixed;
	right: 0px;
	top: 40%;
	transform: translateY(-50%);
	z-index: 9999;
	background: #fff;
	border: 1px solid rgba(0,0,0,.12);
	padding: 10px;
	box-shadow: 0 8px 30px rgba(0,0,0,.12);
	width: 132px;
	user-select: none;
}
#text-size{
  transition: width .25s ease, padding .25s ease;
}
#text-size .title{
	margin: 0 0 8px 0;
	font-weight: 700;
	font-size: 13px;
}

#text-size button{
	width: 100%;
	display: block;
	margin: 6px 0;
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid rgba(0,0,0,.12);
	background: #f7f7f7;
	cursor: pointer;
	text-align: center;
	line-height: 1;
}

#text-size button:hover{ background: #efefef; }

/* The two toggle buttons */
#text-size .TRhider{
	position: absolute;
	top: 3px;
	right: 1px;
	width: auto;
	padding: 3px 7px 5px 7px;
	border-radius: 999px;
	background: transparent;
	margin: 0;
	border: none;
	color: #8c8c8c;
	font-weight: bold;
  }

#text-size .TRshower{
	position: absolute;
	top: 8px;
	right: 0px;
	height: 34px;
	padding: 0;
	background: #fff;
	margin: 0;
	display: none;
	transform: rotate(-90deg);
	min-width: 100px;
}

/* Hidden mode: skinny tab */
#text-size.is-hidden{
	width: 46px;
	padding: 0px;
	background-color: transparent;
	border: none;
}

#text-size .reset{
	background: transparent;
	padding: 6px 10px;
	border: none;
	width: auto;
	margin: 8px auto 0px auto;
}

/* In hidden mode, hide everything EXCEPT the rotated TRshower button */
#text-size.is-hidden .title,
#text-size.is-hidden .increase,
#text-size.is-hidden .decrease,
#text-size.is-hidden .reset,
#text-size.is-hidden .TRhider{
	display: none;
}

/* In hidden mode show the "×" shower button */
#text-size.is-hidden .TRshower{
	display: block;
	transform: rotate(-90deg);
	right: -36px;
	border-radius: 10px 10px 0px 0px;
}

