/* Loader */

.loader {
	width: 50px;
	aspect-ratio: 1;
	--c: no-repeat radial-gradient(farthest-side, #514b82 92%, #0000);
	background: var(--c) 50% 0, var(--c) 50% 100%, var(--c) 100% 50%,
		var(--c) 0 50%;
	background-size: 10px 10px;
	animation: l18 1s infinite;
	position: relative;
}
.loader::before {
	content: '';
	position: absolute;
	inset: 0;
	margin: 3px;
	background: repeating-conic-gradient(#0000 0 35deg, #514b82 0 90deg);
	-webkit-mask: radial-gradient(
		farthest-side,
		#0000 calc(100% - 3px),
		#000 0
	);
	border-radius: 50%;
}
@keyframes l18 {
	100% {
		transform: rotate(0.5turn);
	}
}

#djpChatWidget {
    right: 14px;
    bottom: 20px;
    margin-bottom: -1px;
    z-index: 9998;
    border: none;
    position: fixed;
}

#djpChatWidget #messenger-button {
    position: absolute;
}

.chat-screen .wizard-card .choice {
	margin-bottom: 12px;
}
.chat-screen .msg-welcome p.p-djp {
    padding-bottom: 8px !important;
}

.chat-screen .chat-mail .select2 .selection .select2-selection .select2-selection__rendered,
.chat-screen .chat-relog .select2 .selection .select2-selection .select2-selection__rendered {
    height: 38px;
    line-height: normal;
    white-space: nowrap;
}

/* Error */
.chat-screen .widget-container {
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: #fff;
    border-radius: 0 0 15px 15px;
}

.chat-screen .widget-container .widget-icon {
    text-align: center;
}

.chat-screen .widget-container .widget-title {
    font-weight: bold;
    text-align: center;
    padding: 12px 0;
    color: #282828;
    font-size: 18px;
}

.chat-screen .widget-container .widget-content {
    text-align: center;
    padding-bottom: 36px;
}

/* Language */
.chat-screen .chat-lang {
	padding: 30px;
	display: block;
	background: #fff;
	border-radius: 0 0 15px 15px;
}
.chat-screen .chat-lang button {
	border: none;
	padding: 10px 20px;
	transition: transform 0.5s ease;
}
.chat-screen .chat-lang .title-desc {
    text-align: center;
    color: #555;
    font-weight: 400;
    line-height: 1.5;
}
.chat-screen .chat-lang .title-head {
    text-align: center;
    margin-top: 12px;
}
.chat-screen .chat-lang .choose-lang {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 24px 0;
}
.chat-screen .chat-lang .choose-lang .choice {
    cursor: pointer;
}
.chat-screen .chat-lang .choose-lang .card {
    padding: 8px 24px;
}
.chat-screen .chat-lang .choose-lang .choice input[type="radio"] {
	position: absolute;
	left: -10000px;
	z-index: -1;
}
.chat-screen .chat-lang .choose-lang .choice.active .card-checkboxes {
	color: #ffc91b;
}
.chat-screen .chat-lang .btn-lang-next {
    margin-top: 10px;
}

/* Survey */
.chat-screen .chat-survey {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 16px 16px 16px 24px;
    height: calc(100vh - 180px);
    overflow-y: scroll;
    border-radius: 0 15px 15px;
    color: #555;
}
@media (min-width: 768px) and (min-height: 700px) {
    .chat-screen .chat-survey {
        max-height: 600px;
    }
}

.chat-screen .chat-survey .header-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 16px;
}

.chat-screen .chat-survey .question-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding-left: 1.2em;
}

.chat-screen .chat-survey .survey-question {
    display: list-item;
    list-style-type: decimal;
}

.chat-screen .chat-survey .question-text span {
    color: red;
    font-size: 0.8em;
    vertical-align: super;
    padding-left: 0.2em;
}

.chat-screen .chat-survey .question-options {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    /* padding-left: 19px; */
}

.chat-screen .chat-survey .question-options label {
    flex-grow: 1;
}

.chat-screen .chat-survey .question-answer {
    display: flex;
    padding-top: 0.2em;
}

.chat-screen .chat-survey .question-answer.rating {
    justify-content: center;
    line-height: normal;
}

.chat-screen .chat-survey .answer-text {
    flex-grow: 1;
}

.chat-screen .chat-survey .p-survey {
    margin: 12px 0 0 0;
    font-family: 'Helvetica', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
}

.chat-screen .chat-survey .button-wrapper {
    padding-top: 2em;
}

.chat-screen .chat-survey button {
	border: none;
	padding: 10px 20px;
	transition: transform 0.5s ease;
}

/* Session End */
.chat-screen .chat-session-end {
	padding: 30px 50px;
}

/* Sweetalert2 */
div:where(.swal2-container) div:where(.swal2-popup) {
    font-size: 14px;
}
.swal2-toast h2:where(.swal2-title) {
    line-height: normal;
}