#vote-together-accordion-container .ea-header {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

#vote-together-accordion-container .ea-header>a {
    flex: 1;
}

#vote-together-accordion-container .vote-together-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 16px;
}

#vote-together-accordion-container .vote-together-actions .vote-actions {
    margin-left: auto;
    padding: 5px;
    box-shadow: 0 0 0 1px #bdbdbd inset;
    border-radius: .25em;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

#vote-together-accordion-container .vote-together-actions .vote-button {
    padding: 15px;
    margin: 0;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    border-radius: .25em;
    box-shadow: none;
    padding: 1em;
    font-size: 15px;
    border: none;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    background: none;
}

#vote-together-accordion-container .vote-together-actions .vote-button:after {
    content: '';
    display: block;
    background: url(../images/love.svg) no-repeat;
    background-position: center center;
    background-size: contain;
    width: 20px;
    height: 20px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
}

#vote-together-accordion-container .vote-together-actions .vote-button:hover {
    background-color: #f0f0f0;
}

#vote-together-accordion-container .vote-together-actions .vote-button.voted:after {
    filter: invert(44%) sepia(40%) saturate(3852%) hue-rotate(329deg) brightness(100%) contrast(111%);
}

#vote-together-accordion-container .vote-together-actions .vote-button.loading {
    opacity: 0.5;
    cursor: wait;
}

#vote-together-accordion-container .vote-together-actions .vote-count {
    font-size: 14px;
    text-decoration: none;
    line-height: 28px;
    display: inline-block;
    color: #616161;
    text-align: center;
    font-weight: 600;
    vertical-align: middle;
    padding: 0 5px;
    cursor: pointer;
}

/* Styles for ea-header integration are minimal now as we use EA's styles */
#vote-together-accordion-container .ea-header {
    /* Simply flex to align title and buttons if needed, though EA handles most */
}

/*
 * Redundant styles removed:
 * .vote-accordion, .vote-header, .vote-content
 * are now handled by Easy Accordion's ea-style.css
 */


/* Form */
#vote-together-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#vt-editor-wrap #vt_option_description {
    visibility: hidden;
    min-height: 200px;
}

#vt-editor-wrap.tinymce-ready #vt_option_description {
    display: none;
}

/* Remove TinyMCE editor header padding */
#vote-together-form .tox:not(.tox-tinymce-inline) .tox-editor-header {
    padding: 0;
    box-shadow: none;
}

/* Match TinyMCE editor style to the title input */
#vote-together-form .tox.tox-tinymce {
    border: 1px solid #000000;
    border-radius: 3px;
    font-family: Arial, sans-serif;
    width: 100%;
}

#vote-together-form .tox .tox-edit-area::before {
    border-color: #000000 !important;
}

#vote-together-form .tox .tox-toolbar,
#vote-together-form .tox .tox-toolbar__overflow,
#vote-together-form .tox .tox-toolbar-overlord {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

#vote-together-form .tox .tox-edit-area__iframe {
    background: #ffffff;
}

#vote-together-form .tox .tox-statusbar {
    border-top: 1px solid #e0e0e0;
}

#vote-together-form input,
#vote-together-form textarea {
    border: 1px solid #000000;
    border-radius: 3px;
    color: #000000;
    font-family: Arial, sans-serif;
    min-height: 3em;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 8px;
    text-align: left;
}

#vote-together-form input::placeholder,
#vote-together-form textarea::placeholder {
    color: #000000;
}

#vote-together-form input[type="submit"] {
    color: #ffffff;
    font-weight: 700;
    width: fit-content;
    background: #333;
    /* Added background since removed default */
    border: none;
    cursor: pointer;
    padding: 10px 20px;
}

/* Hover effect only on devices that support hover (desktop/laptop) */
@media (hover: hover) and (pointer: fine) {
    #vote-together-form input[type="submit"]:hover {
        background: #666666;
    }
}

#vote-together-form input[type="submit"]:disabled {
    background: #e0e0e0;
    color: #666666;
    cursor: not-allowed;
}

#vote-together-accordion-container + #vote-together-form,
#vote-together-form + #vote-together-accordion-container {
    margin-top: 20px;
}

/* Edit button wrapper */
#vote-together-accordion-container .vt-edit-actions {
    padding: 5px;
    box-shadow: 0 0 0 1px #bdbdbd inset;
    border-radius: .25em;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

#vote-together-accordion-container .vt-edit-button {
    padding: 1em;
    margin: 0;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    border-radius: .25em;
    font-size: 15px;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

#vote-together-accordion-container .vt-edit-button:after {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23616161' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

@media (hover: hover) and (pointer: fine) {
    #vote-together-accordion-container .vt-edit-button:hover {
        background-color: #f0f0f0;
    }
}
