/**
 * Eco Web Stories - Frontend Styles
 * Versão: 2.0.0
 * Experiência estilo Instagram
 */

/* ============================================
   RESET & BASE
   ============================================ */
.ews-carousel-wrapper,
.ews-carousel-wrapper *,
.ews-modal,
.ews-modal * {
    box-sizing: border-box;
}

/* ============================================
   CARROSSEL
   ============================================ */
.ews-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.ews-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.ews-carousel::-webkit-scrollbar {
    display: none;
}

.ews-carousel-track {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 5px 10px;
    scroll-behavior: smooth;
}

/* Botões de navegação do carrossel */
.ews-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.ews-carousel-nav:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.ews-carousel-nav:disabled {
    opacity: 0;
    pointer-events: none;
}

.ews-carousel-nav svg {
    width: 18px;
    height: 18px;
    color: #333;
}

.ews-carousel-nav-prev { left: 0; }
.ews-carousel-nav-next { right: 0; }

@media (min-width: 769px) {
    .ews-carousel-wrapper:hover .ews-carousel-nav {
        display: flex;
    }
}

/* Item do Carrossel */
.ews-carousel-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ews-carousel-item:hover {
    transform: scale(1.05);
}

/* Thumbnail */
.ews-carousel-thumb {
    position: relative;
    border-radius: 50%;
    overflow: visible;
}

.ews-carousel-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    position: relative;
    z-index: 2;
}

.ews-thumb-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    border: 3px solid #fff;
    position: relative;
    z-index: 2;
}

.ews-thumb-placeholder .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Indicador de vídeo */
.ews-video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
}

.ews-carousel-item:hover .ews-video-indicator {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.8);
}

.ews-video-indicator svg {
    width: 12px;
    height: 12px;
    color: #fff;
    margin-left: 2px;
}

.ews-video-placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.ews-video-placeholder .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

/* Anel gradiente ao redor do thumbnail */
.ews-carousel-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    z-index: 1;
    animation: ews-ring-rotate 3s linear infinite;
}

