@font-face {
    font-family: "Norms";
    src: url("../assets/fonts/TT-Norms-Fonts/TTNorms-Regular.otf");
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Norms Bold";
    src: url("../assets/fonts/TT-Norms-Fonts/TTNorms-Bold.otf");
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Norms SemiBold";
    src: url("../assets/fonts/TT-Norms-Fonts/TTNorms-Medium.otf");
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Norms Light";
    src: url("../assets/fonts/TT-Norms-Fonts/TTNorms-Light.otf");
    font-style: normal;
    font-display: swap;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

*{
    box-sizing: border-box;
}

.main-content {
    display: flex;
    flex-direction: column;
    /* padding-top: 10rem; */
    box-sizing: border-box;
    justify-content: center;
}

.main-content {
    width: 100%;
    height: 100%;
}

@media only screen and (max-width: 480px) {
    .offcanvas {
        width: 100% !important;
    }
    *{
        overscroll-behavior: none;
        /* overflow: auto; */
    }
}

.offcanvas-body {
    padding: 0;
    overflow: hidden;
}

/* .chat-section {padding: var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x); overflow-y: auto; height: 90%;} */
.chatbox {
    position: relative;
    padding: 0.5rem 1rem;
    margin: 1.25rem 0.25rem 0.5rem;
    background-color: #ddd;
    word-wrap: break-word;
    max-width: 97%;
    font-size: 14px;
    box-sizing: border-box;
    /* border: 1px solid #dfdfdf; */
    font-family: "Norms";
    clear: both;
    display: block;
    overflow-x: hidden;
}

.chatbox a {
    word-break: break-word;
    color: #fff !important;
    text-decoration: underline;
}

.chatbox .table-container {
    overflow-x: auto;
    margin: 0 -0.5rem;
}

.chatbox .timestamp {
    position: absolute;
    top: -1.2rem;
    right: 0;
    font-size: 0.8rem;
}

.chatbox-left {
    float: left;
    border-radius: 1rem 1rem 1rem 0;
    background-color: #ffffff18;
    color: rgb(255 255 255 / 79%);
}

.chatbox-left .timestamp {
    right: initial;
    left: 0;
}

.chatbox.rounded {
    border-radius: 1rem;
    max-width: initial;
}

.chatbox-right {
    float: right;
    border-radius: 1rem 1rem 0 1rem;
    background-color: #3B3B3B33;
    color: #FFF;
}

.input-section {
    /* position: absolute; */
    bottom: 0;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    /* background-color: #fff; */
}

.chat-section::after
{
    position: relative;
    display: block;
    content: "";
    clear: both;
}

#ai_query {
    border-color: #ffffff;
    background-color: transparent;
    color: #fff;
}
#ai_query:disabled{
    opacity: 0.7;
}

#ai_query:focus {
    /* border-color: #70CACB; */
    box-shadow: inset 0 1px 1px rgba(112, 202, 203, 0.075), 0 0 16px rgba(112, 202, 203, 0.6);
}

.intro-banner {
    display: inline-block;
    /* display: flex; */
    overflow-x: scroll;
    overflow-y: hidden;
    /* height: 250px; */
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin-bottom: 20px;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
    gap: 2rem;
}

.intro-banner::-webkit-scrollbar {
    display: none;
}

.intro-banner .banner {
    position: relative;
    display: inline-block;
    /* margin-right: 5px; */
    height: 100%;
    flex: 1 0;
    flex-basis: 25%;
    width: calc((100% - 4rem) / 3);
    aspect-ratio: calc(214/120);
    /* width: 10000px; */
    margin: 0 1rem;
}
.intro-banner .banner:nth-child(1)
{
    margin-left: 0;
}

.intro-banner .banner>img {
    height: 100%;
    border-radius: 1rem;
    pointer-events: none;
    width: 100%;
    object-fit: cover;
    object-position: top;
}

.intro-banner .banner a {
    position: absolute;
    display: block;
    width: 100px;
    bottom: 5%;
    right: 5%;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    cursor: pointer;
}

