/* Plugin globals */

.vappv-ttw-plugin-admin-page #wpcontent {
	padding-left: 0 !important;
}

.ttw-admin-section-container h1, .ttw-admin-section-container h2 {
	margin-top: 0;
}

.ttw-readonly {
	background: #cfcfcf;
}

.ttw-admin-std-container {
	width: 1000px;
}

/* ~Plugin globals */

.ttw-admin-section-container { 
	width: 100%; 
}

.ttw-plugin-title-header {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	padding: 1rem;
	background: white;
	box-shadow: 0 2px 2px #cccccc;
}

.ttw-logo {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.ttw-headers-block {
	padding-left: 1rem;
}

.ttw-header-first-line {
	font-size: 1.4rem;
	font-weight: bold;
	margin-bottom: .4rem;
}

.ttw-header-second-line {
	font-size: 1.2rem;
}

.ttw-plugin-main {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.ttw-plugin-footer {
	background: #cfcfcf;
	width: calc(100% - 2rem);
	padding: 1rem;
	font-size: 1.1rem;
	text-align: center;
	box-shadow: 0px -2px 2px #9f9f9f;
}

.ttw-tabs-headings {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center; 
}

.ttw-tab {
	border-top-left-radius: 0.5rem;
	border-top-right-radius: 0.5rem;
	width: 9rem;
	opacity: .4;
	cursor: pointer;
	user-select: none;
	font-size: 1.2rem;
}

.ttw-subtabs-headings .ttw-tab {
	opacity: .6;
	background: #cdcdcd;
	color: black;
}

.ttw-tab-head-inner-row,
.ttw-training-tab-inner-row {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	height: 2rem;
	padding-top: 0.2rem;
	padding-bottom: 0.4rem;
}

.ttw-tab:hover {
	background: #cfcfcf;
}

.ttw-tab .icon {
	margin-left: .8rem;
	position: relative;
	top: 2px;
	height: 20px;
	width: 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.ttw-tab .text {
	margin-left: .4rem;
}

.ttw-tab.ttw-active {
	border-left: 2px solid #858585;
	border-top: 2px solid #858585;
	border-right: 2px solid #858585;
	opacity: 1;
	background: #f0f0f1;
	position: relative;
}

.ttw-tab.ttw-active:after {
	display: block;
	content: ' ';
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: #f0f0f1;
}

.ttw-tab-content { 
	padding-top: 1rem;  
	border-top: 2px solid #858585;
}

.ttw-tab.ttw-active[data-tabid='testing'] {
	background: #ebf3ff;
}

.ttw-materials-tab {
	padding-bottom: .4rem !important;
}

.ttw-tab-content.ttw-tab-content-first {
	border-top-left-radius: 0 !important;
}

.tab-content-inner {
	 
}

.ttw-tab-content h2 {
	font-size: 1.4rem;
	line-height: normal;
}

.ttw-tab-content p {
	font-size: 1rem;
}

.ttw-tab-content[data-tabid='settings'] {
	padding-bottom: 0;
}

.ttw-flex-row-std {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
}

.ttw-slash {
	color: #a1a1a1;
}

.ttw-firstpage-setup-the-plugin-helping-button {
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.ttw-need-help-bottom-area {
	background: #ebf3ff;
	padding: 1rem;
	border-radius: .5rem;
	box-shadow: 0px 1px 2px #333333;
	margin-bottom: 1rem;
	font-size: 1rem;
	margin-top: 1.5rem;
}

.ttw-need-help-bottom-area > span {
	margin-right: .5rem;
}
 
/* Settings section */

.ttw-settings-not-set,
.ttw-ai-training-not-completed {
	font-size: 1.2rem;
	line-height: 120%;
	padding-bottom: 1rem;
	text-align: center;
}
  
.ttw-settings-block {
	margin-bottom: 1.5rem;
}

.ttw-settings-section {
	margin-bottom: 1rem;
}

.ttw-settings-label {
	margin-bottom: .5rem;
	font-size: 1rem;
	font-weight: bold;
}

.ttw-plugin-intro-paragraph {
	margin-bottom: .5rem;
}

.ttw-settings-input input, .ttw-settings-input textarea, .ttw-settings-input select {
	width: 100%;
	max-width: 100%;
	font-size: 1rem;
}
 
.ttw-settings-block-header {
	padding-top: .5rem;
	padding-bottom: 0;
}

.ttw-ready-to-go-first-page-label {
	font-size: 1rem;
}

.ttw-settings-separation-line {
	width: 100%;
	border-bottom: 2px solid #ccc;
	margin-top: .5rem;
	margin-bottom: .5rem;
}

.ttw-settings-label-description {
	font-size: 1rem;
	margin-bottom: .7rem;
}

.ttw-training-tab-description {
	margin-bottom: 1rem;
}

.ttw-openai-connetion-explanation,
.ttw-openai-connetion-explanation > p {
	margin-top: 0;
}

.ttw-chat-bubble-image,
.ttw-ai-character-image,
.ttw-ai-character-name-and-description {
	cursor: pointer;
}

.ttw-endpoint-api-address-field {
	text-decoration: underline;
	color: #2271b1;
	cursor: pointer;
}

/* Training section */

.ttw-training-subtabs,
.ttw-settings-subtabs {
	flex-wrap: wrap;
}

.ttw-training-subtabs .icon div.wp-menu-image:before,
.ttw-settings-subtabs .icon div.wp-menu-image:before {
	color: black !important;
}

.ttw-training-subtabs .ttw-active,
.ttw-settings-subtabs .ttw-active {
	background: white !important;
}

.ttw-settings-subtabs .ttw-training-tab-inner-row .text {
	margin-left: 0;
}

.ttw-training-list-content {
	 
}

.ttw-training-logs-output {
	height: 300px;
	position: relative;
	overflow-y: scroll;
}

.ttw-training-website-content {
	margin-top: 1rem;  
}

.ttw-check-uncheck-all-content-button {
	margin-left: auto !important;
}

.ttw-refresh-training-content-button {
	margin-right: 0 !important;
}

.ttw-training-logs-block {
	margin-top: 1rem;
}

.ttw-training-item-row {  
	font-size: 1rem;
	margin-bottom: 1rem;
	background: #f2f7ff; 
	padding: 0.7rem;
	border-radius: 0.5rem;
	border-left: 4px solid #a3a3a3;
	border-right: 4px solid #a3a3a3;
	transition: all .15s;
	position: relative;
	box-shadow: 0px 1px 2px #333333;
}
  
.ttw-training-item-row:hover {
	/* transform: scale(1.008); */
	box-shadow: 0px 2px 5px #676767;
	border-left: 4px solid #008ef3;
	border-right: 4px solid #008ef3;
	position: relative;
	background: #97e3f3;
}

.ttw-training-item-info > div {
	border-bottom: 1px solid #b3b3b3;
	padding-top: 0.2rem;
	padding-bottom: 0.2rem;
}

.ttw-training-item-status {
	border-bottom: none !important;
}

.ttw-training-item-buttons {
	padding-top: .3rem;
}

.ttw-training-item-buttons > div,
.ttw-training-item-buttons > a,
.ttw-training-item-buttons > label {
	margin-right: .5rem;
}

.ttw-training-item-material-data > div {
	margin-right: .5rem;
}
  
[data-role='ttw-check-this-material'] > input {
	margin-right: 0;
}

.training-save-buttons {
	 
}

.ttw-training-tab-checked-items-counter {
	margin-left: .5rem; 
}

.ttw-training-tab {
	margin-bottom: 1rem;
	border-radius: .5rem;
	margin-right: 1rem;
	text-align: center;
	padding-top: .1rem;
	justify-content: center !important;
	background: #ebf3ff;
	width: auto !important;
}

.ttw-training-tab-inner-row {
	padding-left: 1rem;
	padding-right: 1rem;
}

.ttw-training-tab:after {
	display: none !important;
}

.ttw-training-tab .icon {
	margin-left: 0 !important;
}

.ttw-training-tab.ttw-active {
	border-bottom: 1px solid #4698b5;
	box-shadow: 0px 1px 2px #333333;
	top: 0 !important;
}
  
.ttw-training-tab .ttw-training-tab-checked-items-counter {
	color: #616161;
}

.training-save-buttons .ttw-training-tab-checked-items-counter {
	color: white;
}

#ttw-make-training {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
}

#ttw-make-training input {
	position: relative; 
	top: 3px;
	margin-right: 8px;
}

.ttw-trained-assistant-tab-heading-data {
	background: #e3e3e3;
	padding: .7rem;
	border-radius: .5rem;
	line-height: 1.3rem;
	font-size: 1rem;
}

.ttw-training-status-trained {
	background: #cbf1fd;
}

.ttw-training-status-trained .ttw-material-training-status-label {
	font-weight: bold;
	color: green;
}

/* Logs tab (common logs) */

.ttw-logs-container {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
}

.ttw-log-data-entry {
	margin-bottom: 1rem; 
	background: #f7f7f7;
	padding: 0.7rem;
	border-radius: 0.5rem;
	border-left: 4px solid #a3a3a3;
	border-right: 4px solid #a3a3a3;
	transition: all .15s;
	position: relative;
	width: calc(100% - 1.4rem - 8px);
	font-size: 1rem;
	box-shadow: 0px 1px 2px #333333;
}

.ttw-log-data-entry:hover {
	box-shadow: 0px 2px 5px #676767;
	border-left: 4px solid #008ef3;
	border-right: 4px solid #008ef3;
	position: relative;
	background: #d8eeff;
}

.ttw-log-entry-heading {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	font-weight: bold;
}

.ttw-log-entry-heading > div {
	margin-right: .5rem;
}

.ttw-error-label {
	color: red;
}

.ttw-log-element-error {
	background: #ffcece;
}

/* Buttons */

.ttw-buttons-bar {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
}

.ttw-buttons-bar > div,
.ttw-buttons-bar > label {
	margin-right: 1rem;
}

.ttw-button {
	display: block;
	border: 1px solid #0c459b;
	border-radius: 0.5rem;
	padding: 0.4rem .8rem;
	background: #ebf3ff;
	cursor: pointer;
	text-decoration: none;
	color: black;
	font-size: 1.2rem;
	user-select: none;
	line-height: normal;
}

.ttw-button:hover {
	background: white;
}

.ttw-button:active {
	box-shadow: 1px 1px 2px #333333 inset;
}

.ttw-green-button {
	background: #28a745;
	border: 1px solid #1e7e34;
	color: white; 
}

.ttw-green-button:hover {
	background: #1e7e34;
}

.ttw-red-button {
	background: #ff6363;
	border: 1px solid #ff6363;
	color: white;
	font-weight: bold;
}

.ttw-red-button:hover {
	background: #c52525;
}

.ttw-button-mini {
	padding: .2rem .4rem;
	font-size: 1rem;
}

[data-role="settings-save-buttons"] {
	margin-bottom: 1rem;
}

/* ~Buttons */

/* Waiting loader */
 
.ttw-loader-content-block {
	width: 200px;
	height: 200px;
	background: #f1f2f3;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	border-radius: 1rem;
	box-shadow: 0 5px 30px #333333;
	position: fixed;
	top: calc(50% - 100px);
	left: calc(50% - 100px);
}

.ttw-loader-text {
	margin-top: .5rem;
	font-size: 1rem;
	font-size: 1.5rem;
}

.ttw-loader-before-chat {
	margin-bottom: 1rem !important;
}

/* ~Waiting loader */

/* Training progress bar */

.ttw-progressbar-meter {

	/*
		box-sizing: content-box;
		height: 20px;  
		position: relative; 
		background: #555;
		border-radius: 25px;
		padding: 10px;
		box-shadow: inset 0 -1px 1px rgba(255, 255, 255, 0.3); 
	*/

	box-sizing: content-box;
	height: 11px;
	position: relative;
	background: #0c6c81;
	border-radius: 5px;
	padding: 6px;
	box-shadow: inset 0 -1px 1px rgba(255, 255, 255, 0.3);

}

.ttw-progressbar-meter > span {
	display: block;
	height: 100%;
	border-radius: 5px;
	background-color: rgb(43, 194, 83);
	background-image: linear-gradient(
	  center bottom,
	  rgb(43, 194, 83) 37%,
	  rgb(84, 240, 84) 69%
	);
	box-shadow: inset 0 2px 9px rgba(255, 255, 255, 0.3),
	  inset 0 -2px 6px rgba(0, 0, 0, 0.4);
	position: relative;
	overflow: hidden;
}

.ttw-progressbar-meter > span:after,
.ttw-progressbar-animate > span > span {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background-image: linear-gradient(
	  -45deg,
	  rgba(255, 255, 255, 0.2) 25%,
	  transparent 25%,
	  transparent 50%,
	  rgba(255, 255, 255, 0.2) 50%,
	  rgba(255, 255, 255, 0.2) 75%,
	  transparent 75%,
	  transparent
	);
	z-index: 1;
	background-size: 50px 50px;
	animation: move 2s linear infinite;
	border-radius: 5px;
	overflow: hidden;
}
  
.ttw-progressbar-animate > span:after {
	display: none;
}
  
@keyframes move {
	0% {
	  background-position: 0 0;
	}
	100% {
	  background-position: 50px 50px;
	}
}
  
.ttw-progressbar-orange > span {
	background-image: linear-gradient(#f1a165, #f36d0a);
}
  
.ttw-progressbar-red > span {
	background-image: linear-gradient(#f0a3a3, #f42323);
}
  
.ttw-progressbar-nostripes > span > span,
.ttw-progressbar-nostripes > span::after {
	background-image: none;
}

/* ~Training progress bar */

/* Training process modal */

.ttw-training-in-process-modal,
.ttw-wait-loader-modal {
	position: absolute;
	left: 0;
	top: 82px;
	width: 100%;
	height: 100%;
}

.ttw-training-in-process-overlay,
.ttw-loader-overlay {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background: #ebebeb;
	opacity: .9;
}

.ttw-training-in-process-content {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.ttw-training-in-process-header {
	font-weight: normal;
	margin-bottom: 1rem;
	font-size: 1.7rem !important;
}

.ttw-training-in-process-sublabel {
	font-size: 1.2rem !important;
	margin-bottom: 1rem;
	text-align: center;
}

.ttw-training-progress-value {
	font-weight: bold;
}

.ttw-training-in-process-progress-bar {
	width: 400px;
	margin-top: .5rem;
}

.ttw-training-in-process-logs-output {
	width: 600px;
	height: 200px;
	position: relative;
	overflow-y: scroll;
	margin-top: 1.5rem;
	font-size: 1rem;
	border-top: 2px solid #ccc;
	border-bottom: 2px solid #ccc;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.ttw-training-in-process-logs-output .ttw-log-entry {
	margin-bottom: 1rem;
}

.ttw-training-modal-buttons-bar {
	margin-top: 1.5rem;
}

/* ~Training process modal */

/* Notifications */

.ttw-overlay {
	position: fixed;
	background: #cccccc;
	opacity: .8;
	z-index: 1001;
}

.ttw-notification {
	position: fixed;
	width: 500px;
	left: calc(50% - 250px);
	padding: 1rem;
	background: white;
	box-shadow: 0 10px 30px #333333;
	border-radius: .5rem;
	z-index: 1002;
}

.ttw-notification.ttw-notification-error {
	background: rgba(217, 92, 92, 1);
}

.ttw-notification-info {
	background: rgba(91, 189, 114, 1);
}

.ttw-notification-title {
	font-weight: bold;
	padding-bottom: .5rem;
	font-size: 1.5rem;
	color: black;
}

.ttw-notification-text {
	font-size: 1.2rem;
	color: black !important;
}

.ttw-notification-buttons {
	border-top: 1px solid black;
	padding-top: .6rem;
	margin-top: .5rem;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
}

/* ~Notifications */

datalist {
	display: flex;
	flex-direction: row;
	justify-content: space-between; 
	font-size: 1rem;
} 

/* Pagination */

div[data-role='ttw-pagination'] {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	border-top: 1px solid #cccccc;
	padding-top: .8rem;
	flex-wrap: wrap;
	width: 100%;
}

div[data-role='ttw-pagination'][data-blockposition='top'] {
	border-bottom: 1px solid #cccccc !important;
	border-top: none !important;
	padding-top: 0 !important;
	padding-bottom: .8rem !important;
	margin-bottom: .8rem !important;
}

div[data-role='ttw-pagination'] div[data-role='ttw-page-switcher'] {
	display: block;
	margin-left: 2px;
	margin-right: 5px;
	padding: 5px 5px;
	color: #1D7BC9;
	text-decoration: none;
	text-shadow: 0 1px 0 #E2E2E2;
	cursor: pointer;
	font-size: 20px;
	font-family: Arial;
	text-decoration: none;
	border: 1px solid #9AC4E8;
	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	background: white;
}

div[data-role='ttw-pagination'] div[data-role='ttw-page-switcher']:hover {
	background: #ebf3ff;
}

div[data-role='ttw-pagination'] div[data-role='ttw-page-switcher'][data-activepage='yes'] {
	color: red !important;
	border: 1px solid #DCA5A5;
}

.ttw-refresh-logs-button,
.ttw-refresh-dialogues-button {
	margin-left: auto;
}

[data-role="ttw-pagination-dots"] {
	padding-left: 3px;
	padding-right: 5px;
}

/* ~Pagination */

/* Dialogues */

.ttw-admin-dialogue-tab[data-tabid="testing"] {
	/* padding-top: 0 !important; */
}

.ttw-admin-dialogue-tab {
	background-image: url(../img/chat_tile_background_v3.png);
	background-repeat: no-repeat;
	background-size: inherit;
}

.ttw-testing-container {
	margin-top: -1rem;
}

.ttw-dialogue-block {
	padding-top: 1rem;
	height: 600px;
	position: relative;
	overflow-y: scroll; 
}

.ttw-dialogue-bottom-input-block {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: flex-start;
	height: 100px;
}

.ttw-dialogue-input-textarea {
	height: 100%;
	resize: none;
	width: calc(100% - 7rem);
	padding: .5rem;
	border-radius: .5rem;
	border-top-right-radius: 0 !important;
	border-bottom-right-radius: 0 !important;
	border: 1px solid #8c8f94;
	font-size: 1rem;
}

.ttw-dialogue-send-message-button {
	width: 7rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	font-weight: bold;
	height: calc(100% - 1rem + 2px);
	border-top-left-radius: 0 !important;
	border-bottom-left-radius: 0 !important;
	border-left: none;
}

.ttw-dialogue-send-message-button .dashicons {
	font-size: 25px;
}

.ttw-waiting-for-ai-response-text-block,
.ttw-loading-admin-messages-text-block {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	background: white;
	width: calc(100% - 2.5rem);
	padding-top: .5rem;
	padding-bottom: .5rem;
	border-radius: .5rem;
	border-left: 4px solid #76c0ed;
	border-right: 4px solid #76c0ed;
	margin-bottom: .3rem;
	box-shadow: 0px 1px 2px #333333;
	color: #022027;
	font-size: 1rem;
	margin-left: 1rem;
}

.ttw-waiting-for-ai-response-text-block {
	margin-bottom: 1rem;
}

.ttw-waiting-for-ai-response-circle-loader,
.ttw-loading-admin-messages-circle-loader {
	margin-right: .5rem;
}

.ttw-loading-admin-messages-label-text {
	font-size: 1rem;
	color: #046175;
}

.ttw-dialogue-container {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
}

.ttw-chat-message {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	margin-bottom: 1rem;
}

.ttw-chat-message-by-user {
	width: 80%;
	margin-left: auto;
	text-align: right;
	margin-right: 1rem; 
	align-items: flex-end;
}

.ttw-chat-message-by-ai {
	width: 80%; 
	text-align: left;  
	align-items: flex-start;
	margin-left: 1rem;
}

.ttw-message-body {
	background: #6fdbf2;
	color: #00476b;
	padding: .5rem .7rem;
	border-radius: .5rem;
	line-height: normal;
	box-shadow: 0px 1px 2px #333333;
	font-size: 1rem;
}

.ttw-chat-message-by-ai .ttw-message-body {
	/* background: #00c7ee; */
	background: white;
	color: #00476d;
}

.ttw-message-body a {
	color: #1a84a5;
	border-bottom: 1px solid #84c5d9;
	cursor: pointer;
	text-decoration: none !important;
}

.ttw-message-body-ps {
	margin-top: .5rem;
	padding-top: .5rem;
	border-top: 1px solid #cccccc;
}

.ttw-message-meta {
	margin-top: .5rem;
	font-weight: bold;
	font-size: 1rem;
	display: flex;
	flex-direction: column;
	font-size: 1rem;
}

.ttw-message-meta-sentdate {
	font-size: .8rem;
	position: relative; 
	color: #939393;
}

.ttw-chat-message-by-ai .ttw-message-meta {
	justify-content: flex-start;
	align-items: flex-start;
}

.ttw-chat-message-by-user .ttw-message-meta {
	justify-content: flex-start;
	align-items: flex-end;
}

.ttw-message-meta-username {
	display: flex;
	flex-direction: row;
}

.ttw-chat-message-by-ai .ttw-message-meta-username {
	justify-content: flex-start;
	align-items: center;
}

.ttw-chat-message-by-user .ttw-message-meta-username {
	justify-content: flex-end;
	align-items: center;
}

.ttw-chat-user-icon {
	width: 20px;
	height: 20px;
	margin-left: .5rem;
}

.ttw-message-triangle-container {
	height: 1px;
	position: relative;
	overflow: visible;
}

.ttw-message-triangle-cloud-background-shadow {
	position: absolute;
	width: 0;
	height: 0;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-top: 10px solid #333333; 
	margin-right: .9rem;
	margin-left: .9rem;  
	opacity: .8;
	z-index: 1;
}

.ttw-message-triangle-cloud-arrow { 
	position: absolute;
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 8px solid #6fdbf2; 
	margin-right: .9rem;
	margin-left: .9rem; 
	z-index: 2;
}

.ttw-chat-message-by-ai .ttw-message-triangle-cloud-arrow {
	/* border-top: 8px solid #00c7ee; */
	border-top: 8px solid white; 
}

.ttw-chat-message-by-user .ttw-message-triangle-cloud-background-shadow,
.ttw-chat-message-by-user  .ttw-message-triangle-cloud-arrow {
	right: 0;
}

.ttw-chat-ai-icon {
	width: 20px;
	height: 20px;
	margin-right: .5rem;
}

.ttw-testing-chat-tab-admin-icon {
	margin-left: .5rem;
}

.ttw-setting-requires-retraining {
	color: #ff2d2d;
}

.ttw-urls-into-message-are-followed-by-user {
	background: #8bbbff;
	margin-top: 0.4em;
	margin-bottom: 0.2rem;
	border-radius: 0.3rem;
	padding: 0.3rem;
}

#ttw-dialogue-input-textarea.ttw-disabled {
	background: #dbdbdb;
}

#ttw-dialogue-send-message-button.ttw-disabled {
	opacity: .5;
}

/* Dialogues history tab (dialogues listing) */

.ttw-dialogue-row {
	margin-bottom: 1rem;
	background: #f4fbff;
	padding: 0.7rem;
	border-radius: 0.5rem;
	border-left: 4px solid #a3a3a3;
	border-right: 4px solid #a3a3a3;
	transition: all .15s;
	position: relative;
	width: calc(100% - 1.4rem - 8px);
	font-size: 1rem;
	box-shadow: 0 2px 2px #cccccc;
}

.ttw-dialogue-name-heading {
	font-size: 1.2rem;
	font-weight: bold;
	margin-bottom: .5rem;
	border-bottom: 1px solid #a1a1a1;
	padding-bottom: .7rem;
}

.ttw-dialogue-row:hover {
	box-shadow: 0px 2px 5px #676767;
	border-left: 4px solid #008ef3;
	border-right: 4px solid #008ef3;
	position: relative;
	background: #d8eeff;
}
 
.ttw-dialogue-buttons-bar {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center; 
}

.ttw-dialogue-buttons-bar > div {
	margin-top: .7rem;
}

.ttw-dialogue-buttons-bar .ttw-button {
	background: white;
}
  
.ttw-dialogue-first-message {
	background: #c8eaff;
	border-radius: .5rem;
	padding: .5rem;
	margin-top: .5rem;
	transition: all .15s;
}

.ttw-dialogue-row:hover .ttw-dialogue-first-message {
	background: #9cc3db;
}

.ttw-dialogue-no-messages {
	background: #ffe0e0;
	border-radius: .5rem;
	padding: .5rem;
	margin-top: .5rem;
}

.ttw-dialogue-messages-all-list {
	background-image: url(../img/chat_tile_background_v3.png);
	background-repeat: repeat;
	background-size: inherit;
	border-radius: .5rem;
	padding-top: 1rem;
	margin-top: .8rem;
	box-shadow: 1px 2px 3px #a9a9a9 inset; 
	padding-bottom: .1rem;
	padding-right: 0;
	border-left: 1px solid #dddddd;
	border-right: 1px solid #dddddd;
	border-bottom: 1px solid #cfcfcf;
	border-top: 1px solid #dddddd;
	transition: all .15s;
}

.ttw-dialogue-row:hover .ttw-dialogue-messages-all-list {
	border: 1px solid #878787;
}

.ttw-dialogue-separator {
	text-align: center;
	margin-bottom: 2.5rem;
	margin-top: 2rem;
	margin-right: 1rem;
	position: relative;
	overflow: visible;
	height: 1px;
	border-bottom: 2px solid #b9b9b9;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.ttw-admin-dialogue-separator-content {
	border-radius: 1rem;
	position: relative; 
	border: 2px solid #cccccc;
	background: white;
	padding: .3rem 1rem;
	font-size: 1rem; 
	box-shadow: 0px 1px 2px #333333;  
}

.ttw-dialogue-naming-details {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 1.2rem; 
}

.ttw-chat-bubbles-types-area,
.ttw-ai-characters-area {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: wrap;
	width: 100%;
	padding-top: 1rem;
}

.ttw-chat-bubble-type-selector,
.ttw-ai-character-type-selector {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-left: 1rem;
	margin-right: 1rem;
	margin-bottom: 2rem;
}

.ttw-ai-character-type-selector {
	width: 300px;
}

.ttw-chat-bubble-option-container,
.ttw-ai-character-option-container {
	margin-top: .5rem;
}

.ttw-chat-bubble-appearence-selector-input,
.ttw-ai-character-selector-input {
	width: 16px !important;
	height: 16px !important;
	position: relative;
	top: 3px;
}

.ttw-bubble-picker-button,
.ttw-ai-character-picker-button {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	padding-top: .1rem !important;
}

.ttw-ai-character-image img {
	width: 180px;
}

.ttw-ai-character-name-and-description {
	margin-bottom: 1rem;
	text-align: center;
}

.ttw-ai-character-name {
	font-weight: bold;
	font-size: 1.2rem;
	margin-bottom: .5rem;
}

.ttw-ai-character-description {
	font-size: 1rem;
}

/* TTW top notifications area */

.ttw-top-notifications-area {
	 
}

.ttw-chatbot-disabled-plugin-top-notification,
.ttw-chatbot-red-notification {
	background: #ffcbca;
	padding: 1rem;
	border-radius: .5rem;  
	box-shadow: 0px 1px 2px #333333;
	margin-bottom: 1rem;
	font-size: 1rem;
}

.ttw-chatbot-disabled-plugin-top-notification-inner,
.ttw-chatbot-red-notification-inner {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
}

.ttw-chatbot-disabled-plugin-top-notification .dashicons.dashicons-welcome-comments,
.ttw-chatbot-red-notification .dashicons {
	margin-right: .5rem;
}

.ttw-chatbot-enabled-plugin-top-notification,
.ttw-chatbot-green-notification {
	background: #88e596;
	padding: 1rem;
	border-radius: .5rem;
	box-shadow: 0px 1px 2px #333333;
	margin-bottom: 1rem;
	font-size: 1rem;
}

.ttw-chatbot-enabled-plugin-top-notification-inner,
.ttw-chatbot-green-notification-inner {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
}

.ttw-chatbot-enabled-plugin-top-notification .dashicons.dashicons-welcome-comments,
.ttw-chatbot-enabled-plugin-top-notification-inner .dashicons.dashicons-yes-alt,
.ttw-chatbot-green-notification-inner .dashicons{
	margin-right: .5rem;
}

#ttw-enable-plugin-from-notification-bar,
#ttw-disable-plugin-from-notification-bar,
#ttw-activate-plugin-license-from-notification-bar {
	margin-left: auto;
}

#ttw-activate-plugin-license-from-notification-bar {
	text-align: center;
}

.ttw-config-and-train-plugin-to-start {
	background: #ebf3ff;
	padding: 1rem;
	border-radius: .5rem;
	box-shadow: 0px 1px 2px #333333;
	margin-bottom: 1rem;
	font-size: 1rem;
}

.ttw-config-and-train-plugin-to-start-inner {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
}

.ttw-config-and-train-plugin-to-start-inner > span {
	margin-right: .5rem;
}

.ttw-plugin-is-not-active-text-notification {
	color: #cb0000;
}

/* TTW top stats area */

.ttw-plugin-current-limits {
	background: #d8eeff;
	border-left: 1px solid #c3c3c3;
	border-bottom: 1px solid #adadad;
	border-right: 1px solid #b4d6ef;
	padding: 1rem;
	margin-bottom: 1rem;
	border-radius: .5rem;
	box-shadow: 0px 1px 2px #333333;
}

.ttw-plugin-current-limits-inner {
	 
}

.ttw-limits-top-block-label {
	font-size: 1.2rem;
	border-bottom: 1px solid #919191;
	padding-bottom: .5rem;
	margin-bottom: .5rem;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
}
 
.ttw-messages-and-dialogues-subcounter-label {
	margin-left: auto;
}

.ttw-limits-top-block-sublabel {
	font-size: 1rem;
	margin-bottom: .5rem;
}

.ttw-limits-area-row {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	margin-bottom: .5rem;
}

.ttw-limit-area-bar {
   width: 50%;
}

.ttw-left-limits-bar {
	margin-right: .5rem;
}

.ttw-right-limits-bar {
	margin-left: .5rem;
}

.vappv-ttw-activate-license-key-form table {
	background: #d5e6ff;
	border-radius: .5rem;
	margin-top: 1.5rem;
}

.vappv-ttw-activate-license-key-form table td {
	padding: 5px 10px !important;
}

label[for="vappv_ttw_edd_license_key"] {
	width: 100%;
	text-align: right;
	display: block;
}

.vappv-ttw-activate-license-key-form th[scope="row"] {
	width: 160px;
}

.vappv-ttw-activate-license-key-form input[type="submit"][name="edd_license_activate"],
.vappv-ttw-activate-license-key-form input[type="submit"][name="edd_license_deactivate"]{
	margin-left: 20px;
}

/* ------------------------------------------------- */
/*					Mobile adaptivity				 */
/* ------------------------------------------------- */
 
@media (max-width: 1200px) {
	.ttw-admin-std-container {
		width: 800px;
	}

	.training-save-buttons {
		font-size: 1rem;
	}

	.ttw-tab .icon {
		margin-left: .4rem;
	}
}

@media (max-width: 992px) {
	.ttw-admin-std-container {
		width: 740px;
	}
}

/* Mobile query: 830 instead of 768 */
@media (max-width: 830px) {
	.ttw-admin-std-container {
		width: 100%;
	}

	.ttw-messages-and-dialogues-subcounter-label {
		margin-left: initial;
		padding-left: .5rem;
	}

	.ttw-limits-area-row {
		flex-wrap: wrap;
	}

	.ttw-left-limits-bar {
		margin-right: 0;
		width: 100%;
	}

	.ttw-right-limits-bar {
		margin-left: 0;
		width: 100%;
	}

	.ttw-limit-area-bar {
		margin-bottom: .5rem;
	}

	.ttw-limits-area-row {
		margin-bottom: 0;
	}

	.ttw-limits-top-block-label {
		flex-wrap: wrap;
	}

	.ttw-tabs-headings { 
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
	}

	.ttw-tabs-headings .ttw-tab {
		border-radius: .5rem;
		margin-right: 1rem;
		margin-bottom: 1rem;
		justify-content: center;
		align-items: center;
	}

	.ttw-tab-head-inner-row {
		justify-content: center;
		align-items: center;
	}

	.ttw-tabs-headings .ttw-tab .icon {
		margin-left: 0;
	}

	.ttw-tab.ttw-active:after {
		display: none;
	}

	.ttw-tabs-headings .ttw-tab.ttw-active {
		border: 2px solid #858585;
		background: white;
		top: 0;
		box-shadow: 0px 1px 2px #333333;
	}

	input [data-role='check-material-box'],
	#check_uncheck_all_materials_input,
	#ttw-make-training input {
		width: 20px;
		height: 20px;
		font-size: 18px;
	}

	[data-role='training-save-buttons'] {
		flex-wrap: wrap; 
		justify-content: center;
		align-items: center;
	}

	[data-role='training-save-buttons'] > div,
	[data-role='training-save-buttons'] > label {
		margin-left: initial !important;
		margin-right: initial !important;
		margin-bottom: 1rem;
	}

	.ttw-dialogue-started-and-finished-dates {
		margin-bottom: .5rem;
	}

	.tab-content-inner h2 {
		line-height: 120%;
	}

	.ttw-chat-bubbles-types-area,
	.ttw-ai-characters-area {
		justify-content: center;
	}
}

