/* ============================================================
   Modulo Pools Survey Widget — Front Office
   ============================================================ */

.mp-survey-widget {
    --mp-bg:     #ffffff;
    --mp-text:   #333333;
    --mp-btn:    #4a90e2;
    --mp-accent: #4a90e2;

    position: fixed;
    z-index: 99999;
    width: 340px;
    max-width: calc(100vw - 24px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    background: var(--mp-bg, #ffffff);
    color: var(--mp-text, #333333);
    font-family: inherit;
    font-size: 14px;
    display: none;
    overflow: hidden;
    transition: opacity .3s, transform .3s;
    opacity: 0;
    transform: translateY(20px);
}

.mp-survey-widget.mp-visible {
    display: block;
    animation: mpSlideIn .35s ease forwards;
}

@keyframes mpSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Positions */
.mp-survey-widget.mp-pos-bottom-right  { bottom: 20px; right: 20px; }
.mp-survey-widget.mp-pos-bottom-left   { bottom: 20px; left:  20px; }
.mp-survey-widget.mp-pos-bottom-center { bottom: 20px; left: 50%; transform: translateX(-50%); }
.mp-survey-widget.mp-pos-top-right     { top: 20px; right: 20px; }
.mp-survey-widget.mp-pos-top-left      { top: 20px; left:  20px; }
.mp-survey-widget.mp-pos-top-center    { top: 20px; left: 50%; transform: translateX(-50%); }
.mp-survey-widget.mp-pos-center {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

/* Animações por tipo de posição */
.mp-survey-widget.mp-pos-top-right.mp-visible,
.mp-survey-widget.mp-pos-top-left.mp-visible   { animation: mpSlideDown .35s ease forwards; }
@keyframes mpSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mp-survey-widget.mp-pos-top-center.mp-visible {
    animation: mpSlideDownCenter .35s ease forwards;
}
@keyframes mpSlideDownCenter {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.mp-survey-widget.mp-pos-bottom-center.mp-visible {
    animation: mpSlideInCenter .35s ease forwards;
}
@keyframes mpSlideInCenter {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.mp-survey-widget.mp-pos-center.mp-visible {
    animation: mpFadeIn .35s ease forwards;
}
@keyframes mpFadeIn {
    from { opacity: 0; transform: translate(-50%, -50%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* Dark theme */
.mp-survey-widget.mp-theme-dark {
    --mp-bg:   #1e1e2e;
    --mp-text: #e0e0e0;
}

/* Header — always dark background with white text */
.mp-survey-header {
    background: var(--mp-accent, #4a90e2);
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mp-survey-title {
    font-weight: 700;
    font-size: 15px;
    flex: 1;
}

.mp-survey-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    opacity: .8;
    transition: opacity .2s;
}
.mp-survey-close:hover { opacity: 1; }

/* Body / Steps */
.mp-survey-body {
    padding: 16px;
    min-height: 80px;
    /* Force text color on body — prevents PS theme inheritance bleeding in */
    color: var(--mp-text, #333333);
}

.mp-step { display: none; }
.mp-step.mp-active { display: block; }

/* Intro */
.mp-intro-text { margin-bottom: 14px; color: inherit; }

/* Question */
.mp-question-text    { font-weight: 600; margin-bottom: 6px; color: inherit; }
.mp-question-counter { font-size: 11px; color: #999; margin-bottom: 12px; }
.mp-required         { color: #e74c3c; margin-left: 2px; }

/* Options (radio / checkbox) */
.mp-options      { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.mp-option       { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 10px; border: 1px solid #ddd; border-radius: 8px; transition: border-color .2s, background .2s; color: inherit; }
.mp-option:hover { border-color: var(--mp-accent, #4a90e2); background: rgba(74,144,226,.06); }
.mp-option input { accent-color: var(--mp-accent, #4a90e2); }
.mp-option.mp-selected { border-color: var(--mp-accent, #4a90e2); background: rgba(74,144,226,.10); font-weight: 600; }

/* Stars — hover effect is handled by JS via inline style */
.mp-stars { display: flex; gap: 6px; margin-bottom: 14px; }
.mp-star  {
    background: none; border: none; font-size: 28px; cursor: pointer;
    color: #ddd; transition: color .15s; padding: 0;
}
/* Keep selected stars gold when not hovering over the container */
.mp-stars:not(:hover) .mp-star.mp-active { color: #f5a623; }

/* NPS — nowrap + space-between para caber sempre numa linha */
.mp-nps { display: flex; flex-wrap: nowrap; justify-content: space-between; margin-bottom: 14px; }
.mp-nps-btn {
    width: 26px; height: 26px; border-radius: 50%; padding: 0;
    border: 1.5px solid var(--mp-accent, #4a90e2); background: transparent;
    color: var(--mp-text, #333333); cursor: pointer; font-size: 11px;
    transition: background .2s, color .2s; flex-shrink: 0;
}
.mp-nps-btn:hover,
.mp-nps-btn.mp-active { background: var(--mp-accent, #4a90e2); color: #fff; }

/* Text answer */
.mp-text-answer {
    width: 100%; border: 1px solid #ddd; border-radius: 8px;
    padding: 8px; font-size: 13px; resize: vertical;
    font-family: inherit; margin-bottom: 10px;
    color: inherit; background: transparent;
}
.mp-text-answer:focus { outline: none; border-color: var(--mp-accent, #4a90e2); }

/* Navigation buttons */
.mp-question-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }

.mp-btn {
    padding: 9px 18px; border: none; border-radius: 8px;
    cursor: pointer; font-size: 13px; font-weight: 600;
    transition: opacity .2s, transform .1s;
    background: var(--mp-btn, #4a90e2); color: #fff;
}
.mp-btn:hover   { opacity: .88; }
.mp-btn:active  { transform: scale(.97); }
.mp-btn-prev    { background: #ccc; color: #555; }

/* Thank you */
.mp-step-thankyou { text-align: center; padding: 20px 0; }
.mp-thankyou-icon {
    font-size: 42px; color: #2ecc71;
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(46,204,113,.1); display: inline-flex;
    align-items: center; justify-content: center; margin-bottom: 12px;
}
.mp-thankyou-text { font-size: 15px; font-weight: 600; color: inherit; }

/* Error */
.mp-step-error { text-align: center; color: #e74c3c; }

/* Progress bar */
.mp-survey-progress { height: 4px; background: #eee; }
.mp-progress-bar    { height: 100%; background: var(--mp-accent, #4a90e2); transition: width .4s ease; }

/* Validation error */
.mp-error-msg {
    color: #c0392b !important;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 6px 10px;
    background: rgba(231,76,60,.12) !important;
    border-left: 3px solid #e74c3c;
    border-radius: 0 4px 4px 0;
    display: none;
}

/* Overlay for center position */
.mp-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    z-index: 99998; display: none;
}
.mp-overlay.mp-visible { display: block; }

/* ============================================================
   Widget style variants
   ============================================================ */

/* --- Minimal: sem cabeçalho colorido --- */
.mp-survey-widget.mp-style-minimal .mp-survey-header {
    background: transparent !important;
    padding: 6px 10px 2px;
    border-bottom: 1px solid rgba(0,0,0,.07);
}
.mp-survey-widget.mp-style-minimal .mp-survey-title {
    font-size: 12px;
    font-weight: 400;
    opacity: .6;
    color: inherit;
}
.mp-survey-widget.mp-style-minimal .mp-survey-close {
    color: #aaa;
    font-size: 15px;
}
.mp-survey-widget.mp-style-minimal .mp-survey-close:hover { color: #555; }

/* --- Bubble: botão flutuante + painel --- */
.mp-survey-launcher {
    position: fixed;
    z-index: 99998;
    display: none;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 30px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0,0,0,.22);
    transition: opacity .2s, transform .15s;
}
.mp-survey-launcher.mp-visible          { display: flex; }
.mp-survey-launcher:hover               { opacity: .92; transform: scale(1.04); }
.mp-survey-launcher:active              { transform: scale(.97); }
.mp-survey-launcher.mp-pos-bottom-right  { bottom: 20px; right: 20px; }
.mp-survey-launcher.mp-pos-bottom-left   { bottom: 20px; left:  20px; }
.mp-survey-launcher.mp-pos-bottom-center { bottom: 20px; left: 50%; transform: translateX(-50%); }
.mp-survey-launcher.mp-pos-top-right     { top: 20px; right: 20px; }
.mp-survey-launcher.mp-pos-top-left      { top: 20px; left:  20px; }
.mp-survey-launcher.mp-pos-top-center    { top: 20px; left: 50%; transform: translateX(-50%); }
.mp-survey-launcher.mp-pos-center        { bottom: 20px; right: 20px; }
.mp-launcher-icon                        { font-size: 16px; line-height: 1; }

/* Painel bubble: desloca relativamente ao launcher */
.mp-survey-widget.mp-style-bubble.mp-pos-bottom-right  { bottom: 80px; right: 20px; }
.mp-survey-widget.mp-style-bubble.mp-pos-bottom-left   { bottom: 80px; left:  20px; }
.mp-survey-widget.mp-style-bubble.mp-pos-bottom-center { bottom: 80px; left: 50%; transform: translateX(-50%); }
.mp-survey-widget.mp-style-bubble.mp-pos-top-right     { top: 80px; right: 20px; }
.mp-survey-widget.mp-style-bubble.mp-pos-top-left      { top: 80px; left:  20px; }
.mp-survey-widget.mp-style-bubble.mp-pos-top-center    { top: 80px; left: 50%; transform: translateX(-50%); }

/* --- Border radius --- */
.mp-survey-widget.mp-radius-none   { border-radius: 0 !important; }
.mp-survey-widget.mp-radius-small  { border-radius: 6px !important; }
.mp-survey-widget.mp-radius-medium { border-radius: 12px !important; }
.mp-survey-widget.mp-radius-large  { border-radius: 20px !important; }

/* Widget images (intro / question / thankyou) */
.mp-step-image {
    width: 100%;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}
.mp-step-image img {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}
.mp-thankyou-image img { max-height: 140px; }

/* Contact form question */
.mp-contact-form        { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.mp-contact-field       { width: 100%; }
.mp-contact-input {
    width: 100%; border: 1px solid #ddd; border-radius: 8px;
    padding: 8px 10px; font-size: 13px;
    font-family: inherit; background: transparent;
    color: inherit; box-sizing: border-box;
}
.mp-contact-input:focus  { outline: none; border-color: var(--mp-accent, #4a90e2); }
.mp-contact-textarea     { resize: vertical; min-height: 70px; }

/* ============================================================
   Responsive — tablet (≤ 768px) e mobile (≤ 480px)
   ============================================================ */

/* --- Tablet: todos os estilos clássicos --- */
@media (max-width: 768px) {
    /* Widget normal: um pouco mais estreito */
    .mp-survey-widget { max-width: calc(100vw - 32px); }

    /* Top positions: margem menor */
    .mp-survey-widget.mp-pos-top-right  { top: 10px; right: 10px; }
    .mp-survey-widget.mp-pos-top-left   { top: 10px; left:  10px; }
    .mp-survey-widget.mp-pos-top-center { top: 10px; }
    .mp-survey-widget.mp-pos-bottom-right { bottom: 10px; right: 10px; }
    .mp-survey-widget.mp-pos-bottom-left  { bottom: 10px; left:  10px; }

    /* Bar: header mais estreito em tablet */
    .mp-survey-widget.mp-style-bar .mp-survey-header { width: 100px; }

    /* Side: ligeiramente mais estreito */
    .mp-survey-widget.mp-style-side { width: 300px; }
    .mp-survey-sidetab { padding: 14px 9px; font-size: 12px; }
}

/* --- Mobile: ≤ 480px --- */
@media (max-width: 480px) {
    /* Estilos clássico / minimal / bubble */
    .mp-survey-widget:not(.mp-style-bar):not(.mp-style-side) {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }
    .mp-survey-widget.mp-pos-bottom-right { right: 12px; bottom: 12px; }
    .mp-survey-widget.mp-pos-bottom-left  { left:  12px; bottom: 12px; }
    .mp-survey-widget.mp-pos-top-right    { right: 12px; top: 12px; }
    .mp-survey-widget.mp-pos-top-left     { left:  12px; top: 12px; }
    .mp-survey-widget.mp-pos-top-center   { top: 12px; }
    .mp-survey-widget.mp-pos-bottom-center { bottom: 12px; }

    /* NPS: botões mais pequenos para caber numa linha */
    .mp-nps-btn { width: 22px; height: 22px; font-size: 10px; }

    /* Bar mobile: abandona flex-row, torna-se bloco vertical */
    .mp-survey-widget.mp-style-bar,
    .mp-survey-widget.mp-style-bar.mp-visible { display: block !important; }
    .mp-survey-widget.mp-style-bar .mp-survey-header { display: none; }
    .mp-survey-widget.mp-style-bar .mp-survey-body {
        display: block;
        width: auto;
        min-height: 0;
        overflow: visible;
        padding: 44px 14px 12px;
    }
    .mp-survey-widget.mp-style-bar .mp-step { display: none; }
    .mp-survey-widget.mp-style-bar .mp-step.mp-active { display: block; }
    .mp-survey-widget.mp-style-bar .mp-options { flex-direction: column; }
    .mp-survey-widget.mp-style-bar .mp-nps     { flex-wrap: wrap; gap: 4px; }
    .mp-survey-widget.mp-style-bar .mp-text-answer { max-width: 100%; min-width: 0; width: 100%; }
    .mp-survey-widget.mp-style-bar .mp-question-nav { display: flex; width: 100%; margin-top: 10px; }
    .mp-survey-widget.mp-style-bar .mp-bar-close-btn {
        position: absolute; right: 0; top: 0;
        height: 44px; width: 44px;
        border-left: 1px solid rgba(0,0,0,.08);
        border-bottom: 1px solid rgba(0,0,0,.08);
        z-index: 2;
    }

    /* Side mobile: painel a largura total (desliza da direita) */
    .mp-survey-widget.mp-style-side {
        width: 100% !important;
        max-width: 100%;
        left: 0 !important;
        right: 0 !important;
        box-shadow: 0 0 24px rgba(0,0,0,.3);
    }
    .mp-survey-widget.mp-style-side.mp-visible { animation: mpSlideFromRight .3s ease forwards; }

    /* Tab mobile: menor e mais compacto */
    .mp-survey-sidetab { padding: 12px 8px; font-size: 11px; }

    /* Bubble launcher: margem menor */
    .mp-survey-launcher { bottom: 12px; right: 12px; padding: 9px 16px; font-size: 13px; }
    .mp-survey-launcher.mp-pos-bottom-left  { left: 12px; right: auto; }
    .mp-survey-launcher.mp-pos-top-right    { top: 12px; bottom: auto; }
    .mp-survey-launcher.mp-pos-top-left     { top: 12px; left: 12px; bottom: auto; right: auto; }
    .mp-survey-launcher.mp-pos-top-center   { top: 12px; bottom: auto; }
    .mp-survey-launcher.mp-pos-bottom-center { bottom: 12px; }

    /* Bubble widget: posição ajustada */
    .mp-survey-widget.mp-style-bubble.mp-pos-bottom-right { bottom: 72px; right: 12px; }
    .mp-survey-widget.mp-style-bubble.mp-pos-bottom-left  { bottom: 72px; left:  12px; }
    .mp-survey-widget.mp-style-bubble.mp-pos-top-right    { top: 72px; right: 12px; }
    .mp-survey-widget.mp-style-bubble.mp-pos-top-left     { top: 72px; left:  12px; }
}

/* ============================================================
   Bar style — faixa horizontal de largura total
   ============================================================ */

.mp-survey-widget.mp-style-bar {
    width: 100%;
    max-width: 100%;
    border-radius: 0 !important;
    left: 0;
    right: 0;
    box-shadow: 0 2px 16px rgba(0,0,0,.14);
}

/* Force correct edge and clear per-position transforms */
.mp-survey-widget.mp-style-bar.mp-pos-bottom-right,
.mp-survey-widget.mp-style-bar.mp-pos-bottom-left,
.mp-survey-widget.mp-style-bar.mp-pos-bottom-center,
.mp-survey-widget.mp-style-bar.mp-pos-center { bottom: 0; top: auto; left: 0; right: 0; transform: none; }

.mp-survey-widget.mp-style-bar.mp-pos-top-right,
.mp-survey-widget.mp-style-bar.mp-pos-top-left,
.mp-survey-widget.mp-style-bar.mp-pos-top-center { top: 0; bottom: auto; left: 0; right: 0; transform: none; }

/* Bar visible: flex row */
.mp-survey-widget.mp-style-bar.mp-visible {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* Bar bottom animations */
.mp-survey-widget.mp-style-bar.mp-pos-bottom-right.mp-visible,
.mp-survey-widget.mp-style-bar.mp-pos-bottom-left.mp-visible,
.mp-survey-widget.mp-style-bar.mp-pos-bottom-center.mp-visible,
.mp-survey-widget.mp-style-bar.mp-pos-center.mp-visible { animation: mpBarSlideUp .3s ease forwards; }

/* Bar top animations */
.mp-survey-widget.mp-style-bar.mp-pos-top-right.mp-visible,
.mp-survey-widget.mp-style-bar.mp-pos-top-left.mp-visible,
.mp-survey-widget.mp-style-bar.mp-pos-top-center.mp-visible { animation: mpBarSlideDown .3s ease forwards; }

@keyframes mpBarSlideUp   { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }
@keyframes mpBarSlideDown { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: translateY(0); } }

/* Bar header: left color strip */
.mp-survey-widget.mp-style-bar .mp-survey-header {
    flex-shrink: 0;
    width: 140px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 0;
}
.mp-survey-widget.mp-style-bar .mp-survey-title {
    font-size: 13px;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
}
.mp-survey-widget.mp-style-bar .mp-survey-close { display: none; }

/* Bar body: flex row with question content */
.mp-survey-widget.mp-style-bar .mp-survey-body {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 8px 14px;
    min-height: 52px;
    overflow: hidden;
}

/* Bar steps: inline flex */
.mp-survey-widget.mp-style-bar .mp-step { display: none; }
.mp-survey-widget.mp-style-bar .mp-step.mp-active {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}
.mp-survey-widget.mp-style-bar .mp-question-text  { margin-bottom: 0; flex-shrink: 0; font-size: 13px; }
.mp-survey-widget.mp-style-bar .mp-question-counter { display: none; }
.mp-survey-widget.mp-style-bar .mp-intro-text     { margin-bottom: 0; font-size: 13px; }
.mp-survey-widget.mp-style-bar .mp-options        { flex-direction: row; flex-wrap: wrap; margin-bottom: 0; gap: 6px; }
.mp-survey-widget.mp-style-bar .mp-option         { padding: 4px 10px; font-size: 12px; }
.mp-survey-widget.mp-style-bar .mp-stars          { margin-bottom: 0; }
.mp-survey-widget.mp-style-bar .mp-star           { font-size: 22px; }
.mp-survey-widget.mp-style-bar .mp-nps            { margin-bottom: 0; flex-wrap: wrap; gap: 3px; }
.mp-survey-widget.mp-style-bar .mp-nps-btn        { width: 24px; height: 24px; font-size: 10px; }
.mp-survey-widget.mp-style-bar .mp-text-answer    { height: 36px; resize: none; margin-bottom: 0; padding: 6px 8px; font-size: 12px; min-width: 180px; max-width: 300px; }
.mp-survey-widget.mp-style-bar .mp-question-nav   { margin-top: 0; }
.mp-survey-widget.mp-style-bar .mp-btn            { padding: 6px 14px; font-size: 12px; }
.mp-survey-widget.mp-style-bar .mp-survey-progress { display: none; }
.mp-survey-widget.mp-style-bar .mp-error-msg      { flex-basis: 100%; margin: 4px 0 0; }

/* Bar: thank you and error centered */
.mp-survey-widget.mp-style-bar .mp-step-thankyou  { padding: 8px 0; }
.mp-survey-widget.mp-style-bar .mp-thankyou-icon  { font-size: 24px; width: 36px; height: 36px; margin-bottom: 0; margin-right: 8px; display: inline-flex; }
.mp-survey-widget.mp-style-bar .mp-thankyou-text  { font-size: 13px; display: inline; }
.mp-survey-widget.mp-style-bar .mp-step-thankyou  { display: none; }
.mp-survey-widget.mp-style-bar .mp-step-thankyou.mp-active { display: flex; align-items: center; justify-content: center; }

/* Bar close button */
.mp-bar-close-btn {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: none;
    border: none;
    border-left: 1px solid rgba(0,0,0,.1);
    font-size: 16px;
    cursor: pointer;
    opacity: .6;
    color: inherit;
    transition: opacity .2s;
    align-self: stretch;
}
.mp-survey-widget.mp-style-bar .mp-bar-close-btn { display: flex; }
.mp-bar-close-btn:hover { opacity: 1; }

/* ============================================================
   Side style — painel lateral deslizante
   ============================================================ */

/* Side tab trigger */
.mp-survey-sidetab {
    position: fixed;
    z-index: 99998;
    display: none;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 18px 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 18px rgba(0,0,0,.22);
    top: 50%;
    transition: opacity .2s, transform .15s;
    line-height: 1.3;
}
.mp-survey-sidetab.mp-visible { display: block; }
.mp-survey-sidetab:hover { opacity: .88; }

.mp-survey-sidetab.mp-sidetab-right {
    right: 0;
    transform: translateY(-50%) rotate(180deg);
    border-radius: 6px 0 0 6px;
}
.mp-survey-sidetab.mp-sidetab-left {
    left: 0;
    transform: translateY(-50%);
    border-radius: 0 6px 6px 0;
}

/* Side panel */
.mp-survey-widget.mp-style-side {
    top: 0;
    bottom: 0;
    width: 340px;
    max-width: 85vw;
    height: 100%;
    max-height: 100vh;
    border-radius: 0 !important;
    overflow-y: auto;
}

/* Side: right-side positions */
.mp-survey-widget.mp-style-side.mp-pos-bottom-right,
.mp-survey-widget.mp-style-side.mp-pos-top-right,
.mp-survey-widget.mp-style-side.mp-pos-bottom-center,
.mp-survey-widget.mp-style-side.mp-pos-top-center,
.mp-survey-widget.mp-style-side.mp-pos-center {
    right: 0; left: auto; bottom: 0; top: 0; transform: none;
    box-shadow: -4px 0 24px rgba(0,0,0,.18);
}

/* Side: left-side positions */
.mp-survey-widget.mp-style-side.mp-pos-bottom-left,
.mp-survey-widget.mp-style-side.mp-pos-top-left {
    left: 0; right: auto; bottom: 0; top: 0; transform: none;
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
}

/* Side animations */
.mp-survey-widget.mp-style-side.mp-pos-bottom-right.mp-visible,
.mp-survey-widget.mp-style-side.mp-pos-top-right.mp-visible,
.mp-survey-widget.mp-style-side.mp-pos-bottom-center.mp-visible,
.mp-survey-widget.mp-style-side.mp-pos-top-center.mp-visible,
.mp-survey-widget.mp-style-side.mp-pos-center.mp-visible { animation: mpSlideFromRight .3s ease forwards; }

.mp-survey-widget.mp-style-side.mp-pos-bottom-left.mp-visible,
.mp-survey-widget.mp-style-side.mp-pos-top-left.mp-visible { animation: mpSlideFromLeft .3s ease forwards; }

@keyframes mpSlideFromRight { from { opacity: 1; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes mpSlideFromLeft  { from { opacity: 1; transform: translateX(-100%); } to { opacity: 1; transform: translateX(0); } }