.intro-banner .banner a img {
    width: 100%;
}

.iframe-container {
    /* padding-top: 130%; */
    position: relative;
    width: 400px;
    height: 640px;
    margin: auto;
    max-width: 100%;
    max-height: 75vh;
    transition: max-height 1.5s;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.offcanvas-backdrop.show {
    opacity: 0.8;
}

.chat-suggestion {
    border-radius: 15px;
    width: 100%;
}

.agreement-body {
    margin: 0 20px;
}

.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: #70CACB;
    --bs-btn-border-color: #70CACB;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #70CACB;
    --bs-btn-hover-border-color: #70CACB;
    --bs-btn-focus-shadow-rgb: 60, 153, 110;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #70CACB;
    --bs-btn-active-border-color: #70CACB;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #70CACB;
    --bs-btn-disabled-border-color: #70CACB;
}

.main-container {
    height: 100%;
    width: 100%;
    position: relative;
    display: block;
    padding: 0;
    margin: 0;
    background-image: url(../assets/images/bg_ai_analizer.png);
    /* background-image: url(../assets/images/bg_full.png); */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
}

.main-content {
    position: relative;
    width: 100%;
    /* max-width: 800px; */
    margin: auto;
}

.main-logo {
    display: block;
}

.main-body {
    display: block;
    /* min-height: 360px; */
}

#knowledge_container .main-body
{
    overflow: auto;    
    max-width: 800px;
    left: 50%;
    transform: translateX(-50%);
}

#ai_query::placeholder {
    color: #ffffff90;
    font-style: italic;
    font-size: 13px;
}

#ai_query {
    border-radius: 0.5rem;
    min-height: 3rem;
    max-height: 3rem;
    border: 1px solid #ffffff;
    /* color: black; */
    width: 100%;
    font-size: 1rem;
    padding: 0.5rem 14px;
    flex: 1;
    box-sizing: border-box;
    outline: none;
}

#ai_chat_form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    place-content: center;
    place-items: center;
    position: relative;
}

#ai_submit {
    height: 1.5rem;
    aspect-ratio: 1;
    flex: 0 0;
    flex-basis: 2.5rem;
    border: 0;
    outline: none;
    appearance: none;
    border-radius: 50%;
    background-image: url(../assets/images/submit_arrow.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-color: #ffffff;
    position: absolute;
    right: 10px;
    bottom: 27%;
}

#ai_query[readonly]+ #ai_submit {
    background-image: url(../assets/images/padlock.png);
    border: 0;
    background-color: transparent;
    border-radius: 0;
    filter: invert(1);
    bottom: 16%;
}

#ai_submit:disabled{
    opacity: 0.7;
}

.main-logo {
    display: block;
    margin: auto;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 320px;
    height: 4rem;
    /* background-image: url(../assets/images/logo_wardah_ai.png); */
    /* background-image: url(../assets/images/logo_aiexpert.png); */
    background-image: url(../assets/images/wardah_ai_expert_logo_beta.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}


@keyframes ldio-yzaezf3dcmj {
    0% {
        opacity: 1
    }

    100% {
        opacity: 0
    }
}

.ldio-yzaezf3dcmj div {
    left: 29px;
    top: 10px;
    position: absolute;
    animation: ldio-yzaezf3dcmj linear 1s infinite;
    background: #ffffff;
    width: 2px;
    height: 10px;
    border-radius: 2px;
    transform-origin: 1px 20px;
}

.ldio-yzaezf3dcmj div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -0.875s;
    background: #ffffff;
}

.ldio-yzaezf3dcmj div:nth-child(2) {
    transform: rotate(45deg);
    animation-delay: -0.75s;
    background: #ffffff;
}

.ldio-yzaezf3dcmj div:nth-child(3) {
    transform: rotate(90deg);
    animation-delay: -0.625s;
    background: #ffffff;
}

.ldio-yzaezf3dcmj div:nth-child(4) {
    transform: rotate(135deg);
    animation-delay: -0.5s;
    background: #ffffff;
}

