.ccy-mb-widget {
    margin-bottom: 20px;
}

.ccy-mb-widget .widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.ccy-mb-widget .ccy-mb-container {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.ccy-mb-widget .ccy-mb-header {
    display: none;
}

.ccy-mb-widget .ccy-mb-form-wrapper {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.ccy-mb-widget .ccy-mb-user-info {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.ccy-mb-widget .ccy-mb-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.ccy-mb-widget .ccy-mb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ccy-mb-widget .ccy-mb-user-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.ccy-mb-widget .ccy-mb-guest-fields {
    margin-bottom: 12px;
}

.ccy-mb-widget .ccy-mb-field-row {
    margin-bottom: 10px;
}

.ccy-mb-widget .ccy-mb-field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.ccy-mb-widget .ccy-mb-field-label .required {
    color: #e74c3c;
    margin-left: 4px;
}

.ccy-mb-widget .ccy-mb-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s;
}

.ccy-mb-widget .ccy-mb-input:focus {
    border-color: #4a90e2;
}

.ccy-mb-widget .ccy-mb-post-reference {
    margin-bottom: 12px;
}

.ccy-mb-widget .ccy-mb-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    user-select: none;
}

.ccy-mb-widget .ccy-mb-label input[type="checkbox"] {
    margin-right: 6px;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.ccy-mb-widget .ccy-mb-reference-box input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s;
}

.ccy-mb-widget .ccy-mb-reference-box input[type="text"]:focus {
    border-color: #4a90e2;
}

.ccy-mb-widget .ccy-mb-post-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.ccy-mb-widget .ccy-mb-post-results.show {
    display: block;
}

.ccy-mb-widget .ccy-mb-post-item {
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.ccy-mb-widget .ccy-mb-post-item:hover {
    background: #f5f5f5;
}

.ccy-mb-widget .ccy-mb-post-item-title {
    font-size: 13px;
    color: #333;
    margin-bottom: 3px;
}

.ccy-mb-widget .ccy-mb-post-item-excerpt {
    font-size: 11px;
    color: #999;
}

.ccy-mb-widget .ccy-mb-content-wrapper textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s;
}

.ccy-mb-widget .ccy-mb-content-wrapper textarea:focus {
    border-color: #4a90e2;
}

.ccy-mb-widget .ccy-mb-submit-wrapper {
    margin-top: 12px;
    text-align: right;
}

.ccy-mb-widget .ccy-mb-submit-btn {
    padding: 8px 20px;
    background: var(--ccy-mb-primary-color, #4a90e2);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}

.ccy-mb-widget .ccy-mb-submit-btn:hover {
    background: var(--ccy-mb-primary-hover-color, #357abd);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.ccy-mb-widget .ccy-mb-submit-btn:active {
    transform: translateY(0);
}

.ccy-mb-widget .ccy-mb-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ccy-mb-widget .ccy-mb-login-notice {
    text-align: center;
    padding: 30px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 16px;
}

.ccy-mb-widget .ccy-mb-login-notice p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.ccy-mb-widget .ccy-mb-login-btn {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ccy-mb-widget .ccy-mb-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ccy-mb-widget .ccy-mb-messages-list {
    margin-bottom: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.ccy-mb-widget .ccy-mb-message-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: transform 0.2s;
    height: 100%;
}

.ccy-mb-widget .ccy-mb-message-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ccy-mb-widget .ccy-mb-message-main {
    display: flex;
}

.ccy-mb-widget .ccy-mb-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.ccy-mb-widget .ccy-mb-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ccy-mb-widget .ccy-mb-message-content {
    flex: 1;
}

.ccy-mb-widget .ccy-mb-message-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.ccy-mb-widget .ccy-mb-message-author {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.ccy-mb-widget .ccy-mb-message-time {
    font-size: 12px;
    color: #999;
}

.ccy-mb-widget .ccy-mb-message-reference {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #e8f4fd;
    border-radius: 4px;
    margin-bottom: 8px;
}

.ccy-mb-widget .ccy-mb-ref-label {
    font-size: 11px;
    color: #4a90e2;
    margin-right: 5px;
}

.ccy-mb-widget .ccy-mb-ref-link {
    font-size: 12px;
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.2s;
}

.ccy-mb-widget .ccy-mb-ref-link:hover {
    color: #357abd;
    text-decoration: underline;
}

.ccy-mb-widget .ccy-mb-message-text {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.ccy-mb-widget .ccy-mb-message-actions {
    display: flex;
    gap: 6px;
}

.ccy-mb-widget .ccy-mb-reply-btn {
    padding: 4px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.ccy-mb-widget .ccy-mb-reply-btn:hover {
    background: #4a90e2;
    border-color: #4a90e2;
    color: #fff;
}

.ccy-mb-widget .ccy-mb-replies {
    margin-top: 12px;
    padding-left: 52px;
}

.ccy-mb-widget .ccy-mb-reply-item {
    display: flex;
    padding: 12px;
    background: #fff;
    border-radius: 4px;
    margin-bottom: 10px;
    border: 1px solid #eee;
}

.ccy-mb-widget .ccy-mb-reply-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
}

.ccy-mb-widget .ccy-mb-reply-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ccy-mb-widget .ccy-mb-reply-content {
    flex: 1;
}

.ccy-mb-widget .ccy-mb-reply-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.ccy-mb-widget .ccy-mb-reply-author {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-right: 8px;
}

.ccy-mb-widget .ccy-mb-reply-time {
    font-size: 11px;
    color: #999;
}

.ccy-mb-widget .ccy-mb-reply-reference {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: #e8f4fd;
    border-radius: 4px;
    margin-bottom: 6px;
}

.ccy-mb-widget .ccy-mb-reply-text {
    font-size: 12px;
    line-height: 1.5;
    color: #555;
    word-wrap: break-word;
}

.ccy-mb-widget .ccy-mb-empty {
    text-align: center;
    padding: 40px 16px;
    color: #999;
}

.ccy-mb-widget .ccy-mb-empty p {
    font-size: 13px;
    margin: 0;
}

.ccy-mb-widget .ccy-mb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
}

.ccy-mb-widget .ccy-mb-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

.ccy-mb-widget .ccy-mb-pagination .page-numbers:hover {
    background: #f5f5f5;
    border-color: #4a90e2;
    color: #4a90e2;
}

.ccy-mb-widget .ccy-mb-pagination .page-numbers.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #fff;
}

.ccy-mb-widget .ccy-mb-pagination .page-numbers.dots {
    border: none;
    background: none;
}

@media (max-width: 768px) {
    .ccy-mb-widget .ccy-mb-message-main {
        flex-direction: column;
    }
    
    .ccy-mb-widget .ccy-mb-message-avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .ccy-mb-widget .ccy-mb-replies {
        padding-left: 0;
    }
    
    .ccy-mb-widget .ccy-mb-reply-item {
        flex-direction: column;
    }
    
    .ccy-mb-widget .ccy-mb-reply-avatar {
        margin-right: 0;
        margin-bottom: 6px;
    }
}
