.easyvote-chatkit-box {
    width: 100%;
    margin: 24px auto;
    font-family: inherit;
}

.easyvote-chatkit-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #1d4f91, #2f76c7);
    color: #ffffff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.easyvote-chatkit-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 6px 0;
}

.easyvote-chatkit-subtitle {
    font-size: 14px;
    line-height: 1.45;
    opacity: 0.92;
}

.easyvote-chatkit-wrapper {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-top: 0;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.easyvote-chatkit-component {
    display: block;
    width: 100%;
    height: 100%;
}

.easyvote-chatkit-privacy {
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.4;
    color: #5f6b7a;
    background: #f5f8fc;
    border: 1px solid #d9e2ec;
    border-top: 0;
    border-radius: 0 0 18px 18px;
}

.easyvote-chatkit-error {
    padding: 20px;
    font-family: Arial, sans-serif;
    color: #b00020;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 12px;
    margin: 16px;
}

/* Modo flotante exterior */

.easyvote-chatkit-floating {
    position: fixed !important;
    z-index: 999999 !important;
    bottom: 24px !important;
    font-family: inherit !important;
}

.easyvote-chatkit-floating-right {
    right: 24px !important;
}

.easyvote-chatkit-floating-left {
    left: 24px !important;
}

.easyvote-chatkit-floating-button {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 15px 22px !important;
    min-height: 56px !important;
    background: linear-gradient(135deg,#0a2a6c,#1e5ad9,#3fa9ff,#8bd8ff) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: 0 16px 35px rgba(18, 68, 128, 0.35) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.easyvote-chatkit-floating-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 20px 42px rgba(18, 68, 128, 0.42) !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #1a4782, #286ab7) !important;
}

.easyvote-chatkit-floating-button:focus {
    outline: 3px solid rgba(47, 118, 199, 0.35) !important;
    outline-offset: 3px !important;
    color: #ffffff !important;
}

.easyvote-chatkit-floating-button:visited,
.easyvote-chatkit-floating-button:active {
    color: #ffffff !important;
}

.easyvote-chatkit-floating-button.is-hidden {
    display: none !important;
}

.easyvote-chatkit-floating-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    font-size: 20px !important;
    line-height: 1 !important;
    flex: 0 0 34px !important;
}

.easyvote-chatkit-floating-panel {
    display: none !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 65px rgba(15, 23, 42, 0.28) !important;
    border: 1px solid rgba(217, 226, 236, 0.95) !important;
}

.easyvote-chatkit-floating-panel.is-open {
    display: block !important;
}

.easyvote-chatkit-floating-frame-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 18px 20px !important;
    background: linear-gradient(135deg, #1d4f91, #2f76c7) !important;
    color: #ffffff !important;
}

.easyvote-chatkit-floating-frame-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin: 0 0 6px 0 !important;
    color: #ffffff !important;
}

.easyvote-chatkit-floating-frame-subtitle {
    font-size: 14px !important;
    line-height: 1.45 !important;
    opacity: 0.92 !important;
    color: #ffffff !important;
}

.easyvote-chatkit-floating-iframe {
    display: block !important;
    width: 100% !important;
    border: 0 !important;
    background: #ffffff !important;
}

.easyvote-chatkit-close {
    appearance: none !important;
    -webkit-appearance: none !important;
    flex: 0 0 auto !important;
    width: 34px !important;
    height: 34px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    font-size: 26px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.18s ease, transform 0.18s ease !important;
}

.easyvote-chatkit-close:hover {
    background: rgba(255, 255, 255, 0.26) !important;
    transform: scale(1.04) !important;
}

.easyvote-chatkit-close:focus {
    outline: 3px solid rgba(255, 255, 255, 0.45) !important;
    outline-offset: 2px !important;
}

/* Vista interior iframe */

.easyvote-chatkit-iframe-body {
    margin: 0;
    padding: 0;
    background: #ffffff;
}

.easyvote-chatkit-iframe-box {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.easyvote-chatkit-iframe-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}

.easyvote-chatkit-iframe-wrapper openai-chatkit {
    display: block;
    width: 100%;
    height: 100%;
}

.easyvote-chatkit-iframe-privacy {
    flex: 0 0 auto;
    padding: 10px 12px;
    font-size: 11px;
    line-height: 1.35;
    color: #5f6b7a;
    background: #f5f8fc;
    border-top: 1px solid #d9e2ec;
}

@media (max-width: 600px) {
    .easyvote-chatkit-box {
        margin: 16px auto;
    }

    .easyvote-chatkit-header {
        padding: 16px;
        border-radius: 14px 14px 0 0;
    }

    .easyvote-chatkit-title {
        font-size: 18px;
    }

    .easyvote-chatkit-floating {
        left: 12px !important;
        right: auto !important;
        bottom: 12px !important;
    }

    .easyvote-chatkit-floating-left,
    .easyvote-chatkit-floating-right {
        left: 12px !important;
        right: auto !important;
    }

    .easyvote-chatkit-floating-button {
        width: auto !important;
        max-width: 220px !important;
        min-height: 46px !important;
        padding: 10px 14px !important;
        justify-content: flex-start !important;
        font-size: 14px !important;
        gap: 8px !important;
        border-radius: 999px !important;
    }

    .easyvote-chatkit-floating-icon {
        width: 28px !important;
        height: 28px !important;
        flex: 0 0 28px !important;
        font-size: 16px !important;
    }

    .easyvote-chatkit-floating-panel {
        width: calc(100vw - 24px) !important;
        max-width: 390px !important;
    }

    .easyvote-chatkit-floating-iframe {
        height: 520px !important;
    }

    .easyvote-chatkit-floating-frame-header {
        padding: 14px 16px !important;
    }

    .easyvote-chatkit-floating-frame-title {
        font-size: 18px !important;
    }

    .easyvote-chatkit-floating-frame-subtitle {
        font-size: 13px !important;
    }
}