.ldio-yzaezf3dcmj div:nth-child(5) {
    transform: rotate(180deg);
    animation-delay: -0.375s;
    background: #ffffff;
}

.ldio-yzaezf3dcmj div:nth-child(6) {
    transform: rotate(225deg);
    animation-delay: -0.25s;
    background: #ffffff;
}

.ldio-yzaezf3dcmj div:nth-child(7) {
    transform: rotate(270deg);
    animation-delay: -0.125s;
    background: #ffffff;
}

.ldio-yzaezf3dcmj div:nth-child(8) {
    transform: rotate(315deg);
    animation-delay: 0s;
    background: #ffffff;
}

.loadingio-spinner-spinner-2by998twmg8 {
    width: 60px;
    height: 60px;
    display: inline-block;
    overflow: hidden;
    background: none;
}

.ldio-yzaezf3dcmj {
    width: 100%;
    height: 100%;
    position: relative;
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    transform-origin: 0 0;
    /* see note above */
}

.ldio-yzaezf3dcmj div {
    box-sizing: content-box;
}

.chat-guidelines p {
    color: rgb(255 255 255 / 79%);
    font-family: "Norms";
    text-align: center;
    max-width: 440px;
    margin: auto;
    margin-bottom: 2rem;
}

#chat-container {
    overflow: auto;
    overflow-x: hidden;
    height: 100%;
    max-height: 90%;
}
.chat-section
{
    position: relative;
    margin: auto;
    width: 75%;
    max-width: 800px;
    margin-bottom: 23px !important;
}
/* .top #chat-container
{ */
    /* padding-right: 1rem; */
/* } */
.top #chat-container
{
    position: relative;
}

.chat-section,
.input-section {
    display: none;
    width: 75%;
    margin: auto;
    max-width: 800px;
}

/* width */
#chat-container::-webkit-scrollbar {
    width: 4px;
    position: relative;
    margin-right: -1rem;
}

/* Track */
#chat-container::-webkit-scrollbar-track {
    background: #f1f1f180;
    border-radius: 1rem;
}

/* Handle */
#chat-container::-webkit-scrollbar-thumb {
    background: #359cb160;
    border-radius: 1rem;
}

/* Handle on hover */
#chat-containern::-webkit-scrollbar-thumb:hover {
    background: #55555590;
}

