/* Dialog styling */
/* Fix: Remove width:100% and height:100% from the dialog */
.feedback-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    border: none;
    background: transparent; /* Make dialog background transparent */
    box-shadow: none; /* Remove shadow from dialog */
    width: auto; /* Auto width */
    height: auto; /* Auto height */
    max-width: 90vw;
    max-height: 90vh;
    z-index: 9999;
    overflow: visible;
}

/* Dialog backdrop */
.feedback-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(2px);
}

/* When dialog is open */
.feedback-dialog[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal container - keep this as is */
.feedback-modal {
    max-width: 302px;
    width: 100%;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    margin: 0 auto;
}

/* Keep your existing styles below */
.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid transparent;
    border-image-source: linear-gradient(
        90deg,
        #ffffff 0%,
        #e0e0e0 50.5%,
        #ffffff 100%
    );
    border-image-slice: 1;
    border-image-repeat: stretch;
}

.feedback-title {
    margin: 0;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    text-align: left !important;
    color: #000 !important;
}

.feedback-modal p {
    font-size: 12px;
    font-weight: 400;
    line-height: 17px !important;
    text-align: center;
    color: #232631;
}

.feedback-modal p.heading {
    padding-top: 16px;
}

.feedback_thanks.feedback-modal p {
    font-size: 14px;
    line-height: 20px !important;
}

.close-icon {
    font-size: 20px;
    cursor: pointer;
    filter: none;
    transition: all 0.3s ease;
}

.close-icon:hover {
    filter: invert(0%) brightness(0%) contrast(150%);
}

.close_feed {
    margin-top: 16px;
}

.feedback-emojis {
    display: flex;
    justify-content: space-around;
    margin: 12px 0;
    padding: 0px 19px;
}

.feedback-emojis .emoji {
    width: 40px;
    height: 40px;
    cursor: pointer;
    filter: grayscale(100%);
    transition: transform 0.3s ease;
}

.feedback-emojis .emoji:hover {
    transform: scale(1.2);
    filter: grayscale(0%) !important;
}

.feedback-emojis .emoji.selected {
    filter: grayscale(0%) !important;
    transform: scale(1.2);
}

textarea.feedback-comment {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #ccc;
    outline: 1px solid #ccc;
    border-radius: 8px;
    resize: none;
    padding: 8px;
    font-size: 12px !important;
    line-height: 16px;
}

textarea.feedback-comment::placeholder {
    font-size: 12px;
    line-height: 16px;
}

.afterSubmitFb p {
    padding-top: 0px !important;
}

.feedbackSubmitMain {
    padding: 0 16px 24px 16px;
}

.feedbackTextMain {
    padding: 12px 16px 16px 12px;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    color: #fff;
    background-color: #fa565d;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: #f8424a;
}

/* Hide/Show states */
.d-none {
    display: none !important;
}

/* Optional: Animation for dialog */
.feedback-dialog[open] {
    animation: dialogFadeIn 0.2s ease;
}

@keyframes dialogFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
@media screen and (max-width: 576px) {
    .feedback-dialog {
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        padding: 0;
        border: none;
        background: transparent; /* Make dialog background transparent */
        box-shadow: none; /* Remove shadow from dialog */
        width: calc(100% - 32px);
        max-width: 302px;
        height: auto; /* Auto height */
        max-height: 90vh;
        z-index: 9999;
        overflow: visible;
    }
}