/* CSS for child theme */
.answer-send-gift-section {
    display: none; /* Alanqri told to disable this feature for a few months for now. */
}

.custom-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* Popup content */
.custom-popup-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #212121;
    color: white;
    padding: 20px 30px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-width: 450px;
    min-height: 200px;
}

/* Text in the popup */
.custom-popup-content p {
    margin: 0 0 15px;
    font-size: 16px;
    color: #ffffff;
}

/* Close button */
.custom-popup-close {
    background: #AA01FF;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 300px;
    font-size: 14px;
    min-width: 100px;
    transition: background 0.3s;
}

.custom-popup-close:hover {
    background: #DC18B7;
}

#input_1_3_dropdown {
    display: flex;
    color: white;
    flex-direction: column;
    gap: 5px;
    line-height: 20px;
    margin-top: 5px;
}

#input_1_3_dropdown li {
    background: black;
    border-radius: 7px;
    color: #dc18b7;
    padding: 10px;
}

#input_1_3_dropdown li:hover {
    color: red;
}

#gform_confirmation_message_1 {
    color: white;
}

/* CSS for Gravity Forms Toggle Field */
.gform_wrapper .toggle-anonymous input[type="checkbox"] {
    display: none;
}

.gform_wrapper .toggle-anonymous label {
    display: inline-block;
    width: 175px;
    height: 25px;
    background: #ccc;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
    margin: 0;
    padding: 5px 5px 5px 30px;
    font-size: 12px;
}

.gform_wrapper .toggle-anonymous label:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #4caf50;
    border-radius: 50%;
    transition: left 0.3s;
}

.gform_wrapper .toggle-anonymous input[type="checkbox"]:checked + label {
    background: #4caf50;
    margin: 0;
    padding: 5px 5px 5px 30px;
    width: 175px;
}

.gform_wrapper .toggle-anonymous input[type="checkbox"]:checked + label:after {
    left: 150px;
    background: #cccccc;
}

.loading-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed; /* Changed from absolute to fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999999;
}

.loading-spinner {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #AA01FF;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    z-index: 99999999;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.unanswered-count {
    color: red;
    padding: 0 5px;
    font-size: 10px;
}

.unanswered-count.header-notification-icon {
    position: absolute;
    top: -2px;
    left: 25px;
    font-size: 10px;
    padding: 1px;
    border: 0;
}

.unanswered-questions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.unanswered-question-item, #e-n-tab-content-1099422621 .follower-item {
    background-color: #000000;
    border: 1px solid #acacac;
    padding: 30px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.unanswered-question-item div, #e-n-tab-content-1099422621 .follower-item div {
    display: flex;
    color: white;
    align-items: center;
    gap: 5px;
}

.unanswered-question-item div > img, #e-n-tab-content-1099422621 .follower-item div img {
    border-radius: 50%;
    width: 32px;
}

.unanswered-question-item a {
    text-decoration: none;
    color: #dc18b7;
    font-weight: normal;
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
}

.unanswered-question-item a:hover {
    color: #AA01FF;
}

.unanswered-question-item span {
    width: fit-content;
}

.unanswered-question-item .answer-now-btn, .view-answer-btn {
    font-size: 14px;
    text-align: center;
    width: auto;
    padding: 5px 15px;
    border: 2px solid #AA01FF;
    border-radius: 300px 300px 300px 300px;
    background: #AA01FF;
    color: white;
    margin-left: 5px;
}

.unanswered-question-item .answer-now-btn:hover, .view-answer-btn:hover {
    cursor: pointer;
    border: 2px solid #DC18B7;
    color: #DC18B7;
    background: transparent;
}

/* Share post popup */
.elementor-element-bd28ad1 > div {
    background: #acacac1c;
    border-radius: 15px;
    padding: 25px;
    cursor: default;
}

.um-header {
    margin-top: 75px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .elementor-element-4bc89c8 img {
        width: 100px;
        height: auto;
    }

    .unanswered-question-item div, #e-n-tab-content-1099422621 .follower-item div {
        flex-direction: column;
        align-items: start;
    }

    .unanswered-question-item, #e-n-tab-content-1099422621 .follower-item {
        padding: 20px 10px;
    }

    .unanswered-question-item a {
        margin-top: 10px;
    }
}