.clearfix {
    clear: both;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.main-header .main-logo {
    margin: 2rem;
    max-width: 240px;
}

.top.inframe .main-header .main-logo {
    margin-left: auto;
}

.top .main-body {
    height: 90%;
    max-height: 90%;
    height: calc(100% - 108px);
    display: block;
    position: absolute;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;

}

.top .input-section {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.top #chat-container {
    /* height: 100%; */
    /* display: flex;
    flex-direction: column-reverse; */
    height: calc(100% - 5rem);
    width: calc(100% - 4px);
    /* place-content: end; */
    box-sizing: border-box;
    /* margin: 0 1rem; */
}

.top .main-content {
    padding-top: 0;
}

.chat-section {
    font-family: "Norms";
}

.chat-section strong {
    font-family: "Norms Bold";
    font-weight: initial;
}

.chat-section tr {
    position: relative;
}

.chat-section thead th,
.chat-section tr,
.chat-section td {
    text-align: left;
    font-size: 0.8rem;
}

.chat-section thead th {
    padding: 0.25rem;
    white-space: nowrap;
}

.chat-section td {
    padding: 0.25rem;
}

.chat-section thead tr::before,
.chat-section tbody tr::before {
    content: "";
    height: 2px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #ffffff00, #ffffff, #ffffff00);
}

.chat-section tbody tr::before {
    height: 1px;
    background: linear-gradient(to right, #ffffff00, #ffffff80, #ffffff00);
}

.chat-section tbody tr:last-child::before {
    opacity: 0;
}

.product-info {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.product-info>a {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    appearance: none;
    border: none;
    outline: none;
    z-index: 2;
}

.chatbox-product-image {
    flex: 1;
    max-width: 24%;
}

.chatbox-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-details {
    flex: 1;
}

.product-title {
    font-size: 1.5rem;
    color: rgb(255 255 255 / 79%);
    font-family: "Norms SemiBold";
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.product-ingredients,
.product-description {
    margin: 1rem 0;
    text-transform: capitalize;
    font-family: "Norms";
    font-size: 0.8rem;

    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.product-ingredients p,
.product-description p{
    margin: 0;
}

.product-ingredients:nth-last-child(1),
.product-description:nth-last-child(1) {
    margin-bottom: 0;
}

@media(max-height:768px) and (min-width:640px) {
    .main-content {
        display: flex;
        align-items: center;
        /* position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
        padding: 0;
        height: 100%;
        justify-content: center;
        flex-direction: column;
    }

    .top.main-content {
        position: relative;
        top: initial;
        left: initial;
        transform: none;

        width: 100%;
        height: 100%;
    }
}

@media(max-width:640px) or (max-height:640px) {
    body{
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
    }
    
    #ai_submit
    {
        right: 1rem;
    }
    .main-content {
        padding-top: 0;
        height: 100%;
    }

    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    .main-header .main-logo {
        max-height: 3rem;
        height: 100%;
        margin: 1rem;
        max-width: 240px;

        left: 50%;
        transform: translateX(-50%);
        position: absolute;
    }

    .top.main-content {
        width: 100%;
    }
    .top #chat-container
    {
        padding: 0;
    }


    .chat-guidelines {
        position: fixed;
        left: 50%;
        top: 50%;
        width: 80%;
        transform: translate(-50%, -50%);
    }

    .main-header .main-logo {
        max-height: 3rem;
        margin: 2rem 0;
        max-width: 240px;
        /* background-position: left; */
    }

    .inframe .main-header .main-logo {
        margin-left: auto;
    }

    .main-body {
        height: 90%;
        max-height: 90%;
        height: calc(100% - 108px);
        display: flex;
        position: absolute;
        bottom: 0;
        width: 100%;
    }

    .input-section {
        position: absolute;
        bottom: 0;
        padding: 20px 0;
        width: 100%;
    }

    .chat-section {
        /* height: 100%; */
        /* height: calc(100% - 5rem); */
        width: 100%;
        /* width: calc(100% - 2rem); */
        place-content: start;
    }

    .top #chat-container {
        place-content: initial;
    }

    .main-content {
        padding-top: 0;
        /* width: 85%; */
    }

    .chat-section{
        width: 85%;
    }

    .intro-banner {
        /* display: table; */
        /* height: 200px; */
        margin-bottom: 0;
    }

    .intro-banner .banner {
        flex-basis: 45%;
        width: 40%;
        margin-right: 1rem;
        margin-left: 0;
        display: inline-block;
    }

    .intro-banner .banner a img {
        display: none;
    }

    .intro-banner .banner a {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: initial;
        height: initial;
    }
    .top .input-section{
        
position: sticky;
        
bottom: 0;
        
/* left: 50%; */
        
/* transform: translateX(-50%); */
        
left: 0;
        
transform: unset;
    }
}

@media (max-width:400px) {
    .intro-banner .banner {
        width: auto;
        height: 120px;
    }
}

.login-box {
    display: none;
    background-color: white;
    min-height: 10rem;
    padding: 1rem;
    width: 100%;
    text-align: center;
}

.ai_login_form {
    position: relative;
    width: 30%;
}

.login-input-box {
    position: relative;
    margin-bottom: 0.25rem;
}

.login-box input[type=text],
.login-box input[type=password] {
    outline: none;
    border: none;
    border-bottom: 1px solid #dddddd;
    padding-top: 1rem;
    padding-bottom: 0.25rem;
    height: 1.5rem;
    font-family: "Norms";
    font-size: 0.8rem;
}

.login-box input~label {
    position: absolute;
    left: 0;
    top: 0;
    color: #000000cc;
    font-family: "Norms";
    font-size: 0.8rem;
}

.login-input-box input,
.login-input-box label {
    width: 100%;
}

.login-guidance {
    font-family: "Norms";
    font-size: 0.6rem;
    color: #00000044;
}

.login-forgot-pass {
    display: block;
    font-family: "Norms";
    color: #70CACB;
    font-size: 0.65rem;
    margin: 0.5rem 0;
}

.login-box input[type='submit'] {
    display: block;
    width: 100%;
    padding: 0.5rem;
    text-align: center;
    color: rgb(255 255 255 / 79%);
    background-color: #70CACB;
    appearance: none;
    border: none;
    outline: none;
}

#ai_login_form {
    width: 30%;
    float: right;
}

.agreement-container.hidden
{
    display: none!important;
}

.agreement-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    display: block;
    padding: 0;
    margin: 0;
    z-index: 99;

}
.agreement-overlay
{
    width: 100%;
    height: 100%;
    z-index: 6;
    background-color: #00000099;
}
.agreement-box 
{
    font-size: 14px;
    font-family: "Norms";
    height: 388px;
    width: 360px;
    max-width: 100%;
    max-height: 100%;
    padding: 1.7rem;
    border-radius: 1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    background-image: url(../assets/images/bg_ai_analizer.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    transform: translate(-50%, -50%);
    z-index: 9;
    box-sizing: border-box;
    color: rgb(255 255 255 / 79%);
}

.agreement-container button {
    appearance: none;
    background-color: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}
.agreement-title {
    color: rgb(255 255 255 / 79%);
    font-family: "Norms";
    text-align: center;
    font-weight: 700;
    font-size: 1.1;
    position: absolute;
    top: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}
.agreement-accept-container
{
    align-items: start;
    /* position: relative; */
    display: flex;
    /* padding-left: 24px; */
    /* height: 100%; */
    gap: 3px;
    padding-top: 4rem;
}
.agreement-content{
    font-size: 13px;
}

.agreement-content a{
    color: inherit;
    /* font-style: italic; */
    text-decoration: underline;
}
#agreement-accept{
}
.agreement-container button.agreement-cancel-btn
{
    position: absolute;
    width: 24px;
    background-image: url(../assets/images/back.png);
    background-size: 100% auto;
    background-repeat: no-repeat;
    top: 1rem;
    left: 1rem;
    aspect-ratio: 1;
}

.agreement-container button.agreement-next-btn
{
    position: absolute;
    color: #18869d;
    background-color: #ffffff;
    bottom: 1rem;
    padding: 1rem;
    width: calc(100% - 2rem);
    border-radius: 0.5rem;
    text-align: center;
    font-weight: bold;
    left: 50%;
    transform: translateX(-50%);
}
#agreement-accept ~ .agreement-next-btn {
    pointer-events: none;
    opacity: 0.5;
}

#agreement-accept:checked ~ .agreement-next-btn {
    pointer-events: initial;
    opacity: 1;
}

.agreement-guidance
{
    /* top: -1.8rem; */
    font-size: 11px;
    width: 100%;
    /* left: 0; */
    /* right: 0; */
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    color: #ffffff;
}
.agreement-guidance p {
    margin: 0;
}
.agreement-guidance button{
    /* position: absolute; */
    appearance: none;
    border: none;
    background: none;
    text-align: right;
    /* top: 0;
    left: 0;
    right: 0; */
    z-index: 2;
    font-size: 11px;
    color: rgb(255 255 255 / 79%);
    outline: none;
    text-decoration: underline;
}

.input-section {
    padding: 20px 20px 20px 20px;
    /* border-radius: 14px; */
    background-color: #1b8a9dbf;
}
@media(max-width: 480px)
{
    .agreement-box {
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        transform: none;
        width: auto;
        height: auto;
        border-radius: 0;
    }

    .input-section {
        padding: 20px 20px 20px 20px;
        background-color: #1b8a9dbf;
        border-radius: 0;
    }
}