@keyframes ews-ring-rotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Story visualizado */
.ews-carousel-item.ews-viewed .ews-carousel-ring {
    background: linear-gradient(45deg, #d1d5db, #9ca3af, #6b7280);
    animation: none;
}

.ews-carousel-item.ews-viewed .ews-carousel-thumb img {
    opacity: 0.85;
}

/* Título do carrossel */
.ews-carousel-title {
    margin-top: 8px;
    font-size: 12px;
    color: #333;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   TAMANHOS DO CARROSSEL
   ============================================ */
.ews-size-small .ews-carousel-thumb { width: 60px; height: 60px; }
.ews-size-medium .ews-carousel-thumb { width: 80px; height: 80px; }
.ews-size-large .ews-carousel-thumb { width: 100px; height: 100px; }

/* ============================================
   ESTILOS DE THUMB
   ============================================ */
.ews-style-square .ews-carousel-thumb,
.ews-style-square .ews-carousel-thumb img,
.ews-style-square .ews-carousel-ring,
.ews-style-square .ews-thumb-placeholder {
    border-radius: 12px;
}

.ews-style-card .ews-carousel-item {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ews-style-card .ews-carousel-ring {
    display: none;
}

.ews-style-card .ews-carousel-thumb img {
    border: none;
}

/* ============================================
   MODAL - ESTRUTURA PRINCIPAL
   ============================================ */
.ews-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ews-modal[aria-hidden="false"] {
    visibility: visible;
    opacity: 1;
}

.ews-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.ews-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo no canto superior esquerdo (estilo Instagram) */
.ews-modal-logo {
    position: absolute;
    top: 16px;
    left: 20px;
    z-index: 100;
    color: #fff;
    font-family: 'Billabong', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 28px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 1px;
}

/* Botão fechar global (X no canto superior direito) */
.ews-modal-close-global {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 100;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.ews-modal-close-global:hover {
    opacity: 0.7;
}

.ews-modal-close-global svg {
    width: 32px;
    height: 32px;
    color: #fff;
    stroke-width: 1.5;
}

/* ============================================
   MODAL - CONTAINER DE STORIES (3 COLUNAS)
   ============================================ */
.ews-stories-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    width: 100%;
    max-width: 1400px;
    padding: 60px 20px 20px;
}

/* Setas de navegação entre stories */
.ews-story-nav {
    position: relative;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ews-story-nav.ews-nav-visible {
    display: flex;
}

.ews-story-nav:hover {
    background: #fff;
    transform: scale(1.05);
}

.ews-story-nav svg {
    width: 16px;
    height: 16px;
    color: #262626;
}

/* Preview dos Stories Adjacentes */
.ews-story-preview {
    flex: 0 0 130px;
    height: 55%;
    max-height: 480px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.92);
    transition: all 0.3s ease;
    background: #262626;
    display: none;
}

.ews-story-preview.ews-has-preview {
    display: block;
    opacity: 0.6;
}

.ews-story-preview:hover {
    opacity: 0.85;
    transform: scale(0.95);
}

.ews-preview-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.ews-preview-content > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

/* Info do preview com avatar no estilo Instagram */
.ews-preview-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 10px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ews-preview-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e1306c;
    background: #333;
}

.ews-preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ews-preview-name {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    text-align: center;
}

.ews-preview-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 400;
    display: block;
    text-align: center;
}

/* Segundo preview à direita */
.ews-story-preview-next-2 {
    flex: 0 0 120px;
    height: 50%;
    max-height: 420px;
    opacity: 0;
    transform: scale(0.88);
}

.ews-story-preview-next-2.ews-has-preview {
    display: block;
    opacity: 0.45;
}

.ews-story-preview-next-2:hover {
    opacity: 0.65;
    transform: scale(0.92);
}

/* Story Atual (Centro) */
.ews-story-current {
    flex: 0 0 auto;
    width: 100%;
    max-width: 420px;
    height: 92%;
    max-height: 800px;
}

/* ============================================
   STORY VIEWER
   ============================================ */
.ews-story-viewer {
    position: relative;
    width: 100%;
    height: 100%;
    background: #121212;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}

/* Transições entre stories */
.ews-story-viewer.ews-transition-next {
    animation: ews-slide-left 0.3s ease;
}

.ews-story-viewer.ews-transition-prev {
    animation: ews-slide-right 0.3s ease;
}

@keyframes ews-slide-left {
    0% { transform: translateX(30px); opacity: 0.5; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes ews-slide-right {
    0% { transform: translateX(-30px); opacity: 0.5; }
    100% { transform: translateX(0); opacity: 1; }
}

/* ============================================
   STORY HEADER
   ============================================ */
.ews-story-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 12px;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

/* Barras de Progresso */
.ews-story-progress {
    display: flex;
    gap: 3px;
    margin-bottom: 10px;
}

.ews-progress-bar {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 1px;
    overflow: hidden;
}

.ews-progress-fill {
    height: 100%;
    background: #fff;
    width: 0%;
    border-radius: 1px;
}

.ews-progress-bar.completed .ews-progress-fill {
    width: 100%;
}

/* Info do Story (Avatar + Nome + Ações) */
.ews-story-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ews-story-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid #e1306c;
}

.ews-story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ews-story-avatar .dashicons {
    color: #fff;
    font-size: 18px;
}

.ews-story-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ews-story-name {
    display: inline;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ews-story-time {
    display: inline;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 400;
}

/* Botões de ação no header (mute, download, play, more) */
.ews-story-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.ews-action-btn {
    position: relative;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.2s ease;
}

.ews-action-btn:hover {
    opacity: 0.7;
}

.ews-action-btn svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.ews-btn-play svg {
    width: 20px;
    height: 20px;
}

.ews-btn-more svg {
    width: 22px;
    height: 22px;
}

/* Botão mute quando mutado */
.ews-btn-mute.muted svg {
    opacity: 0.5;
}

.ews-btn-mute.muted::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 28px;
    background: #fff;
    transform: rotate(45deg);
}

/* Botão fechar mobile (dentro do story) */
.ews-story-close-mobile {
    display: none;
    position: absolute;
    top: 50px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.2s ease;
}

.ews-story-close-mobile:hover {
    opacity: 0.7;
}

.ews-story-close-mobile svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

/* ============================================
   STORY CONTENT
   ============================================ */
.ews-story-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.ews-story-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ews-story-media img,
.ews-story-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay com texto */
.ews-story-overlay {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    padding: 40px 16px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    z-index: 3;
}

.ews-story-categories {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.ews-story-categories:empty {
    display: none;
}

.ews-story-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 10px;
    color: #fff;
}

.ews-story-title:empty {
    display: none;
}

.ews-story-description {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0 0 15px;
}

.ews-story-description:empty {
    display: none;
}

.ews-story-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.ews-story-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.ews-story-link[style*="display: none"] {
    display: none !important;
}

/* Seta no botão CTA */
.ews-story-link::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M14 5l7 7m0 0l-7 7m7-7H3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.2s ease;
}

.ews-story-link:hover::after {
    transform: translateX(3px);
}

/* ============================================
   STORY FOOTER (Campo de resposta)
   ============================================ */
.ews-story-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 20;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.ews-story-reply {
    flex: 1;
}

.ews-reply-input {
    width: 100%;
    height: 44px;
    padding: 0 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.ews-reply-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.ews-reply-input:focus {
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.ews-story-footer-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ews-footer-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ews-footer-btn:hover {
    transform: scale(1.15);
}

.ews-footer-btn svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

.ews-footer-btn.ews-btn-like.liked svg {
    fill: #ed4956;
    color: #ed4956;
    animation: ews-like-pulse 0.3s ease;
}

@keyframes ews-like-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ============================================
   ZONAS DE TOQUE / NAVEGAÇÃO
   ============================================ */
.ews-story-touch-zones {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 2;
}

.ews-touch-prev,
.ews-touch-next {
    flex: 1;
    cursor: pointer;
}

.ews-touch-prev {
    cursor: w-resize;
}

.ews-touch-next {
    cursor: e-resize;
}

/* ============================================
   INDICADOR DE PAUSA
   ============================================ */
.ews-pause-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(4px);
}

.ews-pause-indicator svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.ews-story-viewer.ews-paused .ews-pause-indicator {
    opacity: 1;
}

/* ============================================
   LOADING
   ============================================ */
.ews-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}

.ews-loading::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ews-spin 0.8s linear infinite;
}

@keyframes ews-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVO - TABLET
   ============================================ */
@media (max-width: 1200px) {
    .ews-story-preview-next-2 {
        display: none !important;
    }
}

@media (max-width: 1100px) {
    .ews-stories-container {
        gap: 8px;
    }

    .ews-story-preview {
        flex: 0 0 100px;
        height: 50%;
    }

    .ews-story-current {
        max-width: 380px;
    }
}

@media (max-width: 900px) {
    .ews-stories-container {
        gap: 6px;
    }

    .ews-story-preview {
        flex: 0 0 90px;
        height: 45%;
    }

    .ews-story-nav {
        width: 32px;
        height: 32px;
    }

    .ews-story-nav svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   RESPONSIVO - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .ews-modal-logo,
    .ews-modal-close-global {
        display: none;
    }

    .ews-stories-container {
        padding: 0;
    }

    .ews-story-preview,
    .ews-story-nav {
        display: none !important;
    }

    .ews-story-current {
        max-width: 100%;
        max-height: 100%;
        height: 100vh;
        height: 100dvh;
    }

    .ews-story-viewer {
        border-radius: 0;
        max-height: 100%;
    }

    .ews-story-header {
        padding-top: max(10px, env(safe-area-inset-top));
    }

    /* Mostrar botão X no mobile */
    .ews-story-close-mobile {
        display: flex;
        top: max(50px, calc(env(safe-area-inset-top) + 38px));
        right: max(12px, env(safe-area-inset-right));
    }

    .ews-story-overlay {
        bottom: 90px;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }

    .ews-story-footer {
        padding-bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px));
    }

    .ews-story-title {
        font-size: 18px;
    }

    .ews-story-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .ews-carousel-track {
        gap: 10px;
        padding: 5px;
    }

    .ews-size-large .ews-carousel-thumb {
        width: 80px;
        height: 80px;
    }

    .ews-size-medium .ews-carousel-thumb {
        width: 70px;
        height: 70px;
    }
}

/* ============================================
   ELEMENTOR PREVIEW
   ============================================ */
.ews-elementor-preview {
    padding: 20px;
}

.ews-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 8px;
    text-align: center;
}

.ews-preview-placeholder i {
    font-size: 48px;
    color: #aaa;
    margin-bottom: 10px;
}

.ews-preview-placeholder span {
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

.ews-preview-placeholder small {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
.ews-story-content {
    animation: ews-fade-in 0.3s ease;
}

@keyframes ews-fade-in {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
