.mj-idea-box {
    position: relative;
    font-size: 1rem;
    line-height: 1.5;
}

.mj-idea-box__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mj-idea-box__header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mj-idea-box__title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.3;
}

.mj-idea-box__intro {
    color: #424242;
}

.mj-idea-box__feedback {
    display: none;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: #ffeae6;
    color: #8b1f00;
}

.mj-idea-box__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: #f7f9fb;
}

.mj-idea-box__form-counter {
    margin: 0;
    margin-left: auto;
    font-size: 0.8rem;
    color: #64748b;
}

.mj-idea-box__form-title,
.mj-idea-box__form-content {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font: inherit;
    color: inherit;
    background-color: #fff;
}

.mj-idea-box__form-title:focus-visible,
.mj-idea-box__form-content:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.mj-idea-box__form-submit {
    align-self: flex-end;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mj-idea-box__form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mj-idea-box__form-submit:not(:disabled):hover,
.mj-idea-box__form-submit:not(:disabled):focus-visible {
    background: #1d4ed8;
}

.mj-idea-box__empty {
    margin: 0;
    color: #64748b;
}

.mj-idea-box__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mj-idea-box__item {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.mj-idea-box__item-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mj-idea-box__item-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.mj-idea-box__item-meta {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.mj-idea-box__item-content {
    margin: 0.75rem 0;
    white-space: normal;
}

.mj-idea-box__item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mj-idea-box__item-vote {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mj-idea-box__vote-button {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid #2563eb;
    background: #fff;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mj-idea-box__vote-button.is-active {
    background: #2563eb;
    color: #fff;
}

.mj-idea-box__vote-button.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mj-idea-box__vote-button:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}

.mj-idea-box__vote-button:not(.is-disabled):hover {
    background: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
}

.mj-idea-box__vote-count {
    font-size: 0.95rem;
    color: #0f172a;
}

.mj-idea-box__delete-button {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #dc2626;
    background: #fff;
    color: #b91c1c;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mj-idea-box__delete-button.is-disabled,
.mj-idea-box__delete-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mj-idea-box__delete-button:not(.is-disabled):hover,
.mj-idea-box__delete-button:not(.is-disabled):focus-visible {
    background: #b91c1c;
    color: #fff;
    border-color: #b91c1c;
}

.mj-idea-box__delete-button:focus-visible {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

.mj-idea-box.is-loading .mj-idea-box__list::after {
    content: '';
    display: block;
    border-radius: 0.5rem;
    height: 0.25rem;
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.4) 0%, rgba(148, 163, 184, 0.6) 50%, rgba(226, 232, 240, 0.4) 100%);
    animation: mj-idea-box-loading 1.4s ease-in-out infinite;
}

@keyframes mj-idea-box-loading {
    0% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.2;
    }
}