/* WP standard options page (inputs, etc.) */
@media (max-width: 782px) {

	.vappv-ttw-activate-license-key-form th[scope="row"],
	label[for="vappv_ttw_edd_license_key"] {
		width: 100%;
		text-align: center;
		font-size: 1.2rem;
	}

	.vappv-ttw-activate-license-key-form table td {
		text-align: center;
	}

	input[name="edd_license_deactivate"], input[name="edd_license_activate"],
	input[name="edd_license_deactivate"], input[name="edd_license_deactivate"] {
		margin-left: auto !important;
		margin-top: .5rem !important;
		font-size: 1.2rem !important;
		margin-bottom: 5px !important;
	}

}

/* Smaller devices */

@media (max-width: 630px) { 
	.ttw-limits-top-block-label {
		justify-content: center;
		align-items: center;
	}

	.ttw-messages-and-dialogues-subcounter-label {
		margin-top: .3rem;
	}

	.ttw-limits-top-block-sublabel {
		text-align: center;
	}

	[data-role='ttw-pagination'] {
		justify-content: center;
		flex-wrap: wrap;
	}

	.ttw-refresh-logs-button {
		margin-left: .5rem;
		margin-right: .5rem;
	}

	.ttw-limits-top-block-label {
		padding-bottom: 1rem;
	}

	.ttw-dialogue-name-heading {
		text-align: center;
		border-bottom: none;
		padding-bottom: 0;
	}

	.ttw-dialogue-naming-details {
		position: initial;
		text-align: center; 
		border-bottom: 1px solid #a1a1a1;
		padding-bottom: .7rem;
		margin-bottom: .5rem;
	}

	.ttw-dialogue-buttons-bar {
		justify-content: center;
		align-items: center;
	}

	.ttw-plugin-title-header {
		justify-content: center;
		flex-wrap: wrap;
		flex-direction: column;
		align-items: center;
	}

	.ttw-logo {
		margin-bottom: 1rem;
	}

	.ttw-logo svg {
		width: 75px;
		height: 75px;
	}

	.ttw-headers-block {
		padding-left: 0;
		text-align: center;
	}
}

/* Low resolution laptops (Macbook 13 inches for example) */
@media (max-height: 750px) {
	.ttw-dialogue-block {
		height: 470px;
	}
}