.support-main {
    width: 100%;
    height: calc(100vh - 65px);
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-bg);
}

.support-page-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    max-width: 750px;
}

.support-section-header {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    box-shadow: 0px 2px 4px rgba(10, 10, 10, 0.1) ;
}
.support-section-header p {
    font-size: clamp(12px, 1.8vw, 14px);
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    text-align: right;
    transition: margin-right 0.3s ease;
}
.support-section-header img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    pointer-events: none;
    user-select: none;
}
.online-ticker {
    position: absolute;
    left: 7px;
    top: 7px;
    width: 10px;
    height: 10px;
    border: 2px solid white;
    border-radius: 50%;
    background-color: green;
}

.support-section-title-back {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.support-section-title-back img {
    width: 19px;
    height: 19px;
    right: 10px;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.support-section-title-back.active img {
    opacity: 1;
    pointer-events: auto;
}



.faq-category-section, .faq-question-section, .online-support-section {
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: calc(100% - 55px);
    position: absolute;
    left: 0;
    top: 55px;
    opacity: 0;
    z-index: -600;
}
.faq-category-section.show, .faq-question-section.show, .online-support-section.show {
    display: flex;
    opacity: 1;
    z-index: 600;
}

.faq-category-selection-container, .faq-question-list-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    overflow-y: hidden;
}

.faq-category-selection {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
}

.faq-category-selection-title {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 16px 0;
}
.faq-category-selection-title p {
    font-size: clamp(13px, 1.4vw, 15px);
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    text-align: center;
}

.faq-category-selection-drop-btn {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: #F5F5F5;
    border-radius: 999px;
    height: 42px;
    padding: 4px 20px;
    box-sizing: border-box;
    cursor: pointer;
}
.faq-category-selection-drop-btn p {
    font-size: clamp(12px, 1.4vw, 14px);
    font-weight: 500;
    color: var(--color-text);
    margin: 0;
    text-align: right;
}
.faq-category-selection-drop-btn img {
    width: 15px;
    height: 15px;
    pointer-events: none;
    user-select: none;
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
}

.faq-category-selection-dropdown {
    position: absolute;
    left: 1%;
    top: calc(100% + 0px);
    width: 98%;
    border: 1px solid var(--color-border);
    box-shadow: 0 0 4px rgba(10, 10, 10, 0.1);
    opacity: 0;
    z-index: -600;
    border-radius: 10px;
    background-color: #FFFFFF;
    padding: 8px;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
}
.faq-category-selection-dropdown.show {
    opacity: 1;
    z-index: 600;
}

.faq-category-selection-dropdown-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px 8px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}
.faq-category-selection-dropdown-item p {
    font-size: clamp(12px, 1.4vw, 14px);
    font-weight: 500;
    color: var(--color-text);
    margin: 0;
    text-align: right;
}
.faq-category-selection-dropdown-item:last-child {
    border-bottom: none;
}
.faq-category-selection-dropdown-item.active {
    background-color: var(--color-bg-soft);
}
.faq-category-selection-dropdown-item:hover {
    background-color: var(--color-bg-soft);
}

.faq-category-selection-btn, .faq-goto-online-chat-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    background-color: var(--color-primary);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.faq-category-selection-btn:hover, .faq-goto-online-chat-btn:hover {
    background-color: var(--color-primary-hover);
}
.faq-category-selection-btn p, .faq-goto-online-chat-btn p {
    font-size: clamp(13px, 1.4vw, 15px);
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
    text-align: center;
}

.faq-goto-online-chat-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FFFFFF;
    padding: 0 0 16px 0;
    width: 100%;
}


.faq-question-list-search-container {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.faq-question-list-search-container input {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: #F5F5F5;
    border-radius: 999px;
    height: 42px;
    padding: 4px 20px 4px 45px;
    border: none;
    box-sizing: border-box;
    font-family: "PeydaWebVF", serif;
    transition: background-color 0.3s ease;
}
.faq-question-list-search-container input:focus {
    outline: none;
    background-color: #F2F2F2;
}
.faq-question-list-search-container img {
    position: absolute;
    left: 20px;
    top: calc(50% - 6px);
    width: 12px;
    height: 12px;
    pointer-events: none;
    user-select: none;

}

.faq-question-list-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.faq-question-list-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-top: 16px;
}

