@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */


/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}


/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* GLOBAL STYLES */
:root {
	--blue: #335DFF;
	--grey: #F5F5F5;
	--grey-d-1: #EEE;
	--grey-d-2: #DDD;
	--grey-d-3: #888;
	--white: #FFF;
	--dark: #222;
}
/* GLOBAL STYLES */







/* CHATBOX */
.chatbox-wrapper {
	position: fixed;
	bottom: 20px;
    right: 20px;
	width: 4rem;
	height: 4rem;
	z-index: 1031;
}
.chatbox-wrapper .unreadMsg {
    background: #4ea5d9;
    border-radius: 50px;
    padding: 2px 10px;
    position: absolute;
    top: -12px;
    color: #fff;
    left: 0;
}
.chatbox-toggle {
	width: 100%;
	height: 100%;
	background: var(--blue);
	color: var(--white);
	font-size: 2rem;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	cursor: pointer;
	transition: .2s;
}
.chatbox-toggle:active {
	transform: scale(.9);
}
.chatbox-message-wrapper {
	position: absolute;
	bottom: calc(100% + 1rem);
	right: 0;
	width: 420px;
	border-radius: .5rem;
	box-shadow: .5rem .5rem 2rem rgba(0, 0, 0, .1);
	transform: scale(0);
	transform-origin: bottom right;
	transition: .2s;
}
.chatbox-message-wrapper span.cls_btn {
    position: absolute;
    right: -5px;
    top: -10px;
    z-index: 99;
    background: #335dff;
    color: #fff;
    padding: 2px 8px;
    border-radius: 50px;
    opacity: 1;
    cursor: pointer;
}
.chatbox-message-wrapper.show {
	transform: scale(1);
}
.chatbox-message-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--white);
	padding: .75rem 1.5rem;
}
.chatbox-message-profile {
	display: block;
    position: relative;
    width: 100%;
}
.chatbox-message-profile .visitorChat {
    /* display: flex; */
    align-items: flex-start;
    margin-bottom: 10px;
    position: relative;
}
.visitorChat .rate {
    position: absolute;
    right: 0;
    bottom: 0px;
    color: #fff;
} 
.visitorChat .rate .fa-thumbs-up, .visitorChat .rate .fa-thumbs-down {
    background: #0f0147;
    border-radius: 100%;
    cursor: pointer;
    height: 40px;
    width: 40px;
    text-align: center;
    padding: 10px 0;
    padding-top: 12px;
}
.visitorChat .rate .fa-thumbs-up, .visitorChat .rate .fa-thumbs-down {
    background: #0f0147;
}
.chatbox-message-image {
	width: 3rem;
	height: 3rem;
	object-fit: cover;
	border-radius: 50%;
}
/* .visitorChat:before {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 34px;
    background: #25d366;
    height: 10px;
    width: 10px;
    border-radius: 50px;
    z-index: 999;
} */
.chatbox-message-name {
	font-size: 1.125rem;
	font-weight: 600;
	padding-top: 5px;
}
.chatbox-message-status {
	font-size: 12px;
	color: var(--grey-d-3);
	position: absolute;
    top: 25px;
    left: 50px;
}
.chatbox-message-dropdown {
	position: relative;
}
.chatbox-message-dropdown-toggle {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 2.5rem;
	height: 2.5rem;
	font-size: 1.25rem;
	cursor: pointer;
	border-radius: 50%;
}
.chatbox-message-dropdown-toggle:hover {
	background: var(--grey);
}
.chatbox-message-dropdown-menu {
	list-style: none;
	margin: 0;
	position: absolute;
	top: 100%;
	right: 0;
	background: var(--white);
	padding: .5rem 0;
	width: 120px;
	box-shadow: .25rem .25rem 1.5rem rgba(0, 0, 0, .1);
	transform: scale(0);
	transform-origin: top right;
	transition: .2s;
	border-radius: .5rem;
}
.chatbox-message-dropdown-menu.show {
	transform: scale(1);
}
.chatbox-message-dropdown-menu a {
	font-size: .875rem;
	font-weight: 500;
	color: var(--dark);
	text-decoration: none;
	padding: .5rem 1rem;
	display: block;
}
.chatbox-message-dropdown-menu a:hover {
	background: var(--grey);
}
.chatbox-message-content {
	background: var(--grey);  
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	grid-row-gap: 1rem;
	max-height: 300px;
	overflow-y: auto;
}
.chatbox-message-item {
	width: 90%;
	padding: 1rem;
    word-break: break-all;
    block-size: fit-content;    
}
.chatbox-message-item.sent {
	align-self: flex-end;
	background: var(--blue);
	color: var(--white);
	border-radius: .75rem 0 .75rem .75rem;
}
.chatbox-message-item.received {
	background: var(--white);
	border-radius: 0 .75rem .75rem .75rem;
	box-shadow: .25rem .25rem 1.5rem rgba(0, 0, 0, .05);
}
.chatbox-message-item-time {
	float: right;
	font-size: .75rem;
	margin-top: .5rem;
	display: inline-block;
}
.chatbox-message-bottom {
	background: var(--white);
	padding: .75rem 0rem;
}
.chatbox-message-form {
	background: var(--grey);
	border-radius: 2rem;
	padding: .5rem 1.25rem;
	display: flex;
	justify-content: space-between;
}
.chatbox-message-input {
	background: transparent;
	outline: none;
	border: none;
	resize: none;
	scrollbar-width: none;
    width: 100%;
}
.chatbox-message-input::-webkit-scrollbar {
	display: none;
}
.chatbox-message-submit {
	font-size: 1.25rem;
	color: var(--blue);
	background: transparent;
	border: none;
	outline: none;
	cursor: pointer;
	margin-left: auto;
    display: block;
}
.chatbox-message-submit:focus {
    outline: 0;
    box-shadow: none;
}
.chatbox-message-no-message {
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
}
.chatbox-wrapper .card-body .form-group input, .chatbox-wrapper .card-body .form-group select {
    width: 100%;
    margin-bottom: 10px;
    padding: 4px 4px;
}
.chatbox-message .btn-block {
    border: 1px solid #335dff;
    padding: 6px 12px;
    margin-top: 10px;
    transition: 0.6s all;
    cursor: pointer;
    background: transparent;
}

