/* AI Assistant Popup */
/*-------------------------------------------------*/
.popup__wrapper.popup__wrapper-custom {
    display: flex;
    bottom: 0;
    opacity: 1;
    z-index: 1000;
}

.popup__wrapper-custom .popup-container {
    display: flex;
    flex-direction: column;
    position: absolute;
    align-items: end;
    bottom: 15px;
    right: 0;
    gap: 15px;
}

.popup__wrapper-custom .assist-wrapper {
    display: flex;
    position: relative;
    right: 10px;
    align-items: end;
    pointer-events: all;
}

.popup__wrapper-custom .assist-wrapper .dialogue-wrapper {
    background-image: url("/images/ai-assist/electronic-pattern.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.15);
	width: calc(100vw - 100px);
    max-width: 250px;
    position: relative;
    margin-right: 15px;
    padding: 10px;
	transition: width .3s ease-in-out;
}

.popup__wrapper-custom a.close-circle:link,
.popup__wrapper-custom a.close-circle:visited,
.popup__wrapper-custom a.close-circle:active {
    background-color: #FFF;
    border-radius: 20px; 
    color: #AAA;
    display: flex;
    font-size: 28px;
    height: 24px;
    width: 24px;
    position: absolute;
    align-items: center;
    justify-content: center;
    top: -12px;
    right: -12px;
	z-index: 3;
	text-shadow: none;
	opacity: unset;
}

.popup__wrapper-custom a.close-circle:hover {
	color: #cfcfcf;
}

.popup__wrapper-custom .assist-wrapper p {
    color: #555;
    margin-top: 0;
    margin-bottom: 5px;
}

.popup__wrapper-custom .assist-wrapper .btn-wrapper {
    display: flex;
    width: 100%;
    justify-content: end;
}

.popup__wrapper-custom .assist-wrapper a.btn--try-assist,
.popup__wrapper-custom .assist-wrapper a.btn--try-assist:link,
.popup__wrapper-custom .assist-wrapper a.btn--try-assist:visited {
    background: linear-gradient(90deg, #5E90FB 0%, #B697FF 100%);
	border: 0;
	color: #FFF;
	font-size: 14px;
}

.popup__wrapper-custom .assist-wrapper a.btn--try-assist:hover {
	background: linear-gradient(90deg, #7fa6fb 0%, #cdb7ff 100%);
}

.popup__wrapper-custom .assist-wrapper .assist-img img,
.popup__wrapper-custom .assist-wrapper .assist-avator img {
    display: block;
    width: 100%;
}

.popup__wrapper-custom .assist-wrapper .assist-img {
    display: none;
    width: 50px;
    cursor: pointer;
}

.popup__wrapper-custom .assist-wrapper .assist-avator {
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    width: 50px;
    position: relative;
    cursor: pointer;
}

.popup__wrapper-custom .avator-bg,
.popup__wrapper-custom .avator-bg-glow {
    border-radius: 50px;
    height: 50px;
    width: 50px;
    position: absolute;
    overflow: hidden;
    z-index: 0;
}

.popup__wrapper-custom .avator-bg-glow {
    filter: blur(2px);
}

.popup__wrapper-custom .avator-bg:before,
.popup__wrapper-custom .avator-bg-glow:before {
    content: '';
    z-index: -2;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    position: absolute;
    width: 99999px;
    height: 99999px;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-image: conic-gradient(rgba(255, 255, 255, 0), #c8b0ff 15%, #986CFF, #3273FF 50%, #74a0ff 65%, rgba(255, 255, 255, 0) 75%);
    animation: avator-rotate 4s linear infinite;
}

.popup__wrapper-custom .avator-bg:after {
	content: '';
	position: absolute;
	z-index: -1;
	left: 4px;
	top: 4px;
	width: calc(100% - 8px);
	height: calc(100% - 8px);
	background: var(--bg);
	border-radius: 50px;
}

@keyframes avator-rotate {
	100% {
		transform: translate(-50%, -50%) rotate(1turn);
	}
}

.popup__wrapper-custom .assist-wrapper .assist-avator-body {
    background-color: #FFF;
    border-radius: 50px;
    display: flex;
    position: absolute;
    width: 46px;
    height: 46px;
    top: 2px;
    left: 2px;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.popup__wrapper-custom .sticky-back-to-top:link,
.popup__wrapper-custom .sticky-back-to-top:visited {
    position: relative;
    bottom: unset;
}


@media (min-width: 992px) {
	/* AI Assistant Popup */
    .popup__wrapper-custom .assist-wrapper {
        position: unset;
    }

    .popup__wrapper-custom .assist-wrapper .assist-img {
        display: block;
    }

    .popup__wrapper-custom .assist-wrapper .assist-avator {
        display: none;
    }
}
