/* ============================================================
   GETACO FEEDBACK SYSTEM
============================================================ */

.feedback-container {

    position: fixed;

    top: 20px;
    right: 20px;

    z-index: 999999;

    display: flex;
    flex-direction: column;

    gap: 12px;

    width: 390px;
    max-width: calc(100vw - 32px);

    pointer-events: none;

}


/* ============================================================
   FEEDBACK CARD
============================================================ */

.feedback {

    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, .10);

    position: relative;

    display: flex;
    align-items: flex-start;

    gap: 13px;

    width: 100%;
    box-sizing: border-box;

    padding: 15px 15px 17px 15px;

    background: rgba(255, 255, 255, .97);

    border: 1px solid rgba(15, 23, 42, .08);

    border-left: 4px solid var(--accent);

    border-radius: 16px;

    box-shadow:
        0 20px 45px rgba(15, 23, 42, .14),
        0 4px 12px rgba(15, 23, 42, .06);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    overflow: hidden;

    pointer-events: auto;

    animation:
        feedbackSlideIn .38s cubic-bezier(.22, .61, .36, 1)
        forwards;

}


/* ============================================================
   ICON
============================================================ */

.feedback-icon {

    position: relative;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: var(--accent-soft);

    color: var(--accent);

}


/* Icon circle */

.feedback-icon::before {

    content: "";

    width: 18px;
    height: 18px;

    border: 2px solid currentColor;

    border-radius: 50%;

    box-sizing: border-box;

}


/* ============================================================
   ICON SYMBOL
============================================================ */

.feedback-icon span {

    position: absolute;

    font-size: 11px;

    font-weight: 800;

    line-height: 1;

}


/* ============================================================
   CONTENT
============================================================ */

.feedback-content {

    flex: 1;

    min-width: 0;

    padding-top: 1px;

}


.feedback-title {

    margin: 0 0 4px;

    color: #0f172a;

    font-family: "Poppins", sans-serif;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.3;

}


.feedback-message {

    margin: 0;

    color: #64748b;

    font-family: "Poppins", sans-serif;

    font-size: 13px;

    font-weight: 400;

    line-height: 1.55;

    overflow-wrap: anywhere;

}


/* ============================================================
   CLOSE BUTTON
============================================================ */

.feedback-close {

    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: -2px;

    border-radius: 8px;

    color: #94a3b8;

    font-size: 20px;
    font-weight: 400;

    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;

}


.feedback-close:hover {

    background: #f1f5f9;

    color: #0f172a;

    transform: scale(1.05);

}


.feedback-close:active {

    transform: scale(.92);

}


/* ============================================================
   PROGRESS BAR
============================================================ */

.feedback-progress {

    position: absolute;

    left: 0;
    bottom: 0;

    height: 3px;

    width: 100%;

    background: var(--accent);

    transform-origin: left center;

    animation: feedbackProgress linear forwards;

}


/* ============================================================
   SUCCESS
============================================================ */

.feedback.success {

    --accent: #16a34a;

    --accent-soft: rgba(22, 163, 74, .10);

}


/* ============================================================
   ERROR
============================================================ */

.feedback.error {

    --accent: #dc2626;

    --accent-soft: rgba(220, 38, 38, .10);

}


/* ============================================================
   WARNING
============================================================ */

.feedback.warning {

    --accent: #d97706;

    --accent-soft: rgba(217, 119, 6, .11);

}


/* ============================================================
   INFO
============================================================ */

.feedback.info {

    --accent: #2563eb;

    --accent-soft: rgba(37, 99, 235, .10);

}


/* ============================================================
   ANIMATIONS
============================================================ */

@keyframes feedbackSlideIn {

    from {

        opacity: 0;

        transform:
            translate3d(35px, 0, 0)
            scale(.97);

    }

    to {

        opacity: 1;

        transform:
            translate3d(0, 0, 0)
            scale(1);

    }

}


@keyframes feedbackSlideOut {

    from {

        opacity: 1;

        transform:
            translate3d(0, 0, 0)
            scale(1);

    }

    to {

        opacity: 0;

        transform:
            translate3d(35px, 0, 0)
            scale(.97);

    }

}


@keyframes feedbackProgress {

    from {

        transform: scaleX(1);

    }

    to {

        transform: scaleX(0);

    }

}


.feedback.hide {

    animation:
        feedbackSlideOut .28s
        cubic-bezier(.4, 0, .2, 1)
        forwards;

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 600px) {

    .feedback-container {

        top: 12px;

        right: 12px;
        left: 12px;

        width: auto;

        max-width: none;

        gap: 10px;

    }


    .feedback {

        padding: 14px 13px 16px 13px;

        border-radius: 14px;

    }


    .feedback-icon {

        width: 36px;
        height: 36px;

        flex-basis: 36px;

    }


    .feedback-title {

        font-size: 13px;

    }


    .feedback-message {

        font-size: 12.5px;

    }

}