.chatbox-message .btn-block:hover {
    background: #335dff;
    color: #fff;
    transition: 0.6s all;
}
/* CHATBOX */


.chatbox-message.show {
    transform: scale(1);
}
.chatbox-message {
    position: absolute;
    bottom: calc(100% + 1rem);
    right: 0;
    width: 420px;
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0.5rem 0.5rem 2rem rgba(0, 0, 0, .1);
    transform: scale(0);
    transform-origin: bottom right;
    transition: .2s;
	background-color: #fff;
	padding: 20px;
}
.chatbox-message .chatbox-header {
    text-align: center;
    padding-bottom: 20px;
}

.chatbox-message .chatbox-header h4 {
    font-size: 20px;
}

footer{
	position: relative;
	/* z-index: -1; */
}

/* BREAKPOINTS */
@media screen and (max-width: 576px) {
.chatbox-message-wrapper {
    width: calc(100vw - 2rem);
}
/* .chatbox-wrapper {
    bottom: 0px;
    right: 1rem;
    width: 3.5rem;
    height: 3.5rem;
}                                               
.chatbox-wrapper .unreadMsg {
    top: -16px;                                           
}           */
}
@media screen and (max-width: 480px) {
.chatbox-message{
    width: 290px;
    padding: 9px;
}
.chatbox-message .chatbox-header h4 {
    font-size: 18px;
}

}
@media screen and (max-width: 420px) {
.chatbox-message-status {
    max-width: 150px;
}
.visitorChat .rate{
    bottom: -6px;
}
}
@media screen and (max-width: 364px) {
.chatbox-message-status {
    max-width: 120px;
}

}
/* BREAKPOINTS */
.joinText{

	text-align: center;
	color: #a7a7a7;
	font-size: 12px;
	font-style: italic;
	
}

.visitorChat .rate i.fa-thumbs-up:hover, .visitorChat .rate i.fa-thumbs-up.active {
    background: #08861f;
}

.visitorChat .rate i.fa-thumbs-down:hover, .visitorChat .rate i.fa-thumbs-down.active {
    background: #ff0000;
}