.faq-question-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: max-content;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    width: 100%;
}

.faq-question-list-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    scroll-snap-align: start;
    width: 100%;
    flex-shrink: 0;
}

.faq-question {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
    width: 100%;
    cursor: pointer;
}

.faq-question p{
    font-size: clamp(11px, 1.4vw, 13px);
    font-weight: 500;
    text-align: right;
    margin: 0;
}
.faq-question img {
    width: 15px;
    height: 15px;
    pointer-events: none;
    user-select: none;
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
}
.faq-question.active img {
    transform: rotate(90deg);
}

.faq-answer {
    height: max-content;
    max-height: 0;
    padding: 0px 16px;
    width: 100%;
    background-color: var(--color-bg-soft);
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: max-height 0.2s ease, padding 0.3s ease;
}
.faq-answer.show {
    width: 100%;
    max-height: 1000px;
    padding: 16px;
}
.faq-answer p {
    color: var(--color-text);
    font-size: clamp(11px, 1.4vw, 13px);
    font-weight: 400;
    text-align: justify;
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.faq-answer.show p{
    opacity: 1;
}

.support-page-body-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0 90px 0;
    background-color: var(--color-bg);
}

.support-user-input-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
    background-color: #FFFFFF;
}

.support-user-input {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.support-user-input textarea {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-height: 150px;
    background-color: #F5F5F5;
    border-radius: 999px;
    height: 40px;
    padding: 6px 50px 4px 20px;
    border: none;
    resize: none;
    box-sizing: border-box;
    font-family: "PeydaWebVF", serif;
    transition: background-color 0.3s ease;
}
.support-user-input textarea:focus {
    outline: none;
    background-color: #F2F2F2;
}
.sent-support-message-btn {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3px;
    background-color: #FFFFFF;
    border-radius: 50%;
    right: 3px;
    cursor: pointer;
    top: 2px;
    width: 30px;
    height: 30px;
}
.sent-support-message-btn img {
    pointer-events: none;
    user-select: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
}


.support-message-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 16px;
    flex-shrink: 0;
}

.support-message {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    direction: rtl;
    padding: 8px;
    box-sizing: border-box;
    max-width: 100%;
    width: max-content;
}
.support-message.admin {
    background: rgba(245, 245, 245, 0.9);
    backdrop-filter: blur(40px);
    border: 1px solid var(--color-primary-hover);

}
.support-message.user {
    background: rgba(245, 245, 245, 0.9);
    backdrop-filter: blur(40px);
}
.support-message p {
    margin: 0;
    word-wrap: break-word;
    text-align: justify;
    font-size: clamp(12px, 1.4vw, 14px);
    font-weight: normal;
    max-width: 100%;
}




.close-online-support-chat-confirmation {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    border-radius: 10px 10px 0 0;
    background-color: var(--color-bg);
    height: max-content;
    z-index: -1500;
    transition: bottom 0.3s ease;
}
.close-online-support-chat-confirmation.show {
    bottom: 0;
    z-index: 1500;
}

.close-online-support-chat-confirmation-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 16px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--color-border);
}

.close-online-support-chat-confirmation-header img {
    cursor: pointer;
    user-select: none;
}
.close-online-support-chat-confirmation-header p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text)
}

.close-online-support-chat-confirmation-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    padding: 16px;
    box-sizing: border-box;
    width: 100%;
    gap: 16px;
}

.close-online-support-chat-confirmation-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.close-online-support-chat-confirmation-message p {
    margin: 0;
    font-size: clamp(12px, 1.4vw, 14px);
    font-weight: normal;
    color: var(--color-text)
}
.close-online-support-chat-confirmation-message img {
    width: 30px;
    height: 30px;
    pointer-events: none;
    user-select: none;
}

.close-online-support-chat-confirmation-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.confirm-close-online-support-chat, .cancel-close-online-support-chat {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: var(--color-bg-soft);
    border: 1px solid var(--color-primary-hover);
}
.confirm-close-online-support-chat p, .cancel-close-online-support-chat p {
    margin: 0;
    font-size: clamp(12px, 1.4vw, 14px);
    font-weight: 600;
    color: var(--color-text)
}


/* Mobile */
@media (max-width: 991.999px) {
    .support-main {
        height: calc(100vh - 133px);
    }
}